rin
Public Open-source lightweight git hosting.
input.css · 1392 lines · 32.2 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 .muted-link {
377 color: hsl(var(--muted-foreground));
378 transition: color 140ms ease;
379 }
380 .muted-link:hover {
381 color: hsl(var(--foreground));
382 }
383 .nav-section-label {
384 display: flex;
385 align-items: center;
386 justify-content: space-between;
387 padding: 0.45rem 0.55rem 0.25rem;
388 font-size: 0.7rem;
389 font-weight: 600;
390 text-transform: uppercase;
391 letter-spacing: 0.04em;
392 color: hsl(var(--muted-foreground));
393 }
394
395 /* Segmented Theme Control in Sidebar */
396 .segmented {
397 display: grid;
398 grid-template-columns: repeat(3, minmax(0, 1fr));
399 gap: 2px;
400 padding: 2px;
401 width: 100%;
402 background-color: hsl(var(--muted));
403 border: 1px solid hsl(var(--border));
404 border-radius: var(--radius);
405 }
406 .segmented-btn {
407 display: inline-flex;
408 align-items: center;
409 justify-content: center;
410 gap: 0.25rem;
411 height: 1.65rem;
412 padding: 0 0.2rem;
413 border: 0;
414 border-radius: calc(var(--radius) - 2px);
415 background: transparent;
416 color: hsl(var(--muted-foreground));
417 font-size: 0.72rem;
418 font-weight: 500;
419 cursor: pointer;
420 overflow: hidden;
421 text-overflow: ellipsis;
422 white-space: nowrap;
423 transition: background-color 150ms cubic-bezier(0.16, 1, 0.3, 1), color 150ms ease, box-shadow 150ms ease, transform 120ms ease;
424 }
425 .segmented-btn:hover {
426 color: hsl(var(--foreground));
427 }
428 .segmented-btn:active {
429 transform: scale(0.96);
430 }
431 .segmented-btn.active {
432 background-color: hsl(var(--background));
433 color: hsl(var(--foreground));
434 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
435 }
436
437 /* Icons */
438 .icon {
439 display: inline-block;
440 vertical-align: middle;
441 flex-shrink: 0;
442 stroke: currentColor;
443 }
444 .size-3 { width: 0.75rem; height: 0.75rem; }
445 .size-3\.5 { width: 0.875rem; height: 0.875rem; }
446 .size-4 { width: 1rem; height: 1rem; }
447 .size-5 { width: 1.25rem; height: 1.25rem; }
448 .size-6 { width: 1.5rem; height: 1.5rem; }
449
450 /* Buttons */
451 .btn {
452 display: inline-flex;
453 align-items: center;
454 justify-content: center;
455 gap: 0.4rem;
456 white-space: nowrap;
457 border-radius: var(--radius);
458 font-size: 0.85rem;
459 font-weight: 500;
460 line-height: 1;
461 height: 1.95rem;
462 padding: 0 0.7rem;
463 border: 1px solid transparent;
464 cursor: pointer;
465 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);
466 user-select: none;
467 }
468 .btn:active:not(:disabled) {
469 transform: scale(0.97);
470 }
471 .btn:disabled {
472 opacity: 0.5;
473 pointer-events: none;
474 }
475 .btn-sm {
476 height: 1.7rem;
477 padding: 0 0.5rem;
478 font-size: 0.78rem;
479 }
480 .btn-lg {
481 height: 2.3rem;
482 padding: 0 1rem;
483 font-size: 0.92rem;
484 }
485 .btn-icon {
486 width: 1.9rem;
487 height: 1.9rem;
488 padding: 0;
489 }
490 .btn-default, .btn-primary {
491 background-color: hsl(var(--primary));
492 color: hsl(var(--primary-foreground));
493 }
494 .btn-default:hover, .btn-primary:hover {
495 opacity: 0.9;
496 }
497 .btn-secondary {
498 background-color: hsl(var(--secondary));
499 color: hsl(var(--secondary-foreground));
500 border-color: hsl(var(--border));
501 }
502 .btn-secondary:hover {
503 background-color: hsl(var(--accent));
504 }
505 .btn-outline {
506 background-color: transparent;
507 color: hsl(var(--foreground));
508 border-color: hsl(var(--border));
509 }
510 .btn-outline:hover {
511 background-color: hsl(var(--accent));
512 color: hsl(var(--accent-foreground));
513 }
514 .btn-ghost {
515 background-color: transparent;
516 color: hsl(var(--muted-foreground));
517 }
518 .btn-ghost:hover {
519 background-color: hsl(var(--accent));
520 color: hsl(var(--foreground));
521 }
522 .btn-destructive {
523 background-color: hsl(var(--destructive));
524 color: hsl(var(--destructive-foreground));
525 }
526 .btn-destructive:hover {
527 opacity: 0.9;
528 }
529
530 /* Inputs, Selects, Textareas */
531 .input, .select, .textarea {
532 display: block;
533 width: 100%;
534 border-radius: var(--radius);
535 border: 1px solid hsl(var(--input));
536 background-color: hsl(var(--background));
537 color: hsl(var(--foreground));
538 font-size: 0.85rem;
539 padding: 0.35rem 0.6rem;
540 transition: border-color 100ms ease;
541 }
542 .input, .select {
543 height: 2.05rem;
544 }
545 .textarea {
546 min-height: 4rem;
547 resize: vertical;
548 }
549 .input:focus, .select:focus, .textarea:focus {
550 outline: none;
551 border-color: hsl(var(--ring));
552 }
553 .input::placeholder, .textarea::placeholder {
554 color: hsl(var(--muted-foreground));
555 }
556 .label {
557 display: block;
558 font-size: 0.8rem;
559 font-weight: 500;
560 margin-bottom: 0.3rem;
561 color: hsl(var(--foreground));
562 }
563 .field-hint {
564 font-size: 0.74rem;
565 color: hsl(var(--muted-foreground));
566 margin-top: 0.25rem;
567 }
568
569 /* Switch */
570 .switch {
571 position: relative;
572 display: inline-flex;
573 width: 2.1rem;
574 height: 1.2rem;
575 flex-shrink: 0;
576 cursor: pointer;
577 align-items: center;
578 border-radius: 9999px;
579 border: 1px solid hsl(var(--border));
580 background-color: hsl(var(--muted));
581 }
582 .switch input {
583 opacity: 0;
584 width: 0;
585 height: 0;
586 position: absolute;
587 }
588 .switch-thumb {
589 pointer-events: none;
590 display: block;
591 width: 0.85rem;
592 height: 0.85rem;
593 border-radius: 9999px;
594 background-color: hsl(var(--foreground));
595 transform: translateX(0.15rem);
596 transition: transform 100ms ease;
597 }
598 .switch input:checked ~ .switch-thumb {
599 transform: translateX(0.95rem);
600 }
601
602 /* Cards */
603 .card {
604 border-radius: var(--radius);
605 border: 1px solid hsl(var(--border));
606 background-color: hsl(var(--card));
607 color: hsl(var(--card-foreground));
608 }
609 .card-header {
610 padding: 0.7rem 0.9rem;
611 border-bottom: 1px solid hsl(var(--border));
612 display: flex;
613 align-items: center;
614 justify-content: space-between;
615 gap: 0.75rem;
616 }
617 .card-body {
618 padding: 0.9rem;
619 }
620 .card-footer {
621 padding: 0.65rem 0.9rem;
622 border-top: 1px solid hsl(var(--border));
623 background-color: hsl(var(--muted) / 0.3);
624 }
625
626 /* Badges */
627 .badge {
628 display: inline-flex;
629 align-items: center;
630 gap: 0.25rem;
631 border-radius: 9999px;
632 border: 1px solid hsl(var(--border));
633 padding: 0.08rem 0.45rem;
634 font-size: 0.72rem;
635 font-weight: 500;
636 line-height: 1.3;
637 color: hsl(var(--foreground));
638 background-color: hsl(var(--secondary));
639 }
640 .badge-outline {
641 background-color: transparent;
642 color: hsl(var(--muted-foreground));
643 }
644 .badge-primary {
645 background-color: hsl(var(--primary));
646 color: hsl(var(--primary-foreground));
647 border-color: transparent;
648 }
649 .badge-destructive {
650 background-color: hsl(var(--destructive) / 0.12);
651 color: hsl(var(--destructive));
652 border-color: hsl(var(--destructive) / 0.3);
653 }
654
655 /* Kbd */
656 kbd, .kbd {
657 display: inline-flex;
658 align-items: center;
659 justify-content: center;
660 min-width: 1.25rem;
661 height: 1.15rem;
662 padding: 0 0.28rem;
663 font-size: 0.68rem;
664 font-weight: 500;
665 line-height: 1;
666 color: hsl(var(--muted-foreground));
667 background-color: hsl(var(--muted));
668 border: 1px solid hsl(var(--border));
669 border-radius: 0.25rem;
670 }
671
672 /* Avatar */
673 .avatar {
674 display: inline-flex;
675 align-items: center;
676 justify-content: center;
677 width: 1.45rem;
678 height: 1.45rem;
679 border-radius: 9999px;
680 background-color: hsl(var(--secondary));
681 border: 1px solid hsl(var(--border));
682 font-size: 0.7rem;
683 font-weight: 600;
684 color: hsl(var(--foreground));
685 text-transform: uppercase;
686 flex-shrink: 0;
687 overflow: hidden;
688 }
689 .avatar-img {
690 width: 100%;
691 height: 100%;
692 object-fit: cover;
693 display: block;
694 }
695 .avatar-lg {
696 width: 2.3rem;
697 height: 2.3rem;
698 font-size: 0.9rem;
699 }
700 .avatar-xl {
701 width: 4.25rem;
702 height: 4.25rem;
703 font-size: 1.5rem;
704 }
705 .avatar-xxl {
706 width: 8.5rem;
707 height: 8.5rem;
708 font-size: 2.75rem;
709 box-shadow: 0 0 0 3px hsl(var(--background)), 0 0 0 4px hsl(var(--border));
710 }
711 .profile-chip {
712 display: inline-flex;
713 align-items: center;
714 gap: 0.35rem;
715 padding: 0.28rem 0.65rem;
716 border: 1px solid hsl(var(--border));
717 border-radius: 9999px;
718 background: hsl(var(--muted) / 0.25);
719 font-size: 0.75rem;
720 color: hsl(var(--muted-foreground));
721 text-decoration: none;
722 }
723 .profile-chip a {
724 color: inherit;
725 text-decoration: none;
726 }
727 .profile-chip a:hover {
728 color: hsl(var(--foreground));
729 }
730 .repo-card {
731 transition: border-color 0.15s ease;
732 }
733 .repo-card:hover {
734 border-color: hsl(var(--foreground) / 0.3);
735 }
736 @media (max-width: 640px) {
737 .avatar-xxl {
738 width: 6rem;
739 height: 6rem;
740 font-size: 2rem;
741 }
742 }
743
744
745 /* Separator */
746 .separator {
747 height: 1px;
748 width: 100%;
749 background-color: hsl(var(--border));
750 margin: 0.85rem 0;
751 border: 0;
752 }
753
754 /* Tabs */
755 .tabs-nav {
756 display: flex;
757 align-items: center;
758 gap: 0.15rem;
759 padding: 0.2rem;
760 border: 1px solid hsl(var(--border));
761 border-radius: 999px;
762 background: hsl(var(--muted) / 0.25);
763 margin-bottom: 1rem;
764 overflow-x: auto;
765 }
766 .tab-link {
767 display: inline-flex;
768 align-items: center;
769 gap: 0.35rem;
770 padding: 0.38rem 0.8rem;
771 font-size: 0.82rem;
772 font-weight: 500;
773 color: hsl(var(--muted-foreground));
774 border-radius: 999px;
775 white-space: nowrap;
776 transition: color 100ms ease, background-color 100ms ease;
777 }
778 .tab-link:hover {
779 color: hsl(var(--foreground));
780 }
781 .tab-link.active {
782 color: hsl(var(--foreground));
783 background: hsl(var(--card));
784 box-shadow: 0 1px 2px hsl(0 0% 0% / 0.08);
785 }
786
787 /* Dense File List & Tables */
788 .dense-list {
789 width: 100%;
790 }
791 .dense-row {
792 display: flex;
793 align-items: center;
794 justify-content: space-between;
795 gap: 0.75rem;
796 min-height: 2.05rem;
797 padding: 0.25rem 0.75rem;
798 border-bottom: 1px solid hsl(var(--border));
799 font-size: 0.85rem;
800 transition: background-color 80ms ease;
801 }
802 .dense-row:last-child {
803 border-bottom: none;
804 }
805 .dense-row:hover {
806 background-color: hsl(var(--accent) / 0.5);
807 }
808
809 .table-wrap {
810 width: 100%;
811 overflow-x: auto;
812 border: 1px solid hsl(var(--border));
813 border-radius: var(--radius);
814 background-color: hsl(var(--card));
815 }
816 .table {
817 width: 100%;
818 border-collapse: collapse;
819 font-size: 0.85rem;
820 }
821 .table th {
822 text-align: left;
823 font-weight: 500;
824 color: hsl(var(--muted-foreground));
825 padding: 0.5rem 0.75rem;
826 border-bottom: 1px solid hsl(var(--border));
827 background-color: hsl(var(--muted) / 0.35);
828 font-size: 0.75rem;
829 }
830 .table td {
831 padding: 0.5rem 0.75rem;
832 border-bottom: 1px solid hsl(var(--border));
833 vertical-align: middle;
834 }
835 .table tr:last-child td {
836 border-bottom: none;
837 }
838
839 /* Breadcrumb */
840 .breadcrumb {
841 display: flex;
842 align-items: center;
843 flex-wrap: wrap;
844 gap: 0.25rem;
845 font-size: 0.85rem;
846 }
847 .breadcrumb-sep {
848 color: hsl(var(--muted-foreground));
849 }
850
851 /* Dropdown Menu */
852 @keyframes dropdownIn {
853 from {
854 opacity: 0;
855 transform: translateY(-4px) scale(0.98);
856 }
857 to {
858 opacity: 1;
859 transform: translateY(0) scale(1);
860 }
861 }
862 .dropdown {
863 position: relative;
864 display: inline-block;
865 }
866 .dropdown-menu {
867 position: absolute;
868 left: 0;
869 top: calc(100% + 0.3rem);
870 min-width: 11rem;
871 background-color: hsl(var(--popover));
872 color: hsl(var(--popover-foreground));
873 border: 1px solid hsl(var(--border));
874 border-radius: var(--radius);
875 padding: 0.25rem;
876 box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.22);
877 z-index: 60;
878 display: none;
879 transform-origin: top left;
880 }
881 .dropdown-menu.open {
882 display: block;
883 animation: dropdownIn 140ms cubic-bezier(0.16, 1, 0.3, 1);
884 }
885 .dropdown-item {
886 display: flex;
887 width: 100%;
888 align-items: center;
889 justify-content: space-between;
890 gap: 0.5rem;
891 padding: 0.35rem 0.55rem;
892 font-size: 0.8rem;
893 border-radius: calc(var(--radius) - 2px);
894 color: hsl(var(--popover-foreground));
895 background: transparent;
896 border: 0;
897 cursor: pointer;
898 text-align: left;
899 transition: background-color 120ms ease, color 120ms ease;
900 }
901 .dropdown-item:hover, .dropdown-item.active {
902 background-color: hsl(var(--accent));
903 color: hsl(var(--accent-foreground));
904 }
905
906 /* Modal / Dialog & Command Palette */
907 @keyframes backdropIn {
908 from { opacity: 0; }
909 to { opacity: 1; }
910 }
911 @keyframes dialogIn {
912 from {
913 opacity: 0;
914 transform: translateY(-6px) scale(0.97);
915 }
916 to {
917 opacity: 1;
918 transform: translateY(0) scale(1);
919 }
920 }
921 .backdrop {
922 position: fixed;
923 inset: 0;
924 background-color: rgba(0, 0, 0, 0.55);
925 backdrop-filter: blur(2px);
926 z-index: 80;
927 display: none;
928 align-items: flex-start;
929 justify-content: center;
930 padding: 10vh 1rem 2rem;
931 }
932 .backdrop.open {
933 display: flex;
934 animation: backdropIn 140ms ease;
935 }
936 .dialog-box {
937 width: 100%;
938 max-width: 28rem;
939 background-color: hsl(var(--popover));
940 color: hsl(var(--popover-foreground));
941 border: 1px solid hsl(var(--border));
942 border-radius: var(--radius);
943 box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.35);
944 overflow: hidden;
945 animation: dialogIn 170ms cubic-bezier(0.16, 1, 0.3, 1);
946 }
947 .palette-box {
948 width: 100%;
949 max-width: 34rem;
950 background-color: hsl(var(--popover));
951 color: hsl(var(--popover-foreground));
952 border: 1px solid hsl(var(--border));
953 border-radius: var(--radius);
954 box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.4);
955 overflow: hidden;
956 animation: dialogIn 170ms cubic-bezier(0.16, 1, 0.3, 1);
957 }
958 .palette-input-wrap {
959 display: flex;
960 align-items: center;
961 gap: 0.6rem;
962 padding: 0.6rem 0.8rem;
963 border-bottom: 1px solid hsl(var(--border));
964 }
965 .palette-input {
966 width: 100%;
967 border: 0;
968 background: transparent;
969 color: hsl(var(--foreground));
970 font-size: 0.9rem;
971 outline: none;
972 }
973 .palette-list {
974 max-height: 20rem;
975 overflow-y: auto;
976 padding: 0.3rem;
977 }
978 .palette-group-title {
979 padding: 0.3rem 0.5rem 0.15rem;
980 font-size: 0.68rem;
981 font-weight: 600;
982 text-transform: uppercase;
983 letter-spacing: 0.04em;
984 color: hsl(var(--muted-foreground));
985 }
986 .palette-item {
987 display: flex;
988 width: 100%;
989 align-items: center;
990 justify-content: space-between;
991 gap: 0.5rem;
992 padding: 0.4rem 0.55rem;
993 border-radius: calc(var(--radius) - 2px);
994 font-size: 0.85rem;
995 color: hsl(var(--foreground));
996 cursor: pointer;
997 border: 0;
998 background: transparent;
999 text-align: left;
1000 transition: background-color 100ms ease, color 100ms ease;
1001 }
1002 .palette-item:hover, .palette-item.selected {
1003 background-color: hsl(var(--accent));
1004 color: hsl(var(--accent-foreground));
1005 }
1006
1007 /* Toast */
1008 @keyframes toastIn {
1009 from {
1010 opacity: 0;
1011 transform: translateY(8px) scale(0.97);
1012 }
1013 to {
1014 opacity: 1;
1015 transform: translateY(0) scale(1);
1016 }
1017 }
1018 .toast-container {
1019 position: fixed;
1020 bottom: 1rem;
1021 right: 1rem;
1022 z-index: 90;
1023 display: flex;
1024 flex-direction: column;
1025 gap: 0.4rem;
1026 max-width: 20rem;
1027 }
1028 .toast {
1029 display: flex;
1030 align-items: center;
1031 justify-content: space-between;
1032 gap: 0.65rem;
1033 padding: 0.5rem 0.75rem;
1034 border-radius: var(--radius);
1035 border: 1px solid hsl(var(--border));
1036 background-color: hsl(var(--popover));
1037 color: hsl(var(--popover-foreground));
1038 box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.25);
1039 font-size: 0.8rem;
1040 animation: toastIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
1041 }
1042
1043 /* Skeleton */
1044 @keyframes pulse {
1045 0%, 100% { opacity: 1; }
1046 50% { opacity: 0.45; }
1047 }
1048 .skeleton {
1049 background-color: hsl(var(--muted));
1050 border-radius: calc(var(--radius) - 2px);
1051 animation: pulse 1.6s ease-in-out infinite;
1052 }
1053
1054 /* Empty State */
1055 .empty-state {
1056 text-align: center;
1057 padding: 2rem 1rem;
1058 border: 1px dashed hsl(var(--border));
1059 border-radius: var(--radius);
1060 color: hsl(var(--muted-foreground));
1061 }
1062
1063 /* Code Viewer & Chroma */
1064 .code-table {
1065 width: 100%;
1066 border-collapse: collapse;
1067 font-family: 'JetBrains Mono', monospace;
1068 font-size: 0.8rem;
1069 line-height: 1.5;
1070 }
1071 .code-ln {
1072 width: 1%;
1073 min-width: 2.75rem;
1074 padding: 0 0.65rem;
1075 text-align: right;
1076 color: hsl(var(--muted-foreground) / 0.6);
1077 user-select: none;
1078 vertical-align: top;
1079 border-right: 1px solid hsl(var(--border));
1080 }
1081 .code-line {
1082 padding: 0 0.75rem;
1083 white-space: pre;
1084 overflow-x: auto;
1085 }
1086 .chroma .k, .chroma .kc, .chroma .kd, .chroma .kn, .chroma .kp, .chroma .kr { color: hsl(var(--syntax-kw)); font-weight: 500; }
1087 .chroma .kt { color: hsl(var(--syntax-type)); }
1088 .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)); }
1089 .chroma .c, .chroma .ch, .chroma .cm, .chroma .c1, .chroma .cs, .chroma .cp, .chroma .cpf { color: hsl(var(--syntax-cmt)); font-style: italic; }
1090 .chroma .nf, .chroma .fm, .chroma .nx { color: hsl(var(--syntax-fn)); }
1091 .chroma .m, .chroma .mb, .chroma .mf, .chroma .mh, .chroma .mi, .chroma .il, .chroma .mo { color: hsl(var(--syntax-num)); }
1092 .chroma .o, .chroma .ow { color: hsl(var(--syntax-op)); }
1093
1094 /* Diff Viewer */
1095 .diff-table {
1096 width: 100%;
1097 border-collapse: collapse;
1098 font-family: 'JetBrains Mono', monospace;
1099 font-size: 0.78rem;
1100 line-height: 1.5;
1101 }
1102 .diff-row-add {
1103 background-color: hsl(var(--diff-add-bg));
1104 color: hsl(var(--diff-add-fg));
1105 }
1106 .diff-row-del {
1107 background-color: hsl(var(--diff-del-bg));
1108 color: hsl(var(--diff-del-fg));
1109 }
1110 .diff-row-hunk {
1111 background-color: hsl(var(--muted));
1112 color: hsl(var(--muted-foreground));
1113 }
1114 .diff-num {
1115 width: 2.75rem;
1116 padding: 0 0.45rem;
1117 text-align: right;
1118 user-select: none;
1119 opacity: 0.65;
1120 border-right: 1px solid hsl(var(--border));
1121 }
1122 .diff-code {
1123 padding: 0 0.65rem;
1124 white-space: pre-wrap;
1125 word-break: break-all;
1126 }
1127
1128 /* Markdown Body */
1129 .markdown-body {
1130 font-size: 0.9rem;
1131 line-height: 1.6;
1132 color: hsl(var(--foreground));
1133 }
1134 .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
1135 margin-top: 1.25em;
1136 margin-bottom: 0.45em;
1137 font-weight: 600;
1138 line-height: 1.25;
1139 }
1140 .markdown-body h1 { font-size: 1.35rem; padding-bottom: 0.25rem; border-bottom: 1px solid hsl(var(--border)); }
1141 .markdown-body h2 { font-size: 1.15rem; padding-bottom: 0.2rem; border-bottom: 1px solid hsl(var(--border)); }
1142 .markdown-body h3 { font-size: 1rem; }
1143 .markdown-body h1:first-child, .markdown-body h2:first-child { margin-top: 0; }
1144 .markdown-body p, .markdown-body ul, .markdown-body ol, .markdown-body pre, .markdown-body blockquote {
1145 margin-top: 0;
1146 margin-bottom: 0.8rem;
1147 }
1148 .markdown-body code {
1149 background-color: hsl(var(--muted));
1150 padding: 0.12rem 0.3rem;
1151 border-radius: 0.25rem;
1152 font-size: 0.84em;
1153 }
1154 .markdown-body pre {
1155 background-color: hsl(var(--muted) / 0.6);
1156 border: 1px solid hsl(var(--border));
1157 border-radius: var(--radius);
1158 padding: 0.75rem 0.9rem;
1159 overflow-x: auto;
1160 }
1161 .markdown-body pre code {
1162 background: transparent;
1163 padding: 0;
1164 }
1165 .markdown-body a {
1166 text-decoration: underline;
1167 text-underline-offset: 3px;
1168 }
1169
1170 /* Utility Helpers */
1171 .flex { display: flex; }
1172 .block { display: block; }
1173 .inline-flex { display: inline-flex; }
1174 .grid { display: grid; }
1175 .hidden { display: none; }
1176 .items-center { align-items: center; }
1177 .items-start { align-items: flex-start; }
1178 .items-baseline { align-items: baseline; }
1179 .justify-between { justify-content: space-between; }
1180 .justify-center { justify-content: center; }
1181 .justify-end { justify-content: flex-end; }
1182 .flex-col { flex-direction: column; }
1183 .flex-wrap { flex-wrap: wrap; }
1184 .flex-1 { flex: 1 1 0%; }
1185 .flex-shrink-0 { flex-shrink: 0; }
1186 .min-w-0 { min-width: 0; }
1187 .gap-0\.5 { gap: 0.125rem; }
1188 .gap-1 { gap: 0.25rem; }
1189 .gap-1\.5 { gap: 0.375rem; }
1190 .gap-2 { gap: 0.5rem; }
1191 .gap-2\.5 { gap: 0.625rem; }
1192 .gap-3 { gap: 0.75rem; }
1193 .gap-4 { gap: 1rem; }
1194 .gap-6 { gap: 1.5rem; }
1195 .w-full { width: 100%; }
1196 .text-xs { font-size: 0.75rem; }
1197 .text-sm { font-size: 0.85rem; }
1198 .text-base { font-size: 0.96rem; }
1199 .text-lg { font-size: 1.1rem; }
1200 .text-xl { font-size: 1.25rem; }
1201 .text-2xl { font-size: 1.5rem; }
1202 .font-medium { font-weight: 500; }
1203 .font-semibold { font-weight: 600; }
1204 .font-bold { font-weight: 700; }
1205 .uppercase { text-transform: uppercase; }
1206 .tracking-tight { letter-spacing: -0.015em; }
1207 .text-muted { color: hsl(var(--muted-foreground)); }
1208 .text-destructive { color: hsl(var(--destructive)); }
1209 .text-foreground { color: hsl(var(--foreground)); }
1210 .text-center { text-align: center; }
1211 .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1212 .hover\:underline:hover { text-decoration: underline; }
1213 .select-all { user-select: all; }
1214 .cursor-pointer { cursor: pointer; }
1215 .mt-0\.5 { margin-top: 0.125rem; }
1216 .mt-1 { margin-top: 0.25rem; }
1217 .mt-2 { margin-top: 0.5rem; }
1218 .mt-3 { margin-top: 0.75rem; }
1219 .mt-4 { margin-top: 1rem; }
1220 .mt-6 { margin-top: 1.5rem; }
1221 .mr-2 { margin-right: 0.5rem; }
1222 .mb-1 { margin-bottom: 0.25rem; }
1223 .mb-1\.5 { margin-bottom: 0.375rem; }
1224 .mb-2 { margin-bottom: 0.5rem; }
1225 .mb-3 { margin-bottom: 0.75rem; }
1226 .mb-4 { margin-bottom: 1rem; }
1227 .mb-6 { margin-bottom: 1.5rem; }
1228 .p-2 { padding: 0.5rem; }
1229 .p-3 { padding: 0.75rem; }
1230 .p-4 { padding: 1rem; }
1231 .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
1232 .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
1233 .pt-2 { padding-top: 0.5rem; }
1234 .pt-3 { padding-top: 0.75rem; }
1235 .pb-3 { padding-bottom: 0.75rem; }
1236
1237 .grid-2 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0.85rem; }
1238 .grid-3 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0.85rem; }
1239 .grid-4 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0.85rem; }
1240
1241 @media (min-width: 768px) {
1242 .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
1243 .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
1244 .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
1245 .md-flex { display: flex !important; }
1246 .md-hidden { display: none !important; }
1247 }
1248
1249 /* Mobile Drawer */
1250 .mobile-drawer {
1251 position: fixed;
1252 inset: 0;
1253 z-index: 75;
1254 background-color: rgba(0, 0, 0, 0.5);
1255 display: none;
1256 }
1257 .mobile-drawer.open {
1258 display: block;
1259 }
1260 .mobile-drawer-panel {
1261 width: 224px;
1262 max-width: 85vw;
1263 height: 100%;
1264 background-color: hsl(var(--card));
1265 border-right: 1px solid hsl(var(--border));
1266 padding: 0.75rem 0.65rem;
1267 display: flex;
1268 flex-direction: column;
1269 justify-content: space-between;
1270 }
1271
1272 @media (min-width: 1024px) {
1273 .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
1274 }
1275
1276 /* ── Polar repository shell ─────────────────────────────────────────── */
1277 .repo-banner {
1278 position: relative;
1279 display: flex;
1280 align-items: flex-start;
1281 justify-content: space-between;
1282 gap: 1rem;
1283 flex-wrap: wrap;
1284 padding: 0.65rem 1rem;
1285 background: hsl(var(--card));
1286 border: 1px solid hsl(var(--border));
1287 border-radius: calc(var(--radius) * 1.6);
1288 overflow: hidden;
1289 }
1290
1291 .repo-banner-main {
1292 display: flex;
1293 align-items: center;
1294 gap: 0.7rem;
1295 min-width: 0;
1296 flex: 1 1 20rem;
1297 }
1298 .repo-banner-actions {
1299 display: flex;
1300 align-items: center;
1301 gap: 0.4rem;
1302 flex-wrap: wrap;
1303 }
1304 .repo-head-block {
1305 min-width: 0;
1306 flex: 1 1 auto;
1307 }
1308 .repo-head-row {
1309 display: flex;
1310 align-items: center;
1311 gap: 0.55rem;
1312 flex-wrap: wrap;
1313 min-width: 0;
1314 }
1315 .repo-desc {
1316 flex: 1 1 6rem;
1317 min-width: 0;
1318 max-width: 36rem;
1319 overflow: hidden;
1320 text-overflow: ellipsis;
1321 white-space: nowrap;
1322 font-size: 0.8rem;
1323 line-height: 1.35;
1324 color: hsl(var(--muted-foreground));
1325 transition: color 0.15s ease;
1326 }
1327 .repo-desc.truncated {
1328 cursor: pointer;
1329 }
1330 .repo-desc.truncated:hover {
1331 color: hsl(var(--foreground));
1332 }
1333 .repo-banner.desc-open .repo-desc {
1334 flex-basis: 100%;
1335 max-width: 100%;
1336 white-space: normal;
1337 overflow: visible;
1338 overflow-wrap: anywhere;
1339 }
1340 .repo-avatar {
1341 transition: width 0.2s ease, height 0.2s ease, font-size 0.2s ease;
1342 }
1343
1344
1345
1346 .clone-box {
1347 display: flex;
1348 align-items: center;
1349 gap: 0.35rem;
1350 border: 1px solid hsl(var(--border));
1351 border-radius: var(--radius);
1352 background: hsl(var(--muted) / 0.25);
1353 padding: 0.15rem 0.25rem 0.15rem 0.6rem;
1354 min-width: 0;
1355 }
1356 .clone-box code {
1357 flex: 1;
1358 min-width: 0;
1359 overflow: hidden;
1360 text-overflow: ellipsis;
1361 white-space: nowrap;
1362 font-size: 0.72rem;
1363 }
1364 .upload-drop {
1365 display: flex;
1366 flex-direction: column;
1367 align-items: center;
1368 gap: 0.35rem;
1369 text-align: center;
1370 padding: 1.6rem 1rem;
1371 border: 1.5px dashed hsl(var(--border));
1372 border-radius: calc(var(--radius) * 1.3);
1373 background: hsl(var(--muted) / 0.2);
1374 color: hsl(var(--muted-foreground));
1375 cursor: pointer;
1376 transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
1377 }
1378 .upload-drop:hover {
1379 border-color: hsl(var(--foreground) / 0.4);
1380 color: hsl(var(--foreground));
1381 }
1382 .upload-drop.drag {
1383 border-color: hsl(var(--foreground) / 0.6);
1384 background: hsl(var(--muted) / 0.5);
1385 color: hsl(var(--foreground));
1386 }
1387 /* Utility completion (classes used in templates but absent from the build) */
1388 .relative { position: relative; }
1389 .gap-1\.5 { gap: 0.375rem; }
1390 .gap-5 { gap: 1.25rem; }
1391 .mb-1\.5 { margin-bottom: 0.375rem; }
1392 .pt-1 { padding-top: 0.25rem; }