|
1 | 1 | /* custom classes: */ |
2 | 2 | .header-bg { |
3 | | - background-image: url(/img/home/header-background.avif), linear-gradient(to bottom, rgb(4.31% 5.88% 9.02%) 0%, rgb(7.84% 20.39% 32.94%) 38%, rgb(24.71% 54.51% 85.1%) 72%, rgb(60.39% 78.04% 96.08%) 90%); |
| 3 | + background-image: url(/img/home/header-background.avif), linear-gradient(to bottom, var(--color-dark) 0%, rgb(7.84% 20.39% 32.94%) 38%, rgb(24.71% 54.51% 85.1%) 72%, rgb(60.39% 78.04% 96.08%) 90%); |
4 | 4 | background-size: auto 100%; |
5 | 5 | } |
6 | 6 |
|
| 7 | +/* Two stacked icons per slot; `.is-locked` on the .finder-hero root, set by |
| 8 | + script, picks the visible face. */ |
| 9 | +.finder-swap-icon { |
| 10 | + @apply relative inline-flex flex-none size-5; |
| 11 | +} |
| 12 | + |
| 13 | +.finder-swap-icon i, |
| 14 | +.finder-swap-icon img { |
| 15 | + @apply absolute inset-0 flex items-center justify-center object-contain; |
| 16 | + transition: opacity 0.4s ease; |
| 17 | +} |
| 18 | + |
| 19 | +.finder-hero.is-locked .finder-when-unlocked, |
| 20 | +.finder-hero:not(.is-locked) .finder-when-locked { |
| 21 | + opacity: 0; |
| 22 | +} |
| 23 | + |
| 24 | +.finder-hero.is-locked .finder-flap-name { |
| 25 | + @apply font-mono text-[13px] text-gray-600; |
| 26 | +} |
| 27 | + |
| 28 | +/* The title-bar path flips as one whole panel between its locked and unlocked |
| 29 | + label instead of per-letter flapping. */ |
| 30 | +.finder-path { |
| 31 | + @apply inline-flex min-w-0 perspective-[400px]; |
| 32 | +} |
| 33 | + |
| 34 | +.finder-path-inner { |
| 35 | + @apply transform-3d transition-transform duration-600 ease-in-out; |
| 36 | +} |
| 37 | + |
| 38 | +.finder-path-front, |
| 39 | +.finder-path-back { |
| 40 | + @apply backface-hidden; |
| 41 | +} |
| 42 | + |
| 43 | +.finder-path-back, |
| 44 | +.finder-hero:not(.is-locked) .finder-path-inner { |
| 45 | + @apply rotate-x-180; |
| 46 | +} |
| 47 | + |
| 48 | +/* Crossfade rotator for exactly three children: the :nth-child delays carve the |
| 49 | + 12s cycle into three 4s slots, so a fourth child fades in on top of the first. */ |
| 50 | +.idp-swap { |
| 51 | + display: inline-grid; |
| 52 | + place-items: center; |
| 53 | +} |
| 54 | + |
| 55 | +/* Every delay is shifted by -0.48s, the length of the 4% fade-in, so the first |
| 56 | + child is already opaque on load instead of fading in. */ |
| 57 | +.idp-swap > * { |
| 58 | + grid-area: 1 / 1; |
| 59 | + opacity: 0; |
| 60 | + animation: idp-cycle 12s infinite backwards; |
| 61 | + animation-delay: -0.48s; |
| 62 | +} |
| 63 | + |
| 64 | +.idp-swap > :nth-child(2) { |
| 65 | + animation-delay: 3.52s; |
| 66 | +} |
| 67 | + |
| 68 | +.idp-swap > :nth-child(3) { |
| 69 | + animation-delay: 7.52s; |
| 70 | +} |
| 71 | + |
| 72 | +@keyframes idp-cycle { |
| 73 | + 0% { opacity: 0; } |
| 74 | + 4% { opacity: 1; } |
| 75 | + 33% { opacity: 1; } |
| 76 | + 37% { opacity: 0; } |
| 77 | + 100% { opacity: 0; } |
| 78 | +} |
| 79 | + |
| 80 | +@media (prefers-reduced-motion: reduce) { |
| 81 | + .ad-pulse { |
| 82 | + display: none; |
| 83 | + } |
| 84 | + |
| 85 | + .idp-swap > * { |
| 86 | + animation: none; |
| 87 | + } |
| 88 | + |
| 89 | + .idp-swap > :first-child { |
| 90 | + opacity: 1; |
| 91 | + } |
| 92 | +} |
| 93 | + |
7 | 94 | .container-prose { |
8 | 95 | @apply w-full mx-auto; |
9 | 96 | max-width: 768px; |
|
34 | 121 | @apply bg-secondary border-secondary text-white; |
35 | 122 | } |
36 | 123 |
|
37 | | -.btn-tertiary2 { |
38 | | - @apply bg-tertiary2 border-tertiary2 text-white; |
| 124 | +.btn-hub { |
| 125 | + @apply bg-hub border-hub text-white; |
39 | 126 | } |
40 | 127 |
|
41 | 128 | .btn-primary:hover, |
42 | 129 | .btn-primary:focus, |
43 | 130 | .btn-secondary:hover, |
44 | 131 | .btn-secondary:focus, |
45 | | -.btn-tertiary2:hover, |
46 | | -.btn-tertiary2:focus { |
| 132 | +.btn-hub:hover, |
| 133 | +.btn-hub:focus { |
47 | 134 | @apply text-white transition transform duration-200 ease-in-out shadow-md -translate-y-px; |
48 | 135 | } |
49 | 136 |
|
50 | 137 | .btn-primary:disabled, |
51 | 138 | .btn-secondary:disabled, |
52 | | -.btn-tertiary2:disabled { |
| 139 | +.btn-hub:disabled { |
53 | 140 | @apply shadow-none translate-y-0; |
54 | 141 | } |
55 | 142 |
|
|
62 | 149 | @apply bg-primary text-white transition transform duration-200 ease-in-out; |
63 | 150 | } |
64 | 151 |
|
| 152 | +.btn-outline-hub { |
| 153 | + @apply border border-hub text-hub; |
| 154 | +} |
| 155 | + |
| 156 | +.btn-outline-hub:hover, |
| 157 | +.btn-outline-hub:focus { |
| 158 | + @apply bg-hub text-white transition transform duration-200 ease-in-out; |
| 159 | +} |
| 160 | + |
65 | 161 | .btn-outline-secondary { |
66 | 162 | @apply border border-secondary text-secondary; |
67 | 163 | } |
|
99 | 195 | @apply text-primary no-underline hover:underline; |
100 | 196 | } |
101 | 197 |
|
| 198 | +.text-link-hub { |
| 199 | + @apply text-hub no-underline hover:underline; |
| 200 | +} |
| 201 | + |
102 | 202 | .font-h1 { |
103 | 203 | @apply font-headline font-medium text-3xl md:text-4xl leading-tight text-balance; |
104 | 204 | } |
|
0 commit comments