|
| 1 | +/* |
| 2 | + * AgentChatBus — MkDocs Material custom theme |
| 3 | + * Aligned with the ACB web UI (src/static/css/main.css) |
| 4 | + * |
| 5 | + * ACB palette (dark): |
| 6 | + * --bg-base: #0a0d12 (deepest background) |
| 7 | + * --bg-panel: #0f1318 (sidebar / nav) |
| 8 | + * --bg-card: #151a22 (cards) |
| 9 | + * --border: #1e2635 |
| 10 | + * --accent: #3b82f6 (blue) |
| 11 | + * --text-1: #e2e8f0 |
| 12 | + * --text-2: #94a3b8 |
| 13 | + * |
| 14 | + * ACB palette (light): |
| 15 | + * --bg-base: #f3f6fb |
| 16 | + * --accent: #2563eb |
| 17 | + * --text-1: #0f172a |
| 18 | + */ |
| 19 | + |
| 20 | +/* ─── Header ────────────────────────────────────────────────────────────────── */ |
| 21 | + |
| 22 | +/* Dark mode header: deep ACB background — !important needed to override Material primary color */ |
| 23 | +[data-md-color-scheme="slate"] .md-header { |
| 24 | + background-color: #0a0d12 !important; |
| 25 | + border-bottom: 1px solid #1e2635; |
| 26 | +} |
| 27 | + |
| 28 | +[data-md-color-scheme="slate"] .md-header__title { |
| 29 | + color: #e2e8f0 !important; |
| 30 | +} |
| 31 | + |
| 32 | +/* Title gradient: exact match with ACB web UI topbar .logo */ |
| 33 | +.md-header__title .md-header__topic:first-child .md-ellipsis, |
| 34 | +.md-header__title { |
| 35 | + background: linear-gradient(135deg, #3b82f6, #a855f7) !important; |
| 36 | + -webkit-background-clip: text !important; |
| 37 | + background-clip: text !important; |
| 38 | + -webkit-text-fill-color: transparent !important; |
| 39 | + font-weight: 700 !important; |
| 40 | + letter-spacing: -0.3px !important; |
| 41 | +} |
| 42 | + |
| 43 | +/* Section title on scroll: solid white, no gradient */ |
| 44 | +.md-header__title .md-header__topic:last-child .md-ellipsis { |
| 45 | + background: none !important; |
| 46 | + -webkit-background-clip: unset !important; |
| 47 | + background-clip: unset !important; |
| 48 | + -webkit-text-fill-color: #e2e8f0 !important; |
| 49 | + color: #e2e8f0 !important; |
| 50 | + font-weight: 400 !important; |
| 51 | + letter-spacing: normal !important; |
| 52 | +} |
| 53 | + |
| 54 | +/* Light mode header: ACB dark blue */ |
| 55 | +[data-md-color-scheme="default"] .md-header { |
| 56 | + background-color: #0f172a !important; |
| 57 | + border-bottom: 1px solid #1d4ed8; |
| 58 | +} |
| 59 | + |
| 60 | +[data-md-color-scheme="default"] .md-header__title { |
| 61 | + color: #f8fafc !important; |
| 62 | +} |
| 63 | + |
| 64 | +/* Nav tabs (the tabs bar below header) */ |
| 65 | +[data-md-color-scheme="slate"] .md-tabs { |
| 66 | + background-color: #1e3a8a !important; |
| 67 | +} |
| 68 | + |
| 69 | +[data-md-color-scheme="default"] .md-tabs { |
| 70 | + background-color: #2563eb !important; |
| 71 | +} |
| 72 | + |
| 73 | +/* ─── Accent color ──────────────────────────────────────────────────────────── */ |
| 74 | + |
| 75 | +/* Dark mode: ACB blue #3b82f6 */ |
| 76 | +[data-md-color-scheme="slate"] { |
| 77 | + --md-primary-fg-color: #3b82f6; |
| 78 | + --md-primary-fg-color--light: #60a5fa; |
| 79 | + --md-primary-fg-color--dark: #1d4ed8; |
| 80 | + --md-accent-fg-color: #3b82f6; |
| 81 | +} |
| 82 | + |
| 83 | +/* Light mode: ACB light blue #2563eb */ |
| 84 | +[data-md-color-scheme="default"] { |
| 85 | + --md-primary-fg-color: #2563eb; |
| 86 | + --md-primary-fg-color--light: #3b82f6; |
| 87 | + --md-primary-fg-color--dark: #1d4ed8; |
| 88 | + --md-accent-fg-color: #2563eb; |
| 89 | +} |
| 90 | + |
| 91 | +/* ─── Navigation sidebar ────────────────────────────────────────────────────── */ |
| 92 | + |
| 93 | +/* Remove the default grayish background on sidebar section titles */ |
| 94 | +[data-md-color-scheme="slate"] .md-nav__title { |
| 95 | + background-color: transparent !important; |
| 96 | + box-shadow: none !important; |
| 97 | + color: #94a3b8 !important; |
| 98 | +} |
| 99 | + |
| 100 | +[data-md-color-scheme="slate"] .md-nav__link--active, |
| 101 | +[data-md-color-scheme="slate"] .md-nav__link:hover { |
| 102 | + color: #3b82f6; |
| 103 | +} |
| 104 | + |
| 105 | +/* ─── Code blocks ───────────────────────────────────────────────────────────── */ |
| 106 | + |
| 107 | +/* Dark mode: override Material's default code background */ |
| 108 | +[data-md-color-scheme="slate"] .highlight pre { |
| 109 | + background-color: #111620 !important; |
| 110 | +} |
| 111 | + |
| 112 | +[data-md-color-scheme="slate"] :not(pre) > code { |
| 113 | + background-color: #111620 !important; |
| 114 | +} |
| 115 | + |
| 116 | +/* Copy button injected by JS — same background as pre */ |
| 117 | +[data-md-color-scheme="slate"] .md-clipboard { |
| 118 | + background-color: #111620 !important; |
| 119 | + box-shadow: none !important; |
| 120 | + border: none !important; |
| 121 | + color: #4b5563 !important; |
| 122 | +} |
| 123 | + |
| 124 | +[data-md-color-scheme="slate"] .md-clipboard:hover { |
| 125 | + color: #94a3b8 !important; |
| 126 | + background-color: #111620 !important; |
| 127 | +} |
| 128 | + |
| 129 | +/* ─── Tables ────────────────────────────────────────────────────────────────── */ |
| 130 | + |
| 131 | +[data-md-color-scheme="slate"] .md-typeset table:not([class]) th { |
| 132 | + background-color: #151a22; |
| 133 | + color: #e2e8f0; |
| 134 | + border-bottom: 2px solid #3b82f6; |
| 135 | +} |
| 136 | + |
| 137 | +[data-md-color-scheme="slate"] .md-typeset table:not([class]) td { |
| 138 | + border-color: #1e2635; |
| 139 | +} |
| 140 | + |
| 141 | +[data-md-color-scheme="slate"] .md-typeset table:not([class]) tr:hover { |
| 142 | + background-color: #1a2030; |
| 143 | +} |
| 144 | + |
| 145 | +[data-md-color-scheme="default"] .md-typeset table:not([class]) th { |
| 146 | + background-color: #e8f0ff; |
| 147 | + color: #0f172a; |
| 148 | + border-bottom: 2px solid #2563eb; |
| 149 | +} |
| 150 | + |
| 151 | +[data-md-color-scheme="default"] .md-typeset table:not([class]) tr:hover { |
| 152 | + background-color: #edf3ff; |
| 153 | +} |
| 154 | + |
| 155 | +/* ─── Admonition blocks ─────────────────────────────────────────────────────── */ |
| 156 | + |
| 157 | +[data-md-color-scheme="slate"] .md-typeset .admonition { |
| 158 | + border-color: #1e2635; |
| 159 | + background-color: #151a22; |
| 160 | +} |
| 161 | + |
| 162 | +/* ─── Footer ────────────────────────────────────────────────────────────────── */ |
| 163 | + |
| 164 | +[data-md-color-scheme="slate"] .md-footer { |
| 165 | + background-color: #0a0d12; |
| 166 | + border-top: 1px solid #1e2635; |
| 167 | +} |
| 168 | + |
| 169 | +[data-md-color-scheme="default"] .md-footer { |
| 170 | + background-color: #1e3a8a; |
| 171 | +} |
0 commit comments