picocss/docs/scss/layout/_aside.scss

75 lines
1.1 KiB
SCSS
Raw Normal View History

2019-11-27 22:10:02 +07:00
/**
* Docs: Aside
*/
main > aside {
nav {
width: 100%;
2021-11-08 00:12:34 +07:00
margin-bottom: var(--block-spacing-vertical);
h1 {
margin-bottom: calc(var(--typography-spacing-vertical) / 2);
}
2019-11-27 22:10:02 +07:00
@media (min-width: map-get($breakpoints, "lg")) {
position: fixed;
width: 200px;
max-height: calc(100vh - 5.5rem);
margin-bottom: 0;
overflow-x: hidden;
overflow-y: auto;
2021-11-08 00:12:34 +07:00
h1 {
2019-11-27 22:10:02 +07:00
display: none;
}
}
}
2021-10-24 12:33:20 +07:00
li,
summary {
2019-11-27 22:10:02 +07:00
padding-top: 0;
padding-bottom: 0;
font-size: 16px;
}
li a {
2021-11-08 00:12:34 +07:00
padding: 0.25rem 0.5rem;
2019-11-27 22:10:02 +07:00
svg {
vertical-align: middle;
}
}
2019-12-11 08:46:32 +07:00
a.secondary:focus {
background-color: transparent;
color: var(--primary-hover);
}
a.active,
a.active:hover {
color: var(--primary);
2019-11-27 22:10:02 +07:00
}
details {
2021-11-08 00:12:34 +07:00
padding-bottom: 0.25rem;
2019-11-27 22:10:02 +07:00
border-bottom: none;
summary {
2021-07-18 10:35:59 +07:00
color: var(--h1-color);
2021-11-02 02:54:52 +07:00
font-size: 14px;
2021-11-08 00:12:34 +07:00
font-weight: 300;
text-transform: uppercase;
&::after {
display: none;
}
}
2019-11-27 22:10:02 +07:00
2021-07-18 10:35:59 +07:00
&[open] {
2021-11-08 00:12:34 +07:00
> summary:not(:focus) {
color: var(--h1-color);
2021-07-18 10:35:59 +07:00
}
2019-11-27 22:10:02 +07:00
}
}
}