File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed
tbx/static_src/sass/components Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 62
62
position : absolute ;
63
63
width : 44px ;
64
64
height : 44px ;
65
- mix-blend-mode : screen ;
66
65
left : 18px ;
67
66
top : 15px ;
68
67
transition : height $transition ;
69
68
70
69
@include reduced-motion () {
71
70
transition : none ;
72
71
}
72
+
73
+ .mode-dark & {
74
+ mix-blend-mode : screen ;
75
+ }
76
+
77
+ // Mix blend mode doesn't work well for light mode
78
+ // so emulate it with opacity and z-index
79
+ .mode-light & {
80
+ z-index : -1 ;
81
+ opacity : 0.5 ;
82
+ }
73
83
}
74
84
75
85
#{$root } __top-beak {
199
209
transform : scale (1 );
200
210
transition : transform $transition ;
201
211
transform-origin : 5px 20px ;
202
- z-index : -1 ;
212
+
213
+ .mode-dark & {
214
+ mix-blend-mode : screen ;
215
+ }
216
+
217
+ // Mix blend mode doesn't work well for light mode
218
+ // so emulate it with z-index
219
+ .mode-light & {
220
+ z-index : -1 ;
221
+ }
203
222
204
223
@include reduced-motion () {
205
224
transition : none ;
213
232
transform : rotate (0 );
214
233
transition : transform $transition ;
215
234
transform-origin : 30px 60px ;
216
- mix-blend-mode : screen ;
217
235
218
236
@include reduced-motion () {
219
237
transition : none ;
You can’t perform that action at this time.
0 commit comments