BS-003 Apply approved palette and persistent accessible themes
This commit is contained in:
+60
-49
@@ -1,55 +1,66 @@
|
||||
@use "./colors";
|
||||
|
||||
.app {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
flex-direction: column;
|
||||
:root,
|
||||
[data-bs-theme="dark"] {
|
||||
--site-bg: var(--bs-charcoal);
|
||||
--site-surface: var(--bs-midnight);
|
||||
--site-text: #F5F7FA;
|
||||
--site-muted: #B5C5D2;
|
||||
--site-link: var(--bs-cyan);
|
||||
--site-line: #304C60;
|
||||
--site-cta-text: #07151C;
|
||||
--site-cta: var(--bs-cyan);
|
||||
--site-glow: rgba(38, 198, 218, .11);
|
||||
--bs-body-bg: var(--site-bg);
|
||||
--bs-body-color: var(--site-text);
|
||||
--bs-link-color: var(--site-link);
|
||||
--bs-link-hover-color: var(--site-text);
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
.pageContent {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
[data-bs-theme="light"] {
|
||||
--site-bg: #F5F7FA;
|
||||
--site-surface: #E7EFF5;
|
||||
--site-text: #102638;
|
||||
--site-muted: #455E70;
|
||||
--site-link: #086878;
|
||||
--site-line: #B6C8D4;
|
||||
--site-cta-text: #F5F7FA;
|
||||
--site-cta: #086878;
|
||||
--site-glow: rgba(38, 198, 218, .08);
|
||||
--bs-body-bg: var(--site-bg);
|
||||
--bs-body-color: var(--site-text);
|
||||
--bs-link-color: var(--site-link);
|
||||
--bs-link-hover-color: var(--site-text);
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
main {
|
||||
padding: 20px;
|
||||
flex: 1;
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--site-bg);
|
||||
color: var(--site-text);
|
||||
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
line-height: 1.65;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
.skipLink {
|
||||
position: fixed;
|
||||
z-index: 2000;
|
||||
top: 0.5rem;
|
||||
left: 0.5rem;
|
||||
padding: 0.75rem 1rem;
|
||||
color: #111;
|
||||
background: #fff;
|
||||
transform: translateY(-200%);
|
||||
.app { display: flex; min-height: 100vh; flex-direction: column; }
|
||||
.pageContent { flex: 1; padding: 0; }
|
||||
a { color: var(--site-link); text-underline-offset: .25em; }
|
||||
a:hover { color: var(--site-text); }
|
||||
h1, h2, h3 { color: var(--site-text); font-weight: 650; line-height: 1.15; letter-spacing: -.035em; }
|
||||
.container { max-width: 1160px; padding-inline: 28px; }
|
||||
.eyebrow { color: var(--site-link); font-size: .75rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
|
||||
.routePlaceholder { padding-block: clamp(4rem, 10vw, 8rem); max-width: 850px; }
|
||||
.routePlaceholder h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
|
||||
.routePlaceholder > p:not(.eyebrow) { color: var(--site-muted); max-width: 60ch; margin-block: 1.5rem; }
|
||||
.themeToggle {
|
||||
display: inline-grid; place-items: center; flex-shrink: 0;
|
||||
width: 44px; height: 44px; padding: 0;
|
||||
border: 1px solid var(--site-line); border-radius: 50%;
|
||||
background: var(--site-surface); color: var(--site-text); font-size: 1.15rem;
|
||||
}
|
||||
|
||||
.skipLink:focus {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 3px solid colors.$focus-ring;
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
@media (max-width: 575.98px) {
|
||||
main {
|
||||
padding: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.themeToggle:hover { border-color: var(--site-link); color: var(--site-link); }
|
||||
.skipLink { position: fixed; z-index: 2000; top: .5rem; left: .5rem; padding: .75rem 1rem; color: #07151C; background: #26C6DA; transform: translateY(-200%); }
|
||||
.skipLink:focus { transform: translateY(0); }
|
||||
:focus-visible { outline: 3px solid var(--site-link); outline-offset: 4px; }
|
||||
.btn-primary { --bs-btn-bg: var(--site-cta); --bs-btn-border-color: var(--site-cta); --bs-btn-color: var(--site-cta-text); --bs-btn-hover-bg: var(--site-cta); --bs-btn-hover-border-color: var(--site-cta); --bs-btn-hover-color: var(--site-cta-text); --bs-btn-active-bg: var(--site-cta); --bs-btn-active-color: var(--site-cta-text); font-weight: 650; }
|
||||
@media (max-width: 767.98px) { .container { padding-inline: 22px; } }
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
scroll-behavior: auto !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
}
|
||||
*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user