# Custom Site CSS This project applies custom CSS themes to both the **Maven-generated documentation site** and the **JaCoCo coverage reports** so they share a consistent visual identity: light backgrounds, GitHub-inspired colors, purple gradient accents, and rounded card-style containers. ## Architecture Overview ``` src/site/ ├── resources/ │ ├── css/ │ │ └── site.css ← Maven site theme (loaded automatically by Fluido) │ └── images/ │ └── github-copilot.jpg ← Copilot logo for "Powered By" sidebar ├── jacoco-resources/ │ └── report.css ← JaCoCo report theme (overlaid after generation) └── site.xml ← Fluido skin configuration .github/ ├── templates/ │ ├── index.html ← Version picker page template │ └── styles.css ← Version picker CSS └── workflows/ └── deploy-site.yml ← Deploys site + overlays JaCoCo CSS ``` ## Maven Site Theme (`src/site/resources/css/site.css`) ### How It Works The Maven Fluido Skin 2.1.0 (configured in `src/site/site.xml`) automatically loads `css/site.css` from the site resources directory. No additional configuration is needed — placing the file at `src/site/resources/css/site.css` is sufficient. ### Design Choices | Element | Style | |---------|-------| | **Navbar** | Dark (`#24292f`) with no gradient or border, subtle box shadow | | **Sidebar** | White card with rounded corners (`border-radius: 10px`), 1px border | | **Active nav item** | Purple gradient (`#667eea → #764ba2`) | | **Links** | GitHub-blue (`#0969da`), hover darkens to `#0550ae` | | **Code blocks** | Light gray background (`#eef1f6`) to distinguish from the white page | | **Inline code** | Tinted purple background (`rgba(102, 126, 234, 0.1)`) | | **Tables** | Rounded borders, light header, subtle row hover | | **Sections** | White card with border and padding (nested sections are transparent) | | **Alerts** | Rounded with 4px left accent border, color-coded (info/warning/danger/success) | | **Typography** | System font stack (`-apple-system, BlinkMacSystemFont, 'Segoe UI', ...`) | ### GitHub Ribbon Override The Fluido skin renders a "Fork me on GitHub" ribbon using a `::after` pseudo-element with `content: attr(data-ribbon)`. We override this to say "View on GitHub" with a purple gradient background: ```css .github-fork-ribbon:before { background-color: #667eea !important; background-image: linear-gradient(135deg, #667eea, #764ba2) !important; } .github-fork-ribbon:after { content: 'View on GitHub' !important; } ``` > **Note:** Both `background-color` and `background-image` with `!important` are required because Fluido injects an inline `