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