|
12 | 12 | } |
13 | 13 |
|
14 | 14 | :root { |
15 | | - --background-start: oklch(0.984 0.003 247.858); |
| 15 | + --background-start: oklch(0.968 0.007 247.896); |
16 | 16 | --background-mid: oklch(0.968 0.007 247.896); |
17 | | - --background-end: oklch(0.929 0.013 255.508); |
| 17 | + --background-end: oklch(0.968 0.007 247.896); |
| 18 | + --base-text: oklch(0.208 0.042 265.755); |
18 | 19 |
|
19 | 20 | --progress-start: oklch(0.68 0.11 233); |
20 | 21 | --progress-end: oklch(0.7535 0.1034 198.37); |
21 | 22 |
|
| 23 | + --header-bg: oklch(0.968 0.007 247.896); |
| 24 | + --header-border: oklch(from var(--header-bg) calc(l - 0.1) c h); |
| 25 | + --header-interactive: oklch(from var(--header-bg) calc(l - 0.04) c h); |
| 26 | + |
| 27 | + --view-bg: oklch(1 0 0); |
| 28 | + --view-border: oklch(from var(--view-bg) calc(l - 0.13) c h); |
| 29 | + |
| 30 | + --card-bg: oklch(1 0 0); |
| 31 | + --card-border: oklch(from var(--card-bg) calc(l - 0.07) c h); |
| 32 | + |
22 | 33 | --primary: oklch(0.68 0.11 233); |
23 | 34 | --primary-text: oklch(0.6656 0.1055 234.61); |
24 | 35 |
|
|
56 | 67 | --background-start: oklch(0.2077 0.0398 265.75); |
57 | 68 | --background-mid: oklch(0.3861 0.059 188.42); |
58 | 69 | --background-end: oklch(0.4318 0.0865 166.91); |
| 70 | + --base-text: oklch(0.968 0.007 247.896); |
59 | 71 |
|
60 | 72 | --progress-start: oklch(0.4318 0.0865 166.91); |
61 | 73 | --progress-end: oklch(62.1% 0.145 189.632); |
62 | 74 |
|
| 75 | + --header-bg: oklch(0.21 0.034 264.665); |
| 76 | + --header-border: oklch(from var(--header-bg) calc(l + 0.16) c h); |
| 77 | + --header-interactive: oklch( |
| 78 | + from var(--header-bg) calc(l + 0.16) calc(c + 0.01) h |
| 79 | + ); |
| 80 | + |
| 81 | + --view-bg: oklch(0.21 0.034 264.665); |
| 82 | + --view-border: oklch(from var(--view-bg) calc(l + 0.24) c h); |
| 83 | + |
| 84 | + --card-bg: oklch(0.279 0.041 260.031); |
| 85 | + --card-border: oklch(from var(--card-bg) calc(l + 0.17) c h); |
| 86 | + |
63 | 87 | --primary: oklch(0.48 0.118 190.485); |
64 | 88 | --primary-text: oklch(0.73 0.168 188.745); |
65 | 89 |
|
|
123 | 147 | --color-default: var(--default); |
124 | 148 | --color-default-text: var(--default-text); |
125 | 149 |
|
| 150 | + --color-header-bg: var(--header-bg); |
| 151 | + --color-base-text: var(--base-text); |
| 152 | + --color-header-border: var(--header-border); |
| 153 | + --color-header-interactive: var(--header-interactive); |
| 154 | + |
| 155 | + --color-view-bg: var(--view-bg); |
| 156 | + --color-view-border: var(--view-border); |
| 157 | + |
| 158 | + --color-card-bg: var(--card-bg); |
| 159 | + --color-card-border: var(--card-border); |
| 160 | + |
126 | 161 | --font-sans: var(--font-sans); |
127 | 162 | --font-mono: var(--font-mono); |
128 | 163 |
|
|
148 | 183 | @apply md:before:from-aurora-start md:before:via-aurora-mid md:before:to-aurora-end max-md:bg-aurora-mid md:before:bg-gradient-to-br; |
149 | 184 |
|
150 | 185 | body { |
151 | | - @apply flex flex-col bg-transparent text-sm leading-relaxed font-normal text-slate-900 transition-all duration-300 dark:text-slate-100; |
| 186 | + @apply text-base-text flex flex-col bg-transparent text-sm leading-relaxed font-normal transition-all duration-300; |
152 | 187 | &.modal-overlay-active { |
153 | 188 | @apply h-screen overflow-hidden; |
154 | 189 | } |
|
161 | 196 | h4, |
162 | 197 | h5, |
163 | 198 | h6 { |
164 | | - @apply font-sans leading-tight font-semibold tracking-tight text-slate-900 dark:text-slate-100; |
| 199 | + @apply text-base-text font-sans leading-tight font-semibold tracking-tight; |
165 | 200 | } |
166 | 201 |
|
167 | 202 | h1 { |
|
232 | 267 | @layer components { |
233 | 268 | @layer layout { |
234 | 269 | header { |
235 | | - @apply sticky top-0 z-60 mb-2 transition-all duration-300 before:pointer-events-none before:absolute before:inset-0 before:-z-10 before:bg-white/20 before:backdrop-blur-xl before:backdrop-saturate-150 before:transition-all before:duration-300 dark:before:bg-gray-900/90; |
| 270 | + @apply bg-header-bg sticky top-0 z-60 mb-2; |
236 | 271 |
|
237 | 272 | & .header-content { |
238 | 273 | @apply relative flex h-14 items-center justify-between px-6 py-3 max-md:px-4 max-md:py-2; |
239 | 274 | } |
240 | 275 |
|
241 | 276 | [data-nav-type="mega-menu"] & { |
242 | 277 | & .desktop-menu-container { |
243 | | - @apply pointer-events-none absolute inset-x-0 top-0 z-30 h-0 w-full overflow-hidden opacity-0 transition-all duration-150 ease-in-out before:pointer-events-none before:absolute before:inset-x-0 before:top-0 before:h-full before:min-h-full before:bg-white/40 before:backdrop-blur-xl before:backdrop-saturate-150 max-md:hidden dark:before:bg-gray-900/90; |
| 278 | + @apply bg-header-bg/40 dark:bg-header-bg/90 pointer-events-none absolute inset-x-0 top-0 z-30 h-0 w-full overflow-hidden opacity-0 backdrop-blur-xl transition-all duration-150 ease-in-out max-md:hidden; |
244 | 279 |
|
245 | 280 | &.active { |
246 | | - @apply pointer-events-auto opacity-100; |
| 281 | + @apply pointer-events-auto h-[var(--mega-menu-height,0)] opacity-100; |
247 | 282 | } |
248 | 283 | } |
249 | 284 | } |
250 | 285 |
|
251 | 286 | .brand { |
252 | | - @apply hover:text-primary inline-block flex-shrink-0 text-xl font-semibold tracking-tight text-slate-900 no-underline transition-all duration-200 hover:-translate-y-0.5 max-md:order-1 max-md:flex-1 max-md:text-lg dark:text-slate-100; |
| 287 | + @apply hover:text-primary text-base-text inline-block flex-shrink-0 text-xl font-semibold tracking-tight no-underline transition-all duration-200 hover:-translate-y-0.5 max-md:order-1 max-md:flex-1 max-md:text-lg; |
253 | 288 | } |
254 | 289 |
|
255 | 290 | .nav { |
|
259 | 294 | @apply relative; |
260 | 295 |
|
261 | 296 | .menu { |
262 | | - @apply block rounded-xl px-3.5 py-1.5 font-medium text-slate-700 no-underline transition-all duration-150 dark:text-slate-200; |
| 297 | + @apply text-base-text block rounded-xl px-3.5 py-1.5 font-medium no-underline transition-all duration-150; |
263 | 298 |
|
264 | 299 | &.menu-active { |
265 | | - @apply text-slate-900 dark:text-slate-100; |
| 300 | + @apply text-base-text; |
266 | 301 | [data-nav-type="mega-menu"] & { |
267 | 302 | @apply underline decoration-2 underline-offset-4; |
268 | 303 | } |
269 | 304 | [data-nav-type="boxed-dropdown"] & { |
270 | | - @apply bg-slate-200/90 dark:bg-slate-700; |
| 305 | + @apply bg-header-interactive; |
271 | 306 | } |
272 | 307 | } |
273 | 308 | } |
|
290 | 325 | } |
291 | 326 |
|
292 | 327 | [data-nav-type="boxed-dropdown"] & { |
293 | | - @apply flex flex-col gap-y-1 rounded-3xl border border-slate-200/70 bg-white/80 py-2 shadow-lg backdrop-blur-md backdrop-saturate-150 transition-all duration-200 dark:border-gray-700/70 dark:bg-gray-900/90; |
| 328 | + @apply border-header-border bg-header-bg/90 flex flex-col gap-y-1 rounded-3xl border py-2 shadow-lg backdrop-blur-md backdrop-saturate-150 transition-all duration-200; |
294 | 329 | } |
295 | 330 | & > li { |
296 | 331 | @apply m-0 list-none; |
297 | 332 |
|
298 | 333 | & > a { |
299 | | - @apply block px-4 whitespace-nowrap text-slate-700 no-underline hover:text-slate-900 dark:text-slate-300 hover:dark:text-slate-100; |
| 334 | + @apply text-base-text block px-4 whitespace-nowrap no-underline; |
300 | 335 |
|
301 | 336 | [data-nav-type="mega-menu"] & { |
302 | 337 | @apply py-3 hover:underline hover:decoration-2 hover:underline-offset-4; |
303 | 338 | } |
304 | 339 | [data-nav-type="boxed-dropdown"] & { |
305 | | - @apply mx-2 rounded-2xl py-2 hover:bg-slate-200/60 dark:hover:bg-slate-700/70; |
| 340 | + @apply hover:bg-header-interactive mx-2 rounded-xl py-2; |
306 | 341 | } |
307 | 342 | } |
308 | 343 | } |
|
318 | 353 | @apply max-md:ml-5 max-md:cursor-pointer max-md:transition-all max-md:duration-200 max-md:hover:scale-105 max-md:active:scale-95; |
319 | 354 |
|
320 | 355 | & svg { |
321 | | - @apply size-5 max-md:text-slate-900 max-md:transition-transform max-md:duration-200 max-md:dark:text-slate-100; |
| 356 | + @apply max-md:text-base-text size-5 max-md:transition-transform max-md:duration-200; |
322 | 357 | } |
323 | 358 |
|
324 | 359 | &.active { |
|
333 | 368 | @apply flex shrink-0 flex-row-reverse gap-5 max-md:order-2 max-md:shrink-0 md:gap-8; |
334 | 369 |
|
335 | 370 | & span[data-indicator] { |
336 | | - @apply size-5 cursor-pointer text-[0px] before:absolute before:size-5 before:bg-current before:text-slate-900 dark:before:text-slate-100; |
| 371 | + @apply before:text-base-text size-5 cursor-pointer text-[0px] before:absolute before:size-5 before:bg-current; |
337 | 372 |
|
338 | 373 | &[data-indicator="media_error"] { |
339 | 374 | @apply before:[mask:url('@assets/icons/error.svg')_center/cover_no-repeat]; |
|
364 | 399 | @apply mx-auto min-h-[calc(100vh-4rem)] w-23/24 max-w-7xl px-4 max-md:w-full max-md:px-3; |
365 | 400 |
|
366 | 401 | #view { |
367 | | - @apply mx-0 w-full p-0 shadow-none transition-all duration-300 empty:hidden md:rounded-4xl md:border md:border-slate-400/20 md:bg-white/90 md:p-6 md:shadow-xl md:hover:border-slate-400/30 md:hover:shadow-2xl md:hover:shadow-slate-400/30 md:dark:border-gray-600/30 md:dark:bg-gray-900/90 md:dark:shadow-black/50 md:dark:hover:border-gray-500/40 md:dark:hover:shadow-black/60; |
| 402 | + @apply md:border-view-border/30 md:bg-view-bg md:hover:border-view-border/50 mx-0 w-full p-0 shadow-none transition-all duration-300 empty:hidden md:rounded-4xl md:border md:p-6 md:shadow-xl md:hover:shadow-2xl; |
368 | 403 |
|
369 | 404 | .cbi-title-section { |
370 | 405 | @apply mb-6 leading-relaxed max-md:mx-2 max-md:mb-3; |
|
640 | 675 | input[type="password"], |
641 | 676 | .cbi-input-text, |
642 | 677 | .cbi-input { |
643 | | - @apply focus:border-primary focus:ring-primary/20 relative rounded-2xl border border-slate-300/70 bg-white px-3 py-1.5 text-sm font-normal text-slate-900 placeholder-slate-400 shadow-sm transition-all duration-200 focus:ring-2 focus:outline-none dark:border-slate-600/60 dark:bg-slate-900 dark:text-slate-100 dark:placeholder-slate-400; |
| 678 | + @apply focus:border-primary focus:ring-primary/20 text-base-text relative rounded-2xl border border-slate-300/70 bg-white px-3 py-1.5 text-sm font-normal placeholder-slate-400 shadow-sm transition-all duration-200 focus:ring-2 focus:outline-none dark:border-slate-600/60 dark:bg-slate-900 dark:placeholder-slate-400; |
644 | 679 |
|
645 | 680 | .table.cbi-section-table & { |
646 | 681 | @apply w-full; |
|
675 | 710 |
|
676 | 711 | @layer textarea { |
677 | 712 | textarea { |
678 | | - @apply focus:border-primary focus:ring-primary/20 min-h-24 w-full resize-y rounded-2xl border border-slate-300/70 bg-white px-3 py-2 text-sm font-normal text-slate-900 placeholder-slate-400 shadow-sm transition-all duration-200 focus:ring-2 focus:outline-none dark:border-slate-600/60 dark:bg-slate-900 dark:text-slate-100 dark:placeholder-slate-400; |
| 713 | + @apply focus:border-primary focus:ring-primary/20 text-base-text min-h-24 w-full resize-y rounded-2xl border border-slate-300/70 bg-white px-3 py-2 text-sm font-normal placeholder-slate-400 shadow-sm transition-all duration-200 focus:ring-2 focus:outline-none dark:border-slate-600/60 dark:bg-slate-900 dark:placeholder-slate-400; |
679 | 714 | &[disabled] { |
680 | 715 | @apply cursor-not-allowed opacity-40 dark:opacity-30; |
681 | 716 | } |
|
684 | 719 |
|
685 | 720 | @layer select { |
686 | 721 | select { |
687 | | - @apply focus:border-primary focus:ring-primary/20 appearance-none rounded-2xl border border-slate-300/70 bg-white px-3 py-1.5 pr-10 text-sm font-normal text-slate-900 shadow-sm transition-all duration-200 focus:ring-2 focus:outline-none dark:border-slate-600/60 dark:bg-slate-900 dark:text-slate-100; |
| 722 | + @apply focus:border-primary focus:ring-primary/20 text-base-text appearance-none rounded-2xl border border-slate-300/70 bg-white px-3 py-1.5 pr-10 text-sm font-normal shadow-sm transition-all duration-200 focus:ring-2 focus:outline-none dark:border-slate-600/60 dark:bg-slate-900; |
688 | 723 | @apply bg-[url('@assets/icons/arrow-down.svg')] bg-[length:16px] bg-[right_0.75rem_center] bg-no-repeat dark:bg-[url('@assets/icons/arrow-down-dark.svg')]; |
689 | 724 | &[disabled] { |
690 | 725 | @apply cursor-not-allowed opacity-40 dark:opacity-30; |
|
921 | 956 |
|
922 | 957 | @layer progress { |
923 | 958 | .cbi-progressbar { |
924 | | - @apply relative h-3.5 w-full cursor-help overflow-hidden rounded-full bg-slate-300 before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-2xl before:text-xs/normal before:whitespace-nowrap before:text-slate-900 before:content-[attr(title)] max-md:h-4 max-md:rounded-2xl max-md:before:text-xs max-md:before:leading-normal dark:bg-slate-700 before:dark:border-slate-600 before:dark:text-slate-100 dark:before:text-slate-100; |
| 959 | + @apply before:text-base-text relative h-3.5 w-full cursor-help overflow-hidden rounded-full bg-slate-300 before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-2xl before:text-xs/normal before:whitespace-nowrap before:content-[attr(title)] max-md:h-4 max-md:rounded-2xl max-md:before:text-xs max-md:before:leading-normal dark:bg-slate-700 before:dark:border-slate-600; |
925 | 960 | [data-page="admin-system-package-manager"] & { |
926 | 961 | @apply max-sm:before:text-[10px]; |
927 | 962 | } |
|
1006 | 1041 | @apply mb-3 overflow-visible rounded-2xl p-6 transition-all duration-300 empty:hidden max-md:p-3; |
1007 | 1042 |
|
1008 | 1043 | #maincontent & { |
1009 | | - @apply border border-slate-200/40 bg-white/95 shadow-lg hover:border-slate-300/50 hover:shadow-xl max-md:border max-md:border-slate-200/20 max-md:bg-white/98 dark:border-slate-600/30 dark:bg-slate-800/95 dark:hover:border-slate-500/40 dark:hover:shadow-black/25 max-md:dark:border-slate-700/15 max-md:dark:bg-slate-800/98; |
| 1044 | + @apply border-card-border/30 bg-card-bg hover:border-card-border/50 border shadow-lg hover:shadow-xl; |
1010 | 1045 | } |
1011 | 1046 |
|
1012 | 1047 | & > .cbi-title { |
|
1020 | 1055 | @apply ml-auto flex flex-shrink-0 items-center; |
1021 | 1056 |
|
1022 | 1057 | & .label[data-clickable] { |
1023 | | - @apply bg-slate-100/40 text-slate-900 dark:bg-slate-900/30 dark:text-slate-100; |
| 1058 | + @apply text-base-text bg-slate-100/40 dark:bg-slate-900/30; |
1024 | 1059 | @apply inline-flex size-7 cursor-pointer items-center justify-center p-0 before:size-4 before:bg-current before:transition-transform before:duration-300 hover:shadow-md active:scale-95 max-md:size-6; |
1025 | 1060 | } |
1026 | 1061 |
|
|
1043 | 1078 | } |
1044 | 1079 |
|
1045 | 1080 | & h3 { |
1046 | | - @apply border-b border-slate-200/50 pb-4 text-slate-900 max-md:mx-0 max-md:pb-2 dark:border-slate-600/40 dark:text-slate-100; |
| 1081 | + @apply text-base-text border-b border-slate-200/50 pb-4 max-md:mx-0 max-md:pb-2 dark:border-slate-600/40; |
1047 | 1082 | } |
1048 | 1083 |
|
1049 | 1084 | & div[style*="display:grid"] { |
|
1348 | 1383 | @apply max-md:flex max-md:items-center max-md:justify-between max-md:p-6 max-md:pb-4; |
1349 | 1384 |
|
1350 | 1385 | & .mobile-nav-title { |
1351 | | - @apply max-md:m-0 max-md:text-lg max-md:font-semibold max-md:text-slate-900 max-md:dark:text-slate-100; |
| 1386 | + @apply max-md:text-base-text max-md:m-0 max-md:text-lg max-md:font-semibold; |
1352 | 1387 | } |
1353 | 1388 |
|
1354 | 1389 | & .mobile-nav-close { |
1355 | 1390 | @apply max-md:cursor-pointer max-md:transition-all max-md:duration-200 max-md:hover:scale-105 max-md:active:scale-95; |
1356 | 1391 |
|
1357 | 1392 | & svg { |
1358 | | - @apply size-5 max-md:text-slate-900 max-md:transition-transform max-md:duration-200 max-md:dark:text-slate-100; |
| 1393 | + @apply max-md:text-base-text size-5 max-md:transition-transform max-md:duration-200; |
1359 | 1394 | } |
1360 | 1395 | } |
1361 | 1396 | } |
|
1742 | 1777 | } |
1743 | 1778 |
|
1744 | 1779 | & > li.active { |
1745 | | - @apply border-b-2 border-slate-900 dark:border-slate-100; |
| 1780 | + @apply border-base-text border-b-2; |
1746 | 1781 | & > a { |
1747 | | - @apply font-semibold text-slate-900 dark:text-slate-100; |
| 1782 | + @apply text-base-text font-semibold; |
1748 | 1783 | } |
1749 | 1784 | } |
1750 | 1785 | } |
|
1885 | 1920 | } |
1886 | 1921 | } |
1887 | 1922 | h3 { |
1888 | | - @apply border-0 pb-4 text-slate-900 max-md:mx-0 max-md:pb-2 dark:text-slate-100; |
| 1923 | + @apply text-base-text border-0 pb-4 max-md:mx-0 max-md:pb-2; |
1889 | 1924 | } |
1890 | 1925 | } |
1891 | 1926 |
|
|
0 commit comments