|
| 1 | +@property --bottom-fade { |
| 2 | + syntax: "<length>"; |
| 3 | + inherits: false; |
| 4 | + initial-value: 0px; |
| 5 | +} |
| 6 | + |
| 7 | +@keyframes scroll { |
| 8 | + 0% { |
| 9 | + --bottom-fade: 20px; |
| 10 | + } |
| 11 | + 90% { |
| 12 | + --bottom-fade: 20px; |
| 13 | + } |
| 14 | + 100% { |
| 15 | + --bottom-fade: 0; |
| 16 | + } |
| 17 | +} |
| 18 | + |
1 | 19 | [data-component="list"] { |
2 | 20 | display: flex; |
3 | 21 | flex-direction: column; |
4 | | - gap: 8px; |
| 22 | + gap: 12px; |
5 | 23 | overflow: hidden; |
6 | 24 | padding: 0 12px; |
7 | 25 |
|
|
19 | 37 | flex-shrink: 0; |
20 | 38 | background-color: transparent; |
21 | 39 | opacity: 0.5; |
22 | | - transition-property: opacity; |
23 | | - transition-duration: var(--transition-duration); |
24 | | - transition-timing-function: var(--transition-easing); |
| 40 | + transition: opacity 0.15s ease; |
25 | 41 |
|
26 | 42 | &:hover:not(:disabled), |
27 | 43 | &:focus-visible:not(:disabled), |
|
72 | 88 | height: 20px; |
73 | 89 | background-color: transparent; |
74 | 90 | opacity: 0.5; |
75 | | - transition-property: opacity; |
76 | | - transition-duration: var(--transition-duration); |
77 | | - transition-timing-function: var(--transition-easing); |
| 91 | + transition: opacity 0.15s ease; |
78 | 92 |
|
79 | 93 | &:hover:not(:disabled), |
80 | 94 | &:focus-visible:not(:disabled), |
|
117 | 131 | gap: 12px; |
118 | 132 | overflow-y: auto; |
119 | 133 | overscroll-behavior: contain; |
| 134 | + mask: linear-gradient(to bottom, #ffff calc(100% - var(--bottom-fade)), #0000); |
| 135 | + animation: scroll; |
| 136 | + animation-timeline: --scroll; |
| 137 | + scroll-timeline: --scroll y; |
| 138 | + scrollbar-width: none; |
| 139 | + -ms-overflow-style: none; |
| 140 | + &::-webkit-scrollbar { |
| 141 | + display: none; |
| 142 | + } |
120 | 143 |
|
121 | 144 | [data-slot="list-empty-state"] { |
122 | 145 | display: flex; |
|
192 | 215 | background: linear-gradient(to bottom, var(--surface-raised-stronger-non-alpha), transparent); |
193 | 216 | pointer-events: none; |
194 | 217 | opacity: 0; |
195 | | - transition-property: opacity; |
196 | | - transition-duration: var(--transition-duration); |
197 | | - transition-timing-function: var(--transition-easing); |
| 218 | + transition: opacity 0.15s ease; |
198 | 219 | } |
199 | 220 |
|
200 | 221 | &[data-stuck="true"]::after { |
|
230 | 251 | align-items: center; |
231 | 252 | justify-content: center; |
232 | 253 | flex-shrink: 0; |
233 | | - aspect-ratio: 1 / 1; |
| 254 | + aspect-ratio: 1/1; |
234 | 255 | [data-component="icon"] { |
235 | 256 | color: var(--icon-strong-base); |
236 | 257 | } |
237 | 258 | } |
238 | | - |
239 | | - [name="check"] { |
240 | | - color: var(--icon-strong-base); |
241 | | - } |
242 | | - |
243 | 259 | [data-slot="list-item-active-icon"] { |
244 | 260 | display: none; |
245 | 261 | align-items: center; |
246 | 262 | justify-content: center; |
247 | 263 | flex-shrink: 0; |
248 | | - aspect-ratio: 1 / 1; |
| 264 | + aspect-ratio: 1/1; |
249 | 265 | [data-component="icon"] { |
250 | 266 | color: var(--icon-strong-base); |
251 | 267 | } |
|
0 commit comments