| 1 |
|
| 2 |
/* Globals */ |
| 3 |
|
| 4 |
:root { |
| 5 |
--sidebar-width: 300px; |
| 6 |
--sidebar-resize-indicator-width: 8px; |
| 7 |
--sidebar-resize-indicator-space: 2px; |
| 8 |
--page-padding: 15px; |
| 9 |
--content-max-width: 750px; |
| 10 |
--menu-bar-height: 50px; |
| 11 |
--mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; |
| 12 |
--code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ |
| 13 |
} |
| 14 |
|
| 15 |
/* Themes */ |
| 16 |
|
| 17 |
.muon { |
| 18 |
--bg: #282A36; |
| 19 |
--fg: #F8F8F2; |
| 20 |
|
| 21 |
--sidebar-bg: #44475a; |
| 22 |
--sidebar-fg: #F8F8F2; |
| 23 |
--sidebar-non-existant: #ff5555; |
| 24 |
--sidebar-active: #50fa7b; |
| 25 |
--sidebar-spacer: #8be9fd; |
| 26 |
|
| 27 |
--scrollbar: var(--sidebar-fg); |
| 28 |
|
| 29 |
--icons: #737480; |
| 30 |
--icons-hover: #b7b9cc; |
| 31 |
|
| 32 |
--links: #8be9fd; |
| 33 |
|
| 34 |
--inline-code-color: #ffb86c; |
| 35 |
|
| 36 |
--theme-popup-bg: var(--sidebar-bg); |
| 37 |
--theme-popup-border: #8be9fd; |
| 38 |
--theme-hover: var(--sidebar-active); |
| 39 |
|
| 40 |
--quote-bg: hsl(226, 15%, 17%); |
| 41 |
--quote-border: hsl(226, 15%, 22%); |
| 42 |
|
| 43 |
--warning-border: #ffb86c; |
| 44 |
|
| 45 |
--table-border-color: hsl(210, 25%, 13%); |
| 46 |
--table-header-bg: hsl(210, 25%, 28%); |
| 47 |
--table-alternate-bg: hsl(210, 25%, 11%); |
| 48 |
|
| 49 |
--searchbar-border-color: var(--theme-popup-border); |
| 50 |
--searchbar-bg: var(--sidebar-bg); |
| 51 |
--searchbar-fg: var(--sidebar-fg); |
| 52 |
--searchbar-shadow-color: var(--sidebar-bg); |
| 53 |
--searchresults-header-fg: #666; |
| 54 |
--searchresults-border-color: #888; |
| 55 |
--searchresults-li-bg: #252932; |
| 56 |
--search-mark-bg: #e3b171; |
| 57 |
|
| 58 |
--color-scheme: dark; |
| 59 |
|
| 60 |
/* Same as `--icons` */ |
| 61 |
--copy-button-filter: invert(45%) sepia(6%) saturate(621%) hue-rotate(198deg) brightness(99%) contrast(85%); |
| 62 |
/* Same as `--sidebar-active` */ |
| 63 |
--copy-button-filter-hover: invert(68%) sepia(55%) saturate(531%) hue-rotate(341deg) brightness(104%) contrast(101%); |
| 64 |
} |
| 65 |
|
| 66 |
.ayu { |
| 67 |
--bg: hsl(210, 25%, 8%); |
| 68 |
--fg: #c5c5c5; |
| 69 |
|
| 70 |
--sidebar-bg: #14191f; |
| 71 |
--sidebar-fg: #c8c9db; |
| 72 |
--sidebar-non-existant: #5c6773; |
| 73 |
--sidebar-active: #ffb454; |
| 74 |
--sidebar-spacer: #2d334f; |
| 75 |
|
| 76 |
--scrollbar: var(--sidebar-fg); |
| 77 |
|
| 78 |
--icons: #737480; |
| 79 |
--icons-hover: #b7b9cc; |
| 80 |
|
| 81 |
--links: #0096cf; |
| 82 |
|
| 83 |
--inline-code-color: #ffb454; |
| 84 |
|
| 85 |
--theme-popup-bg: #14191f; |
| 86 |
--theme-popup-border: #5c6773; |
| 87 |
--theme-hover: #191f26; |
| 88 |
|
| 89 |
--quote-bg: hsl(226, 15%, 17%); |
| 90 |
--quote-border: hsl(226, 15%, 22%); |
| 91 |
|
| 92 |
--warning-border: #ff8e00; |
| 93 |
|
| 94 |
--table-border-color: hsl(210, 25%, 13%); |
| 95 |
--table-header-bg: hsl(210, 25%, 28%); |
| 96 |
--table-alternate-bg: hsl(210, 25%, 11%); |
| 97 |
|
| 98 |
--searchbar-border-color: #848484; |
| 99 |
--searchbar-bg: #424242; |
| 100 |
--searchbar-fg: #fff; |
| 101 |
--searchbar-shadow-color: #d4c89f; |
| 102 |
--searchresults-header-fg: #666; |
| 103 |
--searchresults-border-color: #888; |
| 104 |
--searchresults-li-bg: #252932; |
| 105 |
--search-mark-bg: #e3b171; |
| 106 |
|
| 107 |
--color-scheme: dark; |
| 108 |
|
| 109 |
/* Same as `--icons` */ |
| 110 |
--copy-button-filter: invert(45%) sepia(6%) saturate(621%) hue-rotate(198deg) brightness(99%) contrast(85%); |
| 111 |
/* Same as `--sidebar-active` */ |
| 112 |
--copy-button-filter-hover: invert(68%) sepia(55%) saturate(531%) hue-rotate(341deg) brightness(104%) contrast(101%); |
| 113 |
} |
| 114 |
|
| 115 |
.coal { |
| 116 |
--bg: hsl(200, 7%, 8%); |
| 117 |
--fg: #98a3ad; |
| 118 |
|
| 119 |
--sidebar-bg: #292c2f; |
| 120 |
--sidebar-fg: #a1adb8; |
| 121 |
--sidebar-non-existant: #505254; |
| 122 |
--sidebar-active: #3473ad; |
| 123 |
--sidebar-spacer: #393939; |
| 124 |
|
| 125 |
--scrollbar: var(--sidebar-fg); |
| 126 |
|
| 127 |
--icons: #43484d; |
| 128 |
--icons-hover: #b3c0cc; |
| 129 |
|
| 130 |
--links: #2b79a2; |
| 131 |
|
| 132 |
--inline-code-color: #c5c8c6; |
| 133 |
|
| 134 |
--theme-popup-bg: #141617; |
| 135 |
--theme-popup-border: #43484d; |
| 136 |
--theme-hover: #1f2124; |
| 137 |
|
| 138 |
--quote-bg: hsl(234, 21%, 18%); |
| 139 |
--quote-border: hsl(234, 21%, 23%); |
| 140 |
|
| 141 |
--warning-border: #ff8e00; |
| 142 |
|
| 143 |
--table-border-color: hsl(200, 7%, 13%); |
| 144 |
--table-header-bg: hsl(200, 7%, 28%); |
| 145 |
--table-alternate-bg: hsl(200, 7%, 11%); |
| 146 |
|
| 147 |
--searchbar-border-color: #aaa; |
| 148 |
--searchbar-bg: #b7b7b7; |
| 149 |
--searchbar-fg: #000; |
| 150 |
--searchbar-shadow-color: #aaa; |
| 151 |
--searchresults-header-fg: #666; |
| 152 |
--searchresults-border-color: #98a3ad; |
| 153 |
--searchresults-li-bg: #2b2b2f; |
| 154 |
--search-mark-bg: #355c7d; |
| 155 |
|
| 156 |
--color-scheme: dark; |
| 157 |
|
| 158 |
/* Same as `--icons` */ |
| 159 |
--copy-button-filter: invert(26%) sepia(8%) saturate(575%) hue-rotate(169deg) brightness(87%) contrast(82%); |
| 160 |
/* Same as `--sidebar-active` */ |
| 161 |
--copy-button-filter-hover: invert(36%) sepia(70%) saturate(503%) hue-rotate(167deg) brightness(98%) contrast(89%); |
| 162 |
} |
| 163 |
|
| 164 |
.light, html:not(.js) { |
| 165 |
--bg: hsl(0, 0%, 100%); |
| 166 |
--fg: hsl(0, 0%, 0%); |
| 167 |
|
| 168 |
--sidebar-bg: #fafafa; |
| 169 |
--sidebar-fg: hsl(0, 0%, 0%); |
| 170 |
--sidebar-non-existant: #aaaaaa; |
| 171 |
--sidebar-active: #1f1fff; |
| 172 |
--sidebar-spacer: #f4f4f4; |
| 173 |
|
| 174 |
--scrollbar: #8F8F8F; |
| 175 |
|
| 176 |
--icons: #747474; |
| 177 |
--icons-hover: #000000; |
| 178 |
|
| 179 |
--links: #20609f; |
| 180 |
|
| 181 |
--inline-code-color: #301900; |
| 182 |
|
| 183 |
--theme-popup-bg: #fafafa; |
| 184 |
--theme-popup-border: #cccccc; |
| 185 |
--theme-hover: #e6e6e6; |
| 186 |
|
| 187 |
--quote-bg: hsl(197, 37%, 96%); |
| 188 |
--quote-border: hsl(197, 37%, 91%); |
| 189 |
|
| 190 |
--warning-border: #ff8e00; |
| 191 |
|
| 192 |
--table-border-color: hsl(0, 0%, 95%); |
| 193 |
--table-header-bg: hsl(0, 0%, 80%); |
| 194 |
--table-alternate-bg: hsl(0, 0%, 97%); |
| 195 |
|
| 196 |
--searchbar-border-color: #aaa; |
| 197 |
--searchbar-bg: #fafafa; |
| 198 |
--searchbar-fg: #000; |
| 199 |
--searchbar-shadow-color: #aaa; |
| 200 |
--searchresults-header-fg: #666; |
| 201 |
--searchresults-border-color: #888; |
| 202 |
--searchresults-li-bg: #e4f2fe; |
| 203 |
--search-mark-bg: #a2cff5; |
| 204 |
|
| 205 |
--color-scheme: light; |
| 206 |
|
| 207 |
/* Same as `--icons` */ |
| 208 |
--copy-button-filter: invert(45.49%); |
| 209 |
/* Same as `--sidebar-active` */ |
| 210 |
--copy-button-filter-hover: invert(14%) sepia(93%) saturate(4250%) hue-rotate(243deg) brightness(99%) contrast(130%); |
| 211 |
} |
| 212 |
|
| 213 |
.navy { |
| 214 |
--bg: hsl(226, 23%, 11%); |
| 215 |
--fg: #bcbdd0; |
| 216 |
|
| 217 |
--sidebar-bg: #282d3f; |
| 218 |
--sidebar-fg: #c8c9db; |
| 219 |
--sidebar-non-existant: #505274; |
| 220 |
--sidebar-active: #2b79a2; |
| 221 |
--sidebar-spacer: #2d334f; |
| 222 |
|
| 223 |
--scrollbar: var(--sidebar-fg); |
| 224 |
|
| 225 |
--icons: #737480; |
| 226 |
--icons-hover: #b7b9cc; |
| 227 |
|
| 228 |
--links: #2b79a2; |
| 229 |
|
| 230 |
--inline-code-color: #c5c8c6; |
| 231 |
|
| 232 |
--theme-popup-bg: #161923; |
| 233 |
--theme-popup-border: #737480; |
| 234 |
--theme-hover: #282e40; |
| 235 |
|
| 236 |
--quote-bg: hsl(226, 15%, 17%); |
| 237 |
--quote-border: hsl(226, 15%, 22%); |
| 238 |
|
| 239 |
--warning-border: #ff8e00; |
| 240 |
|
| 241 |
--table-border-color: hsl(226, 23%, 16%); |
| 242 |
--table-header-bg: hsl(226, 23%, 31%); |
| 243 |
--table-alternate-bg: hsl(226, 23%, 14%); |
| 244 |
|
| 245 |
--searchbar-border-color: #aaa; |
| 246 |
--searchbar-bg: #aeaec6; |
| 247 |
--searchbar-fg: #000; |
| 248 |
--searchbar-shadow-color: #aaa; |
| 249 |
--searchresults-header-fg: #5f5f71; |
| 250 |
--searchresults-border-color: #5c5c68; |
| 251 |
--searchresults-li-bg: #242430; |
| 252 |
--search-mark-bg: #a2cff5; |
| 253 |
|
| 254 |
--color-scheme: dark; |
| 255 |
|
| 256 |
/* Same as `--icons` */ |
| 257 |
--copy-button-filter: invert(51%) sepia(10%) saturate(393%) hue-rotate(198deg) brightness(86%) contrast(87%); |
| 258 |
/* Same as `--sidebar-active` */ |
| 259 |
--copy-button-filter-hover: invert(46%) sepia(20%) saturate(1537%) hue-rotate(156deg) brightness(85%) contrast(90%); |
| 260 |
} |
| 261 |
|
| 262 |
.rust { |
| 263 |
--bg: hsl(60, 9%, 87%); |
| 264 |
--fg: #262625; |
| 265 |
|
| 266 |
--sidebar-bg: #3b2e2a; |
| 267 |
--sidebar-fg: #c8c9db; |
| 268 |
--sidebar-non-existant: #505254; |
| 269 |
--sidebar-active: #e69f67; |
| 270 |
--sidebar-spacer: #45373a; |
| 271 |
|
| 272 |
--scrollbar: var(--sidebar-fg); |
| 273 |
|
| 274 |
--icons: #737480; |
| 275 |
--icons-hover: #262625; |
| 276 |
|
| 277 |
--links: #2b79a2; |
| 278 |
|
| 279 |
--inline-code-color: #6e6b5e; |
| 280 |
|
| 281 |
--theme-popup-bg: #e1e1db; |
| 282 |
--theme-popup-border: #b38f6b; |
| 283 |
--theme-hover: #99908a; |
| 284 |
|
| 285 |
--quote-bg: hsl(60, 5%, 75%); |
| 286 |
--quote-border: hsl(60, 5%, 70%); |
| 287 |
|
| 288 |
--warning-border: #ff8e00; |
| 289 |
|
| 290 |
--table-border-color: hsl(60, 9%, 82%); |
| 291 |
--table-header-bg: #b3a497; |
| 292 |
--table-alternate-bg: hsl(60, 9%, 84%); |
| 293 |
|
| 294 |
--searchbar-border-color: #aaa; |
| 295 |
--searchbar-bg: #fafafa; |
| 296 |
--searchbar-fg: #000; |
| 297 |
--searchbar-shadow-color: #aaa; |
| 298 |
--searchresults-header-fg: #666; |
| 299 |
--searchresults-border-color: #888; |
| 300 |
--searchresults-li-bg: #dec2a2; |
| 301 |
--search-mark-bg: #e69f67; |
| 302 |
|
| 303 |
/* Same as `--icons` */ |
| 304 |
--copy-button-filter: invert(51%) sepia(10%) saturate(393%) hue-rotate(198deg) brightness(86%) contrast(87%); |
| 305 |
/* Same as `--sidebar-active` */ |
| 306 |
--copy-button-filter-hover: invert(77%) sepia(16%) saturate(1798%) hue-rotate(328deg) brightness(98%) contrast(83%); |
| 307 |
} |
| 308 |
|
| 309 |
@media (prefers-color-scheme: dark) { |
| 310 |
html:not(.js) { |
| 311 |
--bg: hsl(200, 7%, 8%); |
| 312 |
--fg: #98a3ad; |
| 313 |
|
| 314 |
--sidebar-bg: #292c2f; |
| 315 |
--sidebar-fg: #a1adb8; |
| 316 |
--sidebar-non-existant: #505254; |
| 317 |
--sidebar-active: #3473ad; |
| 318 |
--sidebar-spacer: #393939; |
| 319 |
|
| 320 |
--scrollbar: var(--sidebar-fg); |
| 321 |
|
| 322 |
--icons: #43484d; |
| 323 |
--icons-hover: #b3c0cc; |
| 324 |
|
| 325 |
--links: #2b79a2; |
| 326 |
|
| 327 |
--inline-code-color: #c5c8c6; |
| 328 |
|
| 329 |
--theme-popup-bg: #141617; |
| 330 |
--theme-popup-border: #43484d; |
| 331 |
--theme-hover: #1f2124; |
| 332 |
|
| 333 |
--quote-bg: hsl(234, 21%, 18%); |
| 334 |
--quote-border: hsl(234, 21%, 23%); |
| 335 |
|
| 336 |
--warning-border: #ff8e00; |
| 337 |
|
| 338 |
--table-border-color: hsl(200, 7%, 13%); |
| 339 |
--table-header-bg: hsl(200, 7%, 28%); |
| 340 |
--table-alternate-bg: hsl(200, 7%, 11%); |
| 341 |
|
| 342 |
--searchbar-border-color: #aaa; |
| 343 |
--searchbar-bg: #b7b7b7; |
| 344 |
--searchbar-fg: #000; |
| 345 |
--searchbar-shadow-color: #aaa; |
| 346 |
--searchresults-header-fg: #666; |
| 347 |
--searchresults-border-color: #98a3ad; |
| 348 |
--searchresults-li-bg: #2b2b2f; |
| 349 |
--search-mark-bg: #355c7d; |
| 350 |
|
| 351 |
--color-scheme: dark; |
| 352 |
|
| 353 |
/* Same as `--icons` */ |
| 354 |
--copy-button-filter: invert(26%) sepia(8%) saturate(575%) hue-rotate(169deg) brightness(87%) contrast(82%); |
| 355 |
/* Same as `--sidebar-active` */ |
| 356 |
--copy-button-filter-hover: invert(36%) sepia(70%) saturate(503%) hue-rotate(167deg) brightness(98%) contrast(89%); |
| 357 |
} |
| 358 |
} |