File tree 10 files changed +47
-24
lines changed
packages/edit-site/src/components
10 files changed +47
-24
lines changed Original file line number Diff line number Diff line change 9
9
align-items : center ;
10
10
justify-content : center ;
11
11
12
- animation : 0.5s ease 0.2s edit- site- canvas- loader__fade- in- animation;
13
- animation-fill-mode : forwards ;
14
- @include reduce-motion (" animation" );
12
+ @media not (prefers-reduced-motion ) {
13
+ animation : 0.5s ease 0.2s edit- site- canvas- loader__fade- in- animation;
14
+ animation-fill-mode : forwards ;
15
+ }
15
16
16
17
& > div {
17
18
width : 160px ;
Original file line number Diff line number Diff line change 26
26
position : absolute ;
27
27
right : 0 ;
28
28
top : 0 ;
29
- transition : all 0.3s ; // Match .block-editor-iframe__body transition.
29
+ @media not (prefers-reduced-motion ) {
30
+ transition : all 0.3s ; // Match .block-editor-iframe__body transition.
31
+ }
30
32
}
31
33
32
34
.edit-site-editor-canvas-container__close-button {
Original file line number Diff line number Diff line change 1
1
.edit-site-editor__editor-interface {
2
2
opacity : 1 ;
3
- transition : opacity 0.1s ease-out ;
4
- @include reduce-motion ( " transition" );
3
+
4
+ @media not (prefers-reduced-motion ) {
5
+ transition : opacity 0.1s ease-out ;
6
+ }
5
7
6
8
& .is-loading {
7
9
opacity : 0 ;
Original file line number Diff line number Diff line change @@ -129,8 +129,10 @@ $footer-height: 70px;
129
129
.font-library-modal__font-variant_demo-text {
130
130
white-space : nowrap ;
131
131
flex-shrink : 0 ;
132
- transition : opacity 0.3s ease-in-out ;
133
- @include reduce-motion ( " transition" );
132
+
133
+ @media not (prefers-reduced-motion ) {
134
+ transition : opacity 0.3s ease-in-out ;
135
+ }
134
136
}
135
137
}
136
138
Original file line number Diff line number Diff line change 9
9
outline-offset : - $border-width ;
10
10
overflow : hidden ;
11
11
position : relative ;
12
- // Add the same transition that block style variations and other buttons have.
13
- transition : outline 0.1s linear ;
14
- @include reduce-motion (" transition" );
12
+ @media not (prefers-reduced-motion ) {
13
+ // Add the same transition that block style variations and other buttons have.
14
+ transition : outline 0.1s linear ;
15
+ }
15
16
16
17
& .is-pill {
17
18
height : $button-size-compact ;
Original file line number Diff line number Diff line change 115
115
116
116
.edit-site-resizable-frame__inner-content {
117
117
box-shadow : $elevation-x-small ;
118
- transition : border-radius , box-shadow 0.4s ;
119
118
// This ensure the radius work properly.
120
119
overflow : hidden ;
121
120
121
+ @media not (prefers-reduced-motion ) {
122
+ transition : border-radius , box-shadow 0.4s ;
123
+ }
124
+
122
125
.edit-site-layout :not (.is-full-canvas ) & {
123
126
border-radius : $radius-large ;
124
127
}
@@ -195,8 +198,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
195
198
}
196
199
197
200
& ::before {
198
- transition : box-shadow 0.1s ease ;
199
- @include reduce-motion (" transition" );
200
201
content : " " ;
201
202
display : block ;
202
203
position : absolute ;
@@ -206,6 +207,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
206
207
left : 9px ;
207
208
border-radius : $radius-medium ;
208
209
box-shadow : none ;
210
+
211
+ @media not (prefers-reduced-motion ) {
212
+ transition : box-shadow 0.1s ease ;
213
+ }
209
214
}
210
215
211
216
.edit-site-layout__view-mode-toggle-icon {
Original file line number Diff line number Diff line change 26
26
top : 0 ;
27
27
z-index : 2 ;
28
28
flex-shrink : 0 ;
29
- transition : padding ease-out 0.1s ;
30
- @include reduce-motion (" transition" );
31
29
min-height : $grid-unit-50 ;
32
30
31
+ @media not (prefers-reduced-motion ) {
32
+ transition : padding ease-out 0.1s ;
33
+ }
34
+
33
35
.edit-site-patterns__title {
34
36
min-height : $grid-unit-50 ;
35
37
Original file line number Diff line number Diff line change 67
67
height : $grid-unit-20 ;
68
68
object-fit : cover ;
69
69
opacity : 0 ;
70
- transition : opacity 0.1s linear ;
71
- @include reduce-motion (" transition" );
72
70
border-radius : 100% ;
71
+
72
+ @media not (prefers-reduced-motion ) {
73
+ transition : opacity 0.1s linear ;
74
+ }
73
75
}
74
76
75
77
& .is-loaded {
Original file line number Diff line number Diff line change 4
4
height : calc (100% - #{$header-height } );
5
5
/* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
6
6
container : edit- site- page / inline-size ;
7
- transition : width ease-out 0.2s ;
8
- @include reduce-motion (" transition" );
7
+
8
+ @media not (prefers-reduced-motion ) {
9
+ transition : width ease-out 0.2s ;
10
+ }
9
11
10
12
@include break-medium () {
11
13
height : 100% ;
19
21
position : sticky ;
20
22
top : 0 ;
21
23
z-index : z-index (" .edit-site-page-header" );
22
- transition : padding ease-out 0.1s ;
23
- @include reduce-motion (" transition" );
24
+
25
+ @media not (prefers-reduced-motion ) {
26
+ transition : padding ease-out 0.1s ;
27
+ }
24
28
25
29
.components-heading {
26
30
color : $gray-900 ;
Original file line number Diff line number Diff line change 65
65
opacity : 0 ;
66
66
position : absolute ;
67
67
right : 0 ;
68
- transition : opacity 0.1s linear ;
69
- @include reduce-motion (" transition" );
68
+
69
+ @media not (prefers-reduced-motion ) {
70
+ transition : opacity 0.1s linear ;
71
+ }
70
72
}
71
73
72
74
& :hover ::after ,
You can’t perform that action at this time.
0 commit comments