|
12 | 12 | /* CLI uses Inter + JetBrains Mono */ |
13 | 13 | --sl-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; |
14 | 14 | --sl-font-mono: "JetBrains Mono", ui-monospace, monospace; |
| 15 | + |
| 16 | + /* Match the original CLI docs header sizing. */ |
| 17 | + --sl-nav-height: 4rem !important; |
| 18 | + --sl-nav-pad-x: 1.5rem !important; |
| 19 | + --sl-nav-gap: 2rem !important; |
15 | 20 | } |
16 | 21 |
|
17 | 22 | /* Subtle background gradient glow */ |
|
39 | 44 |
|
40 | 45 | /* GitHub icon - white in header */ |
41 | 46 | .social-icons a, |
42 | | -.social-icons a svg { |
| 47 | +.social-icons a svg, |
| 48 | +a[href*="github.com"], |
| 49 | +a[href*="github.com"] svg { |
43 | 50 | color: #fff !important; |
44 | 51 | fill: #fff !important; |
45 | 52 | } |
46 | 53 |
|
47 | 54 | .social-icons a:hover, |
48 | | -.social-icons a:hover svg { |
| 55 | +.social-icons a:hover svg, |
| 56 | +a[href*="github.com"]:hover, |
| 57 | +a[href*="github.com"]:hover svg { |
49 | 58 | color: rgba(255, 255, 255, 0.8) !important; |
50 | 59 | fill: rgba(255, 255, 255, 0.8) !important; |
51 | 60 | } |
52 | 61 |
|
| 62 | +/* Header / Navigation */ |
| 63 | +header.header { |
| 64 | + background: rgba(10, 10, 15, 0.95); |
| 65 | + backdrop-filter: blur(12px); |
| 66 | + border-bottom: none; |
| 67 | +} |
| 68 | + |
| 69 | +header.header > .header { |
| 70 | + display: flex; |
| 71 | + gap: 1rem; |
| 72 | + justify-content: space-between; |
| 73 | + align-items: center; |
| 74 | + height: 100%; |
| 75 | + width: 100%; |
| 76 | + padding: 0; |
| 77 | + background: transparent; |
| 78 | + backdrop-filter: none; |
| 79 | +} |
| 80 | + |
| 81 | +.header-left { |
| 82 | + flex: 0 0 auto; |
| 83 | +} |
| 84 | + |
| 85 | +.header-right { |
| 86 | + flex: 0 0 auto; |
| 87 | + gap: 1rem; |
| 88 | + align-items: center; |
| 89 | +} |
| 90 | + |
| 91 | +.site-title img { |
| 92 | + height: 2.3rem !important; |
| 93 | + width: auto !important; |
| 94 | +} |
| 95 | + |
| 96 | +starlight-menu-button button { |
| 97 | + background-color: #1a1a1f !important; |
| 98 | + color: #fff !important; |
| 99 | + border: 1px solid rgba(255, 255, 255, 0.2) !important; |
| 100 | + box-shadow: none !important; |
| 101 | +} |
| 102 | + |
| 103 | +site-search { |
| 104 | + --sl-search-width: 22rem; |
| 105 | +} |
| 106 | + |
| 107 | +site-search button { |
| 108 | + background: var(--sl-color-bg) !important; |
| 109 | + border: 1px solid rgba(255, 255, 255, 0.25) !important; |
| 110 | + border-radius: 6px !important; |
| 111 | + padding: 0.35rem 0.75rem !important; |
| 112 | + font-size: 0.8rem !important; |
| 113 | + height: auto !important; |
| 114 | + min-height: unset !important; |
| 115 | + gap: 0.5rem !important; |
| 116 | + width: 22rem !important; |
| 117 | + min-width: 22rem !important; |
| 118 | + justify-content: space-between !important; |
| 119 | + position: fixed !important; |
| 120 | + left: 50% !important; |
| 121 | + transform: translateX(-50%) !important; |
| 122 | + top: 0.75rem !important; |
| 123 | + z-index: 1000 !important; |
| 124 | +} |
| 125 | + |
| 126 | +site-search button:hover { |
| 127 | + border-color: rgba(255, 255, 255, 0.4) !important; |
| 128 | +} |
| 129 | + |
| 130 | +site-search button svg { |
| 131 | + width: 14px !important; |
| 132 | + height: 14px !important; |
| 133 | + color: rgba(255, 255, 255, 0.5) !important; |
| 134 | +} |
| 135 | + |
| 136 | +site-search button span { |
| 137 | + font-size: 0.8rem !important; |
| 138 | + color: rgba(255, 255, 255, 0.5) !important; |
| 139 | +} |
| 140 | + |
| 141 | +site-search button kbd { |
| 142 | + background: transparent !important; |
| 143 | + border: none !important; |
| 144 | + color: rgba(255, 255, 255, 0.5) !important; |
| 145 | + font-size: 0.75rem !important; |
| 146 | + padding: 0 !important; |
| 147 | + box-shadow: none !important; |
| 148 | +} |
| 149 | + |
53 | 150 | /* Docs section heading accent - keep it below the text, not through it. */ |
54 | 151 | html[data-has-sidebar] .sl-markdown-content h2:not(:where(.not-content *))::before { |
55 | 152 | bottom: 0.02em; |
|
0 commit comments