| 1 |
aside { |
| 2 |
grid-area: aside; |
| 3 |
background-color: var(--c-bg-secondary); |
| 4 |
/* padding: var(--content-inline-padding); */ |
| 5 |
border-block-start: 1px solid var(--c-border); |
| 6 |
width: 100%; |
| 7 |
height: min-content; |
| 8 |
align-self: end; |
| 9 |
display: flex; |
| 10 |
flex-direction: column; |
| 11 |
justify-content: flex-start; |
| 12 |
min-width: 30ch; |
| 13 |
overflow-y: auto; |
| 14 |
} |
| 15 |
|
| 16 |
aside .title { |
| 17 |
margin-block-end: 0; |
| 18 |
margin-inline: var(--content-inline-padding); |
| 19 |
margin-block-start: 1rem; |
| 20 |
margin-block-end: .5rem; |
| 21 |
font-size: 2rem; |
| 22 |
font-weight: 500; |
| 23 |
} |
| 24 |
|
| 25 |
aside details:not(:last-child) { |
| 26 |
border-block-end: 1px solid var(--c-border); |
| 27 |
} |
| 28 |
|
| 29 |
aside details summary, aside a { |
| 30 |
padding: 1rem; |
| 31 |
display: flex; |
| 32 |
align-items: center; |
| 33 |
cursor: pointer; |
| 34 |
white-space: nowrap; |
| 35 |
} |
| 36 |
|
| 37 |
aside a { |
| 38 |
text-decoration: none; |
| 39 |
} |
| 40 |
|
| 41 |
aside details summary::before { |
| 42 |
content: "►"; |
| 43 |
padding-inline-end: .3rem; |
| 44 |
} |
| 45 |
|
| 46 |
aside details[open] summary::before { |
| 47 |
content: "▼"; |
| 48 |
} |
| 49 |
|
| 50 |
aside details summary:hover, aside a:hover, aside a.active { |
| 51 |
background-color: var(--c-bg); |
| 52 |
} |
| 53 |
|
| 54 |
aside details { |
| 55 |
display: flex; |
| 56 |
flex-direction: column; |
| 57 |
position: relative; |
| 58 |
} |
| 59 |
|
| 60 |
aside details a { |
| 61 |
padding-inline-start: 2.5rem; |
| 62 |
} |
| 63 |
|
| 64 |
@media screen and (min-width: 800px) { |
| 65 |
aside { |
| 66 |
border-block-start: none; |
| 67 |
border-inline-end: 1px solid var(--c-border); |
| 68 |
width: max-content; |
| 69 |
height: 100%; |
| 70 |
} |
| 71 |
} |