| 5 |
5 |
* Author : Simon-Pierre Boucher |
| 6 |
6 |
* Contact : contact@spboucher.ai |
| 7 |
7 |
* File : src/web/assets/css/app.css |
| 8 |
|
− * Purpose : Application styles v2 — layout, depth, motion, every page |
|
8 |
+ * Purpose : Application styles v3 "Nightforge" — aurora, spotlight, ⌘K, every page |
| 9 |
9 |
* License : MIT © Simon-Pierre Boucher |
| 10 |
10 |
* ───────────────────────────────────────────── |
| 11 |
11 |
*/ |
| 12 |
12 |
|
| 13 |
13 |
*, *::before, *::after { box-sizing: border-box; } |
| 14 |
14 |
|
| 15 |
|
−html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; } |
|
15 |
+html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; } |
| 16 |
16 |
|
| 17 |
17 |
body { |
| 18 |
18 |
margin: 0; |
| 19 |
|
− background: |
| 20 |
|
− radial-gradient(1100px 500px at 12% -10%, var(--bg-glow-1), transparent 60%), |
| 21 |
|
− radial-gradient(900px 420px at 88% -6%, var(--bg-glow-2), transparent 55%), |
| 22 |
|
− var(--bg); |
|
19 |
+ background: var(--bg); |
| 23 |
20 |
color: var(--text); |
| 24 |
21 |
font-family: var(--font-ui); |
| 25 |
22 |
font-size: 15px; |
| 28 |
25 |
display: flex; |
| 29 |
26 |
flex-direction: column; |
| 30 |
27 |
font-feature-settings: 'cv02', 'cv03', 'ss01'; |
|
28 |
+ position: relative; |
| 31 |
29 |
} |
| 32 |
30 |
|
|
31 |
+/* ── Aurora canvas ───────────────────────── */ |
|
32 |
+.aurora { |
|
33 |
+ position: fixed; inset: 0; z-index: -2; overflow: hidden; |
|
34 |
+ pointer-events: none; |
|
35 |
+} |
|
36 |
+.aurora::before { |
|
37 |
+ content: ''; position: absolute; inset: -20%; |
|
38 |
+ background: |
|
39 |
+ radial-gradient(42% 34% at 18% 8%, var(--bg-glow-1), transparent 70%), |
|
40 |
+ radial-gradient(36% 30% at 82% 4%, var(--bg-glow-2), transparent 70%), |
|
41 |
+ radial-gradient(30% 26% at 62% 18%, var(--bg-glow-3), transparent 72%), |
|
42 |
+ radial-gradient(34% 30% at 38% 2%, var(--bg-glow-4), transparent 70%); |
|
43 |
+ animation: aurora-drift 26s ease-in-out infinite alternate; |
|
44 |
+} |
|
45 |
+@keyframes aurora-drift { |
|
46 |
+ from { transform: translate3d(-2.5%, -1.5%, 0) scale(1); } |
|
47 |
+ 50% { transform: translate3d(1.5%, 1%, 0) scale(1.06); } |
|
48 |
+ to { transform: translate3d(3%, -1%, 0) scale(1.02); } |
|
49 |
+} |
|
50 |
+/* film grain — keeps the gradients from banding, adds texture */ |
|
51 |
+.aurora::after { |
|
52 |
+ content: ''; position: absolute; inset: 0; opacity: 0.05; |
|
53 |
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); |
|
54 |
+} |
|
55 |
+html[data-theme='light'] .aurora::after { opacity: 0.035; } |
|
56 |
+ |
| 33 |
57 |
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; } |
| 34 |
58 |
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; } |
| 35 |
59 |
code, pre, kbd { font-family: var(--font-mono); } |
| 38 |
62 |
|
| 39 |
63 |
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; } |
| 40 |
64 |
|
|
65 |
+/* custom scrollbars */ |
|
66 |
+* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; } |
|
67 |
+*::-webkit-scrollbar { width: 10px; height: 10px; } |
|
68 |
+*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; } |
|
69 |
+*::-webkit-scrollbar-thumb:hover { background: var(--faint); border: 2px solid transparent; background-clip: padding-box; } |
|
70 |
+*::-webkit-scrollbar-track { background: transparent; } |
|
71 |
+ |
| 41 |
72 |
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; } |
| 42 |
|
−main.container { flex: 1; padding-top: 28px; padding-bottom: 56px; } |
|
73 |
+main.container { flex: 1; padding-top: 30px; padding-bottom: 60px; } |
| 43 |
74 |
|
| 44 |
75 |
.sr-only, .skip-link { |
| 45 |
76 |
position: absolute; width: 1px; height: 1px; overflow: hidden; |
| 52 |
83 |
} |
| 53 |
84 |
.muted { color: var(--muted); } |
| 54 |
85 |
|
|
86 |
+/* ── Card primitive (shared look) ────────── */ |
|
87 |
+.repo-card, .release-card, .search-results li, .commit-list, .file-table, |
|
88 |
+.readme-section, .blob-card, .ref-table, .commit-detail-header, .diff-file, |
|
89 |
+.badge-stat, .clone-box, .error-art { |
|
90 |
+ background: var(--surface-grad); |
|
91 |
+ border: 1px solid var(--border); |
|
92 |
+ box-shadow: inset 0 1px 0 var(--edge-light), var(--shadow-1); |
|
93 |
+} |
|
94 |
+ |
| 55 |
95 |
/* ── Top nav ─────────────────────────────── */ |
| 56 |
96 |
.topnav { |
| 57 |
97 |
position: sticky; top: 0; z-index: 50; |
| 58 |
98 |
background: var(--nav-bg); |
| 59 |
|
− backdrop-filter: blur(14px) saturate(1.4); |
| 60 |
|
− -webkit-backdrop-filter: blur(14px) saturate(1.4); |
|
99 |
+ backdrop-filter: blur(18px) saturate(1.6); |
|
100 |
+ -webkit-backdrop-filter: blur(18px) saturate(1.6); |
| 61 |
101 |
border-bottom: 1px solid var(--border); |
| 62 |
102 |
} |
| 63 |
|
−.topnav-inner { display: flex; align-items: center; gap: 16px; height: 58px; } |
|
103 |
+.topnav::after { |
|
104 |
+ content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; |
|
105 |
+ background: var(--gradient-hot); opacity: 0.35; |
|
106 |
+ mask: linear-gradient(90deg, transparent, black 20%, black 80%, transparent); |
|
107 |
+ -webkit-mask: linear-gradient(90deg, transparent, black 20%, black 80%, transparent); |
|
108 |
+} |
|
109 |
+.topnav-inner { display: flex; align-items: center; gap: 16px; height: 60px; } |
| 64 |
110 |
.brand { |
| 65 |
111 |
display: flex; align-items: center; gap: 10px; |
| 66 |
112 |
color: var(--text-bright); font-weight: 700; letter-spacing: -0.01em; |
| 67 |
113 |
} |
| 68 |
114 |
.brand:hover { text-decoration: none; color: var(--text-bright); } |
| 69 |
|
−.brand-mark { flex: none; filter: drop-shadow(0 2px 8px var(--accent-glow)); transition: transform 0.2s ease; } |
| 70 |
|
−.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); } |
|
115 |
+.brand-mark { flex: none; filter: drop-shadow(0 2px 10px var(--accent-glow)); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); } |
|
116 |
+.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.1); } |
| 71 |
117 |
.global-search { flex: 1; max-width: 440px; position: relative; } |
| 72 |
118 |
.global-search input, .repo-filters input, .search-page-form input { |
| 73 |
119 |
width: 100%; background: var(--surface); color: var(--text); |
| 75 |
121 |
padding: 8px 13px; font-size: 14px; outline: none; |
| 76 |
122 |
transition: border-color 0.15s ease, box-shadow 0.15s ease; |
| 77 |
123 |
} |
|
124 |
+.global-search input { padding-right: 74px; } |
| 78 |
125 |
.global-search input:focus, .repo-filters input:focus, .search-page-form input:focus { |
| 79 |
126 |
border-color: var(--accent); box-shadow: var(--ring); |
| 80 |
127 |
} |
|
128 |
+.kbd-hint { |
|
129 |
+ position: absolute; right: 7px; top: 50%; transform: translateY(-50%); |
|
130 |
+ display: inline-flex; align-items: center; gap: 3px; |
|
131 |
+ background: var(--surface-2); border: 1px solid var(--border); |
|
132 |
+ border-radius: 7px; padding: 2px 7px; cursor: pointer; |
|
133 |
+ color: var(--muted); font-family: var(--font-mono); font-size: 11px; |
|
134 |
+ transition: border-color 0.15s ease, color 0.15s ease; |
|
135 |
+} |
|
136 |
+.kbd-hint:hover { border-color: var(--accent); color: var(--accent); } |
| 81 |
137 |
.topnav-links { margin-left: auto; display: flex; align-items: center; gap: 12px; } |
| 82 |
138 |
.topnav-ext { color: var(--muted); font-size: 14px; font-weight: 500; } |
| 83 |
139 |
.topnav-ext:hover { color: var(--text); text-decoration: none; } |
| 84 |
140 |
.icon-btn { |
| 85 |
141 |
background: var(--surface); color: var(--muted); border: 1px solid var(--border); |
| 86 |
142 |
border-radius: var(--radius); padding: 8px 10px; cursor: pointer; line-height: 0; |
| 87 |
|
− transition: border-color 0.15s ease, color 0.15s ease, transform 0.12s ease; |
|
143 |
+ transition: border-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease; |
| 88 |
144 |
} |
| 89 |
|
−.icon-btn:hover { border-color: var(--border-strong); color: var(--text); } |
| 90 |
|
−.icon-btn:active { transform: scale(0.94); } |
|
145 |
+.icon-btn:hover { border-color: var(--border-strong); color: var(--text); box-shadow: 0 0 16px -6px var(--accent-glow); } |
|
146 |
+.icon-btn:active { transform: scale(0.92) rotate(-12deg); } |
| 91 |
147 |
html[data-theme='dark'] .icon-moon { display: none; } |
| 92 |
148 |
html[data-theme='light'] .icon-sun { display: none; } |
| 93 |
149 |
|
| 97 |
153 |
background: var(--surface); color: var(--text); |
| 98 |
154 |
border: 1px solid var(--border); border-radius: var(--radius); |
| 99 |
155 |
padding: 6px 14px; font-size: 14px; font-weight: 500; cursor: pointer; |
| 100 |
|
− box-shadow: var(--shadow-1); |
|
156 |
+ box-shadow: inset 0 1px 0 var(--edge-light), var(--shadow-1); |
| 101 |
157 |
transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease; |
| 102 |
158 |
} |
| 103 |
159 |
.btn:hover { |
| 104 |
160 |
border-color: var(--border-strong); background: var(--surface-2); |
| 105 |
161 |
text-decoration: none; color: var(--text); transform: translateY(-1px); |
|
162 |
+ box-shadow: inset 0 1px 0 var(--edge-light), 0 6px 20px -8px var(--accent-glow); |
| 106 |
163 |
} |
| 107 |
164 |
.btn:active { transform: translateY(0) scale(0.98); } |
| 108 |
165 |
.btn-primary { |
|
166 |
+ position: relative; overflow: hidden; |
| 109 |
167 |
background: var(--gradient-brand); border-color: transparent; color: #fff; |
| 110 |
|
− box-shadow: 0 4px 16px -4px var(--accent-glow); |
|
168 |
+ box-shadow: 0 4px 18px -4px var(--accent-glow); |
|
169 |
+} |
|
170 |
+.btn-primary::before { |
|
171 |
+ content: ''; position: absolute; inset: 0; |
|
172 |
+ background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); |
|
173 |
+ transform: translateX(-120%); |
|
174 |
+ transition: transform 0.55s ease; |
| 111 |
175 |
} |
| 112 |
|
−.btn-primary:hover { background: var(--gradient-brand); color: #fff; filter: brightness(1.08); } |
|
176 |
+.btn-primary:hover { background: var(--gradient-brand); color: #fff; filter: brightness(1.06); } |
|
177 |
+.btn-primary:hover::before { transform: translateX(120%); } |
| 113 |
178 |
.btn-sm { padding: 4px 11px; font-size: 13px; } |
| 114 |
|
−.copy-btn.copied { border-color: var(--accent-2); color: var(--accent-2); } |
|
179 |
+.copy-btn.copied { border-color: var(--accent-2); color: var(--accent-2); box-shadow: 0 0 16px -6px var(--accent-2); } |
| 115 |
180 |
|
| 116 |
181 |
.chip { |
| 117 |
182 |
display: inline-flex; align-items: center; |
| 118 |
183 |
border-radius: 999px; padding: 2px 11px; font-size: 12px; font-weight: 500; |
| 119 |
184 |
background: var(--chip-bg); color: var(--accent); border: 1px solid transparent; |
| 120 |
|
− transition: border-color 0.15s ease, transform 0.12s ease; |
|
185 |
+ transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease; |
| 121 |
186 |
} |
| 122 |
|
−.chip-topic:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); } |
|
187 |
+.chip-topic:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 14px -6px var(--accent-glow); } |
| 123 |
188 |
.chip-public { color: var(--muted); background: transparent; border-color: var(--border-strong); } |
| 124 |
189 |
.chip-license { color: var(--accent-2); background: var(--accent-2-soft); } |
| 125 |
190 |
.chip-default { color: var(--accent-2); background: var(--accent-2-soft); } |
| 134 |
199 |
.hero { |
| 135 |
200 |
position: relative; |
| 136 |
201 |
display: flex; align-items: center; justify-content: space-between; |
| 137 |
|
− flex-wrap: wrap; gap: 22px; padding: 40px 0 30px; |
| 138 |
|
− border-bottom: 1px solid var(--border); margin-bottom: 30px; |
|
202 |
+ flex-wrap: wrap; gap: 24px; padding: 52px 0 38px; |
|
203 |
+ border-bottom: 1px solid var(--border); margin-bottom: 32px; |
| 139 |
204 |
} |
| 140 |
205 |
.hero::after { |
| 141 |
206 |
content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; |
| 142 |
|
− background: var(--gradient-brand); opacity: 0.5; |
| 143 |
|
− mask: linear-gradient(90deg, black, transparent 70%); |
| 144 |
|
− -webkit-mask: linear-gradient(90deg, black, transparent 70%); |
|
207 |
+ background: var(--gradient-hot); opacity: 0.65; |
|
208 |
+ mask: linear-gradient(90deg, black, transparent 75%); |
|
209 |
+ -webkit-mask: linear-gradient(90deg, black, transparent 75%); |
| 145 |
210 |
} |
| 146 |
|
−.hero-id { display: flex; align-items: center; gap: 20px; } |
|
211 |
+.hero-id { display: flex; align-items: center; gap: 22px; } |
| 147 |
212 |
.hero-avatar { |
| 148 |
|
− width: 72px; height: 72px; border-radius: 20px; |
| 149 |
|
− background: var(--gradient-brand); |
| 150 |
|
− color: #fff; font-weight: 700; font-size: 22px; letter-spacing: 0.02em; |
|
213 |
+ position: relative; |
|
214 |
+ width: 84px; height: 84px; border-radius: 24px; |
|
215 |
+ background: var(--gradient-hot); background-size: 200% 200%; |
|
216 |
+ animation: gradient-pan 9s ease infinite; |
|
217 |
+ color: #fff; font-weight: 700; font-size: 25px; letter-spacing: 0.02em; |
| 151 |
218 |
display: flex; align-items: center; justify-content: center; flex: none; |
| 152 |
|
− box-shadow: 0 10px 30px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25); |
|
219 |
+ box-shadow: 0 14px 44px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3); |
|
220 |
+} |
|
221 |
+.hero-avatar::before { |
|
222 |
+ content: ''; position: absolute; inset: -5px; border-radius: 28px; z-index: -1; |
|
223 |
+ background: conic-gradient(from var(--ring-angle, 0deg), var(--accent), var(--accent-3), var(--accent-2), var(--accent)); |
|
224 |
+ opacity: 0.55; filter: blur(6px); |
|
225 |
+ animation: ring-spin 7s linear infinite; |
|
226 |
+} |
|
227 |
+@property --ring-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; } |
|
228 |
+@keyframes ring-spin { to { --ring-angle: 360deg; } } |
|
229 |
+@keyframes gradient-pan { |
|
230 |
+ 0%, 100% { background-position: 0% 50%; } |
|
231 |
+ 50% { background-position: 100% 50%; } |
| 153 |
232 |
} |
| 154 |
233 |
.hero-name { |
| 155 |
|
− margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; |
| 156 |
|
− background: var(--gradient-text); |
|
234 |
+ margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; |
|
235 |
+ background: var(--gradient-text); background-size: 180% 100%; |
| 157 |
236 |
-webkit-background-clip: text; background-clip: text; |
| 158 |
237 |
-webkit-text-fill-color: transparent; color: transparent; |
|
238 |
+ animation: gradient-pan 8s ease infinite; |
| 159 |
239 |
} |
| 160 |
|
−.hero-tagline { margin: 4px 0 0; color: var(--muted); } |
|
240 |
+.hero-tagline { margin: 6px 0 0; color: var(--muted); font-size: 15px; } |
| 161 |
241 |
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; } |
| 162 |
242 |
.badge-stat { |
| 163 |
|
− background: var(--surface); border: 1px solid var(--border); |
| 164 |
|
− border-radius: var(--radius); padding: 10px 16px; font-size: 14px; color: var(--muted); |
| 165 |
|
− box-shadow: var(--shadow-1); font-variant-numeric: tabular-nums; |
|
243 |
+ border-radius: var(--radius); |
|
244 |
+ padding: 12px 18px; font-size: 13px; color: var(--muted); |
|
245 |
+ font-variant-numeric: tabular-nums; |
|
246 |
+ display: flex; flex-direction: column; gap: 1px; min-width: 96px; |
|
247 |
+ transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; |
|
248 |
+} |
|
249 |
+.badge-stat:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: inset 0 1px 0 var(--edge-light), var(--shadow-card); } |
|
250 |
+.badge-stat strong { |
|
251 |
+ font-size: 22px; font-weight: 700; letter-spacing: -0.02em; |
|
252 |
+ background: var(--gradient-brand); |
|
253 |
+ -webkit-background-clip: text; background-clip: text; |
|
254 |
+ -webkit-text-fill-color: transparent; color: transparent; |
| 166 |
255 |
} |
| 167 |
|
−.badge-stat strong { color: var(--text-bright); margin-right: 5px; font-size: 16px; } |
| 168 |
256 |
|
| 169 |
257 |
.section-title { |
| 170 |
258 |
font-size: 17px; font-weight: 600; letter-spacing: -0.01em; |
| 171 |
|
− margin: 0 0 14px; display: flex; align-items: center; gap: 8px; |
|
259 |
+ margin: 0 0 14px; display: flex; align-items: center; gap: 10px; |
|
260 |
+} |
|
261 |
+.section-title::before { |
|
262 |
+ content: ''; width: 4px; height: 17px; border-radius: 3px; flex: none; |
|
263 |
+ background: var(--gradient-brand); box-shadow: 0 0 12px -2px var(--accent-glow); |
| 172 |
264 |
} |
| 173 |
265 |
|
| 174 |
266 |
/* ── Repo cards / home ───────────────────── */ |
| 175 |
267 |
.pinned-grid { |
| 176 |
268 |
display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); |
| 177 |
|
− gap: 14px; margin-bottom: 34px; |
|
269 |
+ gap: 14px; margin-bottom: 36px; |
| 178 |
270 |
} |
| 179 |
271 |
.home-columns { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; } |
| 180 |
272 |
.repo-list { display: flex; flex-direction: column; gap: 12px; } |
| 181 |
273 |
.repo-card { |
| 182 |
274 |
position: relative; |
| 183 |
|
− background: var(--surface); border: 1px solid var(--border); |
| 184 |
|
− border-radius: var(--radius-lg); padding: 17px 19px; |
| 185 |
|
− box-shadow: var(--shadow-1); |
|
275 |
+ border-radius: var(--radius-lg); padding: 18px 20px; |
| 186 |
276 |
transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; |
| 187 |
277 |
overflow: hidden; |
| 188 |
278 |
} |
|
279 |
+/* mouse spotlight — --mx/--my set by app.js */ |
|
280 |
+.repo-card::after { |
|
281 |
+ content: ''; position: absolute; inset: 0; pointer-events: none; |
|
282 |
+ background: radial-gradient(340px circle at var(--mx, 50%) var(--my, -40%), var(--accent-soft), transparent 65%); |
|
283 |
+ opacity: 0; transition: opacity 0.25s ease; |
|
284 |
+} |
|
285 |
+.repo-card:hover::after { opacity: 1; } |
| 189 |
286 |
.repo-card::before { |
| 190 |
287 |
content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; |
| 191 |
|
− background: var(--gradient-brand); opacity: 0; |
|
288 |
+ background: var(--gradient-hot); opacity: 0; |
| 192 |
289 |
transition: opacity 0.18s ease; |
| 193 |
290 |
} |
| 194 |
291 |
.repo-card:hover { |
| 195 |
292 |
border-color: var(--border-strong); transform: translateY(-2px); |
| 196 |
|
− box-shadow: var(--shadow-card); |
|
293 |
+ box-shadow: inset 0 1px 0 var(--edge-light), var(--shadow-card); |
| 197 |
294 |
} |
| 198 |
295 |
.repo-card:hover::before { opacity: 1; } |
| 199 |
296 |
.repo-card-name { margin: 0 0 4px; font-size: 16px; display: flex; align-items: center; gap: 8px; } |
| 200 |
297 |
.repo-card-name a { color: var(--text-bright); font-weight: 600; } |
| 201 |
298 |
.repo-card-name a:hover { color: var(--accent); text-decoration: none; } |
|
299 |
+.repo-card-name a::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */ |
|
300 |
+.repo-card .chip-topic, .repo-card .repo-card-meta { position: relative; z-index: 1; } |
| 202 |
301 |
.repo-card-desc { margin: 0 0 10px; color: var(--muted); font-size: 14px; } |
| 203 |
302 |
.repo-card .chip-row { margin-bottom: 10px; } |
| 204 |
303 |
.repo-card-meta { display: flex; gap: 16px; color: var(--muted); font-size: 13px; flex-wrap: wrap; } |
| 205 |
304 |
.lang-dot { |
| 206 |
305 |
width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; |
| 207 |
|
− box-shadow: 0 0 6px 0 currentColor; opacity: 0.95; |
|
306 |
+ box-shadow: 0 0 8px 0 currentColor; opacity: 0.95; |
| 208 |
307 |
} |
| 209 |
308 |
.lang-dot-label { display: inline-flex; align-items: center; gap: 6px; } |
| 210 |
309 |
|
| 227 |
326 |
} |
| 228 |
327 |
.activity-feed li:not(:last-child)::before { |
| 229 |
328 |
content: ''; position: absolute; left: 7px; top: 22px; bottom: -8px; |
| 230 |
|
− width: 2px; background: var(--border); border-radius: 1px; |
|
329 |
+ width: 2px; border-radius: 1px; |
|
330 |
+ background: linear-gradient(180deg, var(--accent-2-soft), var(--border)); |
| 231 |
331 |
} |
| 232 |
332 |
.activity-dot { |
| 233 |
333 |
width: 8px; height: 8px; border-radius: 50%; |
| 234 |
334 |
background: var(--accent-2); flex: none; position: relative; top: -1px; |
| 235 |
|
− box-shadow: 0 0 8px 0 var(--accent-2); |
|
335 |
+ box-shadow: 0 0 10px 1px var(--accent-2); |
|
336 |
+} |
|
337 |
+.activity-feed li:first-child .activity-dot { animation: pulse-dot 2.4s ease infinite; } |
|
338 |
+@keyframes pulse-dot { |
|
339 |
+ 0%, 100% { box-shadow: 0 0 8px 0 var(--accent-2); } |
|
340 |
+ 50% { box-shadow: 0 0 14px 3px var(--accent-2); } |
| 236 |
341 |
} |
| 237 |
342 |
.ref-inline { font-size: 12px; color: var(--muted); } |
| 238 |
343 |
|
| 239 |
344 |
/* ── Heatmap ─────────────────────────────── */ |
| 240 |
|
−.heatmap-section { margin-top: 44px; } |
|
345 |
+.heatmap-section { margin-top: 46px; } |
| 241 |
346 |
.heatmap-scroll { overflow-x: auto; padding-bottom: 6px; } |
| 242 |
347 |
.heatmap-label { fill: var(--muted); font-size: 9px; font-family: var(--font-ui); } |
| 243 |
|
−.heatmap-cell { transition: transform 0.1s ease; transform-origin: center; transform-box: fill-box; } |
| 244 |
|
−.heatmap-cell:hover { transform: scale(1.35); stroke: var(--accent); stroke-width: 1; } |
|
348 |
+.heatmap-cell { transition: transform 0.1s ease; transform-origin: center; transform-box: fill-box; rx: 2.5px; } |
|
349 |
+.heatmap-cell:hover { transform: scale(1.4); stroke: var(--accent); stroke-width: 1; } |
| 245 |
350 |
.heatmap-cell[data-level='0'] { fill: var(--heat-0); } |
| 246 |
351 |
.heatmap-cell[data-level='1'] { fill: var(--heat-1); } |
| 247 |
352 |
.heatmap-cell[data-level='2'] { fill: var(--heat-2); } |
| 248 |
353 |
.heatmap-cell[data-level='3'] { fill: var(--heat-3); } |
| 249 |
|
−.heatmap-cell[data-level='4'] { fill: var(--heat-4); } |
|
354 |
+.heatmap-cell[data-level='4'] { fill: var(--heat-4); filter: drop-shadow(0 0 3px var(--heat-glow)); } |
| 250 |
355 |
.heatmap-legend { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; margin-top: 8px; } |
| 251 |
|
−.heatmap-cell-demo { width: 11px; height: 11px; border-radius: 2px; display: inline-block; } |
|
356 |
+.heatmap-cell-demo { width: 11px; height: 11px; border-radius: 3px; display: inline-block; } |
| 252 |
357 |
.heatmap-cell-demo[data-level='0'] { background: var(--heat-0); } |
| 253 |
358 |
.heatmap-cell-demo[data-level='1'] { background: var(--heat-1); } |
| 254 |
359 |
.heatmap-cell-demo[data-level='2'] { background: var(--heat-2); } |
| 255 |
360 |
.heatmap-cell-demo[data-level='3'] { background: var(--heat-3); } |
| 256 |
|
−.heatmap-cell-demo[data-level='4'] { background: var(--heat-4); } |
|
361 |
+.heatmap-cell-demo[data-level='4'] { background: var(--heat-4); box-shadow: 0 0 5px var(--heat-glow); } |
| 257 |
362 |
|
| 258 |
363 |
/* ── Repo header ─────────────────────────── */ |
| 259 |
|
−.repo-header { padding-bottom: 0; margin-bottom: 22px; border-bottom: 1px solid var(--border); } |
|
364 |
+.repo-header { padding-bottom: 0; margin-bottom: 22px; border-bottom: 1px solid var(--border); position: relative; } |
|
365 |
+.repo-header::after { |
|
366 |
+ content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; |
|
367 |
+ background: var(--gradient-hot); opacity: 0.4; |
|
368 |
+ mask: linear-gradient(90deg, black, transparent 65%); |
|
369 |
+ -webkit-mask: linear-gradient(90deg, black, transparent 65%); |
|
370 |
+} |
| 260 |
371 |
.repo-title { |
| 261 |
|
− font-size: 21px; margin: 6px 0 6px; display: flex; align-items: center; |
|
372 |
+ font-size: 22px; margin: 6px 0 6px; display: flex; align-items: center; |
| 262 |
373 |
gap: 8px; flex-wrap: wrap; font-weight: 500; letter-spacing: -0.01em; |
| 263 |
374 |
} |
| 264 |
375 |
.repo-owner { color: var(--muted); } |
| 270 |
381 |
.repo-meta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 10px; } |
| 271 |
382 |
.repo-homepage { font-size: 14px; font-weight: 500; } |
| 272 |
383 |
.lang-bar { |
| 273 |
|
− display: flex; height: 8px; border-radius: 4px; overflow: hidden; |
|
384 |
+ display: flex; height: 9px; border-radius: 5px; overflow: hidden; |
| 274 |
385 |
background: var(--surface-2); margin: 8px 0; gap: 1px; |
|
386 |
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25); |
| 275 |
387 |
} |
| 276 |
388 |
.lang-bar-seg { display: block; height: 100%; min-width: 2px; transition: filter 0.15s ease; } |
| 277 |
|
−.lang-bar-seg:hover { filter: brightness(1.25); } |
|
389 |
+.lang-bar-seg:hover { filter: brightness(1.3) saturate(1.2); } |
| 278 |
390 |
.lang-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; margin-bottom: 12px; } |
| 279 |
391 |
.repo-tabs { display: flex; gap: 2px; align-items: center; margin-top: 10px; overflow-x: auto; } |
| 280 |
392 |
.repo-tab { |
| 287 |
399 |
.repo-tab::after { |
| 288 |
400 |
content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; |
| 289 |
401 |
background: var(--gradient-brand); border-radius: 2px 2px 0 0; |
|
402 |
+ box-shadow: 0 -1px 12px -2px var(--accent-glow); |
| 290 |
403 |
opacity: 0; transform: scaleX(0.5); |
| 291 |
404 |
transition: opacity 0.18s ease, transform 0.18s ease; |
| 292 |
405 |
} |
| 299 |
412 |
.repo-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; } |
| 300 |
413 |
.clone-box { |
| 301 |
414 |
display: flex; gap: 6px; align-items: center; flex-wrap: wrap; |
| 302 |
|
− background: var(--surface); border: 1px solid var(--border); |
| 303 |
415 |
border-radius: var(--radius-lg); padding: 5px; |
| 304 |
|
− box-shadow: var(--shadow-1); |
| 305 |
416 |
} |
| 306 |
417 |
.clone-url { |
| 307 |
418 |
background: transparent; border: none; color: var(--muted); |
| 317 |
428 |
|
| 318 |
429 |
/* ── File table ──────────────────────────── */ |
| 319 |
430 |
.file-table { |
| 320 |
|
− width: 100%; border-collapse: collapse; border: 1px solid var(--border); |
| 321 |
|
− border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); |
| 322 |
|
− font-size: 14px; margin-bottom: 26px; box-shadow: var(--shadow-1); |
|
431 |
+ width: 100%; border-collapse: collapse; |
|
432 |
+ border-radius: var(--radius-lg); overflow: hidden; |
|
433 |
+ font-size: 14px; margin-bottom: 26px; |
| 323 |
434 |
} |
| 324 |
435 |
.file-table td { padding: 9px 14px; border-top: 1px solid var(--border); } |
| 325 |
436 |
.file-table tr:first-child td { border-top: 0; } |
| 326 |
|
−.file-row { transition: background 0.12s ease; } |
| 327 |
|
−.file-row:hover { background: var(--surface-2); } |
|
437 |
+.file-row { transition: background 0.12s ease, box-shadow 0.12s ease; } |
|
438 |
+.file-row:hover { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); } |
| 328 |
439 |
.file-name { white-space: nowrap; width: 32%; } |
| 329 |
440 |
.file-name a { color: var(--text); } |
| 330 |
441 |
.file-name a:hover { color: var(--accent); text-decoration: none; } |
| 331 |
442 |
.file-icon { vertical-align: -3px; margin-right: 8px; color: var(--muted); } |
| 332 |
|
−.icon-dir { color: var(--accent); } |
|
443 |
+.icon-dir { color: var(--accent); filter: drop-shadow(0 0 6px var(--accent-glow)); } |
| 333 |
444 |
.file-commit { overflow: hidden; text-overflow: ellipsis; max-width: 400px; white-space: nowrap; } |
| 334 |
445 |
.file-commit a:hover { color: var(--accent); } |
| 335 |
446 |
.file-date { text-align: right; white-space: nowrap; font-size: 13px; font-variant-numeric: tabular-nums; } |
| 336 |
447 |
|
| 337 |
448 |
/* ── README / markdown section ───────────── */ |
| 338 |
449 |
.readme-section { |
| 339 |
|
− border: 1px solid var(--border); border-radius: var(--radius-lg); |
| 340 |
|
− background: var(--surface); margin-bottom: 32px; box-shadow: var(--shadow-1); |
|
450 |
+ border-radius: var(--radius-lg); |
|
451 |
+ margin-bottom: 32px; |
| 341 |
452 |
} |
| 342 |
453 |
.readme-header { |
| 343 |
454 |
display: flex; align-items: center; gap: 8px; padding: 11px 20px; |
| 344 |
455 |
border-bottom: 1px solid var(--border); color: var(--muted); font-size: 13px; |
| 345 |
|
− position: sticky; top: 58px; background: var(--surface); z-index: 10; |
|
456 |
+ position: sticky; top: 60px; background: var(--surface); z-index: 10; |
| 346 |
457 |
border-radius: var(--radius-lg) var(--radius-lg) 0 0; |
| 347 |
458 |
} |
| 348 |
|
−.readme-section .markdown-body { padding: 26px 34px 34px; } |
|
459 |
+.readme-section .markdown-body { padding: 28px 36px 36px; } |
| 349 |
460 |
.empty-repo { text-align: center; padding: 52px 20px; } |
| 350 |
461 |
.notice { |
| 351 |
462 |
background: var(--accent-soft); border: 1px solid var(--accent); |
| 354 |
465 |
|
| 355 |
466 |
/* ── Blob view ───────────────────────────── */ |
| 356 |
467 |
.blob-card { |
| 357 |
|
− border: 1px solid var(--border); border-radius: var(--radius-lg); |
| 358 |
|
− background: var(--surface); overflow: hidden; box-shadow: var(--shadow-1); |
|
468 |
+ border-radius: var(--radius-lg); |
|
469 |
+ overflow: hidden; |
| 359 |
470 |
} |
| 360 |
471 |
.blob-header { |
| 361 |
472 |
display: flex; flex-wrap: wrap; gap: 10px; align-items: center; |
| 362 |
473 |
padding: 10px 16px; border-bottom: 1px solid var(--border); |
| 363 |
|
− position: sticky; top: 58px; background: var(--surface); z-index: 10; |
|
474 |
+ position: sticky; top: 60px; background: var(--surface); z-index: 10; |
| 364 |
475 |
} |
| 365 |
476 |
.blob-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; } |
| 366 |
477 |
.blob-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; } |
| 367 |
478 |
.blob-image { text-align: center; padding: 32px; background: var(--surface-2); } |
| 368 |
479 |
.blob-image img { max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-2); } |
| 369 |
480 |
.blob-binary { text-align: center; padding: 52px 20px; color: var(--muted); } |
| 370 |
|
−.blob-markdown { padding: 26px 34px 34px; } |
|
481 |
+.blob-markdown { padding: 28px 36px 36px; } |
| 371 |
482 |
|
| 372 |
483 |
/* PDF viewer */ |
| 373 |
484 |
.pdf-viewer { background: var(--surface-2); } |
| 402 |
513 |
/* ── Commits ─────────────────────────────── */ |
| 403 |
514 |
.commit-list { |
| 404 |
515 |
list-style: none; margin: 0 0 20px; padding: 0; |
| 405 |
|
− border: 1px solid var(--border); border-radius: var(--radius-lg); |
| 406 |
|
− background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; |
|
516 |
+ border-radius: var(--radius-lg); overflow: hidden; |
| 407 |
517 |
} |
| 408 |
518 |
.commit-row { |
| 409 |
519 |
display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; |
| 410 |
|
− border-top: 1px solid var(--border); transition: background 0.12s ease; |
|
520 |
+ border-top: 1px solid var(--border); transition: background 0.12s ease, box-shadow 0.12s ease; |
| 411 |
521 |
} |
| 412 |
|
−.commit-row:hover { background: var(--surface-2); } |
|
522 |
+.commit-row:hover { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); } |
| 413 |
523 |
.commit-row:first-child { border-top: 0; } |
| 414 |
524 |
.commit-avatar { |
| 415 |
525 |
flex: none; border-radius: 8px; overflow: hidden; background: var(--surface-2); |
| 430 |
540 |
font-family: var(--font-mono); font-size: 12px; background: var(--surface-2); |
| 431 |
541 |
color: var(--accent); border: 1px solid var(--border); border-radius: 7px; |
| 432 |
542 |
padding: 3px 9px; cursor: pointer; flex: none; |
| 433 |
|
− transition: border-color 0.15s ease, transform 0.12s ease; |
|
543 |
+ transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease; |
| 434 |
544 |
} |
| 435 |
|
−.sha-chip:hover { border-color: var(--accent); transform: translateY(-1px); } |
|
545 |
+.sha-chip:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 14px -6px var(--accent-glow); } |
| 436 |
546 |
.pagination { display: flex; gap: 10px; justify-content: center; margin: 22px 0; } |
| 437 |
547 |
|
| 438 |
548 |
/* ── Commit detail / diffs ───────────────── */ |
| 439 |
549 |
.commit-detail-header { |
| 440 |
|
− border: 1px solid var(--border); border-radius: var(--radius-lg); |
| 441 |
|
− background: var(--surface); padding: 18px 22px; margin-bottom: 18px; |
| 442 |
|
− box-shadow: var(--shadow-1); |
|
550 |
+ border-radius: var(--radius-lg); |
|
551 |
+ padding: 18px 22px; margin-bottom: 18px; |
| 443 |
552 |
} |
| 444 |
553 |
.commit-detail-subject { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; } |
| 445 |
554 |
.commit-detail-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; } |
| 448 |
557 |
.diff-del { color: var(--del-text); font-weight: 600; font-variant-numeric: tabular-nums; } |
| 449 |
558 |
|
| 450 |
559 |
.diff-file { |
| 451 |
|
− border: 1px solid var(--border); border-radius: var(--radius-lg); |
| 452 |
|
− background: var(--surface); margin-bottom: 16px; overflow: hidden; |
| 453 |
|
− box-shadow: var(--shadow-1); |
|
560 |
+ border-radius: var(--radius-lg); |
|
561 |
+ margin-bottom: 16px; overflow: hidden; |
| 454 |
562 |
} |
| 455 |
563 |
.diff-file-header { |
| 456 |
564 |
display: flex; gap: 10px; align-items: center; padding: 10px 14px; |
| 457 |
565 |
cursor: pointer; background: var(--surface-2); font-size: 13px; list-style: none; |
| 458 |
|
− position: sticky; top: 58px; z-index: 5; |
|
566 |
+ position: sticky; top: 60px; z-index: 5; |
| 459 |
567 |
transition: background 0.12s ease; |
| 460 |
568 |
} |
| 461 |
569 |
.diff-file-header:hover { background: var(--surface-3); } |
| 515 |
623 |
|
| 516 |
624 |
/* ── Branch/tag tables ───────────────────── */ |
| 517 |
625 |
.ref-table { |
| 518 |
|
− width: 100%; border-collapse: collapse; background: var(--surface); |
| 519 |
|
− border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; |
| 520 |
|
− font-size: 14px; box-shadow: var(--shadow-1); |
|
626 |
+ width: 100%; border-collapse: collapse; |
|
627 |
+ border-radius: var(--radius-lg); overflow: hidden; |
|
628 |
+ font-size: 14px; |
| 521 |
629 |
} |
| 522 |
630 |
.ref-table th { text-align: left; padding: 11px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border-bottom: 1px solid var(--border); } |
| 523 |
631 |
.ref-table td { padding: 11px 14px; border-top: 1px solid var(--border); } |
| 531 |
639 |
.release-list { display: flex; flex-direction: column; gap: 18px; } |
| 532 |
640 |
.release-card { |
| 533 |
641 |
position: relative; |
| 534 |
|
− background: var(--surface); border: 1px solid var(--border); |
| 535 |
642 |
border-radius: var(--radius-lg); padding: 18px 22px; |
| 536 |
|
− box-shadow: var(--shadow-1); |
| 537 |
643 |
transition: border-color 0.18s ease, box-shadow 0.18s ease; |
| 538 |
644 |
} |
| 539 |
|
−.release-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); } |
|
645 |
+.release-card:hover { border-color: var(--border-strong); box-shadow: inset 0 1px 0 var(--edge-light), var(--shadow-card); } |
| 540 |
646 |
.release-header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } |
| 541 |
647 |
.release-tag { margin: 0; font-size: 17px; font-family: var(--font-mono); } |
| 542 |
648 |
.release-subject { color: var(--muted); } |
| 545 |
651 |
display: flex; align-items: center; gap: 10px; |
| 546 |
652 |
background: var(--surface-2); border: 1px solid var(--border); |
| 547 |
653 |
border-radius: var(--radius); padding: 9px 14px; font-size: 14px; |
| 548 |
|
− transition: border-color 0.15s ease; |
|
654 |
+ transition: border-color 0.15s ease, box-shadow 0.15s ease; |
| 549 |
655 |
} |
| 550 |
|
−.release-assets li:hover { border-color: var(--accent); } |
|
656 |
+.release-assets li:hover { border-color: var(--accent); box-shadow: 0 4px 18px -8px var(--accent-glow); } |
| 551 |
657 |
.release-assets li svg { color: var(--accent-2); flex: none; } |
| 552 |
658 |
|
| 553 |
659 |
/* ── Search page ─────────────────────────── */ |
| 554 |
660 |
.search-page-form { display: flex; gap: 8px; margin-bottom: 28px; max-width: 560px; } |
| 555 |
661 |
.search-results { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 14px; } |
| 556 |
662 |
.search-results li { |
| 557 |
|
− background: var(--surface); border: 1px solid var(--border); |
| 558 |
|
− border-radius: var(--radius-lg); padding: 15px 19px; box-shadow: var(--shadow-1); |
| 559 |
|
− transition: border-color 0.15s ease, transform 0.15s ease; |
|
663 |
+ border-radius: var(--radius-lg); padding: 15px 19px; |
|
664 |
+ transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; |
| 560 |
665 |
} |
| 561 |
|
−.search-results li:hover { border-color: var(--border-strong); transform: translateY(-1px); } |
|
666 |
+.search-results li:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--edge-light), var(--shadow-card); } |
| 562 |
667 |
.search-hit-name { font-weight: 600; font-size: 15px; } |
| 563 |
668 |
.search-snippet { color: var(--muted); font-size: 13px; margin: 6px 0 0; } |
| 564 |
669 |
|
|
670 |
+/* ── ⌘K command palette ──────────────────── */ |
|
671 |
+.cmdk[hidden] { display: none; } |
|
672 |
+.cmdk { position: fixed; inset: 0; z-index: 90; } |
|
673 |
+.cmdk-backdrop { |
|
674 |
+ position: absolute; inset: 0; background: var(--backdrop); |
|
675 |
+ backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); |
|
676 |
+ animation: fade-in 0.16s ease both; |
|
677 |
+} |
|
678 |
+.cmdk-panel { |
|
679 |
+ position: relative; margin: 12vh auto 0; width: min(620px, calc(100vw - 32px)); |
|
680 |
+ background: var(--surface-grad); border: 1px solid var(--border-strong); |
|
681 |
+ border-radius: var(--radius-lg); overflow: hidden; |
|
682 |
+ box-shadow: inset 0 1px 0 var(--edge-light), var(--shadow-pop), 0 0 80px -30px var(--accent-glow); |
|
683 |
+ animation: pop-in 0.18s cubic-bezier(0.2, 1.2, 0.4, 1) both; |
|
684 |
+} |
|
685 |
+@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } |
|
686 |
+@keyframes pop-in { |
|
687 |
+ from { opacity: 0; transform: translateY(10px) scale(0.985); } |
|
688 |
+ to { opacity: 1; transform: none; } |
|
689 |
+} |
|
690 |
+.cmdk-input-row { |
|
691 |
+ display: flex; align-items: center; gap: 10px; padding: 14px 16px; |
|
692 |
+ border-bottom: 1px solid var(--border); |
|
693 |
+} |
|
694 |
+.cmdk-input-row svg { color: var(--muted); flex: none; } |
|
695 |
+.cmdk-input-row input { |
|
696 |
+ flex: 1; background: transparent; border: 0; outline: none; |
|
697 |
+ color: var(--text-bright); font-size: 16px; font-family: var(--font-ui); |
|
698 |
+} |
|
699 |
+.cmdk-input-row input::placeholder { color: var(--faint); } |
|
700 |
+.cmdk-input-row kbd { |
|
701 |
+ background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; |
|
702 |
+ padding: 2px 7px; font-size: 11px; color: var(--muted); |
|
703 |
+} |
|
704 |
+.cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: 46vh; overflow-y: auto; } |
|
705 |
+.cmdk-item { |
|
706 |
+ display: flex; align-items: center; gap: 12px; padding: 10px 12px; |
|
707 |
+ border-radius: 10px; cursor: pointer; font-size: 14px; |
|
708 |
+ color: var(--text); position: relative; |
|
709 |
+} |
|
710 |
+.cmdk-item:hover, .cmdk-item[aria-selected='true'] { background: var(--accent-soft); } |
|
711 |
+.cmdk-item[aria-selected='true']::before { |
|
712 |
+ content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; |
|
713 |
+ border-radius: 2px; background: var(--gradient-brand); |
|
714 |
+ box-shadow: 0 0 10px -1px var(--accent-glow); |
|
715 |
+} |
|
716 |
+.cmdk-item-name { font-weight: 600; color: var(--text-bright); white-space: nowrap; } |
|
717 |
+.cmdk-item-desc { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
|
718 |
+.cmdk-item .lang-dot { width: 8px; height: 8px; } |
|
719 |
+.cmdk-item-hint { margin-left: auto; color: var(--faint); font-size: 12px; font-family: var(--font-mono); flex: none; } |
|
720 |
+.cmdk-empty { padding: 26px 12px; text-align: center; color: var(--muted); font-size: 14px; } |
|
721 |
+.cmdk-footer { |
|
722 |
+ display: flex; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--border); |
|
723 |
+ color: var(--faint); font-size: 12px; |
|
724 |
+} |
|
725 |
+.cmdk-footer kbd { |
|
726 |
+ background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; |
|
727 |
+ padding: 0 5px; font-size: 11px; margin-right: 4px; |
|
728 |
+} |
|
729 |
+body.cmdk-open { overflow: hidden; } |
|
730 |
+ |
| 565 |
731 |
/* ── Error pages ─────────────────────────── */ |
| 566 |
732 |
.error-page { text-align: center; padding: 80px 20px; } |
| 567 |
733 |
.error-code { |
| 568 |
|
− font-size: 104px; font-weight: 700; font-family: var(--font-mono); line-height: 1; |
| 569 |
|
− background: var(--gradient-brand); |
|
734 |
+ font-size: 110px; font-weight: 700; font-family: var(--font-mono); line-height: 1; |
|
735 |
+ background: var(--gradient-hot); background-size: 200% 200%; |
|
736 |
+ animation: gradient-pan 6s ease infinite; |
| 570 |
737 |
-webkit-background-clip: text; background-clip: text; |
| 571 |
738 |
-webkit-text-fill-color: transparent; color: transparent; |
|
739 |
+ filter: drop-shadow(0 6px 30px var(--accent-glow)); |
| 572 |
740 |
} |
| 573 |
741 |
.error-message { font-size: 18px; color: var(--muted); margin: 16px 0 8px; } |
| 574 |
|
−.error-art { display: inline-block; text-align: left; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; font-size: 13px; margin: 16px 0 24px; } |
|
742 |
+.error-art { display: inline-block; text-align: left; color: var(--muted); border-radius: var(--radius); padding: 14px 18px; font-size: 13px; margin: 16px 0 24px; } |
| 575 |
743 |
|
| 576 |
744 |
/* ── Mermaid blocks ──────────────────────── */ |
| 577 |
745 |
.mermaid-block { margin: 16px 0; } |
| 581 |
749 |
|
| 582 |
750 |
/* ── Footer ──────────────────────────────── */ |
| 583 |
751 |
.footer { |
|
752 |
+ position: relative; |
| 584 |
753 |
border-top: 1px solid var(--border); color: var(--muted); |
| 585 |
|
− padding: 22px 0; font-size: 13px; text-align: center; |
|
754 |
+ padding: 26px 0; font-size: 13px; |
|
755 |
+} |
|
756 |
+.footer::before { |
|
757 |
+ content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; |
|
758 |
+ background: var(--gradient-hot); opacity: 0.3; |
|
759 |
+ mask: linear-gradient(90deg, transparent, black 30%, black 70%, transparent); |
|
760 |
+ -webkit-mask: linear-gradient(90deg, transparent, black 30%, black 70%, transparent); |
| 586 |
761 |
} |
|
762 |
+.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; } |
|
763 |
+.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); } |
|
764 |
+.footer-links { display: flex; gap: 16px; } |
|
765 |
+.footer a { color: var(--muted); } |
|
766 |
+.footer a:hover { color: var(--accent); } |
| 587 |
767 |
|
| 588 |
768 |
/* ── Page entrance ───────────────────────── */ |
| 589 |
769 |
@keyframes rise-in { |
| 590 |
|
− from { opacity: 0; transform: translateY(6px); } |
|
770 |
+ from { opacity: 0; transform: translateY(8px); } |
| 591 |
771 |
to { opacity: 1; transform: none; } |
| 592 |
772 |
} |
| 593 |
|
−main.container > * { animation: rise-in 0.35s ease both; } |
| 594 |
|
−main.container > *:nth-child(2) { animation-delay: 0.04s; } |
| 595 |
|
−main.container > *:nth-child(3) { animation-delay: 0.08s; } |
|
773 |
+main.container > * { animation: rise-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) both; } |
|
774 |
+main.container > *:nth-child(2) { animation-delay: 0.05s; } |
|
775 |
+main.container > *:nth-child(3) { animation-delay: 0.1s; } |
|
776 |
+main.container > *:nth-child(4) { animation-delay: 0.14s; } |
| 596 |
777 |
|
| 597 |
778 |
/* ── Responsive ──────────────────────────── */ |
| 598 |
779 |
@media (max-width: 960px) { |
| 602 |
783 |
} |
| 603 |
784 |
@media (max-width: 640px) { |
| 604 |
785 |
.global-search { display: none; } |
| 605 |
|
− .hero { flex-direction: column; align-items: flex-start; } |
|
786 |
+ .hero { flex-direction: column; align-items: flex-start; padding-top: 36px; } |
|
787 |
+ .hero-name { font-size: 27px; } |
|
788 |
+ .hero-avatar { width: 68px; height: 68px; border-radius: 19px; font-size: 21px; } |
| 606 |
789 |
.pinned-grid { grid-template-columns: 1fr; } |
| 607 |
790 |
.clone-url { width: 100%; max-width: none; } |
| 608 |
791 |
.repo-toolbar { flex-direction: column; align-items: stretch; } |
| 609 |
792 |
.file-date { display: none; } |
| 610 |
793 |
.readme-section .markdown-body, .blob-markdown { padding: 16px; } |
| 611 |
794 |
.pdf-frame { height: 70vh; min-height: 420px; } |
|
795 |
+ .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; } |
| 612 |
796 |
} |