g1t/apps/docs/src/styles/g1t.css
Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| Docs worth reading, and kept that way | 1 | /* |
| 2 | * g1t's docs: Starlight in g1t's own design. A very dark gray base, | |
| 3 | * lavender as the accent for links and the current page, quiet | |
| 4 | * typography, and one theme. | |
| 5 | */ | |
| Docs as their own app; shared theme package | 6 | :root, |
| 7 | :root[data-theme='light'] { | |
| 8 | --sl-font: var(--g1t-font-sans); | |
| 9 | --sl-font-mono: var(--g1t-font-mono); | |
| 10 | ||
| Docs worth reading, and kept that way | 11 | /* Lavender is the docs' accent: links, the current page, highlights. */ |
| 12 | --sl-color-accent-low: color-mix(in srgb, var(--g1t-merged) 14%, var(--g1t-bg)); | |
| 13 | --sl-color-accent: var(--g1t-merged); | |
| 14 | --sl-color-accent-high: #d9d1ff; | |
| Docs as their own app; shared theme package | 15 | |
| 16 | --sl-color-white: var(--g1t-fg); | |
| 17 | --sl-color-gray-1: var(--g1t-fg-soft); | |
| 18 | --sl-color-gray-2: var(--g1t-fg-soft); | |
| 19 | --sl-color-gray-3: var(--g1t-muted); | |
| 20 | --sl-color-gray-4: var(--g1t-faint); | |
| 21 | --sl-color-gray-5: var(--g1t-line); | |
| 22 | --sl-color-gray-6: var(--g1t-surface); | |
| 23 | --sl-color-gray-7: var(--g1t-surface); | |
| 24 | --sl-color-black: var(--g1t-bg); | |
| 25 | ||
| 26 | --sl-color-bg: var(--g1t-bg); | |
| Docs worth reading, and kept that way | 27 | --sl-color-bg-nav: color-mix(in srgb, var(--g1t-bg) 88%, transparent); |
| Docs as their own app; shared theme package | 28 | --sl-color-bg-sidebar: var(--g1t-bg); |
| 29 | --sl-color-hairline: var(--g1t-line); | |
| 30 | --sl-color-hairline-light: var(--g1t-line); | |
| Docs worth reading, and kept that way | 31 | --sl-color-hairline-shade: var(--g1t-line); |
| Docs as their own app; shared theme package | 32 | --sl-color-text: var(--g1t-fg-soft); |
| Docs worth reading, and kept that way | 33 | --sl-color-text-accent: #cfc6ff; |
| Docs as their own app; shared theme package | 34 | --sl-color-text-invert: var(--g1t-bg); |
| 35 | --sl-color-bg-inline-code: var(--g1t-raised); | |
| 36 | ||
| Docs worth reading, and kept that way | 37 | --sl-text-body: 0.9375rem; |
| 38 | --sl-line-height: 1.75; | |
| 39 | --sl-content-width: 46rem; | |
| Docs in the shape of docs.continue.dev | 40 | /* The header's row, and the tabs beneath it. */ |
| 41 | --sl-nav-height: 6.25rem; | |
| Docs worth reading, and kept that way | 42 | --sl-sidebar-width: 17rem; |
| 43 | ||
| Docs as their own app; shared theme package | 44 | color-scheme: dark; |
| 45 | } | |
| 46 | ||
| 47 | /* There is one theme, so the switcher has nothing to switch. */ | |
| 48 | starlight-theme-select { | |
| 49 | display: none; | |
| 50 | } | |
| 51 | ||
| Docs worth reading, and kept that way | 52 | /* --- Header --------------------------------------------------------------- */ |
| 53 | ||
| 54 | header.header { | |
| Docs in the shape of docs.continue.dev | 55 | padding: 0 !important; |
| Docs worth reading, and kept that way | 56 | backdrop-filter: blur(10px); |
| 57 | border-bottom: 1px solid var(--g1t-line); | |
| 58 | } | |
| Docs in the shape of docs.continue.dev | 59 | site-search { |
| 60 | width: 100%; | |
| 61 | max-width: 30rem; | |
| 62 | } | |
| 63 | /* On phones the menu button sits in the header's top row, not its middle. */ | |
| 64 | .sl-menu-button { | |
| 65 | top: calc((3.5rem - var(--sl-menu-button-size)) / 2) !important; | |
| 66 | } | |
| Docs worth reading, and kept that way | 67 | site-search button[data-open-modal] { |
| 68 | border-radius: 0.5rem; | |
| 69 | background: var(--g1t-surface); | |
| 70 | border-color: var(--g1t-line); | |
| 71 | color: var(--g1t-faint); | |
| 72 | } | |
| 73 | site-search button[data-open-modal]:hover { | |
| 74 | border-color: var(--g1t-line-strong); | |
| 75 | color: var(--g1t-muted); | |
| 76 | } | |
| 77 | ||
| 78 | /* --- Sidebar -------------------------------------------------------------- */ | |
| 79 | ||
| 80 | .sidebar-content { | |
| 81 | padding-top: 1.25rem; | |
| 82 | } | |
| Docs in the shape of docs.continue.dev | 83 | /* Groups always show their pages: no caret, no folding. */ |
| 84 | .sidebar-content details > summary { | |
| 85 | pointer-events: none; | |
| 86 | padding-top: 0.25rem; | |
| 87 | } | |
| 88 | .sidebar-content details > summary .caret { | |
| 89 | display: none; | |
| 90 | } | |
| 91 | .sidebar-content .top-level > li + li { | |
| 92 | margin-top: 1rem; | |
| 93 | } | |
| Docs worth reading, and kept that way | 94 | /* Group labels: small and quiet, like section names, not links. */ |
| 95 | .sidebar-content details > summary .group-label .large, | |
| 96 | .sidebar-content .top-level > li > details > summary { | |
| 97 | font-size: 0.75rem; | |
| 98 | font-weight: 600; | |
| 99 | letter-spacing: 0.06em; | |
| 100 | text-transform: uppercase; | |
| 101 | color: var(--g1t-faint); | |
| 102 | } | |
| 103 | .sidebar-content ul ul, | |
| 104 | .sidebar-content ul ul li { | |
| 105 | border-inline-start: 0; | |
| 106 | margin-inline-start: 0; | |
| 107 | padding-inline-start: 0; | |
| 108 | } | |
| 109 | .sidebar-content a { | |
| 110 | border-radius: 0.375rem; | |
| 111 | padding: 0.32rem 0.6rem; | |
| 112 | font-size: 0.875rem; | |
| 113 | color: var(--g1t-muted); | |
| 114 | } | |
| 115 | .sidebar-content a:hover { | |
| 116 | background: var(--g1t-surface); | |
| 117 | color: var(--g1t-fg); | |
| 118 | } | |
| Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API | 119 | /* The current page: brighter text and a lavender mark, not a filled bar. |
| 120 | Square on the mark's side, so the mark is a straight line. */ | |
| Docs worth reading, and kept that way | 121 | .sidebar-content a[aria-current='page'], |
| 122 | .sidebar-content a[aria-current='page']:hover { | |
| Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API | 123 | border-radius: 0 0.375rem 0.375rem 0; |
| Docs worth reading, and kept that way | 124 | background: var(--g1t-surface); |
| 125 | color: var(--g1t-fg); | |
| 126 | font-weight: 500; | |
| 127 | box-shadow: inset 2px 0 0 var(--g1t-merged); | |
| 128 | } | |
| 129 | ||
| 130 | /* --- Content -------------------------------------------------------------- */ | |
| 131 | ||
| 132 | .content-panel { | |
| 133 | padding-top: 2rem; | |
| 134 | } | |
| Docs in the shape of docs.continue.dev | 135 | /* The title and the page read as one, without a rule between them. */ |
| 136 | .content-panel + .content-panel { | |
| 137 | border-top: 0; | |
| 138 | padding-top: 0.5rem; | |
| 139 | } | |
| 140 | .sl-markdown-content h1 { | |
| Docs worth reading, and kept that way | 141 | font-size: 2.25rem; |
| 142 | font-weight: 650; | |
| 143 | letter-spacing: -0.03em; | |
| 144 | line-height: 1.15; | |
| 145 | color: var(--g1t-fg); | |
| 146 | } | |
| Docs in the shape of docs.continue.dev | 147 | /* Sections open with space, not rules. */ |
| Docs worth reading, and kept that way | 148 | .sl-markdown-content .sl-heading-wrapper.level-h2 { |
| 149 | margin-top: 3rem; | |
| 150 | } | |
| 151 | .sl-markdown-content h2 { | |
| Docs in the shape of docs.continue.dev | 152 | font-size: 1.5rem; |
| 153 | font-weight: 600; | |
| Docs as their own app; shared theme package | 154 | letter-spacing: -0.02em; |
| Docs worth reading, and kept that way | 155 | color: var(--g1t-fg); |
| Docs as their own app; shared theme package | 156 | } |
| Docs worth reading, and kept that way | 157 | .sl-markdown-content h3 { |
| 158 | margin-top: 2rem; | |
| 159 | font-size: 1.1rem; | |
| 160 | font-weight: 600; | |
| 161 | letter-spacing: -0.01em; | |
| 162 | color: var(--g1t-fg); | |
| 163 | } | |
| 164 | .sl-markdown-content p, | |
| 165 | .sl-markdown-content li { | |
| 166 | color: var(--g1t-fg-soft); | |
| 167 | } | |
| 168 | .sl-markdown-content a:not(.card, .sl-link-button, .sl-link-card) { | |
| 169 | color: #cfc6ff; | |
| 170 | text-decoration-color: color-mix(in srgb, var(--g1t-merged) 45%, transparent); | |
| 171 | text-underline-offset: 0.2em; | |
| 172 | } | |
| 173 | .sl-markdown-content a:not(.card, .sl-link-button, .sl-link-card):hover { | |
| 174 | text-decoration-color: var(--g1t-merged); | |
| 175 | } | |
| 176 | .sl-markdown-content :not(pre) > code { | |
| 177 | border-radius: 0.3rem; | |
| Docs in the shape of docs.continue.dev | 178 | padding: 0.1rem 0.3rem; |
| Docs worth reading, and kept that way | 179 | font-size: 0.85em; |
| 180 | color: var(--g1t-fg); | |
| Docs in the shape of docs.continue.dev | 181 | background: var(--g1t-raised); |
| Docs worth reading, and kept that way | 182 | } |
| Docs as their own app; shared theme package | 183 | |
| Docs worth reading, and kept that way | 184 | /* Tables: ruled, not boxed. */ |
| 185 | .sl-markdown-content table { | |
| 186 | display: table; | |
| 187 | width: 100%; | |
| 188 | border-collapse: collapse; | |
| 189 | font-size: 0.875rem; | |
| 190 | } | |
| 191 | .sl-markdown-content th { | |
| 192 | border-bottom: 1px solid var(--g1t-line-strong); | |
| 193 | background: transparent; | |
| 194 | font-weight: 600; | |
| 195 | color: var(--g1t-muted); | |
| 196 | text-align: start; | |
| 197 | } | |
| 198 | .sl-markdown-content td, | |
| 199 | .sl-markdown-content th { | |
| 200 | padding: 0.6rem 0.75rem; | |
| 201 | border-inline: 0; | |
| 202 | border-top: 0; | |
| 203 | } | |
| 204 | .sl-markdown-content td { | |
| 205 | border-bottom: 1px solid var(--g1t-line); | |
| 206 | vertical-align: top; | |
| 207 | } | |
| 208 | .sl-markdown-content tr:nth-child(2n) { | |
| 209 | background: transparent; | |
| Docs as their own app; shared theme package | 210 | } |
| 211 | ||
| Docs worth reading, and kept that way | 212 | /* Callouts: a tinted panel with a coloured edge. */ |
| 213 | .starlight-aside { | |
| 214 | border: 0; | |
| 215 | border-inline-start: 2px solid; | |
| 216 | border-radius: 0 0.6rem 0.6rem 0; | |
| 217 | padding: 0.85rem 1.1rem; | |
| 218 | } | |
| 219 | .starlight-aside--note { | |
| 220 | border-color: var(--g1t-info); | |
| 221 | background: color-mix(in srgb, var(--g1t-info) 7%, var(--g1t-bg)); | |
| 222 | } | |
| 223 | .starlight-aside--tip { | |
| Docs as their own app; shared theme package | 224 | border-color: var(--g1t-accent); |
| Docs worth reading, and kept that way | 225 | background: color-mix(in srgb, var(--g1t-accent) 6%, var(--g1t-bg)); |
| Docs as their own app; shared theme package | 226 | } |
| Docs worth reading, and kept that way | 227 | .starlight-aside--caution { |
| 228 | border-color: var(--g1t-warn); | |
| 229 | background: color-mix(in srgb, var(--g1t-warn) 7%, var(--g1t-bg)); | |
| 230 | } | |
| 231 | .starlight-aside--danger { | |
| 232 | border-color: var(--g1t-danger); | |
| 233 | background: color-mix(in srgb, var(--g1t-danger) 7%, var(--g1t-bg)); | |
| 234 | } | |
| 235 | ||
| 236 | /* --- On this page --------------------------------------------------------- */ | |
| Docs as their own app; shared theme package | 237 | |
| Docs worth reading, and kept that way | 238 | .right-sidebar-panel h2 { |
| 239 | font-size: 0.75rem; | |
| 240 | font-weight: 600; | |
| 241 | letter-spacing: 0.06em; | |
| 242 | text-transform: uppercase; | |
| 243 | color: var(--g1t-faint); | |
| 244 | } | |
| 245 | .right-sidebar-panel a { | |
| 246 | font-size: 0.8125rem; | |
| 247 | color: var(--g1t-muted); | |
| 248 | } | |
| 249 | .right-sidebar-panel a:hover { | |
| 250 | color: var(--g1t-fg); | |
| 251 | } | |
| 252 | .right-sidebar-panel a[aria-current='true'] { | |
| 253 | color: #cfc6ff; | |
| 254 | } | |
| 255 | ||
| 256 | /* --- Cards and buttons ---------------------------------------------------- */ | |
| 257 | ||
| 258 | .card, | |
| 259 | .sl-link-card { | |
| 260 | border-radius: 1rem; | |
| 261 | background: var(--g1t-surface); | |
| 262 | border: 1px solid var(--g1t-line); | |
| 263 | transition: border-color 0.15s; | |
| 264 | } | |
| 265 | .sl-link-card:hover { | |
| 266 | border-color: var(--g1t-line-strong); | |
| Docs as their own app; shared theme package | 267 | background: var(--g1t-surface); |
| Docs worth reading, and kept that way | 268 | } |
| 269 | .sl-link-button { | |
| 270 | border-radius: 0.5rem; | |
| 271 | font-size: 0.9rem; | |
| 272 | font-weight: 500; | |
| 273 | } | |
| 274 | .sl-link-button.primary { | |
| 275 | background: var(--g1t-fg); | |
| 276 | border-color: var(--g1t-fg); | |
| 277 | color: var(--g1t-bg); | |
| 278 | } | |
| 279 | .sl-link-button.primary:hover { | |
| 280 | background: #fff; | |
| 281 | } | |
| 282 | .sl-link-button.minimal { | |
| 283 | color: var(--g1t-fg-soft); | |
| 284 | } | |
| 285 | ||
| 286 | /* --- Pagination and footer ----------------------------------------------- */ | |
| 287 | ||
| 288 | .pagination-links a { | |
| 289 | border-radius: 0.75rem; | |
| Docs as their own app; shared theme package | 290 | border-color: var(--g1t-line); |
| Docs worth reading, and kept that way | 291 | box-shadow: none; |
| 292 | } | |
| 293 | .pagination-links a:hover { | |
| 294 | border-color: var(--g1t-line-strong); | |
| 295 | } | |
| 296 | .pagination-links a .link-title { | |
| 297 | color: var(--g1t-fg); | |
| 298 | } | |
| 299 | .meta, | |
| 300 | .meta a { | |
| 301 | font-size: 0.8125rem; | |
| 302 | color: var(--g1t-faint); | |
| 303 | } | |
| 304 | ||
| Docs in the shape of docs.continue.dev | 305 | /* --- Cards ---------------------------------------------------------------- */ |
| Docs worth reading, and kept that way | 306 | |
| Docs in the shape of docs.continue.dev | 307 | .sl-markdown-content .card-grid { |
| 308 | gap: 0.75rem; | |
| Docs worth reading, and kept that way | 309 | } |
| Docs in the shape of docs.continue.dev | 310 | .sl-markdown-content .card { |
| 311 | padding: 1.1rem 1.2rem; | |
| Docs worth reading, and kept that way | 312 | } |
| Docs in the shape of docs.continue.dev | 313 | .sl-markdown-content .card .title { |
| 314 | font-size: 1rem; | |
| 315 | font-weight: 600; | |
| 316 | color: var(--g1t-fg); | |
| Docs worth reading, and kept that way | 317 | } |
| Docs in the shape of docs.continue.dev | 318 | .sl-markdown-content .card .icon { |
| Docs worth reading, and kept that way | 319 | color: var(--g1t-merged); |
| Docs in the shape of docs.continue.dev | 320 | background: color-mix(in srgb, var(--g1t-merged) 12%, transparent); |
| Docs worth reading, and kept that way | 321 | border: 0; |
| Docs in the shape of docs.continue.dev | 322 | border-radius: 0.5rem; |
| 323 | padding: 0.3rem; | |
| Docs worth reading, and kept that way | 324 | } |
| Docs in the shape of docs.continue.dev | 325 | .sl-link-card { |
| 326 | padding: 1rem 1.2rem; | |
| Docs worth reading, and kept that way | 327 | } |
| Docs in the shape of docs.continue.dev | 328 | .sl-link-card .title { |
| Docs worth reading, and kept that way | 329 | font-size: 0.95rem; |
| Docs in the shape of docs.continue.dev | 330 | font-weight: 600; |
| Docs worth reading, and kept that way | 331 | color: var(--g1t-fg); |
| 332 | } | |
| Docs in the shape of docs.continue.dev | 333 | .sl-link-card .description { |
| Docs worth reading, and kept that way | 334 | font-size: 0.85rem; |
| 335 | color: var(--g1t-muted); | |
| 336 | } | |
| Docs in the shape of docs.continue.dev | 337 | |
| 338 | /* Steps: numbered, on a quiet rail. */ | |
| 339 | .sl-steps > li::before { | |
| 340 | background: var(--g1t-raised) !important; | |
| 341 | color: var(--g1t-fg) !important; | |
| 342 | box-shadow: inset 0 0 0 1px var(--g1t-line-strong); | |
| Docs worth reading, and kept that way | 343 | font-family: var(--g1t-font-mono); |
| 344 | font-size: 0.8rem; | |
| 345 | } | |
| Docs in the shape of docs.continue.dev | 346 | .sl-steps > li::after { |
| 347 | background: var(--g1t-line) !important; | |
| Docs as their own app; shared theme package | 348 | } |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 349 | |
| 350 | /* --- API reference -------------------------------------------------------- */ | |
| 351 | ||
| 352 | /* An operation's method and path, at the top of its page. */ | |
| 353 | .sl-markdown-content .g1t-endpoint { | |
| 354 | display: flex; | |
| 355 | align-items: center; | |
| 356 | gap: 0.75rem; | |
| 357 | overflow-x: auto; | |
| 358 | border: 1px solid var(--g1t-line); | |
| 359 | border-radius: 0.75rem; | |
| 360 | padding: 0.7rem 0.9rem; | |
| 361 | background: var(--g1t-surface); | |
| 362 | } | |
| 363 | .sl-markdown-content .g1t-endpoint code { | |
| 364 | padding: 0; | |
| 365 | background: transparent; | |
| 366 | font-size: 0.875rem; | |
| 367 | white-space: nowrap; | |
| 368 | color: var(--g1t-fg); | |
| 369 | } | |
| 370 | /* Methods: the same small mono tag in the sidebar and on the page. */ | |
| 371 | .g1t-method { | |
| 372 | --method: var(--g1t-muted); | |
| 373 | flex-shrink: 0; | |
| 374 | border: 0 !important; | |
| 375 | border-radius: 0.3rem; | |
| 376 | padding: 0.05rem 0.4rem; | |
| 377 | background: color-mix(in srgb, var(--method) 14%, transparent) !important; | |
| 378 | color: var(--method) !important; | |
| 379 | font-family: var(--g1t-font-mono); | |
| 380 | font-size: 0.7rem; | |
| 381 | font-weight: 600; | |
| 382 | letter-spacing: 0.02em; | |
| 383 | } | |
| 384 | .g1t-method-get, | |
| 385 | .g1t-method[data-method='get'] { | |
| 386 | --method: var(--g1t-accent); | |
| 387 | } | |
| 388 | .g1t-method-post, | |
| 389 | .g1t-method[data-method='post'] { | |
| 390 | --method: var(--g1t-info); | |
| 391 | } | |
| 392 | .g1t-method-put, | |
| 393 | .g1t-method-patch, | |
| 394 | .g1t-method[data-method='put'], | |
| 395 | .g1t-method[data-method='patch'] { | |
| 396 | --method: var(--g1t-warn); | |
| 397 | } | |
| 398 | .g1t-method-delete, | |
| 399 | .g1t-method[data-method='delete'] { | |
| 400 | --method: var(--g1t-danger); | |
| 401 | } | |
| 402 | /* In the sidebar the method sits at the end of the row, in a fixed column. */ | |
| 403 | .sidebar-content a:has(.g1t-method) { | |
| 404 | display: flex; | |
| 405 | justify-content: space-between; | |
| 406 | align-items: center; | |
| 407 | gap: 0.5rem; | |
| 408 | } | |
| 409 | .sidebar-content .g1t-method { | |
| 410 | min-width: 3.1rem; | |
| 411 | text-align: center; | |
| 412 | font-size: 0.625rem; | |
| 413 | line-height: 1.6; | |
| 414 | } |
This file's history is long; its oldest lines are credited to the oldest commit read.