| 1 |
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap'); |
| 2 |
|
| 3 |
h1, h2, h3, h4, h5, h6 { |
| 4 |
font-weight: normal; |
| 5 |
} |
| 6 |
|
| 7 |
/* Sidebar brand: logo links externally, text links to docs root */ |
| 8 |
.sidebar-brand { |
| 9 |
display: flex; |
| 10 |
flex-direction: column; |
| 11 |
align-items: center; |
| 12 |
padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal); |
| 13 |
} |
| 14 |
.sidebar-brand-text { |
| 15 |
overflow-wrap: anywhere; |
| 16 |
text-decoration: none; |
| 17 |
color: var(--color-sidebar-brand-text, var(--color-foreground-primary)); |
| 18 |
font-size: 1.5rem; |
| 19 |
} |
| 20 |
.sidebar-brand-text:visited { |
| 21 |
color: #2A6496; |
| 22 |
} |
| 23 |
.sidebar-brand-text:hover { |
| 24 |
color: var(--color-sidebar-brand-text, var(--color-foreground-primary)); |
| 25 |
} |
| 26 |
|
| 27 |
/* Sidebar active/current item */ |
| 28 |
.sidebar-tree .current-page > .reference { |
| 29 |
color: #195190; |
| 30 |
} |
| 31 |
|
| 32 |
/* Right-side TOC active link */ |
| 33 |
.toc-tree a.active { |
| 34 |
color: #195190; |
| 35 |
} |
| 36 |
|
| 37 |
/* Dark mode overrides */ |
| 38 |
@media (prefers-color-scheme: dark) { |
| 39 |
body[data-theme="auto"] .sidebar-tree .current-page > .reference, |
| 40 |
body[data-theme="dark"] .sidebar-tree .current-page > .reference { |
| 41 |
color: #7EB8DA; |
| 42 |
} |
| 43 |
body[data-theme="auto"] .toc-tree a.active, |
| 44 |
body[data-theme="dark"] .toc-tree a.active { |
| 45 |
color: #7EB8DA; |
| 46 |
} |
| 47 |
body[data-theme="auto"] .sidebar-brand img { |
| 48 |
filter: brightness(0) invert(1); |
| 49 |
} |
| 50 |
} |
| 51 |
|
| 52 |
body[data-theme="dark"] .sidebar-tree .current-page > .reference { |
| 53 |
color: #7EB8DA; |
| 54 |
} |
| 55 |
body[data-theme="dark"] .toc-tree a.active { |
| 56 |
color: #7EB8DA; |
| 57 |
} |
| 58 |
body[data-theme="dark"] .sidebar-brand img { |
| 59 |
filter: brightness(0) invert(1); |
| 60 |
} |