added light/dark mode toggle v1, unified menu
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
.fireworks-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
margin-bottom: 3.5rem;
|
||||
}
|
||||
.fireworks-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .7rem;
|
||||
color: var(--ink, var(--i, #eef3ff));
|
||||
font-size: .9rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: .1em;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.fireworks-header .brand-mark {
|
||||
display: grid;
|
||||
width: 2.25rem;
|
||||
aspect-ratio: 1;
|
||||
place-items: center;
|
||||
border-radius: .75rem;
|
||||
color: #141022;
|
||||
background: linear-gradient(135deg, #fcd34d, #fb7185);
|
||||
box-shadow: 0 .5rem 1.5rem #fb718550;
|
||||
}
|
||||
.fireworks-header__controls { display: flex; align-items: center; gap: .65rem; }
|
||||
.fireworks-nav {
|
||||
display: flex;
|
||||
gap: .3rem;
|
||||
padding: .25rem;
|
||||
border: 1px solid var(--line, var(--l, #2b3d68));
|
||||
border-radius: .75rem;
|
||||
background: #111a31d9;
|
||||
box-shadow: 0 .5rem 1.5rem #03071440;
|
||||
}
|
||||
.fireworks-nav a {
|
||||
padding: .5rem .75rem;
|
||||
border-radius: .5rem;
|
||||
color: var(--muted, var(--m, #aab9d8));
|
||||
font-size: .86rem;
|
||||
font-weight: 750;
|
||||
text-decoration: none;
|
||||
}
|
||||
.fireworks-nav a:hover { color: var(--ink, var(--i, #eef3ff)); background: #20345f; }
|
||||
.fireworks-nav a[aria-current="page"] { color: var(--ink, var(--i, #eef3ff)); background: #2a3b67; }
|
||||
.theme-toggle--inline {
|
||||
position: static;
|
||||
flex: 0 0 auto;
|
||||
min-height: 2.35rem;
|
||||
padding: .45rem .7rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
:root[data-theme="light"] .fireworks-nav {
|
||||
border-color: #cbd9ed;
|
||||
background: #edf4ff;
|
||||
box-shadow: 0 .45rem 1.25rem rgba(34, 68, 117, .12);
|
||||
}
|
||||
:root[data-theme="light"] .fireworks-nav a { color: #47617f; }
|
||||
:root[data-theme="light"] .fireworks-nav a:hover { color: #234a7b; background: #dceaff; }
|
||||
:root[data-theme="light"] .fireworks-nav a[aria-current="page"] {
|
||||
color: #173d6a;
|
||||
background: #cfe3ff;
|
||||
box-shadow: inset 0 0 0 1px #9cc0ed;
|
||||
}
|
||||
@media (max-width: 44rem) {
|
||||
.fireworks-header { align-items: flex-start; flex-direction: column; margin-bottom: 2.5rem; }
|
||||
.fireworks-header__controls { width: 100%; justify-content: space-between; }
|
||||
}
|
||||
@media (max-width: 30rem) {
|
||||
.fireworks-header__controls { align-items: stretch; flex-direction: column; }
|
||||
.fireworks-nav { justify-content: space-between; }
|
||||
.fireworks-nav a { flex: 1; padding: .5rem; text-align: center; }
|
||||
.theme-toggle--inline { width: 100%; }
|
||||
}
|
||||
Reference in New Issue
Block a user