rin
Публичный Open-source lightweight git hosting.
input.css · 1325 строк · 30.6 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 }
681 .avatar-lg {
682 width: 2.2rem;
683 height: 2.2rem;
684 font-size: 0.9rem;
685 }
686
687 /* Separator */
688 .separator {
689 height: 1px;
690 width: 100%;
691 background-color: hsl(var(--border));
692 margin: 0.85rem 0;
693 border: 0;
694 }
695
696 /* Tabs */
697 .tabs-nav {
698 display: flex;
699 align-items: center;
700 gap: 0.15rem;
701 padding: 0.2rem;
702 border: 1px solid hsl(var(--border));
703 border-radius: 999px;
704 background: hsl(var(--muted) / 0.25);
705 margin-bottom: 1rem;
706 overflow-x: auto;
707 }
708 .tab-link {
709 display: inline-flex;
710 align-items: center;
711 gap: 0.35rem;
712 padding: 0.38rem 0.8rem;
713 font-size: 0.82rem;
714 font-weight: 500;
715 color: hsl(var(--muted-foreground));
716 border-radius: 999px;
717 white-space: nowrap;
718 transition: color 100ms ease, background-color 100ms ease;
719 }
720 .tab-link:hover {
721 color: hsl(var(--foreground));
722 }
723 .tab-link.active {
724 color: hsl(var(--foreground));
725 background: hsl(var(--card));
726 box-shadow: 0 1px 2px hsl(0 0% 0% / 0.08);
727 }
728
729 /* Dense File List & Tables */
730 .dense-list {
731 width: 100%;
732 }
733 .dense-row {
734 display: flex;
735 align-items: center;
736 justify-content: space-between;
737 gap: 0.75rem;
738 min-height: 2.05rem;
739 padding: 0.25rem 0.75rem;
740 border-bottom: 1px solid hsl(var(--border));
741 font-size: 0.85rem;
742 transition: background-color 80ms ease;
743 }
744 .dense-row:last-child {
745 border-bottom: none;
746 }
747 .dense-row:hover {
748 background-color: hsl(var(--accent) / 0.5);
749 }
750
751 .table-wrap {
752 width: 100%;
753 overflow-x: auto;
754 border: 1px solid hsl(var(--border));
755 border-radius: var(--radius);
756 background-color: hsl(var(--card));
757 }
758 .table {
759 width: 100%;
760 border-collapse: collapse;
761 font-size: 0.85rem;
762 }
763 .table th {
764 text-align: left;
765 font-weight: 500;
766 color: hsl(var(--muted-foreground));
767 padding: 0.5rem 0.75rem;
768 border-bottom: 1px solid hsl(var(--border));
769 background-color: hsl(var(--muted) / 0.35);
770 font-size: 0.75rem;
771 }
772 .table td {
773 padding: 0.5rem 0.75rem;
774 border-bottom: 1px solid hsl(var(--border));
775 vertical-align: middle;
776 }
777 .table tr:last-child td {
778 border-bottom: none;
779 }
780
781 /* Breadcrumb */
782 .breadcrumb {
783 display: flex;
784 align-items: center;
785 flex-wrap: wrap;
786 gap: 0.25rem;
787 font-size: 0.85rem;
788 }
789 .breadcrumb-sep {
790 color: hsl(var(--muted-foreground));
791 }
792
793 /* Dropdown Menu */
794 @keyframes dropdownIn {
795 from {
796 opacity: 0;
797 transform: translateY(-4px) scale(0.98);
798 }
799 to {
800 opacity: 1;
801 transform: translateY(0) scale(1);
802 }
803 }
804 .dropdown {
805 position: relative;
806 display: inline-block;
807 }
808 .dropdown-menu {
809 position: absolute;
810 left: 0;
811 top: calc(100% + 0.3rem);
812 min-width: 11rem;
813 background-color: hsl(var(--popover));
814 color: hsl(var(--popover-foreground));
815 border: 1px solid hsl(var(--border));
816 border-radius: var(--radius);
817 padding: 0.25rem;
818 box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.22);
819 z-index: 60;
820 display: none;
821 transform-origin: top left;
822 }
823 .dropdown-menu.open {
824 display: block;
825 animation: dropdownIn 140ms cubic-bezier(0.16, 1, 0.3, 1);
826 }
827 .dropdown-item {
828 display: flex;
829 width: 100%;
830 align-items: center;
831 justify-content: space-between;
832 gap: 0.5rem;
833 padding: 0.35rem 0.55rem;
834 font-size: 0.8rem;
835 border-radius: calc(var(--radius) - 2px);
836 color: hsl(var(--popover-foreground));
837 background: transparent;
838 border: 0;
839 cursor: pointer;
840 text-align: left;
841 transition: background-color 120ms ease, color 120ms ease;
842 }
843 .dropdown-item:hover, .dropdown-item.active {
844 background-color: hsl(var(--accent));
845 color: hsl(var(--accent-foreground));
846 }
847
848 /* Modal / Dialog & Command Palette */
849 @keyframes backdropIn {
850 from { opacity: 0; }
851 to { opacity: 1; }
852 }
853 @keyframes dialogIn {
854 from {
855 opacity: 0;
856 transform: translateY(-6px) scale(0.97);
857 }
858 to {
859 opacity: 1;
860 transform: translateY(0) scale(1);
861 }
862 }
863 .backdrop {
864 position: fixed;
865 inset: 0;
866 background-color: rgba(0, 0, 0, 0.55);
867 backdrop-filter: blur(2px);
868 z-index: 80;
869 display: none;
870 align-items: flex-start;
871 justify-content: center;
872 padding: 10vh 1rem 2rem;
873 }
874 .backdrop.open {
875 display: flex;
876 animation: backdropIn 140ms ease;
877 }
878 .dialog-box {
879 width: 100%;
880 max-width: 28rem;
881 background-color: hsl(var(--popover));
882 color: hsl(var(--popover-foreground));
883 border: 1px solid hsl(var(--border));
884 border-radius: var(--radius);
885 box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.35);
886 overflow: hidden;
887 animation: dialogIn 170ms cubic-bezier(0.16, 1, 0.3, 1);
888 }
889 .palette-box {
890 width: 100%;
891 max-width: 34rem;
892 background-color: hsl(var(--popover));
893 color: hsl(var(--popover-foreground));
894 border: 1px solid hsl(var(--border));
895 border-radius: var(--radius);
896 box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.4);
897 overflow: hidden;
898 animation: dialogIn 170ms cubic-bezier(0.16, 1, 0.3, 1);
899 }
900 .palette-input-wrap {
901 display: flex;
902 align-items: center;
903 gap: 0.6rem;
904 padding: 0.6rem 0.8rem;
905 border-bottom: 1px solid hsl(var(--border));
906 }
907 .palette-input {
908 width: 100%;
909 border: 0;
910 background: transparent;
911 color: hsl(var(--foreground));
912 font-size: 0.9rem;
913 outline: none;
914 }
915 .palette-list {
916 max-height: 20rem;
917 overflow-y: auto;
918 padding: 0.3rem;
919 }
920 .palette-group-title {
921 padding: 0.3rem 0.5rem 0.15rem;
922 font-size: 0.68rem;
923 font-weight: 600;
924 text-transform: uppercase;
925 letter-spacing: 0.04em;
926 color: hsl(var(--muted-foreground));
927 }
928 .palette-item {
929 display: flex;
930 width: 100%;
931 align-items: center;
932 justify-content: space-between;
933 gap: 0.5rem;
934 padding: 0.4rem 0.55rem;
935 border-radius: calc(var(--radius) - 2px);
936 font-size: 0.85rem;
937 color: hsl(var(--foreground));
938 cursor: pointer;
939 border: 0;
940 background: transparent;
941 text-align: left;
942 transition: background-color 100ms ease, color 100ms ease;
943 }
944 .palette-item:hover, .palette-item.selected {
945 background-color: hsl(var(--accent));
946 color: hsl(var(--accent-foreground));
947 }
948
949 /* Toast */
950 @keyframes toastIn {
951 from {
952 opacity: 0;
953 transform: translateY(8px) scale(0.97);
954 }
955 to {
956 opacity: 1;
957 transform: translateY(0) scale(1);
958 }
959 }
960 .toast-container {
961 position: fixed;
962 bottom: 1rem;
963 right: 1rem;
964 z-index: 90;
965 display: flex;
966 flex-direction: column;
967 gap: 0.4rem;
968 max-width: 20rem;
969 }
970 .toast {
971 display: flex;
972 align-items: center;
973 justify-content: space-between;
974 gap: 0.65rem;
975 padding: 0.5rem 0.75rem;
976 border-radius: var(--radius);
977 border: 1px solid hsl(var(--border));
978 background-color: hsl(var(--popover));
979 color: hsl(var(--popover-foreground));
980 box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.25);
981 font-size: 0.8rem;
982 animation: toastIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
983 }
984
985 /* Skeleton */
986 @keyframes pulse {
987 0%, 100% { opacity: 1; }
988 50% { opacity: 0.45; }
989 }
990 .skeleton {
991 background-color: hsl(var(--muted));
992 border-radius: calc(var(--radius) - 2px);
993 animation: pulse 1.6s ease-in-out infinite;
994 }
995
996 /* Empty State */
997 .empty-state {
998 text-align: center;
999 padding: 2rem 1rem;
1000 border: 1px dashed hsl(var(--border));
1001 border-radius: var(--radius);
1002 color: hsl(var(--muted-foreground));
1003 }
1004
1005 /* Code Viewer & Chroma */
1006 .code-table {
1007 width: 100%;
1008 border-collapse: collapse;
1009 font-family: 'JetBrains Mono', monospace;
1010 font-size: 0.8rem;
1011 line-height: 1.5;
1012 }
1013 .code-ln {
1014 width: 1%;
1015 min-width: 2.75rem;
1016 padding: 0 0.65rem;
1017 text-align: right;
1018 color: hsl(var(--muted-foreground) / 0.6);
1019 user-select: none;
1020 vertical-align: top;
1021 border-right: 1px solid hsl(var(--border));
1022 }
1023 .code-line {
1024 padding: 0 0.75rem;
1025 white-space: pre;
1026 overflow-x: auto;
1027 }
1028 .chroma .k, .chroma .kc, .chroma .kd, .chroma .kn, .chroma .kp, .chroma .kr { color: hsl(var(--syntax-kw)); font-weight: 500; }
1029 .chroma .kt { color: hsl(var(--syntax-type)); }
1030 .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)); }
1031 .chroma .c, .chroma .ch, .chroma .cm, .chroma .c1, .chroma .cs, .chroma .cp, .chroma .cpf { color: hsl(var(--syntax-cmt)); font-style: italic; }
1032 .chroma .nf, .chroma .fm, .chroma .nx { color: hsl(var(--syntax-fn)); }
1033 .chroma .m, .chroma .mb, .chroma .mf, .chroma .mh, .chroma .mi, .chroma .il, .chroma .mo { color: hsl(var(--syntax-num)); }
1034 .chroma .o, .chroma .ow { color: hsl(var(--syntax-op)); }
1035
1036 /* Diff Viewer */
1037 .diff-table {
1038 width: 100%;
1039 border-collapse: collapse;
1040 font-family: 'JetBrains Mono', monospace;
1041 font-size: 0.78rem;
1042 line-height: 1.5;
1043 }
1044 .diff-row-add {
1045 background-color: hsl(var(--diff-add-bg));
1046 color: hsl(var(--diff-add-fg));
1047 }
1048 .diff-row-del {
1049 background-color: hsl(var(--diff-del-bg));
1050 color: hsl(var(--diff-del-fg));
1051 }
1052 .diff-row-hunk {
1053 background-color: hsl(var(--muted));
1054 color: hsl(var(--muted-foreground));
1055 }
1056 .diff-num {
1057 width: 2.75rem;
1058 padding: 0 0.45rem;
1059 text-align: right;
1060 user-select: none;
1061 opacity: 0.65;
1062 border-right: 1px solid hsl(var(--border));
1063 }
1064 .diff-code {
1065 padding: 0 0.65rem;
1066 white-space: pre-wrap;
1067 word-break: break-all;
1068 }
1069
1070 /* Markdown Body */
1071 .markdown-body {
1072 font-size: 0.9rem;
1073 line-height: 1.6;
1074 color: hsl(var(--foreground));
1075 }
1076 .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
1077 margin-top: 1.25em;
1078 margin-bottom: 0.45em;
1079 font-weight: 600;
1080 line-height: 1.25;
1081 }
1082 .markdown-body h1 { font-size: 1.35rem; padding-bottom: 0.25rem; border-bottom: 1px solid hsl(var(--border)); }
1083 .markdown-body h2 { font-size: 1.15rem; padding-bottom: 0.2rem; border-bottom: 1px solid hsl(var(--border)); }
1084 .markdown-body h3 { font-size: 1rem; }
1085 .markdown-body h1:first-child, .markdown-body h2:first-child { margin-top: 0; }
1086 .markdown-body p, .markdown-body ul, .markdown-body ol, .markdown-body pre, .markdown-body blockquote {
1087 margin-top: 0;
1088 margin-bottom: 0.8rem;
1089 }
1090 .markdown-body code {
1091 background-color: hsl(var(--muted));
1092 padding: 0.12rem 0.3rem;
1093 border-radius: 0.25rem;
1094 font-size: 0.84em;
1095 }
1096 .markdown-body pre {
1097 background-color: hsl(var(--muted) / 0.6);
1098 border: 1px solid hsl(var(--border));
1099 border-radius: var(--radius);
1100 padding: 0.75rem 0.9rem;
1101 overflow-x: auto;
1102 }
1103 .markdown-body pre code {
1104 background: transparent;
1105 padding: 0;
1106 }
1107 .markdown-body a {
1108 text-decoration: underline;
1109 text-underline-offset: 3px;
1110 }
1111
1112 /* Utility Helpers */
1113 .flex { display: flex; }
1114 .block { display: block; }
1115 .inline-flex { display: inline-flex; }
1116 .grid { display: grid; }
1117 .hidden { display: none; }
1118 .items-center { align-items: center; }
1119 .items-start { align-items: flex-start; }
1120 .items-baseline { align-items: baseline; }
1121 .justify-between { justify-content: space-between; }
1122 .justify-center { justify-content: center; }
1123 .justify-end { justify-content: flex-end; }
1124 .flex-col { flex-direction: column; }
1125 .flex-wrap { flex-wrap: wrap; }
1126 .flex-1 { flex: 1 1 0%; }
1127 .flex-shrink-0 { flex-shrink: 0; }
1128 .min-w-0 { min-width: 0; }
1129 .gap-0\.5 { gap: 0.125rem; }
1130 .gap-1 { gap: 0.25rem; }
1131 .gap-1\.5 { gap: 0.375rem; }
1132 .gap-2 { gap: 0.5rem; }
1133 .gap-2\.5 { gap: 0.625rem; }
1134 .gap-3 { gap: 0.75rem; }
1135 .gap-4 { gap: 1rem; }
1136 .gap-6 { gap: 1.5rem; }
1137 .w-full { width: 100%; }
1138 .text-xs { font-size: 0.75rem; }
1139 .text-sm { font-size: 0.85rem; }
1140 .text-base { font-size: 0.96rem; }
1141 .text-lg { font-size: 1.1rem; }
1142 .text-xl { font-size: 1.25rem; }
1143 .text-2xl { font-size: 1.5rem; }
1144 .font-medium { font-weight: 500; }
1145 .font-semibold { font-weight: 600; }
1146 .font-bold { font-weight: 700; }
1147 .uppercase { text-transform: uppercase; }
1148 .tracking-tight { letter-spacing: -0.015em; }
1149 .text-muted { color: hsl(var(--muted-foreground)); }
1150 .text-destructive { color: hsl(var(--destructive)); }
1151 .text-foreground { color: hsl(var(--foreground)); }
1152 .text-center { text-align: center; }
1153 .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1154 .hover\:underline:hover { text-decoration: underline; }
1155 .select-all { user-select: all; }
1156 .cursor-pointer { cursor: pointer; }
1157 .mt-0\.5 { margin-top: 0.125rem; }
1158 .mt-1 { margin-top: 0.25rem; }
1159 .mt-2 { margin-top: 0.5rem; }
1160 .mt-3 { margin-top: 0.75rem; }
1161 .mt-4 { margin-top: 1rem; }
1162 .mt-6 { margin-top: 1.5rem; }
1163 .mr-2 { margin-right: 0.5rem; }
1164 .mb-1 { margin-bottom: 0.25rem; }
1165 .mb-1\.5 { margin-bottom: 0.375rem; }
1166 .mb-2 { margin-bottom: 0.5rem; }
1167 .mb-3 { margin-bottom: 0.75rem; }
1168 .mb-4 { margin-bottom: 1rem; }
1169 .mb-6 { margin-bottom: 1.5rem; }
1170 .p-2 { padding: 0.5rem; }
1171 .p-3 { padding: 0.75rem; }
1172 .p-4 { padding: 1rem; }
1173 .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
1174 .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
1175 .pt-2 { padding-top: 0.5rem; }
1176 .pt-3 { padding-top: 0.75rem; }
1177 .pb-3 { padding-bottom: 0.75rem; }
1178
1179 .grid-2 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0.85rem; }
1180 .grid-3 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0.85rem; }
1181 .grid-4 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0.85rem; }
1182
1183 @media (min-width: 768px) {
1184 .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
1185 .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
1186 .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
1187 .md-flex { display: flex !important; }
1188 .md-hidden { display: none !important; }
1189 }
1190
1191 /* Mobile Drawer */
1192 .mobile-drawer {
1193 position: fixed;
1194 inset: 0;
1195 z-index: 75;
1196 background-color: rgba(0, 0, 0, 0.5);
1197 display: none;
1198 }
1199 .mobile-drawer.open {
1200 display: block;
1201 }
1202 .mobile-drawer-panel {
1203 width: 224px;
1204 max-width: 85vw;
1205 height: 100%;
1206 background-color: hsl(var(--card));
1207 border-right: 1px solid hsl(var(--border));
1208 padding: 0.75rem 0.65rem;
1209 display: flex;
1210 flex-direction: column;
1211 justify-content: space-between;
1212 }
1213
1214 @media (min-width: 1024px) {
1215 .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
1216 }
1217
1218 /* ── Polar repository shell ─────────────────────────────────────────── */
1219 .repo-banner {
1220 position: relative;
1221 display: flex;
1222 align-items: flex-start;
1223 justify-content: space-between;
1224 gap: 1rem;
1225 flex-wrap: wrap;
1226 padding: 0.9rem 1rem 0.95rem;
1227 background: hsl(var(--card));
1228 border: 1px solid hsl(var(--border));
1229 border-radius: calc(var(--radius) * 1.6);
1230 overflow: hidden;
1231 }
1232
1233 .repo-banner-main {
1234 display: flex;
1235 align-items: center;
1236 gap: 0.7rem;
1237 min-width: 0;
1238 flex: 1 1 20rem;
1239 }
1240 .repo-banner-actions {
1241 display: flex;
1242 align-items: center;
1243 gap: 0.4rem;
1244 flex-wrap: wrap;
1245 }
1246
1247
1248
1249 .repo-layout {
1250 display: grid;
1251 grid-template-columns: minmax(0, 1fr) 280px;
1252 gap: 1rem;
1253 align-items: start;
1254 }
1255 .repo-main {
1256 min-width: 0;
1257 }
1258 .repo-side {
1259 display: flex;
1260 flex-direction: column;
1261 gap: 0.9rem;
1262 position: sticky;
1263 top: 0.75rem;
1264 }
1265 .side-card {
1266 border: 1px solid hsl(var(--border));
1267 border-radius: calc(var(--radius) * 1.3);
1268 background: hsl(var(--card));
1269 overflow: hidden;
1270 }
1271 .side-card-header {
1272 display: flex;
1273 align-items: center;
1274 gap: 0.4rem;
1275 padding: 0.5rem 0.8rem;
1276 font-size: 0.78rem;
1277 font-weight: 600;
1278 border-bottom: 1px solid hsl(var(--border));
1279 background: hsl(var(--muted) / 0.3);
1280 }
1281 .side-card-body {
1282 display: flex;
1283 flex-direction: column;
1284 gap: 0.55rem;
1285 padding: 0.7rem 0.8rem;
1286 font-size: 0.8rem;
1287 }
1288 .meta-row {
1289 display: flex;
1290 align-items: center;
1291 justify-content: space-between;
1292 gap: 0.5rem;
1293 color: hsl(var(--muted-foreground));
1294 }
1295 .meta-row a,
1296 .meta-row b {
1297 color: hsl(var(--foreground));
1298 }
1299 .clone-box {
1300 display: flex;
1301 align-items: center;
1302 gap: 0.35rem;
1303 border: 1px solid hsl(var(--border));
1304 border-radius: var(--radius);
1305 background: hsl(var(--muted) / 0.25);
1306 padding: 0.15rem 0.25rem 0.15rem 0.6rem;
1307 min-width: 0;
1308 }
1309 .clone-box code {
1310 flex: 1;
1311 min-width: 0;
1312 overflow: hidden;
1313 text-overflow: ellipsis;
1314 white-space: nowrap;
1315 font-size: 0.72rem;
1316 }
1317 @media (max-width: 1000px) {
1318 .repo-layout {
1319 grid-template-columns: 1fr;
1320 }
1321 .repo-side {
1322 position: static;
1323 order: -1;
1324 }
1325 }