input.css
·
1855 строк
·
43.1 KB
| 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% 38%; |
| 42 | --accent: 0 0% 93%; |
| 43 | --accent-foreground: 0 0% 6.7%; |
| 44 | --destructive: 0 72% 46%; |
| 45 | --destructive-foreground: 0 0% 100%; |
| 46 | --destructive-surface: 0 72% 96%; |
| 47 | --border: 0 0% 90%; |
| 48 | --input: 0 0% 89%; |
| 49 | --ring: 0 0% 6.7%; |
| 50 | --radius: 0.45rem; |
| 51 | |
| 52 | --diff-add-bg: 142 70% 94%; |
| 53 | --diff-add-fg: 142 76% 22%; |
| 54 | --diff-del-bg: 0 86% 95%; |
| 55 | --diff-del-fg: 0 72% 35%; |
| 56 | |
| 57 | --syntax-kw: 262 72% 42%; |
| 58 | --syntax-str: 142 68% 28%; |
| 59 | --syntax-cmt: 0 0% 46%; |
| 60 | --syntax-fn: 215 80% 42%; |
| 61 | --syntax-num: 24 85% 38%; |
| 62 | --syntax-type: 190 78% 32%; |
| 63 | --syntax-op: 0 0% 25%; |
| 64 | color-scheme: light; |
| 65 | } |
| 66 | |
| 67 | html[data-theme="dark"] { |
| 68 | --background: 0 0% 6.7%; |
| 69 | --foreground: 0 0% 100%; |
| 70 | --card: 0 0% 10%; |
| 71 | --card-foreground: 0 0% 100%; |
| 72 | --popover: 0 0% 11%; |
| 73 | --popover-foreground: 0 0% 100%; |
| 74 | --primary: 0 0% 100%; |
| 75 | --primary-foreground: 0 0% 6.7%; |
| 76 | --secondary: 0 0% 15%; |
| 77 | --secondary-foreground: 0 0% 100%; |
| 78 | --muted: 0 0% 14%; |
| 79 | --muted-foreground: 0 0% 74%; |
| 80 | --accent: 0 0% 17%; |
| 81 | --accent-foreground: 0 0% 100%; |
| 82 | --destructive: 0 72% 58%; |
| 83 | --destructive-foreground: 0 0% 98%; |
| 84 | --destructive-surface: 0 45% 15%; |
| 85 | --border: 0 0% 20%; |
| 86 | --input: 0 0% 17%; |
| 87 | --ring: 0 0% 85%; |
| 88 | |
| 89 | --diff-add-bg: 142 50% 12%; |
| 90 | --diff-add-fg: 142 70% 75%; |
| 91 | --diff-del-bg: 0 55% 14%; |
| 92 | --diff-del-fg: 0 80% 78%; |
| 93 | |
| 94 | --syntax-kw: 265 85% 78%; |
| 95 | --syntax-str: 142 65% 70%; |
| 96 | --syntax-cmt: 0 0% 54%; |
| 97 | --syntax-fn: 210 90% 74%; |
| 98 | --syntax-num: 32 90% 72%; |
| 99 | --syntax-type: 188 80% 68%; |
| 100 | --syntax-op: 0 0% 78%; |
| 101 | color-scheme: dark; |
| 102 | } |
| 103 | |
| 104 | @media (prefers-color-scheme: dark) { |
| 105 | html[data-theme="system"] { |
| 106 | --background: 0 0% 6.7%; |
| 107 | --foreground: 0 0% 100%; |
| 108 | --card: 0 0% 10%; |
| 109 | --card-foreground: 0 0% 100%; |
| 110 | --popover: 0 0% 11%; |
| 111 | --popover-foreground: 0 0% 100%; |
| 112 | --primary: 0 0% 100%; |
| 113 | --primary-foreground: 0 0% 6.7%; |
| 114 | --secondary: 0 0% 15%; |
| 115 | --secondary-foreground: 0 0% 100%; |
| 116 | --muted: 0 0% 14%; |
| 117 | --muted-foreground: 0 0% 74%; |
| 118 | --accent: 0 0% 17%; |
| 119 | --accent-foreground: 0 0% 100%; |
| 120 | --destructive: 0 72% 58%; |
| 121 | --destructive-foreground: 0 0% 98%; |
| 122 | --destructive-surface: 0 45% 15%; |
| 123 | --border: 0 0% 20%; |
| 124 | --input: 0 0% 17%; |
| 125 | --ring: 0 0% 85%; |
| 126 | --diff-add-bg: 142 50% 12%; |
| 127 | --diff-add-fg: 142 70% 75%; |
| 128 | --diff-del-bg: 0 55% 14%; |
| 129 | --diff-del-fg: 0 80% 78%; |
| 130 | --syntax-kw: 265 85% 78%; |
| 131 | --syntax-str: 142 65% 70%; |
| 132 | --syntax-cmt: 0 0% 54%; |
| 133 | --syntax-fn: 210 90% 74%; |
| 134 | --syntax-num: 32 90% 72%; |
| 135 | --syntax-type: 188 80% 68%; |
| 136 | --syntax-op: 0 0% 78%; |
| 137 | color-scheme: dark; |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | *, *::before, *::after { |
| 142 | box-sizing: border-box; |
| 143 | border-color: hsl(var(--border)); |
| 144 | } |
| 145 | |
| 146 | html { |
| 147 | font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; |
| 148 | font-size: 13.5px; |
| 149 | line-height: 1.5; |
| 150 | -webkit-font-smoothing: antialiased; |
| 151 | background-color: hsl(var(--background)); |
| 152 | color: hsl(var(--foreground)); |
| 153 | overflow-y: scroll; |
| 154 | } |
| 155 | |
| 156 | body { |
| 157 | margin: 0; |
| 158 | min-height: 100vh; |
| 159 | background-color: hsl(var(--background)); |
| 160 | color: hsl(var(--foreground)); |
| 161 | } |
| 162 | |
| 163 | code, pre, kbd, .font-mono { |
| 164 | font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; |
| 165 | } |
| 166 | |
| 167 | a { |
| 168 | color: inherit; |
| 169 | text-decoration: none; |
| 170 | } |
| 171 | |
| 172 | @media (prefers-reduced-motion: reduce) { |
| 173 | *, *::before, *::after { |
| 174 | animation-duration: 0.01ms !important; |
| 175 | transition-duration: 0.01ms !important; |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | :focus-visible { |
| 180 | outline: 2px solid hsl(var(--ring)); |
| 181 | outline-offset: 2px; |
| 182 | } |
| 183 | |
| 184 | /* App Shell: Left Sidebar + Right Main Content */ |
| 185 | .app-shell { |
| 186 | display: flex; |
| 187 | flex-direction: row; |
| 188 | align-items: stretch; |
| 189 | min-height: 100vh; |
| 190 | width: 100%; |
| 191 | } |
| 192 | |
| 193 | .app-sidebar { |
| 194 | width: 232px; |
| 195 | min-width: 232px; |
| 196 | max-width: 232px; |
| 197 | flex: 0 0 232px; |
| 198 | border: 1px solid hsl(var(--border)); |
| 199 | border-radius: calc(var(--radius) * 1.5); |
| 200 | background-color: hsl(var(--card)); |
| 201 | display: none; |
| 202 | flex-direction: column; |
| 203 | justify-content: space-between; |
| 204 | position: sticky; |
| 205 | top: 0.75rem; |
| 206 | height: calc(100vh - 1.5rem); |
| 207 | margin: 0.75rem 0 0.75rem 0.75rem; |
| 208 | overflow-y: auto; |
| 209 | overflow-x: hidden; |
| 210 | padding: 0.85rem 0.7rem; |
| 211 | user-select: none; |
| 212 | transition: |
| 213 | width 200ms cubic-bezier(0.16, 1, 0.3, 1), |
| 214 | min-width 200ms cubic-bezier(0.16, 1, 0.3, 1), |
| 215 | max-width 200ms cubic-bezier(0.16, 1, 0.3, 1), |
| 216 | flex-basis 200ms cubic-bezier(0.16, 1, 0.3, 1), |
| 217 | margin 200ms cubic-bezier(0.16, 1, 0.3, 1), |
| 218 | padding 200ms cubic-bezier(0.16, 1, 0.3, 1), |
| 219 | border-color 200ms cubic-bezier(0.16, 1, 0.3, 1); |
| 220 | } |
| 221 | |
| 222 | .sidebar-inner { |
| 223 | width: 100%; |
| 224 | min-width: 0; |
| 225 | height: 100%; |
| 226 | display: flex; |
| 227 | flex-direction: column; |
| 228 | justify-content: space-between; |
| 229 | transition: |
| 230 | opacity 150ms cubic-bezier(0.16, 1, 0.3, 1), |
| 231 | transform 200ms cubic-bezier(0.16, 1, 0.3, 1); |
| 232 | } |
| 233 | |
| 234 | html[data-sidebar="collapsed"] .app-sidebar { |
| 235 | width: 0; |
| 236 | min-width: 0; |
| 237 | max-width: 0; |
| 238 | flex-basis: 0; |
| 239 | margin: 0.75rem 0; |
| 240 | padding-left: 0; |
| 241 | padding-right: 0; |
| 242 | border-color: transparent; |
| 243 | } |
| 244 | |
| 245 | html[data-sidebar="collapsed"] .sidebar-inner { |
| 246 | opacity: 0; |
| 247 | transform: translateX(-8px); |
| 248 | pointer-events: none; |
| 249 | } |
| 250 | |
| 251 | .sidebar-expand-btn { |
| 252 | position: fixed; |
| 253 | top: 0.85rem; |
| 254 | left: 0.85rem; |
| 255 | z-index: 50; |
| 256 | display: none; |
| 257 | align-items: center; |
| 258 | justify-content: center; |
| 259 | width: 2rem; |
| 260 | height: 2rem; |
| 261 | border-radius: var(--radius); |
| 262 | border: 1px solid hsl(var(--border)); |
| 263 | background-color: hsl(var(--card)); |
| 264 | color: hsl(var(--muted-foreground)); |
| 265 | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); |
| 266 | cursor: pointer; |
| 267 | opacity: 0; |
| 268 | transform: translateX(-6px) scale(0.95); |
| 269 | pointer-events: none; |
| 270 | transition: |
| 271 | opacity 160ms cubic-bezier(0.16, 1, 0.3, 1), |
| 272 | transform 160ms cubic-bezier(0.16, 1, 0.3, 1), |
| 273 | background-color 120ms ease, |
| 274 | color 120ms ease; |
| 275 | } |
| 276 | |
| 277 | .sidebar-expand-btn:hover { |
| 278 | background-color: hsl(var(--accent)); |
| 279 | color: hsl(var(--foreground)); |
| 280 | } |
| 281 | |
| 282 | .mobile-topbar { |
| 283 | display: flex; |
| 284 | align-items: center; |
| 285 | justify-content: space-between; |
| 286 | height: 2.75rem; |
| 287 | padding: 0 0.85rem; |
| 288 | border-bottom: 1px solid hsl(var(--border)); |
| 289 | background-color: hsl(var(--card)); |
| 290 | } |
| 291 | |
| 292 | .app-col { |
| 293 | flex: 1 1 0%; |
| 294 | min-width: 0; |
| 295 | width: 100%; |
| 296 | display: flex; |
| 297 | flex-direction: column; |
| 298 | min-height: 100vh; |
| 299 | position: relative; |
| 300 | isolation: isolate; |
| 301 | } |
| 302 | |
| 303 | .page-bg { |
| 304 | position: absolute; |
| 305 | inset: 0; |
| 306 | z-index: 0; |
| 307 | left: 0; |
| 308 | overflow: hidden; |
| 309 | pointer-events: none; |
| 310 | background: hsl(var(--background)); |
| 311 | transition: left 200ms cubic-bezier(0.16, 1, 0.3, 1); |
| 312 | } |
| 313 | .page-bg img { |
| 314 | position: absolute; |
| 315 | inset: 0 0 auto; |
| 316 | width: 100%; |
| 317 | height: clamp(28rem, 92vh, 54rem); |
| 318 | object-fit: cover; |
| 319 | object-position: center 28%; |
| 320 | opacity: 0.9; |
| 321 | filter: saturate(0.9) contrast(0.97); |
| 322 | -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.96) 38%, rgba(0, 0, 0, 0.62) 72%, transparent 100%); |
| 323 | mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.96) 38%, rgba(0, 0, 0, 0.62) 72%, transparent 100%); |
| 324 | } |
| 325 | .page-bg::after { |
| 326 | content: ""; |
| 327 | position: absolute; |
| 328 | inset: 0; |
| 329 | background: |
| 330 | radial-gradient(118% 86% at 50% 0%, transparent 16%, hsl(var(--background) / 0.36) 52%, hsl(var(--background) / 0.9) 86%, hsl(var(--background)) 100%), |
| 331 | linear-gradient(to bottom, |
| 332 | hsl(var(--background) / 0.5) 0%, |
| 333 | hsl(var(--background) / 0.6) 32%, |
| 334 | hsl(var(--background) / 0.88) 68%, |
| 335 | hsl(var(--background)) 100%); |
| 336 | } |
| 337 | .app-col > .mobile-topbar, |
| 338 | .app-col > .app-main { |
| 339 | position: relative; |
| 340 | z-index: 1; |
| 341 | } |
| 342 | |
| 343 | .app-main { |
| 344 | flex: 1 1 auto; |
| 345 | width: 100%; |
| 346 | padding: 1.5rem 1.25rem 3rem; |
| 347 | } |
| 348 | |
| 349 | @keyframes pageFadeIn { |
| 350 | from { |
| 351 | opacity: 0; |
| 352 | transform: translateY(4px); |
| 353 | } |
| 354 | to { |
| 355 | opacity: 1; |
| 356 | transform: translateY(0); |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | .app-main > .container, |
| 361 | .app-main > .container-narrow { |
| 362 | animation: pageFadeIn 160ms cubic-bezier(0.16, 1, 0.3, 1); |
| 363 | } |
| 364 | |
| 365 | @media (min-width: 640px) { |
| 366 | .app-sidebar { |
| 367 | display: flex; |
| 368 | } |
| 369 | .page-bg { |
| 370 | left: 0.75rem; |
| 371 | } |
| 372 | html[data-sidebar="collapsed"] .page-bg { |
| 373 | left: 0; |
| 374 | } |
| 375 | .sidebar-expand-btn { |
| 376 | display: inline-flex; |
| 377 | } |
| 378 | html[data-sidebar="collapsed"] .sidebar-expand-btn { |
| 379 | opacity: 1; |
| 380 | transform: translateX(0) scale(1); |
| 381 | pointer-events: auto; |
| 382 | } |
| 383 | .mobile-topbar { |
| 384 | display: none; |
| 385 | } |
| 386 | .app-main { |
| 387 | padding: 2rem 2.5rem 3.5rem; |
| 388 | } |
| 389 | } |
| 390 | |
| 391 | /* Unified Container Width — identical across Code, Commits, and Settings */ |
| 392 | .container, |
| 393 | .container-narrow { |
| 394 | width: 100%; |
| 395 | max-width: 960px; |
| 396 | margin-left: auto; |
| 397 | margin-right: auto; |
| 398 | } |
| 399 | |
| 400 | /* Sidebar Navigation */ |
| 401 | .nav-item { |
| 402 | display: flex; |
| 403 | align-items: center; |
| 404 | justify-content: space-between; |
| 405 | gap: 0.5rem; |
| 406 | height: 1.95rem; |
| 407 | padding: 0 0.55rem; |
| 408 | border-radius: var(--radius); |
| 409 | font-size: 0.85rem; |
| 410 | color: hsl(var(--muted-foreground)); |
| 411 | transition: background-color 140ms ease, color 140ms ease, transform 120ms cubic-bezier(0.16, 1, 0.3, 1); |
| 412 | cursor: pointer; |
| 413 | border: 0; |
| 414 | background: transparent; |
| 415 | width: 100%; |
| 416 | text-align: left; |
| 417 | overflow: hidden; |
| 418 | } |
| 419 | .nav-item:hover, |
| 420 | .nav-item.active { |
| 421 | background-color: hsl(var(--accent)); |
| 422 | color: hsl(var(--foreground)); |
| 423 | } |
| 424 | .nav-item:active { |
| 425 | transform: scale(0.985); |
| 426 | } |
| 427 | .muted-link { |
| 428 | color: hsl(var(--muted-foreground)); |
| 429 | transition: color 140ms ease; |
| 430 | } |
| 431 | .muted-link:hover { |
| 432 | color: hsl(var(--foreground)); |
| 433 | } |
| 434 | .nav-section-label { |
| 435 | display: flex; |
| 436 | align-items: center; |
| 437 | justify-content: space-between; |
| 438 | padding: 0.45rem 0.55rem 0.25rem; |
| 439 | font-size: 0.7rem; |
| 440 | font-weight: 600; |
| 441 | text-transform: uppercase; |
| 442 | letter-spacing: 0.04em; |
| 443 | color: hsl(var(--muted-foreground)); |
| 444 | } |
| 445 | |
| 446 | /* Segmented Theme Control in Sidebar */ |
| 447 | .segmented { |
| 448 | display: grid; |
| 449 | grid-template-columns: repeat(3, minmax(0, 1fr)); |
| 450 | gap: 2px; |
| 451 | padding: 2px; |
| 452 | width: 100%; |
| 453 | background-color: hsl(var(--muted)); |
| 454 | border: 1px solid hsl(var(--border)); |
| 455 | border-radius: var(--radius); |
| 456 | } |
| 457 | .segmented-btn { |
| 458 | display: inline-flex; |
| 459 | align-items: center; |
| 460 | justify-content: center; |
| 461 | gap: 0.25rem; |
| 462 | height: 1.65rem; |
| 463 | padding: 0 0.2rem; |
| 464 | border: 0; |
| 465 | border-radius: calc(var(--radius) - 2px); |
| 466 | background: transparent; |
| 467 | color: hsl(var(--muted-foreground)); |
| 468 | font-size: 0.72rem; |
| 469 | font-weight: 500; |
| 470 | cursor: pointer; |
| 471 | overflow: hidden; |
| 472 | text-overflow: ellipsis; |
| 473 | white-space: nowrap; |
| 474 | transition: background-color 150ms cubic-bezier(0.16, 1, 0.3, 1), color 150ms ease, box-shadow 150ms ease, transform 120ms ease; |
| 475 | } |
| 476 | .segmented-btn:hover { |
| 477 | color: hsl(var(--foreground)); |
| 478 | } |
| 479 | .segmented-btn:active { |
| 480 | transform: scale(0.96); |
| 481 | } |
| 482 | .segmented-btn.active { |
| 483 | background-color: hsl(var(--background)); |
| 484 | color: hsl(var(--foreground)); |
| 485 | box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); |
| 486 | } |
| 487 | |
| 488 | /* Icons */ |
| 489 | .icon { |
| 490 | display: inline-block; |
| 491 | vertical-align: middle; |
| 492 | flex-shrink: 0; |
| 493 | stroke: currentColor; |
| 494 | } |
| 495 | .size-3 { width: 0.75rem; height: 0.75rem; } |
| 496 | .size-3\.5 { width: 0.875rem; height: 0.875rem; } |
| 497 | .size-4 { width: 1rem; height: 1rem; } |
| 498 | .size-5 { width: 1.25rem; height: 1.25rem; } |
| 499 | .size-6 { width: 1.5rem; height: 1.5rem; } |
| 500 | |
| 501 | /* Buttons */ |
| 502 | .btn { |
| 503 | display: inline-flex; |
| 504 | align-items: center; |
| 505 | justify-content: center; |
| 506 | gap: 0.4rem; |
| 507 | white-space: nowrap; |
| 508 | border-radius: var(--radius); |
| 509 | font-size: 0.85rem; |
| 510 | font-weight: 500; |
| 511 | line-height: 1; |
| 512 | height: 1.95rem; |
| 513 | padding: 0 0.7rem; |
| 514 | border: 1px solid transparent; |
| 515 | cursor: pointer; |
| 516 | 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); |
| 517 | user-select: none; |
| 518 | } |
| 519 | .btn:active:not(:disabled) { |
| 520 | transform: scale(0.97); |
| 521 | } |
| 522 | .btn:disabled { |
| 523 | opacity: 0.5; |
| 524 | pointer-events: none; |
| 525 | } |
| 526 | .btn-sm { |
| 527 | height: 1.7rem; |
| 528 | padding: 0 0.5rem; |
| 529 | font-size: 0.78rem; |
| 530 | } |
| 531 | .btn-lg { |
| 532 | height: 2.3rem; |
| 533 | padding: 0 1rem; |
| 534 | font-size: 0.92rem; |
| 535 | } |
| 536 | .btn-icon { |
| 537 | width: 1.9rem; |
| 538 | height: 1.9rem; |
| 539 | padding: 0; |
| 540 | } |
| 541 | .btn-default, .btn-primary { |
| 542 | background-color: hsl(var(--primary)); |
| 543 | color: hsl(var(--primary-foreground)); |
| 544 | } |
| 545 | .btn-default:hover, .btn-primary:hover { |
| 546 | filter: brightness(0.92); |
| 547 | opacity: 1; |
| 548 | } |
| 549 | .btn-secondary { |
| 550 | background-color: hsl(var(--secondary)); |
| 551 | color: hsl(var(--secondary-foreground)); |
| 552 | border-color: hsl(var(--border)); |
| 553 | } |
| 554 | .btn-secondary:hover { |
| 555 | background-color: hsl(var(--accent)); |
| 556 | } |
| 557 | .btn-outline { |
| 558 | background-color: hsl(var(--card)); |
| 559 | color: hsl(var(--foreground)); |
| 560 | border-color: hsl(var(--border)); |
| 561 | } |
| 562 | .btn-outline:hover { |
| 563 | background-color: hsl(var(--accent)); |
| 564 | color: hsl(var(--accent-foreground)); |
| 565 | } |
| 566 | .btn-ghost { |
| 567 | background-color: hsl(var(--background)); |
| 568 | color: hsl(var(--muted-foreground)); |
| 569 | } |
| 570 | .btn-ghost:hover { |
| 571 | background-color: hsl(var(--accent)); |
| 572 | color: hsl(var(--foreground)); |
| 573 | } |
| 574 | .btn-destructive { |
| 575 | background-color: hsl(var(--destructive)); |
| 576 | color: hsl(var(--destructive-foreground)); |
| 577 | } |
| 578 | .btn-destructive:hover { |
| 579 | opacity: 0.9; |
| 580 | } |
| 581 | |
| 582 | /* Inputs, Selects, Textareas */ |
| 583 | .input, .select, .textarea { |
| 584 | display: block; |
| 585 | width: 100%; |
| 586 | border-radius: var(--radius); |
| 587 | border: 1px solid hsl(var(--input)); |
| 588 | background-color: hsl(var(--background)); |
| 589 | color: hsl(var(--foreground)); |
| 590 | font-size: 0.85rem; |
| 591 | padding: 0.35rem 0.6rem; |
| 592 | transition: border-color 100ms ease; |
| 593 | } |
| 594 | .input, .select { |
| 595 | height: 2.05rem; |
| 596 | } |
| 597 | .textarea { |
| 598 | min-height: 4rem; |
| 599 | resize: vertical; |
| 600 | } |
| 601 | .input:focus, .select:focus, .textarea:focus { |
| 602 | outline: none; |
| 603 | border-color: hsl(var(--ring)); |
| 604 | } |
| 605 | .input::placeholder, .textarea::placeholder { |
| 606 | color: hsl(var(--muted-foreground)); |
| 607 | } |
| 608 | .label { |
| 609 | display: block; |
| 610 | font-size: 0.8rem; |
| 611 | font-weight: 500; |
| 612 | margin-bottom: 0.3rem; |
| 613 | color: hsl(var(--foreground)); |
| 614 | } |
| 615 | .field-hint { |
| 616 | font-size: 0.74rem; |
| 617 | color: hsl(var(--muted-foreground)); |
| 618 | margin-top: 0.25rem; |
| 619 | } |
| 620 | |
| 621 | /* Switch */ |
| 622 | .switch { |
| 623 | position: relative; |
| 624 | display: inline-flex; |
| 625 | width: 2.1rem; |
| 626 | height: 1.2rem; |
| 627 | flex-shrink: 0; |
| 628 | cursor: pointer; |
| 629 | align-items: center; |
| 630 | border-radius: 9999px; |
| 631 | border: 1px solid hsl(var(--border)); |
| 632 | background-color: hsl(var(--muted)); |
| 633 | } |
| 634 | .switch input { |
| 635 | opacity: 0; |
| 636 | width: 0; |
| 637 | height: 0; |
| 638 | position: absolute; |
| 639 | } |
| 640 | .switch-thumb { |
| 641 | pointer-events: none; |
| 642 | display: block; |
| 643 | width: 0.85rem; |
| 644 | height: 0.85rem; |
| 645 | border-radius: 9999px; |
| 646 | background-color: hsl(var(--foreground)); |
| 647 | transform: translateX(0.15rem); |
| 648 | transition: transform 100ms ease; |
| 649 | } |
| 650 | .switch input:checked ~ .switch-thumb { |
| 651 | transform: translateX(0.95rem); |
| 652 | } |
| 653 | /* Toggle applied straight to the <input> (repo settings, release form) */ |
| 654 | input.switch { |
| 655 | appearance: none; |
| 656 | -webkit-appearance: none; |
| 657 | margin: 0; |
| 658 | padding: 0; |
| 659 | transition: background-color 0.15s ease, border-color 0.15s ease; |
| 660 | } |
| 661 | input.switch::after { |
| 662 | content: ""; |
| 663 | position: absolute; |
| 664 | top: 50%; |
| 665 | left: 0.16rem; |
| 666 | width: 0.85rem; |
| 667 | height: 0.85rem; |
| 668 | border-radius: 9999px; |
| 669 | background-color: hsl(var(--muted-foreground)); |
| 670 | transform: translateY(-50%); |
| 671 | transition: left 0.15s ease, background-color 0.15s ease; |
| 672 | } |
| 673 | input.switch:checked { |
| 674 | background-color: hsl(var(--primary)); |
| 675 | border-color: hsl(var(--primary)); |
| 676 | } |
| 677 | input.switch:checked::after { |
| 678 | left: calc(100% - 0.85rem - 0.16rem); |
| 679 | background-color: hsl(var(--primary-foreground)); |
| 680 | } |
| 681 | input.switch:focus-visible { |
| 682 | outline: 2px solid hsl(var(--ring) / 0.4); |
| 683 | outline-offset: 2px; |
| 684 | } |
| 685 | input.switch:disabled { |
| 686 | opacity: 0.5; |
| 687 | cursor: not-allowed; |
| 688 | } |
| 689 | input.switch:disabled::after { |
| 690 | opacity: 0.7; |
| 691 | } |
| 692 | |
| 693 | /* Radio */ |
| 694 | input[type="radio"] { |
| 695 | appearance: none; |
| 696 | -webkit-appearance: none; |
| 697 | position: relative; |
| 698 | display: inline-block; |
| 699 | width: 0.95rem; |
| 700 | height: 0.95rem; |
| 701 | margin: 0; |
| 702 | flex-shrink: 0; |
| 703 | cursor: pointer; |
| 704 | border: 1px solid hsl(var(--input)); |
| 705 | border-radius: 9999px; |
| 706 | background-color: hsl(var(--background)); |
| 707 | vertical-align: middle; |
| 708 | transition: border-color 0.15s ease, background-color 0.15s ease; |
| 709 | } |
| 710 | input[type="radio"]::after { |
| 711 | content: ""; |
| 712 | position: absolute; |
| 713 | inset: 0; |
| 714 | margin: auto; |
| 715 | width: 0.42rem; |
| 716 | height: 0.42rem; |
| 717 | border-radius: 9999px; |
| 718 | background-color: hsl(var(--background)); |
| 719 | transform: scale(0); |
| 720 | transition: transform 0.12s ease; |
| 721 | } |
| 722 | input[type="radio"]:checked { |
| 723 | border-color: hsl(var(--foreground)); |
| 724 | background-color: hsl(var(--foreground)); |
| 725 | } |
| 726 | input[type="radio"]:checked::after { |
| 727 | transform: scale(1); |
| 728 | } |
| 729 | input[type="radio"]:focus-visible { |
| 730 | outline: 2px solid hsl(var(--ring) / 0.4); |
| 731 | outline-offset: 2px; |
| 732 | } |
| 733 | |
| 734 | /* Cards */ |
| 735 | .card { |
| 736 | border-radius: var(--radius); |
| 737 | border: 1px solid hsl(var(--border)); |
| 738 | background-color: hsl(var(--card)); |
| 739 | color: hsl(var(--card-foreground)); |
| 740 | } |
| 741 | .card-header { |
| 742 | padding: 0.7rem 0.9rem; |
| 743 | border-bottom: 1px solid hsl(var(--border)); |
| 744 | display: flex; |
| 745 | align-items: center; |
| 746 | justify-content: space-between; |
| 747 | gap: 0.75rem; |
| 748 | } |
| 749 | .card-body { |
| 750 | padding: 0.9rem; |
| 751 | } |
| 752 | .card-footer { |
| 753 | padding: 0.65rem 0.9rem; |
| 754 | border-top: 1px solid hsl(var(--border)); |
| 755 | background-color: hsl(var(--muted)); |
| 756 | } |
| 757 | |
| 758 | /* Badges */ |
| 759 | .badge { |
| 760 | display: inline-flex; |
| 761 | align-items: center; |
| 762 | gap: 0.25rem; |
| 763 | border-radius: 9999px; |
| 764 | border: 1px solid hsl(var(--border)); |
| 765 | padding: 0.08rem 0.45rem; |
| 766 | font-size: 0.72rem; |
| 767 | font-weight: 500; |
| 768 | line-height: 1.3; |
| 769 | color: hsl(var(--foreground)); |
| 770 | background-color: hsl(var(--secondary)); |
| 771 | } |
| 772 | .badge-outline { |
| 773 | background-color: hsl(var(--background)); |
| 774 | color: hsl(var(--muted-foreground)); |
| 775 | } |
| 776 | .badge-primary { |
| 777 | background-color: hsl(var(--primary)); |
| 778 | color: hsl(var(--primary-foreground)); |
| 779 | border-color: transparent; |
| 780 | } |
| 781 | .badge-destructive { |
| 782 | background-color: hsl(var(--destructive-surface)); |
| 783 | color: hsl(var(--destructive)); |
| 784 | border-color: hsl(var(--destructive) / 0.3); |
| 785 | } |
| 786 | |
| 787 | /* Kbd */ |
| 788 | kbd, .kbd { |
| 789 | display: inline-flex; |
| 790 | align-items: center; |
| 791 | justify-content: center; |
| 792 | min-width: 1.25rem; |
| 793 | height: 1.15rem; |
| 794 | padding: 0 0.28rem; |
| 795 | font-size: 0.68rem; |
| 796 | font-weight: 500; |
| 797 | line-height: 1; |
| 798 | color: hsl(var(--muted-foreground)); |
| 799 | background-color: hsl(var(--muted)); |
| 800 | border: 1px solid hsl(var(--border)); |
| 801 | border-radius: 0.25rem; |
| 802 | } |
| 803 | |
| 804 | /* Avatar */ |
| 805 | .avatar { |
| 806 | display: inline-flex; |
| 807 | align-items: center; |
| 808 | justify-content: center; |
| 809 | width: 1.45rem; |
| 810 | height: 1.45rem; |
| 811 | border-radius: 9999px; |
| 812 | background-color: hsl(var(--secondary)); |
| 813 | border: 1px solid hsl(var(--border)); |
| 814 | font-size: 0.7rem; |
| 815 | font-weight: 600; |
| 816 | color: hsl(var(--foreground)); |
| 817 | text-transform: uppercase; |
| 818 | flex-shrink: 0; |
| 819 | overflow: hidden; |
| 820 | } |
| 821 | .avatar-img { |
| 822 | width: 100%; |
| 823 | height: 100%; |
| 824 | object-fit: cover; |
| 825 | display: block; |
| 826 | } |
| 827 | .avatar-lg { |
| 828 | width: 2.3rem; |
| 829 | height: 2.3rem; |
| 830 | font-size: 0.9rem; |
| 831 | } |
| 832 | .avatar-xl { |
| 833 | width: 4.25rem; |
| 834 | height: 4.25rem; |
| 835 | font-size: 1.5rem; |
| 836 | } |
| 837 | .avatar-xxl { |
| 838 | width: 8.5rem; |
| 839 | height: 8.5rem; |
| 840 | font-size: 2.75rem; |
| 841 | box-shadow: 0 0 0 3px hsl(var(--background)), 0 0 0 4px hsl(var(--border)); |
| 842 | } |
| 843 | .profile-chip { |
| 844 | display: inline-flex; |
| 845 | align-items: center; |
| 846 | gap: 0.35rem; |
| 847 | padding: 0.28rem 0.65rem; |
| 848 | border: 1px solid hsl(var(--border) / 0.9); |
| 849 | border-radius: 9999px; |
| 850 | background: hsl(var(--card)); |
| 851 | font-size: 0.75rem; |
| 852 | color: hsl(var(--muted-foreground)); |
| 853 | text-decoration: none; |
| 854 | } |
| 855 | .profile-chip a { |
| 856 | color: inherit; |
| 857 | text-decoration: none; |
| 858 | } |
| 859 | .profile-chip a:hover { |
| 860 | color: hsl(var(--foreground)); |
| 861 | } |
| 862 | .repo-card { |
| 863 | transition: border-color 0.15s ease; |
| 864 | } |
| 865 | .repo-card:hover { |
| 866 | border-color: hsl(var(--foreground) / 0.3); |
| 867 | } |
| 868 | @media (max-width: 640px) { |
| 869 | .avatar-xxl { |
| 870 | width: 6rem; |
| 871 | height: 6rem; |
| 872 | font-size: 2rem; |
| 873 | } |
| 874 | } |
| 875 | |
| 876 | |
| 877 | /* Separator */ |
| 878 | .separator { |
| 879 | height: 1px; |
| 880 | width: 100%; |
| 881 | background-color: hsl(var(--border)); |
| 882 | margin: 0.85rem 0; |
| 883 | border: 0; |
| 884 | } |
| 885 | |
| 886 | /* Tabs */ |
| 887 | .tabs-nav { |
| 888 | display: flex; |
| 889 | align-items: center; |
| 890 | gap: 0.15rem; |
| 891 | padding: 0.2rem; |
| 892 | border: 1px solid hsl(var(--border)); |
| 893 | border-radius: 999px; |
| 894 | background: hsl(var(--muted)); |
| 895 | margin-bottom: 1rem; |
| 896 | overflow-x: auto; |
| 897 | } |
| 898 | .tab-link { |
| 899 | display: inline-flex; |
| 900 | align-items: center; |
| 901 | gap: 0.35rem; |
| 902 | padding: 0.38rem 0.8rem; |
| 903 | font-size: 0.82rem; |
| 904 | font-weight: 500; |
| 905 | color: hsl(var(--muted-foreground)); |
| 906 | border-radius: 999px; |
| 907 | white-space: nowrap; |
| 908 | transition: color 100ms ease, background-color 100ms ease; |
| 909 | } |
| 910 | .tab-link:hover { |
| 911 | color: hsl(var(--foreground)); |
| 912 | } |
| 913 | .tab-link.active { |
| 914 | color: hsl(var(--foreground)); |
| 915 | background: hsl(var(--card)); |
| 916 | box-shadow: 0 1px 2px hsl(0 0% 0% / 0.08); |
| 917 | } |
| 918 | |
| 919 | /* Dense File List & Tables */ |
| 920 | .dense-list { |
| 921 | width: 100%; |
| 922 | } |
| 923 | .dense-row { |
| 924 | display: flex; |
| 925 | align-items: center; |
| 926 | justify-content: space-between; |
| 927 | gap: 0.75rem; |
| 928 | min-height: 2.05rem; |
| 929 | padding: 0.25rem 0.75rem; |
| 930 | border-bottom: 1px solid hsl(var(--border)); |
| 931 | font-size: 0.85rem; |
| 932 | transition: background-color 80ms ease; |
| 933 | } |
| 934 | .dense-row:last-child { |
| 935 | border-bottom: none; |
| 936 | } |
| 937 | .dense-row:hover { |
| 938 | background-color: hsl(var(--accent)); |
| 939 | } |
| 940 | |
| 941 | .table-wrap { |
| 942 | width: 100%; |
| 943 | overflow-x: auto; |
| 944 | border: 1px solid hsl(var(--border)); |
| 945 | border-radius: var(--radius); |
| 946 | background-color: hsl(var(--card)); |
| 947 | } |
| 948 | .table { |
| 949 | width: 100%; |
| 950 | border-collapse: collapse; |
| 951 | font-size: 0.85rem; |
| 952 | } |
| 953 | .table th { |
| 954 | text-align: left; |
| 955 | font-weight: 500; |
| 956 | color: hsl(var(--muted-foreground)); |
| 957 | padding: 0.5rem 0.75rem; |
| 958 | border-bottom: 1px solid hsl(var(--border)); |
| 959 | background-color: hsl(var(--muted)); |
| 960 | font-size: 0.75rem; |
| 961 | } |
| 962 | .table td { |
| 963 | padding: 0.5rem 0.75rem; |
| 964 | border-bottom: 1px solid hsl(var(--border)); |
| 965 | vertical-align: middle; |
| 966 | } |
| 967 | .table tr:last-child td { |
| 968 | border-bottom: none; |
| 969 | } |
| 970 | |
| 971 | /* Breadcrumb */ |
| 972 | .breadcrumb { |
| 973 | display: flex; |
| 974 | align-items: center; |
| 975 | flex-wrap: wrap; |
| 976 | gap: 0.25rem; |
| 977 | font-size: 0.85rem; |
| 978 | } |
| 979 | .breadcrumb-sep { |
| 980 | color: hsl(var(--muted-foreground)); |
| 981 | } |
| 982 | |
| 983 | /* Dropdown Menu */ |
| 984 | @keyframes dropdownIn { |
| 985 | from { |
| 986 | opacity: 0; |
| 987 | transform: translateY(-4px) scale(0.98); |
| 988 | } |
| 989 | to { |
| 990 | opacity: 1; |
| 991 | transform: translateY(0) scale(1); |
| 992 | } |
| 993 | } |
| 994 | .dropdown { |
| 995 | position: relative; |
| 996 | display: inline-block; |
| 997 | } |
| 998 | .dropdown-menu { |
| 999 | position: absolute; |
| 1000 | left: 0; |
| 1001 | top: calc(100% + 0.3rem); |
| 1002 | min-width: 11rem; |
| 1003 | background-color: hsl(var(--popover)); |
| 1004 | color: hsl(var(--popover-foreground)); |
| 1005 | border: 1px solid hsl(var(--border)); |
| 1006 | border-radius: var(--radius); |
| 1007 | padding: 0.25rem; |
| 1008 | box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.22); |
| 1009 | z-index: 60; |
| 1010 | display: none; |
| 1011 | transform-origin: top left; |
| 1012 | } |
| 1013 | .dropdown-menu.open { |
| 1014 | display: block; |
| 1015 | animation: dropdownIn 140ms cubic-bezier(0.16, 1, 0.3, 1); |
| 1016 | } |
| 1017 | .dropdown-item { |
| 1018 | display: flex; |
| 1019 | width: 100%; |
| 1020 | align-items: center; |
| 1021 | justify-content: space-between; |
| 1022 | gap: 0.5rem; |
| 1023 | padding: 0.35rem 0.55rem; |
| 1024 | font-size: 0.8rem; |
| 1025 | border-radius: calc(var(--radius) - 2px); |
| 1026 | color: hsl(var(--popover-foreground)); |
| 1027 | background: transparent; |
| 1028 | border: 0; |
| 1029 | cursor: pointer; |
| 1030 | text-align: left; |
| 1031 | transition: background-color 120ms ease, color 120ms ease; |
| 1032 | } |
| 1033 | .dropdown-item:hover, .dropdown-item.active { |
| 1034 | background-color: hsl(var(--accent)); |
| 1035 | color: hsl(var(--accent-foreground)); |
| 1036 | } |
| 1037 | |
| 1038 | /* Modal / Dialog & Command Palette */ |
| 1039 | @keyframes backdropIn { |
| 1040 | from { opacity: 0; } |
| 1041 | to { opacity: 1; } |
| 1042 | } |
| 1043 | @keyframes dialogIn { |
| 1044 | from { |
| 1045 | opacity: 0; |
| 1046 | transform: translateY(-6px) scale(0.97); |
| 1047 | } |
| 1048 | to { |
| 1049 | opacity: 1; |
| 1050 | transform: translateY(0) scale(1); |
| 1051 | } |
| 1052 | } |
| 1053 | .backdrop { |
| 1054 | position: fixed; |
| 1055 | inset: 0; |
| 1056 | background-color: rgba(0, 0, 0, 0.55); |
| 1057 | backdrop-filter: blur(2px); |
| 1058 | z-index: 80; |
| 1059 | display: none; |
| 1060 | align-items: flex-start; |
| 1061 | justify-content: center; |
| 1062 | padding: 10vh 1rem 2rem; |
| 1063 | } |
| 1064 | .backdrop.open { |
| 1065 | display: flex; |
| 1066 | animation: backdropIn 140ms ease; |
| 1067 | } |
| 1068 | .dialog-box { |
| 1069 | width: 100%; |
| 1070 | max-width: 28rem; |
| 1071 | background-color: hsl(var(--popover)); |
| 1072 | color: hsl(var(--popover-foreground)); |
| 1073 | border: 1px solid hsl(var(--border)); |
| 1074 | border-radius: var(--radius); |
| 1075 | box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.35); |
| 1076 | overflow: hidden; |
| 1077 | animation: dialogIn 170ms cubic-bezier(0.16, 1, 0.3, 1); |
| 1078 | } |
| 1079 | .palette-box { |
| 1080 | width: 100%; |
| 1081 | max-width: 34rem; |
| 1082 | background-color: hsl(var(--popover)); |
| 1083 | color: hsl(var(--popover-foreground)); |
| 1084 | border: 1px solid hsl(var(--border)); |
| 1085 | border-radius: var(--radius); |
| 1086 | box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.4); |
| 1087 | overflow: hidden; |
| 1088 | animation: dialogIn 170ms cubic-bezier(0.16, 1, 0.3, 1); |
| 1089 | } |
| 1090 | .palette-input-wrap { |
| 1091 | display: flex; |
| 1092 | align-items: center; |
| 1093 | gap: 0.6rem; |
| 1094 | padding: 0.6rem 0.8rem; |
| 1095 | border-bottom: 1px solid hsl(var(--border)); |
| 1096 | } |
| 1097 | .palette-input { |
| 1098 | width: 100%; |
| 1099 | border: 0; |
| 1100 | background: transparent; |
| 1101 | color: hsl(var(--foreground)); |
| 1102 | font-size: 0.9rem; |
| 1103 | outline: none; |
| 1104 | } |
| 1105 | .palette-list { |
| 1106 | max-height: 20rem; |
| 1107 | overflow-y: auto; |
| 1108 | padding: 0.3rem; |
| 1109 | } |
| 1110 | .palette-group-title { |
| 1111 | padding: 0.3rem 0.5rem 0.15rem; |
| 1112 | font-size: 0.68rem; |
| 1113 | font-weight: 600; |
| 1114 | text-transform: uppercase; |
| 1115 | letter-spacing: 0.04em; |
| 1116 | color: hsl(var(--muted-foreground)); |
| 1117 | } |
| 1118 | .palette-item { |
| 1119 | display: flex; |
| 1120 | width: 100%; |
| 1121 | align-items: center; |
| 1122 | justify-content: space-between; |
| 1123 | gap: 0.5rem; |
| 1124 | padding: 0.4rem 0.55rem; |
| 1125 | border-radius: calc(var(--radius) - 2px); |
| 1126 | font-size: 0.85rem; |
| 1127 | color: hsl(var(--foreground)); |
| 1128 | cursor: pointer; |
| 1129 | border: 0; |
| 1130 | background: transparent; |
| 1131 | text-align: left; |
| 1132 | transition: background-color 100ms ease, color 100ms ease; |
| 1133 | } |
| 1134 | .palette-item:hover, .palette-item.selected { |
| 1135 | background-color: hsl(var(--accent)); |
| 1136 | color: hsl(var(--accent-foreground)); |
| 1137 | } |
| 1138 | |
| 1139 | /* Custom context menu */ |
| 1140 | @keyframes contextMenuIn { |
| 1141 | from { |
| 1142 | opacity: 0; |
| 1143 | transform: translateY(-3px) scale(0.98); |
| 1144 | } |
| 1145 | to { |
| 1146 | opacity: 1; |
| 1147 | transform: translateY(0) scale(1); |
| 1148 | } |
| 1149 | } |
| 1150 | .context-menu { |
| 1151 | position: fixed; |
| 1152 | z-index: 120; |
| 1153 | width: max-content; |
| 1154 | min-width: 15rem; |
| 1155 | max-width: min(20rem, calc(100vw - 1rem)); |
| 1156 | max-height: min(72vh, 36rem); |
| 1157 | overflow-y: auto; |
| 1158 | overscroll-behavior: contain; |
| 1159 | padding: 0.28rem; |
| 1160 | background-color: hsl(var(--popover)); |
| 1161 | color: hsl(var(--popover-foreground)); |
| 1162 | border: 1px solid hsl(var(--border)); |
| 1163 | border-radius: var(--radius); |
| 1164 | box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.42), 0 2px 8px -2px rgba(0, 0, 0, 0.18); |
| 1165 | opacity: 0; |
| 1166 | visibility: hidden; |
| 1167 | pointer-events: none; |
| 1168 | transform: translateY(-3px) scale(0.98); |
| 1169 | transform-origin: top left; |
| 1170 | transition: opacity 110ms ease, transform 130ms cubic-bezier(0.16, 1, 0.3, 1), visibility 110ms ease; |
| 1171 | } |
| 1172 | .context-menu.open { |
| 1173 | opacity: 1; |
| 1174 | visibility: visible; |
| 1175 | pointer-events: auto; |
| 1176 | transform: translateY(0) scale(1); |
| 1177 | animation: contextMenuIn 130ms cubic-bezier(0.16, 1, 0.3, 1); |
| 1178 | } |
| 1179 | body[data-repo-path] .context-menu { |
| 1180 | max-height: min(80vh, 52rem); |
| 1181 | } |
| 1182 | .context-menu-section[hidden], |
| 1183 | .context-menu-item[hidden] { |
| 1184 | display: none; |
| 1185 | } |
| 1186 | .context-menu-section + .context-menu-section { |
| 1187 | margin-top: 0.24rem; |
| 1188 | padding-top: 0.24rem; |
| 1189 | border-top: 1px solid hsl(var(--border)); |
| 1190 | } |
| 1191 | .context-menu-label { |
| 1192 | display: flex; |
| 1193 | align-items: center; |
| 1194 | gap: 0.5rem; |
| 1195 | padding: 0.22rem 0.5rem 0.14rem; |
| 1196 | font-size: 0.64rem; |
| 1197 | font-weight: 600; |
| 1198 | letter-spacing: 0.055em; |
| 1199 | text-transform: uppercase; |
| 1200 | color: hsl(var(--muted-foreground)); |
| 1201 | } |
| 1202 | .context-menu-meta { |
| 1203 | margin-left: auto; |
| 1204 | max-width: 9.5rem; |
| 1205 | overflow: hidden; |
| 1206 | text-overflow: ellipsis; |
| 1207 | white-space: nowrap; |
| 1208 | font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; |
| 1209 | font-size: 0.6rem; |
| 1210 | letter-spacing: 0; |
| 1211 | text-transform: none; |
| 1212 | opacity: 0.85; |
| 1213 | } |
| 1214 | .context-menu-item { |
| 1215 | display: flex; |
| 1216 | width: 100%; |
| 1217 | min-height: 1.95rem; |
| 1218 | align-items: center; |
| 1219 | gap: 0.55rem; |
| 1220 | padding: 0.33rem 0.5rem; |
| 1221 | border: 0; |
| 1222 | border-radius: calc(var(--radius) - 2px); |
| 1223 | background: transparent; |
| 1224 | color: hsl(var(--popover-foreground)); |
| 1225 | font: inherit; |
| 1226 | font-size: 0.8rem; |
| 1227 | line-height: 1.25; |
| 1228 | text-align: left; |
| 1229 | text-decoration: none; |
| 1230 | cursor: pointer; |
| 1231 | user-select: none; |
| 1232 | transition: background-color 90ms ease, color 90ms ease; |
| 1233 | } |
| 1234 | .context-menu-item .icon { |
| 1235 | flex: none; |
| 1236 | color: hsl(var(--muted-foreground)); |
| 1237 | transition: color 90ms ease; |
| 1238 | } |
| 1239 | .context-menu-item > span:not(.context-menu-check):not(.context-menu-kbd) { |
| 1240 | min-width: 0; |
| 1241 | overflow: hidden; |
| 1242 | text-overflow: ellipsis; |
| 1243 | white-space: nowrap; |
| 1244 | } |
| 1245 | .context-menu-item:hover, |
| 1246 | .context-menu-item:focus-visible, |
| 1247 | .context-menu-item.is-active { |
| 1248 | background-color: hsl(var(--accent)); |
| 1249 | color: hsl(var(--accent-foreground)); |
| 1250 | outline: none; |
| 1251 | } |
| 1252 | .context-menu-item:hover .icon, |
| 1253 | .context-menu-item:focus-visible .icon, |
| 1254 | .context-menu-item.is-active .icon { |
| 1255 | color: currentColor; |
| 1256 | } |
| 1257 | .context-menu-kbd { |
| 1258 | margin-left: auto; |
| 1259 | flex: none; |
| 1260 | min-width: auto; |
| 1261 | height: 1.05rem; |
| 1262 | padding: 0 0.24rem; |
| 1263 | font-size: 0.6rem; |
| 1264 | color: hsl(var(--muted-foreground)); |
| 1265 | background-color: hsl(var(--muted)); |
| 1266 | border: 1px solid hsl(var(--border)); |
| 1267 | border-radius: 0.22rem; |
| 1268 | } |
| 1269 | .context-menu-check { |
| 1270 | display: inline-flex; |
| 1271 | margin-left: auto; |
| 1272 | flex: none; |
| 1273 | opacity: 0; |
| 1274 | color: hsl(var(--foreground)); |
| 1275 | } |
| 1276 | .context-menu-item.is-current .context-menu-check { |
| 1277 | opacity: 1; |
| 1278 | } |
| 1279 | |
| 1280 | /* Shortcuts dialog */ |
| 1281 | .shortcuts-list { |
| 1282 | display: flex; |
| 1283 | max-height: min(70vh, 44rem); |
| 1284 | flex-direction: column; |
| 1285 | padding-top: 0.45rem; |
| 1286 | padding-bottom: 0.55rem; |
| 1287 | overflow-y: auto; |
| 1288 | overscroll-behavior: contain; |
| 1289 | } |
| 1290 | .shortcuts-group-label { |
| 1291 | padding: 0.65rem 0 0.2rem; |
| 1292 | font-size: 0.64rem; |
| 1293 | font-weight: 600; |
| 1294 | letter-spacing: 0.055em; |
| 1295 | text-transform: uppercase; |
| 1296 | color: hsl(var(--muted-foreground)); |
| 1297 | } |
| 1298 | .shortcuts-group-label:first-child { |
| 1299 | padding-top: 0.15rem; |
| 1300 | } |
| 1301 | .shortcut-row { |
| 1302 | display: flex; |
| 1303 | min-height: 2rem; |
| 1304 | align-items: center; |
| 1305 | justify-content: space-between; |
| 1306 | gap: 1rem; |
| 1307 | padding: 0.32rem 0; |
| 1308 | border-bottom: 1px solid hsl(var(--border)); |
| 1309 | font-size: 0.82rem; |
| 1310 | } |
| 1311 | .shortcut-keys { |
| 1312 | display: flex; |
| 1313 | flex: none; |
| 1314 | align-items: center; |
| 1315 | gap: 0.2rem; |
| 1316 | } |
| 1317 | |
| 1318 | /* Toast */ |
| 1319 | @keyframes toastIn { |
| 1320 | from { |
| 1321 | opacity: 0; |
| 1322 | transform: translateY(8px) scale(0.97); |
| 1323 | } |
| 1324 | to { |
| 1325 | opacity: 1; |
| 1326 | transform: translateY(0) scale(1); |
| 1327 | } |
| 1328 | } |
| 1329 | .toast-container { |
| 1330 | position: fixed; |
| 1331 | bottom: 1rem; |
| 1332 | right: 1rem; |
| 1333 | z-index: 90; |
| 1334 | display: flex; |
| 1335 | flex-direction: column; |
| 1336 | gap: 0.4rem; |
| 1337 | max-width: 20rem; |
| 1338 | } |
| 1339 | .toast { |
| 1340 | display: flex; |
| 1341 | align-items: center; |
| 1342 | justify-content: space-between; |
| 1343 | gap: 0.65rem; |
| 1344 | padding: 0.5rem 0.75rem; |
| 1345 | border-radius: var(--radius); |
| 1346 | border: 1px solid hsl(var(--border)); |
| 1347 | background-color: hsl(var(--popover)); |
| 1348 | color: hsl(var(--popover-foreground)); |
| 1349 | box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.25); |
| 1350 | font-size: 0.8rem; |
| 1351 | animation: toastIn 180ms cubic-bezier(0.16, 1, 0.3, 1); |
| 1352 | } |
| 1353 | |
| 1354 | /* Skeleton */ |
| 1355 | @keyframes pulse { |
| 1356 | 0%, 100% { opacity: 1; } |
| 1357 | 50% { opacity: 0.45; } |
| 1358 | } |
| 1359 | .skeleton { |
| 1360 | background-color: hsl(var(--muted)); |
| 1361 | border-radius: calc(var(--radius) - 2px); |
| 1362 | animation: pulse 1.6s ease-in-out infinite; |
| 1363 | } |
| 1364 | |
| 1365 | /* Empty State */ |
| 1366 | .empty-state { |
| 1367 | text-align: center; |
| 1368 | padding: 2rem 1rem; |
| 1369 | border: 1px dashed hsl(var(--border)); |
| 1370 | border-radius: var(--radius); |
| 1371 | background-color: hsl(var(--card)); |
| 1372 | color: hsl(var(--muted-foreground)); |
| 1373 | } |
| 1374 | |
| 1375 | /* Code Viewer & Chroma */ |
| 1376 | .code-table { |
| 1377 | width: 100%; |
| 1378 | border-collapse: collapse; |
| 1379 | font-family: 'JetBrains Mono', monospace; |
| 1380 | font-size: 0.8rem; |
| 1381 | line-height: 1.5; |
| 1382 | } |
| 1383 | .code-ln { |
| 1384 | width: 1%; |
| 1385 | min-width: 2.75rem; |
| 1386 | padding: 0 0.65rem; |
| 1387 | text-align: right; |
| 1388 | color: hsl(var(--muted-foreground) / 0.6); |
| 1389 | user-select: none; |
| 1390 | vertical-align: top; |
| 1391 | border-right: 1px solid hsl(var(--border)); |
| 1392 | } |
| 1393 | .code-line { |
| 1394 | padding: 0 0.75rem; |
| 1395 | white-space: pre; |
| 1396 | overflow-x: auto; |
| 1397 | } |
| 1398 | .chroma .k, .chroma .kc, .chroma .kd, .chroma .kn, .chroma .kp, .chroma .kr { color: hsl(var(--syntax-kw)); font-weight: 500; } |
| 1399 | .chroma .kt { color: hsl(var(--syntax-type)); } |
| 1400 | .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)); } |
| 1401 | .chroma .c, .chroma .ch, .chroma .cm, .chroma .c1, .chroma .cs, .chroma .cp, .chroma .cpf { color: hsl(var(--syntax-cmt)); font-style: italic; } |
| 1402 | .chroma .nf, .chroma .fm, .chroma .nx { color: hsl(var(--syntax-fn)); } |
| 1403 | .chroma .m, .chroma .mb, .chroma .mf, .chroma .mh, .chroma .mi, .chroma .il, .chroma .mo { color: hsl(var(--syntax-num)); } |
| 1404 | .chroma .o, .chroma .ow { color: hsl(var(--syntax-op)); } |
| 1405 | |
| 1406 | /* Diff Viewer */ |
| 1407 | .diff-table { |
| 1408 | width: 100%; |
| 1409 | border-collapse: collapse; |
| 1410 | font-family: 'JetBrains Mono', monospace; |
| 1411 | font-size: 0.78rem; |
| 1412 | line-height: 1.5; |
| 1413 | } |
| 1414 | .diff-row-add { |
| 1415 | background-color: hsl(var(--diff-add-bg)); |
| 1416 | color: hsl(var(--diff-add-fg)); |
| 1417 | } |
| 1418 | .diff-row-del { |
| 1419 | background-color: hsl(var(--diff-del-bg)); |
| 1420 | color: hsl(var(--diff-del-fg)); |
| 1421 | } |
| 1422 | .diff-row-hunk { |
| 1423 | background-color: hsl(var(--muted)); |
| 1424 | color: hsl(var(--muted-foreground)); |
| 1425 | } |
| 1426 | .diff-num { |
| 1427 | width: 2.75rem; |
| 1428 | padding: 0 0.45rem; |
| 1429 | text-align: right; |
| 1430 | user-select: none; |
| 1431 | opacity: 0.65; |
| 1432 | border-right: 1px solid hsl(var(--border)); |
| 1433 | } |
| 1434 | .diff-code { |
| 1435 | padding: 0 0.65rem; |
| 1436 | white-space: pre-wrap; |
| 1437 | word-break: break-all; |
| 1438 | } |
| 1439 | |
| 1440 | /* Markdown Body */ |
| 1441 | .markdown-body { |
| 1442 | font-size: 0.9rem; |
| 1443 | line-height: 1.6; |
| 1444 | color: hsl(var(--foreground)); |
| 1445 | } |
| 1446 | .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { |
| 1447 | margin-top: 1.25em; |
| 1448 | margin-bottom: 0.45em; |
| 1449 | font-weight: 600; |
| 1450 | line-height: 1.25; |
| 1451 | } |
| 1452 | .markdown-body h1 { font-size: 1.35rem; padding-bottom: 0.25rem; border-bottom: 1px solid hsl(var(--border)); } |
| 1453 | .markdown-body h2 { font-size: 1.15rem; padding-bottom: 0.2rem; border-bottom: 1px solid hsl(var(--border)); } |
| 1454 | .markdown-body h3 { font-size: 1rem; } |
| 1455 | .markdown-body h1:first-child, .markdown-body h2:first-child { margin-top: 0; } |
| 1456 | .markdown-body p, .markdown-body ul, .markdown-body ol, .markdown-body pre, .markdown-body blockquote { |
| 1457 | margin-top: 0; |
| 1458 | margin-bottom: 0.8rem; |
| 1459 | } |
| 1460 | .markdown-body code { |
| 1461 | background-color: hsl(var(--muted)); |
| 1462 | padding: 0.12rem 0.3rem; |
| 1463 | border-radius: 0.25rem; |
| 1464 | font-size: 0.84em; |
| 1465 | } |
| 1466 | .markdown-body pre { |
| 1467 | background-color: hsl(var(--muted)); |
| 1468 | border: 1px solid hsl(var(--border)); |
| 1469 | border-radius: var(--radius); |
| 1470 | padding: 0.75rem 0.9rem; |
| 1471 | overflow-x: auto; |
| 1472 | } |
| 1473 | .markdown-body pre code { |
| 1474 | background: transparent; |
| 1475 | padding: 0; |
| 1476 | } |
| 1477 | .markdown-body a { |
| 1478 | text-decoration: underline; |
| 1479 | text-underline-offset: 3px; |
| 1480 | } |
| 1481 | |
| 1482 | /* Utility Helpers */ |
| 1483 | .flex { display: flex; } |
| 1484 | .block { display: block; } |
| 1485 | .inline-flex { display: inline-flex; } |
| 1486 | .grid { display: grid; } |
| 1487 | .hidden { display: none; } |
| 1488 | .items-center { align-items: center; } |
| 1489 | .items-start { align-items: flex-start; } |
| 1490 | .items-baseline { align-items: baseline; } |
| 1491 | .justify-between { justify-content: space-between; } |
| 1492 | .justify-center { justify-content: center; } |
| 1493 | .justify-end { justify-content: flex-end; } |
| 1494 | .flex-col { flex-direction: column; } |
| 1495 | .flex-wrap { flex-wrap: wrap; } |
| 1496 | .flex-1 { flex: 1 1 0%; } |
| 1497 | .flex-shrink-0 { flex-shrink: 0; } |
| 1498 | .min-w-0 { min-width: 0; } |
| 1499 | .gap-0\.5 { gap: 0.125rem; } |
| 1500 | .gap-1 { gap: 0.25rem; } |
| 1501 | .gap-1\.5 { gap: 0.375rem; } |
| 1502 | .gap-2 { gap: 0.5rem; } |
| 1503 | .gap-2\.5 { gap: 0.625rem; } |
| 1504 | .gap-3 { gap: 0.75rem; } |
| 1505 | .gap-4 { gap: 1rem; } |
| 1506 | .gap-6 { gap: 1.5rem; } |
| 1507 | .w-full { width: 100%; } |
| 1508 | .text-xs { font-size: 0.75rem; } |
| 1509 | .text-sm { font-size: 0.85rem; } |
| 1510 | .text-base { font-size: 0.96rem; } |
| 1511 | .text-lg { font-size: 1.1rem; } |
| 1512 | .text-xl { font-size: 1.25rem; } |
| 1513 | .text-2xl { font-size: 1.5rem; } |
| 1514 | .font-medium { font-weight: 500; } |
| 1515 | .font-semibold { font-weight: 600; } |
| 1516 | .font-bold { font-weight: 700; } |
| 1517 | .uppercase { text-transform: uppercase; } |
| 1518 | .tracking-tight { letter-spacing: -0.015em; } |
| 1519 | .text-muted { color: hsl(var(--muted-foreground)); } |
| 1520 | .text-destructive { color: hsl(var(--destructive)); } |
| 1521 | .text-foreground { color: hsl(var(--foreground)); } |
| 1522 | .text-center { text-align: center; } |
| 1523 | .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| 1524 | .hover\:underline:hover { text-decoration: underline; } |
| 1525 | .select-all { user-select: all; } |
| 1526 | .cursor-pointer { cursor: pointer; } |
| 1527 | .mt-0\.5 { margin-top: 0.125rem; } |
| 1528 | .mt-1 { margin-top: 0.25rem; } |
| 1529 | .mt-2 { margin-top: 0.5rem; } |
| 1530 | .mt-3 { margin-top: 0.75rem; } |
| 1531 | .mt-4 { margin-top: 1rem; } |
| 1532 | .mt-6 { margin-top: 1.5rem; } |
| 1533 | .mr-2 { margin-right: 0.5rem; } |
| 1534 | .mb-1 { margin-bottom: 0.25rem; } |
| 1535 | .mb-1\.5 { margin-bottom: 0.375rem; } |
| 1536 | .mb-2 { margin-bottom: 0.5rem; } |
| 1537 | .mb-3 { margin-bottom: 0.75rem; } |
| 1538 | .mb-4 { margin-bottom: 1rem; } |
| 1539 | .mb-6 { margin-bottom: 1.5rem; } |
| 1540 | .p-2 { padding: 0.5rem; } |
| 1541 | .p-3 { padding: 0.75rem; } |
| 1542 | .p-4 { padding: 1rem; } |
| 1543 | .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; } |
| 1544 | .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; } |
| 1545 | .pt-2 { padding-top: 0.5rem; } |
| 1546 | .pt-3 { padding-top: 0.75rem; } |
| 1547 | .pb-3 { padding-bottom: 0.75rem; } |
| 1548 | |
| 1549 | .grid-2 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0.85rem; } |
| 1550 | .grid-3 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0.85rem; } |
| 1551 | .grid-4 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 0.85rem; } |
| 1552 | |
| 1553 | @media (min-width: 768px) { |
| 1554 | .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } |
| 1555 | .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } |
| 1556 | .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } |
| 1557 | .md-flex { display: flex !important; } |
| 1558 | .md-hidden { display: none !important; } |
| 1559 | } |
| 1560 | |
| 1561 | /* Mobile Drawer */ |
| 1562 | .mobile-drawer { |
| 1563 | position: fixed; |
| 1564 | inset: 0; |
| 1565 | z-index: 75; |
| 1566 | background-color: rgba(0, 0, 0, 0.5); |
| 1567 | display: none; |
| 1568 | } |
| 1569 | .mobile-drawer.open { |
| 1570 | display: block; |
| 1571 | } |
| 1572 | .mobile-drawer-panel { |
| 1573 | width: 224px; |
| 1574 | max-width: 85vw; |
| 1575 | height: 100%; |
| 1576 | background-color: hsl(var(--card)); |
| 1577 | border-right: 1px solid hsl(var(--border)); |
| 1578 | padding: 0.75rem 0.65rem; |
| 1579 | display: flex; |
| 1580 | flex-direction: column; |
| 1581 | justify-content: space-between; |
| 1582 | } |
| 1583 | |
| 1584 | @media (min-width: 1024px) { |
| 1585 | .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } |
| 1586 | } |
| 1587 | |
| 1588 | /* ── Polar repository shell ─────────────────────────────────────────── */ |
| 1589 | .repo-banner { |
| 1590 | position: relative; |
| 1591 | display: flex; |
| 1592 | align-items: flex-start; |
| 1593 | justify-content: space-between; |
| 1594 | gap: 1rem; |
| 1595 | flex-wrap: wrap; |
| 1596 | padding: 0.65rem 1rem; |
| 1597 | background: hsl(var(--card)); |
| 1598 | border: 1px solid hsl(var(--border)); |
| 1599 | border-radius: calc(var(--radius) * 1.6); |
| 1600 | overflow: hidden; |
| 1601 | } |
| 1602 | |
| 1603 | .repo-banner-main { |
| 1604 | display: flex; |
| 1605 | align-items: flex-start; |
| 1606 | gap: 0.7rem; |
| 1607 | min-width: 0; |
| 1608 | flex: 1 1 20rem; |
| 1609 | } |
| 1610 | .repo-banner-actions { |
| 1611 | display: flex; |
| 1612 | align-items: center; |
| 1613 | gap: 0.4rem; |
| 1614 | flex-wrap: wrap; |
| 1615 | } |
| 1616 | .repo-head-block { |
| 1617 | min-width: 0; |
| 1618 | flex: 1 1 auto; |
| 1619 | } |
| 1620 | .repo-head-row { |
| 1621 | display: flex; |
| 1622 | align-items: center; |
| 1623 | gap: 0.55rem; |
| 1624 | flex-wrap: wrap; |
| 1625 | min-width: 0; |
| 1626 | } |
| 1627 | .repo-desc { |
| 1628 | flex: 1 1 6rem; |
| 1629 | min-width: 0; |
| 1630 | max-width: 36rem; |
| 1631 | overflow: hidden; |
| 1632 | text-overflow: ellipsis; |
| 1633 | white-space: nowrap; |
| 1634 | font-size: 0.8rem; |
| 1635 | line-height: 1.35; |
| 1636 | color: hsl(var(--muted-foreground)); |
| 1637 | transition: color 0.15s ease; |
| 1638 | } |
| 1639 | .repo-desc.truncated { |
| 1640 | cursor: pointer; |
| 1641 | } |
| 1642 | .repo-desc.truncated:hover { |
| 1643 | color: hsl(var(--foreground)); |
| 1644 | } |
| 1645 | .repo-banner.desc-open .repo-desc { |
| 1646 | flex-basis: 100%; |
| 1647 | max-width: 100%; |
| 1648 | white-space: normal; |
| 1649 | overflow: visible; |
| 1650 | overflow-wrap: anywhere; |
| 1651 | } |
| 1652 | .repo-avatar-link { |
| 1653 | display: flex; |
| 1654 | align-items: center; |
| 1655 | flex-shrink: 0; |
| 1656 | } |
| 1657 | .repo-avatar { |
| 1658 | width: 1.65rem; |
| 1659 | height: 1.65rem; |
| 1660 | font-size: 0.68rem; |
| 1661 | transition: width 0.2s ease, height 0.2s ease, font-size 0.2s ease; |
| 1662 | } |
| 1663 | |
| 1664 | |
| 1665 | |
| 1666 | .clone-box { |
| 1667 | display: flex; |
| 1668 | align-items: center; |
| 1669 | gap: 0.35rem; |
| 1670 | border: 1px solid hsl(var(--border)); |
| 1671 | border-radius: var(--radius); |
| 1672 | background: hsl(var(--muted)); |
| 1673 | padding: 0.15rem 0.25rem 0.15rem 0.6rem; |
| 1674 | min-width: 0; |
| 1675 | } |
| 1676 | .clone-box code { |
| 1677 | flex: 1; |
| 1678 | min-width: 0; |
| 1679 | overflow: hidden; |
| 1680 | text-overflow: ellipsis; |
| 1681 | white-space: nowrap; |
| 1682 | font-size: 0.72rem; |
| 1683 | } |
| 1684 | .upload-drop { |
| 1685 | display: flex; |
| 1686 | flex-direction: column; |
| 1687 | align-items: center; |
| 1688 | gap: 0.35rem; |
| 1689 | text-align: center; |
| 1690 | padding: 1.6rem 1rem; |
| 1691 | border: 1.5px dashed hsl(var(--border)); |
| 1692 | border-radius: calc(var(--radius) * 1.3); |
| 1693 | background: hsl(var(--muted)); |
| 1694 | color: hsl(var(--muted-foreground)); |
| 1695 | cursor: pointer; |
| 1696 | transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease; |
| 1697 | } |
| 1698 | .upload-drop:hover { |
| 1699 | border-color: hsl(var(--foreground) / 0.4); |
| 1700 | color: hsl(var(--foreground)); |
| 1701 | } |
| 1702 | .upload-drop.drag { |
| 1703 | border-color: hsl(var(--foreground) / 0.6); |
| 1704 | background: hsl(var(--accent)); |
| 1705 | color: hsl(var(--foreground)); |
| 1706 | } |
| 1707 | /* Utility completion (classes used in templates but absent from the build) */ |
| 1708 | .relative { position: relative; } |
| 1709 | .gap-1\.5 { gap: 0.375rem; } |
| 1710 | .gap-5 { gap: 1.25rem; } |
| 1711 | .mb-1\.5 { margin-bottom: 0.375rem; } |
| 1712 | .pt-1 { padding-top: 0.25rem; } |
| 1713 | |
| 1714 | /* Profile header sits directly on the page backdrop. */ |
| 1715 | .profile-hero { |
| 1716 | position: relative; |
| 1717 | padding: 0.6rem 0 0; |
| 1718 | border: 0; |
| 1719 | border-radius: 0; |
| 1720 | background: transparent; |
| 1721 | } |
| 1722 | .profile-hero-content { |
| 1723 | position: relative; |
| 1724 | } |
| 1725 | .has-page-bg .profile-hero h1, |
| 1726 | .has-page-bg .profile-hero p, |
| 1727 | .has-page-bg .profile-hero .text-muted { |
| 1728 | text-shadow: 0 1px 16px hsl(var(--background) / 0.95); |
| 1729 | } |
| 1730 | |
| 1731 | /* Media settings */ |
| 1732 | .background-preview { |
| 1733 | position: relative; |
| 1734 | width: 100%; |
| 1735 | aspect-ratio: 16 / 6; |
| 1736 | min-height: 7rem; |
| 1737 | overflow: hidden; |
| 1738 | border: 1px solid hsl(var(--border)); |
| 1739 | border-radius: calc(var(--radius) * 1.3); |
| 1740 | background: |
| 1741 | radial-gradient(100% 130% at 50% 30%, hsl(var(--muted)) 0%, hsl(var(--card)) 72%); |
| 1742 | } |
| 1743 | .background-preview img { |
| 1744 | width: 100%; |
| 1745 | height: 100%; |
| 1746 | object-fit: cover; |
| 1747 | object-position: center; |
| 1748 | display: block; |
| 1749 | -webkit-mask-image: radial-gradient(120% 145% at 50% 25%, #000 38%, rgba(0,0,0,0.86) 58%, transparent 100%); |
| 1750 | mask-image: radial-gradient(120% 145% at 50% 25%, #000 38%, rgba(0,0,0,0.86) 58%, transparent 100%); |
| 1751 | } |
| 1752 | .background-preview::after { |
| 1753 | content: ""; |
| 1754 | position: absolute; |
| 1755 | inset: 0; |
| 1756 | background: linear-gradient(to top, hsl(var(--background) / 0.75), hsl(var(--background) / 0.05)); |
| 1757 | pointer-events: none; |
| 1758 | } |
| 1759 | .background-preview.is-empty { |
| 1760 | display: flex; |
| 1761 | align-items: center; |
| 1762 | justify-content: center; |
| 1763 | } |
| 1764 | .background-preview-placeholder { |
| 1765 | color: hsl(var(--muted-foreground) / 0.7); |
| 1766 | } |
| 1767 | |
| 1768 | /* Registration policy selector */ |
| 1769 | .registration-options { |
| 1770 | display: grid; |
| 1771 | grid-template-columns: repeat(3, minmax(0, 1fr)); |
| 1772 | gap: 0.55rem; |
| 1773 | } |
| 1774 | .registration-option { |
| 1775 | display: flex; |
| 1776 | align-items: flex-start; |
| 1777 | gap: 0.6rem; |
| 1778 | padding: 0.75rem; |
| 1779 | border: 1px solid hsl(var(--border)); |
| 1780 | border-radius: calc(var(--radius) * 1.2); |
| 1781 | background: hsl(var(--card)); |
| 1782 | cursor: pointer; |
| 1783 | transition: border-color 0.15s ease, background-color 0.15s ease; |
| 1784 | } |
| 1785 | .registration-option:hover { |
| 1786 | border-color: hsl(var(--foreground) / 0.28); |
| 1787 | background: hsl(var(--accent)); |
| 1788 | } |
| 1789 | .registration-option:has(input:checked) { |
| 1790 | border-color: hsl(var(--foreground) / 0.72); |
| 1791 | background: hsl(var(--secondary)); |
| 1792 | } |
| 1793 | .registration-option input { |
| 1794 | margin-top: 0.14rem; |
| 1795 | flex-shrink: 0; |
| 1796 | } |
| 1797 | .registration-option strong, |
| 1798 | .registration-option small { |
| 1799 | display: block; |
| 1800 | } |
| 1801 | .registration-option strong { |
| 1802 | font-size: 0.8rem; |
| 1803 | line-height: 1.3; |
| 1804 | } |
| 1805 | .registration-option small { |
| 1806 | margin-top: 0.18rem; |
| 1807 | color: hsl(var(--muted-foreground)); |
| 1808 | font-size: 0.7rem; |
| 1809 | line-height: 1.4; |
| 1810 | } |
| 1811 | |
| 1812 | /* Admin actions */ |
| 1813 | .admin-row-actions { |
| 1814 | display: flex; |
| 1815 | align-items: center; |
| 1816 | justify-content: flex-end; |
| 1817 | gap: 0.25rem; |
| 1818 | flex-wrap: wrap; |
| 1819 | } |
| 1820 | .admin-row-actions form { |
| 1821 | margin: 0; |
| 1822 | display: inline-flex; |
| 1823 | } |
| 1824 | .admin-repo-row { |
| 1825 | gap: 0.75rem; |
| 1826 | } |
| 1827 | .admin-repo-link { |
| 1828 | display: flex; |
| 1829 | align-items: center; |
| 1830 | gap: 0.6rem; |
| 1831 | min-width: 0; |
| 1832 | flex: 1; |
| 1833 | color: inherit; |
| 1834 | text-decoration: none; |
| 1835 | } |
| 1836 | .admin-repo-link:hover strong { |
| 1837 | text-decoration: underline; |
| 1838 | text-underline-offset: 2px; |
| 1839 | } |
| 1840 | |
| 1841 | .segmented-btn { |
| 1842 | text-decoration: none; |
| 1843 | } |
| 1844 | |
| 1845 | @media (max-width: 760px) { |
| 1846 | .registration-options { |
| 1847 | grid-template-columns: 1fr; |
| 1848 | } |
| 1849 | .profile-hero { |
| 1850 | padding: 0.35rem 0 0; |
| 1851 | } |
| 1852 | .background-preview { |
| 1853 | aspect-ratio: 16 / 7; |
| 1854 | } |
| 1855 | } |