|
3 | 3 | } |
4 | 4 |
|
5 | 5 | .windshield { |
6 | | - background-color: var(--color-subtle); |
| 6 | + background-color: var(--color-selected); |
7 | 7 | border-radius: 2em; |
8 | 8 | display: flex; |
9 | 9 | flex-wrap: wrap; |
|
30 | 30 | position: relative; |
31 | 31 |
|
32 | 32 | .windshield & { |
33 | | - animation: splat 200ms normal forwards ease-in-out; |
| 33 | + animation: float-up-left 400ms normal forwards ease-in-out; |
| 34 | + color: var(--splat-color); |
34 | 35 |
|
35 | 36 | &:nth-of-type(2n) { |
36 | 37 | animation-delay: 50ms; |
| 38 | + animation: float-up-right 400ms normal forwards ease-in-out; |
37 | 39 | } |
38 | 40 |
|
39 | 41 | &:nth-of-type(4n) { |
40 | | - animation-delay: 100ms; |
| 42 | + animation-delay: 150ms; |
41 | 43 | } |
42 | 44 |
|
43 | 45 | [data-turbo-preview] & { animation: none; } |
|
52 | 54 | } |
53 | 55 | } |
54 | 56 |
|
55 | | -.splat__category { |
56 | | - aspect-ratio: 1; |
57 | | - background-color: var(--color-bg); |
58 | | - border: 0.5em solid var(--splat-color); |
59 | | - border-radius: 50%; |
60 | | - color: var(--splat-color); |
61 | | - display: flex; |
62 | | - font-size: 5cqi; |
63 | | - font-weight: 800; |
64 | | - inset: auto auto 3cqi 3cqi; |
65 | | - padding: 0.5em 1em; |
66 | | - place-items: center; |
67 | | - position: absolute; |
68 | | - |
69 | | - + & { |
70 | | - inset: auto auto 0 24cqi; |
71 | | - } |
72 | | -} |
73 | | - |
74 | | -.splat__date { |
75 | | - aspect-ratio: 1; |
76 | | - background-color: var(--color-bg); |
77 | | - border: 0.5em solid var(--splat-color); |
78 | | - border-radius: 50%; |
79 | | - color: var(--splat-color); |
80 | | - display: flex; |
81 | | - font-size: 5cqi; |
82 | | - font-weight: 800; |
83 | | - inset: 10cqi 5cqi auto auto; |
84 | | - padding: 0.5em 1em; |
85 | | - place-items: center; |
86 | | - position: absolute; |
87 | | -} |
88 | | - |
89 | 57 | .splat__link { |
90 | | - color: var(--color-ink-reversed); |
| 58 | + color: var(--splat-color); |
91 | 59 | } |
92 | 60 |
|
93 | 61 | .splat__svg { |
|
98 | 66 | z-index: -1; |
99 | 67 | } |
100 | 68 |
|
| 69 | +.splat__bubble { |
| 70 | + aspect-ratio: 1 / 0.96; |
| 71 | + background-color: var(--color-bg); |
| 72 | + background-image: radial-gradient(90% 90% at 50% 50%, #FFFFFF80 0%, #ffffff90 45%, var(--splat-color) 70%); |
| 73 | + background-position: 0; |
| 74 | + background-size: 100%; |
| 75 | + block-size: 95%; |
| 76 | + border: 1px solid var(--splat-color); |
| 77 | + border-radius: 50%; |
| 78 | + position: absolute; |
| 79 | + transform: rotate(var(--splat-rotate)); |
| 80 | + z-index: -1; |
| 81 | + |
| 82 | + &.splat__category { |
| 83 | + inset: auto auto 3cqi 3cqi; |
| 84 | + |
| 85 | + + & { |
| 86 | + inset: auto auto 0 24cqi; |
| 87 | + } |
| 88 | + } |
| 89 | + |
| 90 | + &.splat__date { |
| 91 | + inset: 10cqi 5cqi auto auto; |
| 92 | + } |
| 93 | + |
| 94 | + &.splat__meta { |
| 95 | + color: var(--splat-color); |
| 96 | + background-color: transparent; |
| 97 | + block-size: auto; |
| 98 | + display: flex; |
| 99 | + font-size: 5cqi; |
| 100 | + font-weight: 800; |
| 101 | + line-height: 1; |
| 102 | + padding: 1em; |
| 103 | + place-items: center; |
| 104 | + position: absolute; |
| 105 | + scale: 1; |
| 106 | + transform: none; |
| 107 | + } |
| 108 | +} |
| 109 | + |
101 | 110 | .splat__title { |
102 | 111 | font-size: 10cqi; |
103 | 112 | line-height: 1.2; |
|
0 commit comments