|
20 | 20 | cursor: default; |
21 | 21 | user-select: none; |
22 | 22 |
|
23 | | - /* Note: no overflow: hidden so that we can see the exit animation for ranges */ |
| 23 | + /* Note: no overflow: hidden for historical reasons - we wanted to see |
| 24 | + an animation for items at the end while they were fading out, but |
| 25 | + we have removed this animation in the meantime */ |
24 | 26 | } |
25 | 27 |
|
26 | 28 | .filterNavigatorBarItem { |
|
40 | 42 | in the forced colors media query. */ |
41 | 43 | forced-color-adjust: none; |
42 | 44 | line-height: 24px; |
43 | | - transition: |
44 | | - opacity 250ms var(--animation-curve), |
45 | | - transform 250ms var(--animation-curve); |
46 | 45 | } |
47 | 46 |
|
48 | 47 | .filterNavigatorBarRootItem { |
|
98 | 97 | } |
99 | 98 |
|
100 | 99 | .filterNavigatorBarItem:not(.filterNavigatorBarLeafItem)::after { |
101 | | - animation: fadeIn 250ms var(--animation-curve); |
102 | 100 | background-image: var(--internal-separator-img); |
103 | 101 | background-position: -18px -12px; |
104 | 102 | background-repeat: no-repeat; |
105 | 103 | background-size: 24px 24px; |
106 | 104 | } |
107 | 105 |
|
108 | | -@keyframes fadeIn { |
109 | | - from { |
110 | | - opacity: 0; |
111 | | - } |
112 | | - |
113 | | - to { |
114 | | - opacity: 1; |
115 | | - } |
116 | | -} |
117 | | - |
118 | 106 | .filterNavigatorBarItem:not( |
119 | 107 | .filterNavigatorBarRootItem, |
120 | 108 | .filterNavigatorBarLeafItem |
|
163 | 151 | opacity: 0.65; |
164 | 152 | } |
165 | 153 |
|
166 | | -/* Animation */ |
167 | | - |
168 | | -.filterNavigatorBarUncommittedTransition-exit { |
169 | | - /* Because of the underlying transition library, this element is still here |
170 | | - * while the new "committed" element is created, which pushes it further |
171 | | - * right. By using display: none here, we prevent this bad effect. */ |
172 | | - display: none; |
173 | | -} |
174 | | - |
175 | | -.filterNavigatorBarTransition-enter { |
176 | | - color: inherit; |
177 | | - |
178 | | - /* We use the same value as the uncommitted item. |
179 | | - * Note that the "uncommitted item" won't have this "enter" class when |
180 | | - * committing, because of how we insert it (it's not part of the same loop). */ |
181 | | - opacity: 0.65; |
182 | | -} |
183 | | - |
184 | | -.filterNavigatorBarTransition-enter.filterNavigatorBarTransition-enter-active { |
185 | | - color: var(--internal-selected-color); |
186 | | - opacity: 1; |
187 | | -} |
188 | | - |
189 | | -.filterNavigatorBarTransition-exit { |
190 | | - opacity: 1; |
191 | | -} |
192 | | - |
193 | | -.filterNavigatorBarTransition-exit.filterNavigatorBarTransition-exit-active { |
194 | | - opacity: 0; |
195 | | - transform: translateX(50%); |
196 | | -} |
197 | | - |
198 | | -/* Do not animate the filter navigator bar items when user prefers reduced motion */ |
199 | | -@media (prefers-reduced-motion) { |
200 | | - .filterNavigatorBarItem { |
201 | | - animation: none; |
202 | | - transition: none; |
203 | | - } |
204 | | -} |
205 | | - |
206 | 154 | @media (forced-colors: active) { |
207 | 155 | .filterNavigatorBar { |
208 | 156 | --internal-background-color: ButtonFace; |
|
0 commit comments