| 1 | /* Minimal mdBook theme overrides — keep the default chrome and just |
| 2 | align colors and a couple of spacings with the shithub app's |
| 3 | Primer-ish palette so the docs site doesn't feel disconnected. */ |
| 4 | |
| 5 | :root { |
| 6 | --shithub-accent: #1f6feb; |
| 7 | --shithub-accent-subtle: #ddf4ff; |
| 8 | } |
| 9 | |
| 10 | .shithub { |
| 11 | --bg: #ffffff; |
| 12 | --fg: #1f2328; |
| 13 | --sidebar-bg: #f6f8fa; |
| 14 | --sidebar-fg: #1f2328; |
| 15 | --sidebar-non-existant: #a0a0a0; |
| 16 | --sidebar-active: var(--shithub-accent); |
| 17 | --sidebar-spacer: #d0d7de; |
| 18 | --scrollbar: #d0d7de; |
| 19 | --icons: #57606a; |
| 20 | --icons-hover: #1f2328; |
| 21 | --links: var(--shithub-accent); |
| 22 | --inline-code-color: #cf222e; |
| 23 | --theme-popup-bg: #ffffff; |
| 24 | --theme-popup-border:#d0d7de; |
| 25 | --theme-hover: #f3f4f6; |
| 26 | --quote-bg: #f6f8fa; |
| 27 | --quote-border: #d0d7de; |
| 28 | --table-border-color:#d0d7de; |
| 29 | --table-header-bg: #f6f8fa; |
| 30 | --table-alternate-bg:#f6f8fa; |
| 31 | --searchbar-border-color: #d0d7de; |
| 32 | --searchbar-bg: #ffffff; |
| 33 | --searchbar-fg: #1f2328; |
| 34 | --searchbar-shadow-color: rgba(0,0,0,0.05); |
| 35 | --searchresults-header-fg: #57606a; |
| 36 | --searchresults-border-color: #d0d7de; |
| 37 | --searchresults-li-bg: #f6f8fa; |
| 38 | --search-mark-bg: var(--shithub-accent-subtle); |
| 39 | } |
| 40 | |
| 41 | .shithub-dark { |
| 42 | --bg: #0d1117; |
| 43 | --fg: #c9d1d9; |
| 44 | --sidebar-bg: #161b22; |
| 45 | --sidebar-fg: #c9d1d9; |
| 46 | --sidebar-non-existant: #6e7681; |
| 47 | --sidebar-active: #58a6ff; |
| 48 | --sidebar-spacer: #30363d; |
| 49 | --scrollbar: #30363d; |
| 50 | --icons: #8b949e; |
| 51 | --icons-hover: #c9d1d9; |
| 52 | --links: #58a6ff; |
| 53 | --inline-code-color: #ff7b72; |
| 54 | --theme-popup-bg: #161b22; |
| 55 | --theme-popup-border:#30363d; |
| 56 | --theme-hover: #1f242c; |
| 57 | --quote-bg: #161b22; |
| 58 | --quote-border: #30363d; |
| 59 | --table-border-color:#30363d; |
| 60 | --table-header-bg: #161b22; |
| 61 | --table-alternate-bg:#161b22; |
| 62 | --searchbar-border-color: #30363d; |
| 63 | --searchbar-bg: #0d1117; |
| 64 | --searchbar-fg: #c9d1d9; |
| 65 | --searchbar-shadow-color: rgba(0,0,0,0.3); |
| 66 | --searchresults-header-fg: #8b949e; |
| 67 | --searchresults-border-color: #30363d; |
| 68 | --searchresults-li-bg: #161b22; |
| 69 | --search-mark-bg: #1f6feb33; |
| 70 | } |
| 71 | |
| 72 | .content code { |
| 73 | font-size: 0.9em; |
| 74 | } |
| 75 | |
| 76 | .content pre code { |
| 77 | font-size: 0.85em; |
| 78 | line-height: 1.45; |
| 79 | } |