|
1 | 1 | /* Custom styles for Table Remodeler Documentation - Furo Theme */ |
2 | 2 |
|
| 3 | +/* Project name styling below logo */ |
| 4 | +.sidebar-brand-text { |
| 5 | + font-size: 1.5rem !important; |
| 6 | + font-weight: 600 !important; |
| 7 | + color: #0969da !important; |
| 8 | + margin-top: 0.5rem !important; |
| 9 | + text-align: center !important; |
| 10 | +} |
| 11 | + |
| 12 | +html[data-theme="dark"] .sidebar-brand-text, |
| 13 | +body[data-theme="dark"] .sidebar-brand-text { |
| 14 | + color: #58a6ff !important; |
| 15 | +} |
| 16 | + |
| 17 | +/* Make all heading levels match sidebar title blue color */ |
| 18 | +.content h1, |
| 19 | +.content h2, |
| 20 | +.content h3, |
| 21 | +.content h4, |
| 22 | +.content h5, |
| 23 | +.content h6, |
| 24 | +article h1, |
| 25 | +article h2, |
| 26 | +article h3, |
| 27 | +article h4, |
| 28 | +article h5, |
| 29 | +article h6 { |
| 30 | + color: #0969da !important; |
| 31 | +} |
| 32 | + |
| 33 | +body[data-theme="dark"] .content h1, |
| 34 | +body[data-theme="dark"] .content h2, |
| 35 | +body[data-theme="dark"] .content h3, |
| 36 | +body[data-theme="dark"] .content h4, |
| 37 | +body[data-theme="dark"] .content h5, |
| 38 | +body[data-theme="dark"] .content h6, |
| 39 | +body[data-theme="dark"] article h1, |
| 40 | +body[data-theme="dark"] article h2, |
| 41 | +body[data-theme="dark"] article h3, |
| 42 | +body[data-theme="dark"] article h4, |
| 43 | +body[data-theme="dark"] article h5, |
| 44 | +body[data-theme="dark"] article h6 { |
| 45 | + color: #58a6ff !important; |
| 46 | +} |
| 47 | + |
| 48 | +@media (prefers-color-scheme: dark) { |
| 49 | + body:not([data-theme="light"]) .content h1, |
| 50 | + body:not([data-theme="light"]) .content h2, |
| 51 | + body:not([data-theme="light"]) .content h3, |
| 52 | + body:not([data-theme="light"]) .content h4, |
| 53 | + body:not([data-theme="light"]) .content h5, |
| 54 | + body:not([data-theme="light"]) .content h6, |
| 55 | + body:not([data-theme="light"]) article h1, |
| 56 | + body:not([data-theme="light"]) article h2, |
| 57 | + body:not([data-theme="light"]) article h3, |
| 58 | + body:not([data-theme="light"]) article h4, |
| 59 | + body:not([data-theme="light"]) article h5, |
| 60 | + body:not([data-theme="light"]) article h6 { |
| 61 | + color: #58a6ff !important; |
| 62 | + } |
| 63 | +} |
| 64 | + |
3 | 65 | /* Quick Links sidebar styling - darker gray box with proper padding */ |
4 | 66 | .sidebar-quicklinks { |
5 | 67 | margin: 1rem 0.75rem 1rem 0.75rem; |
|
9 | 71 | border: 1px solid #d0d0d0; |
10 | 72 | } |
11 | 73 |
|
| 74 | +/* Style RST sidebar directive boxes to match left sidebar styling */ |
| 75 | +.sidebar, |
| 76 | +aside.sidebar { |
| 77 | + background-color: #e8e8e8 !important; |
| 78 | + border: 1px solid #d0d0d0 !important; |
| 79 | + border-radius: 0.25rem !important; |
| 80 | + padding: 0.75rem 1rem !important; |
| 81 | +} |
| 82 | + |
| 83 | +body[data-theme="dark"] .sidebar, |
| 84 | +body[data-theme="dark"] aside.sidebar { |
| 85 | + background-color: #0d0d0d !important; |
| 86 | + border-color: #1a1a1a !important; |
| 87 | +} |
| 88 | + |
| 89 | +@media (prefers-color-scheme: dark) { |
| 90 | + body:not([data-theme="light"]) .sidebar, |
| 91 | + body:not([data-theme="light"]) aside.sidebar { |
| 92 | + background-color: #0d0d0d !important; |
| 93 | + border-color: #1a1a1a !important; |
| 94 | + } |
| 95 | +} |
| 96 | + |
| 97 | +.sidebar p.sidebar-title, |
| 98 | +aside.sidebar p.sidebar-title { |
| 99 | + font-weight: 600 !important; |
| 100 | + margin-bottom: 0.5rem !important; |
| 101 | +} |
| 102 | + |
12 | 103 | /* Dark mode styling for quick links - much darker background */ |
13 | 104 | body[data-theme="dark"] .sidebar-quicklinks { |
14 | 105 | background-color: #0d0d0d; |
15 | 106 | border-color: #1a1a1a; |
16 | 107 | } |
17 | 108 |
|
| 109 | +/* Auto mode with dark system preference */ |
| 110 | +@media (prefers-color-scheme: dark) { |
| 111 | + body:not([data-theme="light"]) .sidebar-quicklinks { |
| 112 | + background-color: #0d0d0d; |
| 113 | + border-color: #1a1a1a; |
| 114 | + } |
| 115 | +} |
| 116 | + |
18 | 117 | .sidebar-quicklinks h3 { |
19 | 118 | margin-top: 0; |
20 | 119 | margin-bottom: 0.5rem; |
@@ -77,6 +176,16 @@ body[data-theme="dark"] .sidebar-search-container input { |
77 | 176 | background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") !important; |
78 | 177 | } |
79 | 178 |
|
| 179 | +/* Auto mode with dark system preference */ |
| 180 | +@media (prefers-color-scheme: dark) { |
| 181 | + body:not([data-theme="light"]) .sidebar-search-container input { |
| 182 | + background-color: #0d0d0d !important; |
| 183 | + border: 1px solid #1a1a1a !important; |
| 184 | + color: #e8e8e8 !important; |
| 185 | + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") !important; |
| 186 | + } |
| 187 | +} |
| 188 | + |
80 | 189 | /* Make search icon visible */ |
81 | 190 | .sidebar-search-container input::placeholder { |
82 | 191 | color: var(--color-foreground-muted) !important; |
|
0 commit comments