@@ -58,10 +58,12 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection="true"] .b
58
58
background : var (--wp-admin-theme-color );
59
59
opacity : 0.4 ;
60
60
61
- // Animate.
62
- animation : selection- overlay__fade- in- animation 0.1s ease-out ;
63
- animation-fill-mode : forwards ;
64
- @include reduce-motion (" animation" );
61
+ @media not ( prefers-reduced-motion ) {
62
+
63
+ // Animate.
64
+ animation : selection- overlay__fade- in- animation 0.1s ease-out ;
65
+ animation-fill-mode : forwards ;
66
+ }
65
67
66
68
// Show outline in high contrast mode.
67
69
outline : 2px solid transparent ;
@@ -271,8 +273,9 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection="true"] .b
271
273
// Spotlight mode. Fade out blocks unless they contain a selected block.
272
274
.is-focus-mode .block-editor-block-list__block :not (.has-child-selected ) {
273
275
opacity : 0.2 ;
274
- transition : opacity 0.1s linear ;
275
- @include reduce-motion (" transition" );
276
+ @media not ( prefers-reduced-motion ) {
277
+ transition : opacity 0.1s linear ;
278
+ }
276
279
277
280
// Nested blocks should never be faded. If the parent block is already faded
278
281
// out, it shouldn't be faded out more. If the parent block in not faded
@@ -339,9 +342,10 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection="true"] .b
339
342
// Hide the appender that sits at the end of block lists, when inside a nested block,
340
343
// unless the block itself, or a parent, is selected.
341
344
.wp-block .block-list-appender .block-editor-inserter__toggle {
342
- animation : block- editor- inserter__toggle__fade- in- animation 0.1s ease ;
343
- animation-fill-mode : forwards ;
344
- @include reduce-motion (" animation" );
345
+ @media not ( prefers-reduced-motion ) {
346
+ animation : block- editor- inserter__toggle__fade- in- animation 0.1s ease ;
347
+ animation-fill-mode : forwards ;
348
+ }
345
349
}
346
350
347
351
.block-editor-block-list__block :not (.is-selected ):not (.has-child-selected ) .block-editor-default-block-appender {
@@ -367,8 +371,9 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection="true"] .b
367
371
font-family : $editor-html-font ;
368
372
font-size : $text-editor-font-size ;
369
373
line-height : 1.5 ;
370
- transition : padding 0.2s linear ;
371
- @include reduce-motion (" transition" );
374
+ @media not ( prefers-reduced-motion ) {
375
+ transition : padding 0.2s linear ;
376
+ }
372
377
373
378
& :focus {
374
379
box-shadow : inset 0 0 0 var (--wp-admin-border-width-focus ) var (--wp-admin-theme-color );
@@ -400,7 +405,9 @@ _::-webkit-full-page-media, _:future, :root [data-has-multi-selection="true"] .b
400
405
// Additional -1px is required to avoid sub pixel rounding errors allowing background to show.
401
406
margin-left : -1px ;
402
407
margin-right : -1px ;
403
- transition : background-color 0.3s ease ;
408
+ @media not ( prefers-reduced-motion ) {
409
+ transition : background-color 0.3s ease ;
410
+ }
404
411
display : flex ;
405
412
align-items : center ;
406
413
justify-content : center ;
0 commit comments