rin
Public Open-source lightweight git hosting.
app.css · 1338 lines · 30.8 KB
Raw
1 /* Polar Design System — Minimalist Sidebar Layout, 3 Themes (light, dark, system) */
2
3 @font-face {
4 font-family: 'Inter';
5 font-style: normal;
6 font-weight: 400 600;
7 font-display: swap;
8 src: url('/static/fonts/Inter-Regular.woff2') format('woff2');
9 }
10
11 @font-face {
12 font-family: 'Inter';
13 font-style: normal;
14 font-weight: 400 600;
15 font-display: swap;
16 src: url('/static/fonts/Inter-Cyrillic.woff2') format('woff2');
17 unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
18 }
19
20 @font-face {
21 font-family: 'JetBrains Mono';
22 font-style: normal;
23 font-weight: 400 600;
24 font-display: swap;
25 src: url('/static/fonts/JetBrainsMono-Regular.woff2') format('woff2');
26 }
27
28 :root,
29 html[data-theme="light"] {
30 --background: 0 0% 100%;
31 --foreground: 0 0% 6.7%;
32 --card: 0 0% 98%;
33 --card-foreground: 0 0% 6.7%;
34 --popover: 0 0% 100%;
35 --popover-foreground: 0 0% 6.7%;
36 --primary: 0 0% 6.7%;
37 --primary-foreground: 0 0% 100%;
38 --secondary: 0 0% 95%;
39 --secondary-foreground: 0 0% 6.7%;
40 --muted: 0 0% 95%;
41 --muted-foreground: 0 0% 45%;
42 --accent: 0 0% 93%;
43 --accent-foreground: 0 0% 6.7%;
44 --destructive: 0 72% 46%;
45 --destructive-foreground: 0 0% 100%;
46 --border: 0 0% 90%;
47 --input: 0 0% 89%;
48 --ring: 0 0% 6.7%;
49 --radius: 0.45rem;
50
51 --diff-add-bg: 142 70% 94%;
52 --diff-add-fg: 142 76% 22%;
53 --diff-del-bg: 0 86% 95%;
54 --diff-del-fg: 0 72% 35%;
55
56 --syntax-kw: 262 72% 42%;
57 --syntax-str: 142 68% 28%;
58 --syntax-cmt: 0 0% 46%;
59 --syntax-fn: 215 80% 42%;
60 --syntax-num: 24 85% 38%;
61 --syntax-type: 190 78% 32%;
62 --syntax-op: 0 0% 25%;
63 color-scheme: light;
64 }
65
66 html[data-theme="dark"] {
67 --background: 0 0% 6.7%;
68 --foreground: 0 0% 100%;
69 --card: 0 0% 9%;
70 --card-foreground: 0 0% 100%;
71 --popover: 0 0% 9.5%;
72 --popover-foreground: 0 0% 100%;
73 --primary: 0 0% 100%;
74 --primary-foreground: 0 0% 6.7%;
75 --secondary: 0 0% 13%;
76 --secondary-foreground: 0 0% 100%;
77 --muted: 0 0% 12%;
78 --muted-foreground: 0 0% 65%;
79 --accent: 0 0% 15%;
80 --accent-foreground: 0 0% 100%;
81 --destructive: 0 72% 58%;
82 --destructive-foreground: 0 0% 98%;
83 --border: 0 0% 16%;
84 --input: 0 0% 17%;
85 --ring: 0 0% 85%;
86
87 --diff-add-bg: 142 50% 12%;
88 --diff-add-fg: 142 70% 75%;
89 --diff-del-bg: 0 55% 14%;
90 --diff-del-fg: 0 80% 78%;
91
92 --syntax-kw: 265 85% 78%;
93 --syntax-str: 142 65% 70%;
94 --syntax-cmt: 0 0% 54%;
95 --syntax-fn: 210 90% 74%;
96 --syntax-num: 32 90% 72%;
97 --syntax-type: 188 80% 68%;
98 --syntax-op: 0 0% 78%;
99 color-scheme: dark;
100 }
101
102 @media (prefers-color-scheme: dark) {
103 html[data-theme="system"] {
104 --background: 0 0% 6.7%;
105 --foreground: 0 0% 100%;
106 --card: 0 0% 9%;
107 --card-foreground: 0 0% 100%;
108 --popover: 0 0% 9.5%;
109 --popover-foreground: 0 0% 100%;
110 --primary: 0 0% 100%;
111 --primary-foreground: 0 0% 6.7%;
112 --secondary: 0 0% 13%;
113 --secondary-foreground: 0 0% 100%;
114 --muted: 0 0% 12%;
115 --muted-foreground: 0 0% 65%;
116 --accent: 0 0% 15%;
117 --accent-foreground: 0 0% 100%;
118 --destructive: 0 72% 58%;
119 --destructive-foreground: 0 0% 98%;
120 --border: 0 0% 16%;
121 --input: 0 0% 17%;
122 --ring: 0 0% 85%;
123 --diff-add-bg: 142 50% 12%;
124 --diff-add-fg: 142 70% 75%;
125 --diff-del-bg: 0 55% 14%;
126 --diff-del-fg: 0 80% 78%;
127 --syntax-kw: 265 85% 78%;
128 --syntax-str: 142 65% 70%;
129 --syntax-cmt: 0 0% 54%;
130 --syntax-fn: 210 90% 74%;
131 --syntax-num: 32 90% 72%;
132 --syntax-type: 188 80% 68%;
133 --syntax-op: 0 0% 78%;
134 color-scheme: dark;
135 }
136 }
137
138 *, *::before, *::after {
139 box-sizing: border-box;
140 border-color: hsl(var(--border));
141 }
142
143 html {
144 font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
145 font-size: 13.5px;
146 line-height: 1.5;
147 -webkit-font-smoothing: antialiased;
148 background-color: hsl(var(--background));
149 color: hsl(var(--foreground));
150 overflow-y: scroll;
151 }
152
153 body {
154 margin: 0;
155 min-height: 100vh;
156 background-color: hsl(var(--background));
157 color: hsl(var(--foreground));
158 }
159
160 code, pre, kbd, .font-mono {
161 font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
162 }
163
164 a {
165 color: inherit;
166 text-decoration: none;
167 }
168
169 @media (prefers-reduced-motion: reduce) {
170 *, *::before, *::after {
171 animation-duration: 0.01ms !important;
172 transition-duration: 0.01ms !important;
173 }
174 }
175
176 :focus-visible {
177 outline: 2px solid hsl(var(--ring));
178 outline-offset: 2px;
179 }
180
181 /* App Shell: Left Sidebar + Right Main Content */
182 .app-shell {
183 display: flex;
184 flex-direction: row;
185 align-items: stretch;
186 min-height: 100vh;
187 width: 100%;
188 }
189
190 .app-sidebar {
191 width: 232px;
192 min-width: 232px;
193 max-width: 232px;
194 flex: 0 0 232px;
195 border: 1px solid hsl(var(--border));
196 border-radius: calc(var(--radius) * 1.5);
197 background-color: hsl(var(--card));
198 display: none;
199 flex-direction: column;
200 justify-content: space-between;
201 position: sticky;
202 top: 0.75rem;
203 height: calc(100vh - 1.5rem);
204 margin: 0.75rem 0 0.75rem 0.75rem;
205 overflow-y: auto;
206 overflow-x: hidden;
207 padding: 0.85rem 0.7rem;
208 user-select: none;
209 transition:
210 width 200ms cubic-bezier(0.16, 1, 0.3, 1),
211 min-width 200ms cubic-bezier(0.16, 1, 0.3, 1),
212 max-width 200ms cubic-bezier(0.16, 1, 0.3, 1),
213 flex-basis 200ms cubic-bezier(0.16, 1, 0.3, 1),
214 margin 200ms cubic-bezier(0.16, 1, 0.3, 1),
215 padding 200ms cubic-bezier(0.16, 1, 0.3, 1),
216 border-color 200ms cubic-bezier(0.16, 1, 0.3, 1);
217 }
218
219 .sidebar-inner {
220 width: 100%;
221 min-width: 0;
222 height: 100%;
223 display: flex;
224 flex-direction: column;
225 justify-content: space-between;
226 transition:
227 opacity 150ms cubic-bezier(0.16, 1, 0.3, 1),
228 transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
229 }
230
231 html[data-sidebar="collapsed"] .app-sidebar {
232 width: 0;
233 min-width: 0;
234 max-width: 0;
235 flex-basis: 0;
236 margin: 0.75rem 0;
237 padding-left: 0;
238 padding-right: 0;
239 border-color: transparent;
240 }
241
242 html[data-sidebar="collapsed"] .sidebar-inner {
243 opacity: 0;
244 transform: translateX(-8px);
245 pointer-events: none;
246 }
247
248 .sidebar-expand-btn {
249 position: fixed;
250 top: 0.85rem;
251 left: 0.85rem;
252 z-index: 50;
253 display: none;
254 align-items: center;
255 justify-content: center;
256 width: 2rem;
257 height: 2rem;
258 border-radius: var(--radius);
259 border: 1px solid hsl(var(--border));
260 background-color: hsl(var(--card));
261 color: hsl(var(--muted-foreground));
262 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
263 cursor: pointer;
264 opacity: 0;
265 transform: translateX(-6px) scale(0.95);
266 pointer-events: none;
267 transition:
268 opacity 160ms cubic-bezier(0.16, 1, 0.3, 1),
269 transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
270 background-color 120ms ease,
271 color 120ms ease;
272 }
273
274 .sidebar-expand-btn:hover {
275 background-color: hsl(var(--accent));
276 color: hsl(var(--foreground));
277 }
278
279 .mobile-topbar {
280 display: flex;
281 align-items: center;
282 justify-content: space-between;
283 height: 2.75rem;
284 padding: 0 0.85rem;
285 border-bottom: 1px solid hsl(var(--border));
286 background-color: hsl(var(--card));
287 }
288
289 .app-col {
290 flex: 1 1 0%;
291 min-width: 0;
292 width: 100%;
293 display: flex;
294 flex-direction: column;
295 min-height: 100vh;
296 }
297
298 .app-main {
299 flex: 1 1 auto;
300 width: 100%;
301 padding: 1.5rem 1.25rem 3rem;
302 }
303
304 @keyframes pageFadeIn {
305 from {
306 opacity: 0;
307 transform: translateY(4px);
308 }
309 to {
310 opacity: 1;
311 transform: translateY(0);
312 }
313 }
314
315 .app-main > .container,
316 .app-main > .container-narrow {
317 animation: pageFadeIn 160ms cubic-bezier(0.16, 1, 0.3, 1);
318 }
319
320 @media (min-width: 640px) {
321 .app-sidebar {
322 display: flex;
323 }
324 .sidebar-expand-btn {
325 display: inline-flex;
326 }
327 html[data-sidebar="collapsed"] .sidebar-expand-btn {
328 opacity: 1;
329 transform: translateX(0) scale(1);
330 pointer-events: auto;
331 }
332 .mobile-topbar {
333 display: none;
334 }
335 .app-main {
336 padding: 2rem 2.5rem 3.5rem;
337 }
338 }
339
340 /* Unified Container Width — identical across Code, Commits, and Settings */
341 .container,
342 .container-narrow {
343 width: 100%;
344 max-width: 960px;
345 margin-left: auto;
346 margin-right: auto;
347 }
348
349 /* Sidebar Navigation */
350 .nav-item {
351 display: flex;
352 align-items: center;
353 justify-content: space-between;
354 gap: 0.5rem;
355 height: 1.95rem;
356 padding: 0 0.55rem;
357 border-radius: var(--radius);
358 font-size: 0.85rem;
359 color: hsl(var(--muted-foreground));
360 transition: background-color 140ms ease, color 140ms ease, transform 120ms cubic-bezier(0.16, 1, 0.3, 1);
361 cursor: pointer;
362 border: 0;
363 background: transparent;
364 width: 100%;
365 text-align: left;
366 overflow: hidden;
367 }
368 .nav-item:hover,
369 .nav-item.active {
370 background-color: hsl(var(--accent));
371 color: hsl(var(--foreground));
372 }
373 .nav-item:active {
374 transform: scale(0.985);
375 }
376 .nav-section-label {
377 display: flex;
378 align-items: center;
379 justify-content: space-between;
380 padding: 0.45rem 0.55rem 0.25rem;
381 font-size: 0.7rem;
382 font-weight: 600;
383 text-transform: uppercase;
384 letter-spacing: 0.04em;
385 color: hsl(var(--muted-foreground));
386 }
387
388 /* Segmented Theme Control in Sidebar */
389 .segmented {
390 display: grid;
391 grid-template-columns: repeat(3, minmax(0, 1fr));
392 gap: 2px;
393 padding: 2px;
394 width: 100%;
395 background-color: hsl(var(--muted));
396 border: 1px solid hsl(var(--border));
397 border-radius: var(--radius);
398 }
399 .segmented-btn {
400 display: inline-flex;
401 align-items: center;
402 justify-content: center;
403 gap: 0.25rem;
404 height: 1.65rem;
405 padding: 0 0.2rem;
406 border: 0;
407 border-radius: calc(var(--radius) - 2px);
408 background: transparent;
409 color: hsl(var(--muted-foreground));
410 font-size: 0.72rem;
411 font-weight: 500;
412 cursor: pointer;
413 overflow: hidden;
414 text-overflow: ellipsis;
415 white-space: nowrap;
416 transition: background-color 150ms cubic-bezier(0.16, 1, 0.3, 1), color 150ms ease, box-shadow 150ms ease, transform 120ms ease;
417 }
418 .segmented-btn:hover {
419 color: hsl(var(--foreground));
420 }
421 .segmented-btn:active {
422 transform: scale(0.96);
423 }
424 .segmented-btn.active {
425 background-color: hsl(var(--background));
426 color: hsl(var(--foreground));
427 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
428 }
429
430 /* Icons */
431 .icon {
432 display: inline-block;
433 vertical-align: middle;
434 flex-shrink: 0;
435 stroke: currentColor;
436 }
437 .size-3 { width: 0.75rem; height: 0.75rem; }
438 .size-3\.5 { width: 0.875rem; height: 0.875rem; }
439 .size-4 { width: 1rem; height: 1rem; }
440 .size-5 { width: 1.25rem; height: 1.25rem; }
441 .size-6 { width: 1.5rem; height: 1.5rem; }
442
443 /* Buttons */
444 .btn {
445 display: inline-flex;
446 align-items: center;
447 justify-content: center;
448 gap: 0.4rem;
449 white-space: nowrap;
450 border-radius: var(--radius);
451 font-size: 0.85rem;
452 font-weight: 500;
453 line-height: 1;
454 height: 1.95rem;
455 padding: 0 0.7rem;
456 border: 1px solid transparent;
457 cursor: pointer;
458 transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease, transform 120ms cubic-bezier(0.16, 1, 0.3, 1);
459 user-select: none;
460 }
461 .btn:active:not(:disabled) {
462 transform: scale(0.97);
463 }
464 .btn:disabled {
465 opacity: 0.5;
466 pointer-events: none;
467 }
468 .btn-sm {
469 height: 1.7rem;
470 padding: 0 0.5rem;
471 font-size: 0.78rem;
472 }
473 .btn-lg {
474 height: 2.3rem;
475 padding: 0 1rem;
476 font-size: 0.92rem;
477 }
478 .btn-icon {
479 width: 1.9rem;
480 height: 1.9rem;
481 padding: 0;
482 }
483 .btn-default, .btn-primary {
484 background-color: hsl(var(--primary));
485 color: hsl(var(--primary-foreground));
486 }
487 .btn-default:hover, .btn-primary:hover {
488 opacity: 0.9;
489 }
490 .btn-secondary {
491 background-color: hsl(var(--secondary));
492 color: hsl(var(--secondary-foreground));
493 border-color: hsl(var(--border));
494 }
495 .btn-secondary:hover {
496 background-color: hsl(var(--accent));
497 }
498 .btn-outline {
499 background-color: transparent;
500 color: hsl(var(--foreground));
501 border-color: hsl(var(--border));
502 }
503 .btn-outline:hover {
504 background-color: hsl(var(--accent));
505 color: hsl(var(--accent-foreground));
506 }
507 .btn-ghost {
508 background-color: transparent;
509 color: hsl(var(--muted-foreground));
510 }
511 .btn-ghost:hover {
512 background-color: hsl(var(--accent));
513 color: hsl(var(--foreground));
514 }
515 .btn-destructive {
516 background-color: hsl(var(--destructive));
517 color: hsl(var(--destructive-foreground));
518 }
519 .btn-destructive:hover {
520 opacity: 0.9;
521 }
522
523 /* Inputs, Selects, Textareas */
524 .input, .select, .textarea {
525 display: block;
526 width: 100%;
527 border-radius: var(--radius);
528 border: 1px solid hsl(var(--input));
529 background-color: hsl(var(--background));
530 color: hsl(var(--foreground));
531 font-size: 0.85rem;
532 padding: 0.35rem 0.6rem;
533 transition: border-color 100ms ease;
534 }
535 .input, .select {
536 height: 2.05rem;
537 }
538 .textarea {
539 min-height: 4rem;
540 resize: vertical;
541 }
542 .input:focus, .select:focus, .textarea:focus {
543 outline: none;
544 border-color: hsl(var(--ring));
545 }
546 .input::placeholder, .textarea::placeholder {
547 color: hsl(var(--muted-foreground));
548 }
549 .label {
550 display: block;
551 font-size: 0.8rem;
552 font-weight: 500;
553 margin-bottom: 0.3rem;
554 color: hsl(var(--foreground));
555 }
556 .field-hint {
557 font-size: 0.74rem;
558 color: hsl(var(--muted-foreground));
559 margin-top: 0.25rem;
560 }
561
562 /* Switch */
563 .switch {
564 position: relative;
565 display: inline-flex;
566 width: 2.1rem;
567 height: 1.2rem;
568 flex-shrink: 0;
569 cursor: pointer;
570 align-items: center;
571 border-radius: 9999px;
572 border: 1px solid hsl(var(--border));
573 background-color: hsl(var(--muted));
574 }
575 .switch input {
576 opacity: 0;
577 width: 0;
578 height: 0;
579 position: absolute;
580 }
581 .switch-thumb {
582 pointer-events: none;
583 display: block;
584 width: 0.85rem;
585 height: 0.85rem;
586 border-radius: 9999px;
587 background-color: hsl(var(--foreground));
588 transform: translateX(0.15rem);
589 transition: transform 100ms ease;
590 }
591 .switch input:checked ~ .switch-thumb {
592 transform: translateX(0.95rem);
593 }
594
595 /* Cards */
596 .card {
597 border-radius: var(--radius);
598 border: 1px solid hsl(var(--border));
599 background-color: hsl(var(--card));
600 color: hsl(var(--card-foreground));
601 }
602 .card-header {
603 padding: 0.7rem 0.9rem;
604 border-bottom: 1px solid hsl(var(--border));
605 display: flex;
606 align-items: center;
607 justify-content: space-between;
608 gap: 0.75rem;
609 }
610 .card-body {
611 padding: 0.9rem;
612 }
613 .card-footer {
614 padding: 0.65rem 0.9rem;
615 border-top: 1px solid hsl(var(--border));
616 background-color: hsl(var(--muted) / 0.3);
617 }
618
619 /* Badges */
620 .badge {
621 display: inline-flex;
622 align-items: center;
623 gap: 0.25rem;
624 border-radius: 9999px;
625 border: 1px solid hsl(var(--border));
626 padding: 0.08rem 0.45rem;
627 font-size: 0.72rem;
628 font-weight: 500;
629 line-height: 1.3;
630 color: hsl(var(--foreground));
631 background-color: hsl(var(--secondary));
632 }
633 .badge-outline {
634 background-color: transparent;
635 color: hsl(var(--muted-foreground));
636 }
637 .badge-primary {
638 background-color: hsl(var(--primary));
639 color: hsl(var(--primary-foreground));
640 border-color: transparent;
641 }
642 .badge-destructive {
643 background-color: hsl(var(--destructive) / 0.12);
644 color: hsl(var(--destructive));
645 border-color: hsl(var(--destructive) / 0.3);
646 }
647
648 /* Kbd */
649 kbd, .kbd {
650 display: inline-flex;
651 align-items: center;
652 justify-content: center;
653 min-width: 1.25rem;
654 height: 1.15rem;
655 padding: 0 0.28rem;
656 font-size: 0.68rem;
657 font-weight: 500;
658 line-height: 1;
659 color: hsl(var(--muted-foreground));
660 background-color: hsl(var(--muted));
661 border: 1px solid hsl(var(--border));
662 border-radius: 0.25rem;
663 }
664
665 /* Avatar */
666 .avatar {
667 display: inline-flex;
668 align-items: center;
669 justify-content: center;
670 width: 1.45rem;
671 height: 1.45rem;
672 border-radius: 9999px;
673 background-color: hsl(var(--secondary));
674 border: 1px solid hsl(var(--border));
675 font-size: 0.7rem;
676 font-weight: 600;
677 color: hsl(var(--foreground));
678 text-transform: uppercase;
679 flex-shrink: 0;
680 overflow: hidden;
681 }
682 .avatar-img {
683 width: 100%;
684 height: 100%;
685 object-fit: cover;
686 display: block;
687 }
688 .avatar-lg {
689 width: 2.3rem;
690 height: 2.3rem;
691 font-size: 0.9rem;
692 }
693 .avatar-xl {
694 width: 4.25rem;
695 height: 4.25rem;
696 font-size: 1.5rem;
697 }
698
699
700 /* Separator */
701 .separator {
702 height: 1px;
703 width: 100%;
704 background-color: hsl(var(--border));
705 margin: 0.85rem 0;
706 border: 0;
707 }
708
709 /* Tabs */
710 .tabs-nav {
711 display: flex;
712 align-items: center;
713 gap: 0.15rem;
714 padding: 0.2rem;
715 border: 1px solid hsl(var(--border));
716 border-radius: 999px;
717 background: hsl(var(--muted) / 0.25);
718 margin-bottom: 1rem;
719 overflow-x: auto;
720 }
721 .tab-link {
722 display: inline-flex;
723 align-items: center;
724 gap: 0.35rem;
725 padding: 0.38rem 0.8rem;
726 font-size: 0.82rem;
727 font-weight: 500;
728 color: hsl(var(--muted-foreground));
729 border-radius: 999px;
730 white-space: nowrap;
731 transition: color 100ms ease, background-color 100ms ease;
732 }
733 .tab-link:hover {
734 color: hsl(var(--foreground));
735 }
736 .tab-link.active {
737 color: hsl(var(--foreground));
738 background: hsl(var(--card));
739 box-shadow: 0 1px 2px hsl(0 0% 0% / 0.08);
740 }
741
742 /* Dense File List & Tables */
743 .dense-list {
744 width: 100%;
745 }
746 .dense-row {
747 display: flex;
748 align-items: center;
749 justify-content: space-between;
750 gap: 0.75rem;
751 min-height: 2.05rem;
752 padding: 0.25rem 0.75rem;
753 border-bottom: 1px solid hsl(var(--border));
754 font-size: 0.85rem;
755 transition: background-color 80ms ease;
756 }
757 .dense-row:last-child {
758 border-bottom: none;
759 }
760 .dense-row:hover {
761 background-color: hsl(var(--accent) / 0.5);
762 }
763
764 .table-wrap {
765 width: 100%;
766 overflow-x: auto;
767 border: 1px solid hsl(var(--border));
768 border-radius: var(--radius);
769 background-color: hsl(var(--card));
770 }
771 .table {
772 width: 100%;
773 border-collapse: collapse;
774 font-size: 0.85rem;
775 }
776 .table th {
777 text-align: left;
778 font-weight: 500;
779 color: hsl(var(--muted-foreground));
780 padding: 0.5rem 0.75rem;
781 border-bottom: 1px solid hsl(var(--border));
782 background-color: hsl(var(--muted) / 0.35);
783 font-size: 0.75rem;
784 }
785 .table td {
786 padding: 0.5rem 0.75rem;
787 border-bottom: 1px solid hsl(var(--border));
788 vertical-align: middle;
789 }
790 .table tr:last-child td {
791 border-bottom: none;
792 }
793
794 /* Breadcrumb */
795 .breadcrumb {
796 display: flex;
797 align-items: center;
798 flex-wrap: wrap;
799 gap: 0.25rem;
800 font-size: 0.85rem;
801 }
802 .breadcrumb-sep {
803 color: hsl(var(--muted-foreground));
804 }
805
806 /* Dropdown Menu */
807 @keyframes dropdownIn {
808 from {
809 opacity: 0;
810 transform: translateY(-4px) scale(0.98);
811 }
812 to {
813 opacity: 1;
814 transform: translateY(0) scale(1);
815 }
816 }
817 .dropdown {
818 position: relative;
819 display: inline-block;
820 }
821 .dropdown-menu {
822 position: absolute;
823 left: 0;
824 top: calc(100% + 0.3rem);
825 min-width: 11rem;
826 background-color: hsl(var(--popover));
827 color: hsl(var(--popover-foreground));
828 border: 1px solid hsl(var(--border));
829 border-radius: var(--radius);
830 padding: 0.25rem;
831 box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.22);
832 z-index: 60;
833 display: none;
834 transform-origin: top left;
835 }
836 .dropdown-menu.open {
837 display: block;
838 animation: dropdownIn 140ms cubic-bezier(0.16, 1, 0.3, 1);
839 }
840 .dropdown-item {
841 display: flex;
842 width: 100%;
843 align-items: center;
844 justify-content: space-between;
845 gap: 0.5rem;
846 padding: 0.35rem 0.55rem;
847 font-size: 0.8rem;
848 border-radius: calc(var(--radius) - 2px);
849 color: hsl(var(--popover-foreground));
850 background: transparent;
851 border: 0;
852 cursor: pointer;
853 text-align: left;
854 transition: background-color 120ms ease, color 120ms ease;
855 }
856 .dropdown-item:hover, .dropdown-item.active {
857 background-color: hsl(var(--accent));
858 color: hsl(var(--accent-foreground));
859 }
860
861 /* Modal / Dialog & Command Palette */
862 @keyframes backdropIn {
863 from { opacity: 0; }
864 to { opacity: 1; }
865 }
866 @keyframes dialogIn {
867 from {
868 opacity: 0;
869 transform: translateY(-6px) scale(0.97);
870 }
871 to {
872 opacity: 1;
873 transform: translateY(0) scale(1);
874 }
875 }
876 .backdrop {
877 position: fixed;
878 inset: 0;
879 background-color: rgba(0, 0, 0, 0.55);
880 backdrop-filter: blur(2px);
881 z-index: 80;
882 display: none;
883 align-items: flex-start;
884 justify-content: center;
885 padding: 10vh 1rem 2rem;
886 }
887 .backdrop.open {
888 display: flex;
889 animation: backdropIn 140ms ease;
890 }
891 .dialog-box {
892 width: 100%;
893 max-width: 28rem;
894 background-color: hsl(var(--popover));
895 color: hsl(var(--popover-foreground));
896 border: 1px solid hsl(var(--border));
897 border-radius: var(--radius);
898 box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.35);
899 overflow: hidden;
900 animation: dialogIn 170ms cubic-bezier(0.16, 1, 0.3, 1);
901 }
902 .palette-box {
903 width: 100%;
904 max-width: 34rem;
905 background-color: hsl(var(--popover));
906 color: hsl(var(--popover-foreground));
907 border: 1px solid hsl(var(--border));
908 border-radius: var(--radius);
909 box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.4);
910 overflow: hidden;
911 animation: dialogIn 170ms cubic-bezier(0.16, 1, 0.3, 1);
912 }
913 .palette-input-wrap {
914 display: flex;
915 align-items: center;
916 gap: 0.6rem;
917 padding: 0.6rem 0.8rem;
918 border-bottom: 1px solid hsl(var(--border));
919 }
920 .palette-input {
921 width: 100%;
922 border: 0;
923 background: transparent;
924 color: hsl(var(--foreground));
925 font-size: 0.9rem;
926 outline: none;
927 }
928 .palette-list {
929 max-height: 20rem;
930 overflow-y: auto;
931 padding: 0.3rem;
932 }
933 .palette-group-title {
934 padding: 0.3rem 0.5rem 0.15rem;
935 font-size: 0.68rem;
936 font-weight: 600;
937 text-transform: uppercase;
938 letter-spacing: 0.04em;
939 color: hsl(var(--muted-foreground));
940 }
941 .palette-item {
942 display: flex;
943 width: 100%;
944 align-items: center;
945 justify-content: space-between;
946 gap: 0.5rem;
947 padding: 0.4rem 0.55rem;
948 border-radius: calc(var(--radius) - 2px);
949 font-size: 0.85rem;
950 color: hsl(var(--foreground));
951 cursor: pointer;
952 border: 0;
953 background: transparent;
954 text-align: left;
955 transition: background-color 100ms ease, color 100ms ease;
956 }
957 .palette-item:hover, .palette-item.selected {
958 background-color: hsl(var(--accent));
959 color: hsl(var(--accent-foreground));
960 }
961
962 /* Toast */
963 @keyframes toastIn {
964 from {
965 opacity: 0;
966 transform: translateY(8px) scale(0.97);
967 }
968 to {
969 opacity: 1;
970 transform: translateY(0) scale(1);
971 }
972 }
973 .toast-container {
974 position: fixed;
975 bottom: 1rem;
976 right: 1rem;
977 z-index: 90;
978 display: flex;
979 flex-direction: column;
980 gap: 0.4rem;
981 max-width: 20rem;
982 }
983 .toast {
984 display: flex;
985 align-items: center;
986 justify-content: space-between;
987 gap: 0.65rem;
988 padding: 0.5rem 0.75rem;
989 border-radius: var(--radius);
990 border: 1px solid hsl(var(--border));
991 background-color: hsl(var(--popover));
992 color: hsl(var(--popover-foreground));
993 box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.25);
994 font-size: 0.8rem;
995 animation: toastIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
996 }
997
998 /* Skeleton */
999 @keyframes pulse {
1000 0%, 100% { opacity: 1; }
1001 50% { opacity: 0.45; }
1002 }
1003 .skeleton {
1004 background-color: hsl(var(--muted));
1005 border-radius: calc(var(--radius) - 2px);
1006 animation: pulse 1.6s ease-in-out infinite;
1007 }
1008
1009 /* Empty State */
1010 .empty-state {
1011 text-align: center;
1012 padding: 2rem 1rem;
1013 border: 1px dashed hsl(var(--border));
1014 border-radius: var(--radius);
1015 color: hsl(var(--muted-foreground));
1016 }
1017
1018 /* Code Viewer & Chroma */
1019 .code-table {
1020 width: 100%;
1021 border-collapse: collapse;
1022 font-family: 'JetBrains Mono', monospace;
1023 font-size: 0.8rem;
1024 line-height: 1.5;
1025 }
1026 .code-ln {
1027 width: 1%;
1028 min-width: 2.75rem;
1029 padding: 0 0.65rem;
1030 text-align: right;
1031 color: hsl(var(--muted-foreground) / 0.6);
1032 user-select: none;
1033 vertical-align: top;
1034 border-right: 1px solid hsl(var(--border));
1035 }
1036 .code-line {
1037 padding: 0 0.75rem;
1038 white-space: pre;
1039 overflow-x: auto;
1040 }
1041 .chroma .k, .chroma .kc, .chroma .kd, .chroma .kn, .chroma .kp, .chroma .kr { color: hsl(var(--syntax-kw)); font-weight: 500; }
1042 .chroma .kt { color: hsl(var(--syntax-type)); }
1043 .chroma .s, .chroma .sa, .chroma .sb, .chroma .sc, .chroma .dl, .chroma .sd, .chroma .s2, .chroma .se, .chroma .sh, .chroma .si, .chroma .sx, .chroma .sr, .chroma .s1, .chroma .ss { color: hsl(var(--syntax-str)); }
1044 .chroma .c, .chroma .ch, .chroma .cm, .chroma .c1, .chroma .cs, .chroma .cp, .chroma .cpf { color: hsl(var(--syntax-cmt)); font-style: italic; }
1045 .chroma .nf, .chroma .fm, .chroma .nx { color: hsl(var(--syntax-fn)); }
1046 .chroma .m, .chroma .mb, .chroma .mf, .chroma .mh, .chroma .mi, .chroma .il, .chroma .mo { color: hsl(var(--syntax-num)); }
1047 .chroma .o, .chroma .ow { color: hsl(var(--syntax-op)); }
1048
1049 /* Diff Viewer */
1050 .diff-table {
1051 width: 100%;
1052 border-collapse: collapse;
1053 font-family: 'JetBrains Mono', monospace;
1054 font-size: 0.78rem;
1055 line-height: 1.5;
1056 }
1057 .diff-row-add {
1058 background-color: hsl(var(--diff-add-bg));
1059 color: hsl(var(--diff-add-fg));
1060 }
1061 .diff-row-del {
1062 background-color: hsl(var(--diff-del-bg));
1063 color: hsl(var(--diff-del-fg));
1064 }
1065 .diff-row-hunk {
1066 background-color: hsl(var(--muted));
1067 color: hsl(var(--muted-foreground));
1068 }
1069 .diff-num {
1070 width: 2.75rem;
1071 padding: 0 0.45rem;
1072 text-align: right;
1073 user-select: none;
1074 opacity: 0.65;
1075 border-right: 1px solid hsl(var(--border));
1076 }
1077 .diff-code {
1078 padding: 0 0.65rem;
1079 white-space: pre-wrap;
1080 word-break: break-all;
1081 }
1082
1083 /* Markdown Body */
1084 .markdown-body {
1085 font-size: 0.9rem;
1086 line-height: 1.6;
1087 color: hsl(var(--foreground));
1088 }
1089 .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
1090 margin-top: 1.25em;
1091 margin-bottom: 0.45em;
1092 font-weight: 600;
1093 line-height: 1.25;
1094 }
1095 .markdown-body h1 { font-size: 1.35rem; padding-bottom: 0.25rem; border-bottom: 1px solid hsl(var(--border)); }
1096 .markdown-body h2 { font-size: 1.15rem; padding-bottom: 0.2rem; border-bottom: 1px solid hsl(var(--border)); }
1097 .markdown-body h3 { font-size: 1rem; }
1098 .markdown-body h1:first-child, .markdown-body h2:first-child { margin-top: 0; }
1099 .markdown-body p, .markdown-body ul, .markdown-body ol, .markdown-body pre, .markdown-body blockquote {
1100 margin-top: 0;
1101 margin-bottom: 0.8rem;
1102 }
1103 .markdown-body code {
1104 background-color: hsl(var(--muted));
1105 padding: 0.12rem 0.3rem;
1106 border-radius: 0.25rem;
1107 font-size: 0.84em;
1108 }
1109 .markdown-body pre {
1110 background-color: hsl(var(--muted) / 0.6);
1111 border: 1px solid hsl(var(--border));
1112 border-radius: var(--radius);
1113 padding: 0.75rem 0.9rem;
1114 overflow-x: auto;
1115 }
1116 .markdown-body pre code {
1117 background: transparent;
1118 padding: 0;
1119 }
1120 .markdown-body a {
1121 text-decoration: underline;
1122 text-underline-offset: 3px;
1123 }
1124
1125 /* Utility Helpers */
1126 .flex { display: flex; }
1127 .block { display: block; }
1128 .inline-flex { display: inline-flex; }
1129 .grid { display: grid; }
1130 .hidden { display: none; }
1131 .items-center { align-items: center; }
1132 .items-start { align-items: flex-start; }
1133 .items-baseline { align-items: baseline; }
1134 .justify-between { justify-content: space-between; }
1135 .justify-center { justify-content: center; }
1136 .justify-end { justify-content: flex-end; }
1137 .flex-col { flex-direction: column; }
1138 .flex-wrap { flex-wrap: wrap; }
1139 .flex-1 { flex: 1 1 0%; }
1140 .flex-shrink-0 { flex-shrink: 0; }
1141 .min-w-0 { min-width: 0; }
1142 .gap-0\.5 { gap: 0.125rem; }
1143 .gap-1 { gap: 0.25rem; }
1144 .gap-1\.5 { gap: 0.375rem; }
1145 .gap-2 { gap: 0.5rem; }
1146 .gap-2\.5 { gap: 0.625rem; }
1147 .gap-3 { gap: 0.75rem; }
1148 .gap-4 { gap: 1rem; }
1149 .gap-6 { gap: 1.5rem; }
1150 .w-full { width: 100%; }
1151 .text-xs { font-size: 0.75rem; }
1152 .text-sm { font-size: 0.85rem; }
1153 .text-base { font-size: 0.96rem; }
1154 .text-lg { font-size: 1.1rem; }
1155 .text-xl { font-size: 1.25rem; }
1156 .text-2xl { font-size: 1.5rem; }
1157 .font-medium { font-weight: 500; }
1158 .font-semibold { font-weight: 600; }
1159 .font-bold { font-weight: 700; }
1160 .uppercase { text-transform: uppercase; }
1161 .tracking-tight { letter-spacing: -0.015em; }
1162 .text-muted { color: hsl(var(--muted-foreground)); }
1163 .text-destructive { color: hsl(var(--destructive)); }
1164 .text-foreground { color: hsl(var(--foreground)); }
1165 .text-center { text-align: center; }
1166 .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1167 .hover\:underline:hover { text-decoration: underline; }
1168 .select-all { user-select: all; }
1169 .cursor-pointer { cursor: pointer; }
1170 .mt-0\.5 { margin-top: 0.125rem; }
1171 .mt-1 { margin-top: 0.25rem; }
1172 .mt-2 { margin-top: 0.5rem; }
1173 .mt-3 { margin-top: 0.75rem; }
1174 .mt-4 { margin-top: 1rem; }
1175 .mt-6 { margin-top: 1.5rem; }
1176 .mr-2 { margin-right: 0.5rem; }
1177 .mb-1 { margin-bottom: 0.25rem; }
1178 .mb-1\.5 { margin-bottom: 0.375rem; }
1179 .mb-2 { margin-bottom: 0.5rem; }
1180 .mb-3 { margin-bottom: 0.75rem; }
1181 .mb-4 { margin-bottom: 1rem; }
1182 .mb-6 { margin-bottom: 1.5rem; }
1183 .p-2 { padding: 0.5rem; }
1184 .p-3 { padding: 0.75rem; }
1185 .p-4 { padding: 1rem; }
1186 .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
1187 .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
1188 .pt-2 { padding-top: 0.5rem; }
1189 .pt-3 { padding-top: 0.75rem; }
1190 .pb-3 { padding-bottom: 0.75rem; }
1191
1192 .grid-2 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0.85rem; }
1193 .grid-3 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0.85rem; }
1194 .grid-4 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0.85rem; }
1195
1196 @media (min-width: 768px) {
1197 .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
1198 .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
1199 .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
1200 .md-flex { display: flex !important; }
1201 .md-hidden { display: none !important; }
1202 }
1203
1204 /* Mobile Drawer */
1205 .mobile-drawer {
1206 position: fixed;
1207 inset: 0;
1208 z-index: 75;
1209 background-color: rgba(0, 0, 0, 0.5);
1210 display: none;
1211 }
1212 .mobile-drawer.open {
1213 display: block;
1214 }
1215 .mobile-drawer-panel {
1216 width: 224px;
1217 max-width: 85vw;
1218 height: 100%;
1219 background-color: hsl(var(--card));
1220 border-right: 1px solid hsl(var(--border));
1221 padding: 0.75rem 0.65rem;
1222 display: flex;
1223 flex-direction: column;
1224 justify-content: space-between;
1225 }
1226
1227 @media (min-width: 1024px) {
1228 .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
1229 }
1230
1231 /* ── Polar repository shell ─────────────────────────────────────────── */
1232 .repo-banner {
1233 position: relative;
1234 display: flex;
1235 align-items: flex-start;
1236 justify-content: space-between;
1237 gap: 1rem;
1238 flex-wrap: wrap;
1239 padding: 0.9rem 1rem 0.95rem;
1240 background: hsl(var(--card));
1241 border: 1px solid hsl(var(--border));
1242 border-radius: calc(var(--radius) * 1.6);
1243 overflow: hidden;
1244 }
1245
1246 .repo-banner-main {
1247 display: flex;
1248 align-items: center;
1249 gap: 0.7rem;
1250 min-width: 0;
1251 flex: 1 1 20rem;
1252 }
1253 .repo-banner-actions {
1254 display: flex;
1255 align-items: center;
1256 gap: 0.4rem;
1257 flex-wrap: wrap;
1258 }
1259
1260
1261
1262 .repo-layout {
1263 display: grid;
1264 grid-template-columns: minmax(0, 1fr) 280px;
1265 gap: 1rem;
1266 align-items: start;
1267 }
1268 .repo-main {
1269 min-width: 0;
1270 }
1271 .repo-side {
1272 display: flex;
1273 flex-direction: column;
1274 gap: 0.9rem;
1275 position: sticky;
1276 top: 0.75rem;
1277 }
1278 .side-card {
1279 border: 1px solid hsl(var(--border));
1280 border-radius: calc(var(--radius) * 1.3);
1281 background: hsl(var(--card));
1282 overflow: hidden;
1283 }
1284 .side-card-header {
1285 display: flex;
1286 align-items: center;
1287 gap: 0.4rem;
1288 padding: 0.5rem 0.8rem;
1289 font-size: 0.78rem;
1290 font-weight: 600;
1291 border-bottom: 1px solid hsl(var(--border));
1292 background: hsl(var(--muted) / 0.3);
1293 }
1294 .side-card-body {
1295 display: flex;
1296 flex-direction: column;
1297 gap: 0.55rem;
1298 padding: 0.7rem 0.8rem;
1299 font-size: 0.8rem;
1300 }
1301 .meta-row {
1302 display: flex;
1303 align-items: center;
1304 justify-content: space-between;
1305 gap: 0.5rem;
1306 color: hsl(var(--muted-foreground));
1307 }
1308 .meta-row a,
1309 .meta-row b {
1310 color: hsl(var(--foreground));
1311 }
1312 .clone-box {
1313 display: flex;
1314 align-items: center;
1315 gap: 0.35rem;
1316 border: 1px solid hsl(var(--border));
1317 border-radius: var(--radius);
1318 background: hsl(var(--muted) / 0.25);
1319 padding: 0.15rem 0.25rem 0.15rem 0.6rem;
1320 min-width: 0;
1321 }
1322 .clone-box code {
1323 flex: 1;
1324 min-width: 0;
1325 overflow: hidden;
1326 text-overflow: ellipsis;
1327 white-space: nowrap;
1328 font-size: 0.72rem;
1329 }
1330 @media (max-width: 1000px) {
1331 .repo-layout {
1332 grid-template-columns: 1fr;
1333 }
1334 .repo-side {
1335 position: static;
1336 order: -1;
1337 }
1338 }