|
| 1 | +/* Custom "dark-moke" tweaks for just-the-docs |
| 2 | + This file contains a few conservative overrides to nudge the |
| 3 | + theme toward a darker, slightly desaturated "moke" look. |
| 4 | +
|
| 5 | + Note: The theme will only use this automatically if the layout |
| 6 | + includes or links to custom CSS. If you want me to inject this |
| 7 | + into the site's <head> automatically, tell me and I'll add a |
| 8 | + small include that links it. |
| 9 | +*/ |
| 10 | + |
| 11 | +:root { |
| 12 | + /* slightly desaturated dark background */ |
| 13 | + --jtd-body-bg: #0f1113; /* near-black */ |
| 14 | + --jtd-page-bg: #0f1113; |
| 15 | + --jtd-accent: #8ab4f8; /* soft blue accent */ |
| 16 | + --jtd-primary-text: #d6d7d9; /* light gray text */ |
| 17 | + --jtd-muted-text: #9aa0a6; /* muted text */ |
| 18 | + --jtd-border: rgba(255,255,255,0.06); |
| 19 | +} |
| 20 | + |
| 21 | +body { |
| 22 | + background-color: var(--jtd-body-bg) !important; |
| 23 | + color: var(--jtd-primary-text) !important; |
| 24 | +} |
| 25 | + |
| 26 | +/* Sidebar tweaks */ |
| 27 | +.jtd-sidebar { |
| 28 | + background-color: #0b0c0d; /* slightly darker */ |
| 29 | + border-right: 1px solid var(--jtd-border); |
| 30 | +} |
| 31 | + |
| 32 | +.jtd-sidebar a, |
| 33 | +.jtd-sidebar a:visited { |
| 34 | + color: var(--jtd-primary-text); |
| 35 | +} |
| 36 | + |
| 37 | +/* Links and accents */ |
| 38 | +a, .btn, .site-header a { |
| 39 | + color: var(--jtd-accent); |
| 40 | +} |
| 41 | + |
| 42 | +/* Make code blocks slightly warmer */ |
| 43 | +.highlight, pre { |
| 44 | + background: #0b0c0d; /* dark */ |
| 45 | + color: #e6e6e6; |
| 46 | +} |
| 47 | + |
| 48 | +/* Make the sidebar more persistent visualy (desktop) */ |
| 49 | +@media (min-width: 900px) { |
| 50 | + .jtd-sidebar { |
| 51 | + position: sticky; |
| 52 | + top: 0; |
| 53 | + height: 100vh; |
| 54 | + overflow: auto; |
| 55 | + } |
| 56 | +} |
0 commit comments