Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

/* Accents. --accent is overridden per page where a page has its own hue. */
--accent: #3366ff;
--accent-nav: #1abc9c;
/* #1abc9c darkened to 5:1 contrast on --surface-page. */
--accent-nav: #0f705d;
--danger: #aa0000;

--space-1: 4px;
Expand Down
8 changes: 7 additions & 1 deletion src/lib/components/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
display: block;
padding: var(--space-4) var(--space-3) var(--space-4) var(--space-6);
font-size: 14px;
transition: color 200ms ease-in;
transition: color 80ms ease-out;
}

a:hover {
Expand Down Expand Up @@ -111,6 +111,12 @@
opacity: 0.85;
}

/* Full opacity so the accent colour keeps its contrast. */
.sub a:hover,
.sub a.active {
opacity: 1;
}

/* Tighter gutters once the column narrows, so long labels like
"Navigation Benchmark" wrap over two lines rather than three. */
@media (max-width: 64rem) {
Expand Down
Loading