mobile menu added
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
box-shadow: 0 .5rem 1.5rem #fb718550;
|
||||
}
|
||||
.fireworks-header__controls { display: flex; align-items: center; gap: .65rem; }
|
||||
.fireworks-menu-toggle { display: none; }
|
||||
.fireworks-nav {
|
||||
display: flex;
|
||||
gap: .3rem;
|
||||
@@ -66,12 +67,28 @@
|
||||
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; }
|
||||
.fireworks-header { flex-wrap: wrap; justify-content: flex-start; margin-bottom: 2.5rem; }
|
||||
.fireworks-menu-toggle {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: .3rem;
|
||||
width: 2.75rem;
|
||||
height: 2.75rem;
|
||||
padding: 0;
|
||||
border: 1px solid var(--theme-line);
|
||||
border-radius: .7rem;
|
||||
color: var(--theme-ink);
|
||||
background: var(--theme-surface-raised);
|
||||
cursor: pointer;
|
||||
}
|
||||
.fireworks-menu-toggle span { width: 1.2rem; height: 2px; border-radius: 2px; background: currentColor; }
|
||||
.fireworks-menu-toggle:focus-visible { outline: 3px solid #8abaff; outline-offset: 3px; }
|
||||
.fireworks-header__controls { display: none; flex-basis: 100%; width: 100%; flex-direction: column; align-items: stretch; }
|
||||
.fireworks-menu-toggle[aria-expanded="true"] ~ .fireworks-header__controls { display: flex; }
|
||||
.fireworks-nav { flex-direction: column; }
|
||||
.fireworks-nav a { padding: .75rem; }
|
||||
.theme-toggle--inline { width: 100%; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user