|
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 | +/* Safari honors `backface-visibility` only on an element that carries a |
| 39 | + transform itself, so the front face needs the identity rotation. */ |
| 40 | +.finder-path-front, |
| 41 | +.finder-path-back { |
| 42 | + @apply backface-hidden; |
| 43 | +} |
| 44 | + |
| 45 | +.finder-path-front { |
| 46 | + @apply rotate-x-0; |
| 47 | +} |
| 48 | + |
| 49 | +.finder-path-back, |
| 50 | +.finder-hero:not(.is-locked) .finder-path-inner { |
| 51 | + @apply rotate-x-180; |
| 52 | +} |
| 53 | + |
| 54 | +/* Crossfade rotator for exactly three children: the :nth-child delays carve the |
| 55 | + 12s cycle into three 4s slots, so a fourth child fades in on top of the first. */ |
| 56 | +.idp-swap { |
| 57 | + display: inline-grid; |
| 58 | + place-items: center; |
| 59 | +} |
| 60 | + |
| 61 | +/* Every delay is shifted by -0.48s, the length of the 4% fade-in, so the first |
| 62 | + child is already opaque on load instead of fading in. */ |
| 63 | +.idp-swap > * { |
| 64 | + grid-area: 1 / 1; |
| 65 | + opacity: 0; |
| 66 | + animation: idp-cycle 12s infinite backwards; |
| 67 | + animation-delay: -0.48s; |
| 68 | +} |
| 69 | + |
| 70 | +.idp-swap > :nth-child(2) { |
| 71 | + animation-delay: 3.52s; |
| 72 | +} |
| 73 | + |
| 74 | +.idp-swap > :nth-child(3) { |
| 75 | + animation-delay: 7.52s; |
| 76 | +} |
| 77 | + |
| 78 | +@keyframes idp-cycle { |
| 79 | + 0% { opacity: 0; } |
| 80 | + 4% { opacity: 1; } |
| 81 | + 33% { opacity: 1; } |
| 82 | + 37% { opacity: 0; } |
| 83 | + 100% { opacity: 0; } |
| 84 | +} |
| 85 | + |
| 86 | +@media (prefers-reduced-motion: reduce) { |
| 87 | + .ad-pulse { |
| 88 | + display: none; |
| 89 | + } |
| 90 | + |
| 91 | + .idp-swap > * { |
| 92 | + animation: none; |
| 93 | + } |
| 94 | + |
| 95 | + .idp-swap > :first-child { |
| 96 | + opacity: 1; |
| 97 | + } |
| 98 | +} |
| 99 | + |
7 | 100 | .container-prose { |
8 | 101 | @apply w-full mx-auto; |
9 | 102 | max-width: 768px; |
|
34 | 127 | @apply bg-secondary border-secondary text-white; |
35 | 128 | } |
36 | 129 |
|
37 | | -.btn-tertiary2 { |
38 | | - @apply bg-tertiary2 border-tertiary2 text-white; |
| 130 | +.btn-hub { |
| 131 | + @apply bg-hub border-hub text-white; |
39 | 132 | } |
40 | 133 |
|
41 | 134 | .btn-primary:hover, |
42 | 135 | .btn-primary:focus, |
43 | 136 | .btn-secondary:hover, |
44 | 137 | .btn-secondary:focus, |
45 | | -.btn-tertiary2:hover, |
46 | | -.btn-tertiary2:focus { |
| 138 | +.btn-hub:hover, |
| 139 | +.btn-hub:focus { |
47 | 140 | @apply text-white transition transform duration-200 ease-in-out shadow-md -translate-y-px; |
48 | 141 | } |
49 | 142 |
|
50 | 143 | .btn-primary:disabled, |
51 | 144 | .btn-secondary:disabled, |
52 | | -.btn-tertiary2:disabled { |
| 145 | +.btn-hub:disabled { |
53 | 146 | @apply shadow-none translate-y-0; |
54 | 147 | } |
55 | 148 |
|
|
62 | 155 | @apply bg-primary text-white transition transform duration-200 ease-in-out; |
63 | 156 | } |
64 | 157 |
|
65 | | -.btn-outline-tertiary2 { |
66 | | - @apply border border-tertiary2 text-tertiary2; |
| 158 | +.btn-outline-hub { |
| 159 | + @apply border border-hub text-hub; |
67 | 160 | } |
68 | 161 |
|
69 | | -.btn-outline-tertiary2:hover, |
70 | | -.btn-outline-tertiary2:focus { |
71 | | - @apply bg-tertiary2 text-white transition transform duration-200 ease-in-out; |
| 162 | +.btn-outline-hub:hover, |
| 163 | +.btn-outline-hub:focus { |
| 164 | + @apply bg-hub text-white transition transform duration-200 ease-in-out; |
72 | 165 | } |
73 | 166 |
|
74 | 167 | .btn-outline-secondary { |
|
108 | 201 | @apply text-primary no-underline hover:underline; |
109 | 202 | } |
110 | 203 |
|
| 204 | +.text-link-hub { |
| 205 | + @apply text-hub no-underline hover:underline; |
| 206 | +} |
| 207 | + |
111 | 208 | .font-h1 { |
112 | 209 | @apply font-headline font-medium text-3xl md:text-4xl leading-tight text-balance; |
113 | 210 | } |
|
0 commit comments