-
Notifications
You must be signed in to change notification settings - Fork 0
feat: modern UI and fix head_custom.html include name #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,304 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* ================================================================ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DistTopic — Modern UI Overrides | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Applied on top of Just the Docs (theme: just-the-docs) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Color palette: Catppuccin Mocha | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ================================================================ */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* ── CSS Custom Properties ──────────────────────────────────────── */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| :root { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --dt-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --dt-font-mono: "SF Mono", ui-monospace, "Cascadia Code", "Fira Code", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SFMono-Regular, Menlo, Consolas, monospace; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Catppuccin Mocha */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-base: #1e1e2e; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-mantle: #181825; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-crust: #11111b; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-surface0: #313244; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-surface1: #45475a; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-surface2: #585b70; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-overlay0: #6c7086; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-overlay1: #7f849c; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-text: #cdd6f4; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-subtext0: #a6adc8; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-subtext1: #bac2de; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-blue: #89b4fa; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-lavender: #b4befe; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-mauve: #cba6f7; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-green: #a6e3a1; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-teal: #94e2d5; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-sky: #89dceb; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-peach: #fab387; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-red: #f38ba8; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --ctp-yellow: #f9e2af; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* ── Base ─────────────────────────────────────────────────────── */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| html { scroll-behavior: smooth; } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| body { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-family: var(--dt-font-sans); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: 16px; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| line-height: 1.75; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -webkit-font-smoothing: antialiased; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -moz-osx-font-smoothing: grayscale; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| text-rendering: optimizeLegibility; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* ── Typography ──────────────────────────────────────────────── */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| h1, h2, h3, h4, h5, h6 { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-family: var(--dt-font-sans); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-weight: 700; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| letter-spacing: -0.025em; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| line-height: 1.3; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Hero gradient heading (fs-9 on homepage) */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .fs-9 { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-size: clamp(2rem, 5vw, 3.25rem) !important; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| font-weight: 800 !important; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| letter-spacing: -0.04em !important; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| line-height: 1.1 !important; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| background: linear-gradient( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 135deg, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| var(--ctp-lavender) 0%, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| var(--ctp-blue) 50%, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| var(--ctp-teal) 100% | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -webkit-background-clip: text; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -webkit-text-fill-color: transparent; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| background-clip: text; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| margin-bottom: 0.25rem !important; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+63
to
+74
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| background: linear-gradient( | |
| 135deg, | |
| var(--ctp-lavender) 0%, | |
| var(--ctp-blue) 50%, | |
| var(--ctp-teal) 100% | |
| ); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| margin-bottom: 0.25rem !important; | |
| } | |
| margin-bottom: 0.25rem !important; | |
| /* Fallback solid color for environments without background-clip text */ | |
| color: var(--ctp-text) !important; | |
| } | |
| /* Apply gradient text only when background-clip:text is supported */ | |
| @supports ((-webkit-background-clip: text) or (background-clip: text)) { | |
| .fs-9 { | |
| background: linear-gradient( | |
| 135deg, | |
| var(--ctp-lavender) 0%, | |
| var(--ctp-blue) 50%, | |
| var(--ctp-teal) 100% | |
| ); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| } | |
| /* Ensure readability in high-contrast / forced-colors modes */ | |
| @media (forced-colors: active) { | |
| .fs-9 { | |
| background: none; | |
| -webkit-text-fill-color: currentColor; | |
| } | |
| } |
Copilot
AI
Mar 28, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the focus outline (outline: none) can make keyboard focus hard to see, especially in forced-colors mode where box-shadow may be suppressed. Prefer styling :focus-visible and keep an outline (or add a forced-colors specific outline) so focus indication remains reliably visible.
| .search-input:focus { | |
| border-color: var(--ctp-blue) !important; | |
| box-shadow: 0 0 0 3px rgba(137, 180, 250, 0.15) !important; | |
| outline: none !important; | |
| } | |
| .search-input:focus-visible { | |
| border-color: var(--ctp-blue) !important; | |
| box-shadow: 0 0 0 3px rgba(137, 180, 250, 0.15) !important; | |
| } | |
| @media (forced-colors: active) { | |
| .search-input:focus-visible { | |
| outline: 2px solid Highlight !important; | |
| outline-offset: 2px; | |
| box-shadow: none !important; | |
| } | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the Docs has deprecated
$root-font-sizeand may remove it in a future release, so overriding it here risks becoming a no-op or breaking builds on theme upgrades. Consider removing this override (or switching to the currently recommended typography sizing variables/mechanism in Just the Docs).