Skip to content
Merged
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
11 changes: 8 additions & 3 deletions docs/templates/stratara/public/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
margin-right: 0.5rem;
}

/* ---------- Landing page (docs/index.md, _layout: landing) ---------- */
/* ---------- Brand colours (whole site) and the landing page ---------- */

:root {
--st-brand-rgb: 6, 115, 203; /* the wordmark blue from the logo; never themed */
Expand All @@ -24,8 +24,13 @@
--st-border: rgba(255, 255, 255, 0.12);
}

/* Both themes read the accent variables, so dark mode needs no second rule. */
body[data-layout="landing"] {
/* Every blue the template draws comes from these Bootstrap variables, so redirecting
them here is what makes the whole site use the wordmark blue rather than #0d6efd. */
:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
--bs-primary: var(--st-accent);
--bs-primary-rgb: var(--st-accent-rgb);
--bs-link-color: var(--st-accent);
--bs-link-hover-color: var(--st-accent-deep);
--bs-link-color-rgb: var(--st-accent-rgb);
Expand Down
Loading