mirror of
https://github.com/trwnh/hugo-theme-paradox.git
synced 2024-11-14 23:41:20 +00:00
74 lines
1.1 KiB
SCSS
74 lines
1.1 KiB
SCSS
/* navigation menu toggle */
|
|
|
|
.toggle-menu {
|
|
display: none;
|
|
}
|
|
|
|
.toggle-menu:not(:checked) ~ .menu {
|
|
display: none;
|
|
}
|
|
.toggle-menu__label {
|
|
display: flex;
|
|
align-items: center;
|
|
font-weight: 900;
|
|
gap: 0.25rem;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* navigation menu */
|
|
|
|
.docs-nav {
|
|
padding: 1em 0;
|
|
.menu {
|
|
margin-top: 1em;
|
|
> li, > details summary {
|
|
margin-bottom: 1em;
|
|
}
|
|
}
|
|
details {
|
|
margin-bottom: 1em;
|
|
}
|
|
summary {
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
&::marker {
|
|
content: '';
|
|
}
|
|
}
|
|
.sub-menu {
|
|
margin-left: 1em;
|
|
display: flex;
|
|
flex-flow: column;
|
|
gap: 0.5rem;
|
|
li {
|
|
line-height: 1.5;
|
|
}
|
|
.sub-menu {
|
|
margin-top: 0.5rem;
|
|
}
|
|
li::marker {
|
|
content: '→ ';
|
|
}
|
|
.sub-menu li::marker {
|
|
content: '↳ ';
|
|
}
|
|
}
|
|
.active > a {
|
|
font-weight: 700;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
}
|
|
|
|
/* top of menu link should show only when focused */
|
|
|
|
#menu {margin-bottom: 1em;}
|
|
#menu:not(:focus) {
|
|
clip: rect(0 0 0 0);
|
|
clip-path: inset(50%);
|
|
height: 1px;
|
|
overflow: hidden;
|
|
position: absolute;
|
|
white-space: nowrap;
|
|
width: 1px;
|
|
} |