11/* Base Material styles for depth
22 * Part of the MaterialZ CSS library
33 *
4- * Copyright 2015 Zachary Yaro
4+ * Copyright 2015-2021 Zachary Yaro
55 * Released under the MIT license
6- * http ://materialz.zmyaro.com /LICENSE.txt
6+ * https ://materialz.dev /LICENSE.txt
77 */
88
99@charset "UTF-8" ;
2929 -o-transition-property : box-shadow;
3030 transition-property : box-shadow;
3131}
32+ .card .full-width .z1 ,
33+ .card .full-width .z2 ,
34+ .card .full-width .z3 ,
35+ .card .full-width .z4 ,
36+ .card .full-width .z5 {
37+ -webkit-transition-property : margin, border-radius, -webkit-box-shadow, box-shadow;
38+ -moz-transition-property : margin, border-radius, -moz-box-shadow, box-shadow;
39+ -ms-transition-property : margin, border-radius, box-shadow;
40+ -o-transition-property : margin, border-radius, box-shadow;
41+ transition-property : margin, border-radius, box-shadow;
42+ }
3243button .z1 ,
3344button .z2 ,
3445button .z3 ,
3546button .z4 ,
3647button .z5 ,
37- * [role = "button" ].z1 ,
38- * [role = "button" ].z2 ,
39- * [role = "button" ].z3 ,
40- * [role = "button" ].z4 ,
41- * [role = "button" ].z5 ,
48+ [role = "button" ].z1 ,
49+ [role = "button" ].z2 ,
50+ [role = "button" ].z3 ,
51+ [role = "button" ].z4 ,
52+ [role = "button" ].z5 ,
4253input [type = "button" ].z1 ,
4354input [type = "button" ].z2 ,
4455input [type = "button" ].z3 ,
@@ -61,11 +72,11 @@ input[type="reset"].z5 {
6172 button .z3 : hover ,
6273 button .z4 : hover ,
6374 button .z5 : hover ,
64- * [role = "button" ].z1 : hover ,
65- * [role = "button" ].z2 : hover ,
66- * [role = "button" ].z3 : hover ,
67- * [role = "button" ].z4 : hover ,
68- * [role = "button" ].z5 : hover ,
75+ [role = "button" ].z1 : hover ,
76+ [role = "button" ].z2 : hover ,
77+ [role = "button" ].z3 : hover ,
78+ [role = "button" ].z4 : hover ,
79+ [role = "button" ].z5 : hover ,
6980 input [type = "button" ].z1 : hover ,
7081 input [type = "button" ].z2 : hover ,
7182 input [type = "button" ].z3 : hover ,
@@ -86,11 +97,11 @@ input[type="reset"].z5 {
8697 button .z3 : focus ,
8798 button .z4 : focus ,
8899 button .z5 : focus ,
89- * [role = "button" ].z1 : focus ,
90- * [role = "button" ].z2 : focus ,
91- * [role = "button" ].z3 : focus ,
92- * [role = "button" ].z4 : focus ,
93- * [role = "button" ].z5 : focus ,
100+ [role = "button" ].z1 : focus ,
101+ [role = "button" ].z2 : focus ,
102+ [role = "button" ].z3 : focus ,
103+ [role = "button" ].z4 : focus ,
104+ [role = "button" ].z5 : focus ,
94105 input [type = "button" ].z1 : focus ,
95106 input [type = "button" ].z2 : focus ,
96107 input [type = "button" ].z3 : focus ,
@@ -113,11 +124,11 @@ input[type="reset"].z5 {
113124 button .z3 : enabled : active ,
114125 button .z4 : enabled : active ,
115126 button .z5 : enabled : active ,
116- * [role = "button" ].z1 : active ,
117- * [role = "button" ].z2 : active ,
118- * [role = "button" ].z3 : active ,
119- * [role = "button" ].z4 : active ,
120- * [role = "button" ].z5 : active ,
127+ [role = "button" ].z1 : active ,
128+ [role = "button" ].z2 : active ,
129+ [role = "button" ].z3 : active ,
130+ [role = "button" ].z4 : active ,
131+ [role = "button" ].z5 : active ,
121132 input [type = "button" ].z1 : enabled : active ,
122133 input [type = "button" ].z2 : enabled : active ,
123134 input [type = "button" ].z3 : enabled : active ,
@@ -138,11 +149,11 @@ input[type="reset"].z5 {
138149 button .z3 : enabled .active ,
139150 button .z4 : enabled .active ,
140151 button .z5 : enabled .active ,
141- * [role = "button" ].z1 .active ,
142- * [role = "button" ].z2 .active ,
143- * [role = "button" ].z3 .active ,
144- * [role = "button" ].z4 .active ,
145- * [role = "button" ].z5 .active ,
152+ [role = "button" ].z1 .active ,
153+ [role = "button" ].z2 .active ,
154+ [role = "button" ].z3 .active ,
155+ [role = "button" ].z4 .active ,
156+ [role = "button" ].z5 .active ,
146157 input [type = "button" ].z1 : enabled .active ,
147158 input [type = "button" ].z2 : enabled .active ,
148159 input [type = "button" ].z3 : enabled .active ,
@@ -165,14 +176,12 @@ input[type="reset"].z5 {
165176 -webkit-box-shadow : rgba (0 , 0 , 0 , 0.26 ) 0 2px 5px 0 , rgba (0 , 0 , 0 , 0.16 ) 0 2px 10px 0 ;
166177 -moz-box-shadow : rgba (0 , 0 , 0 , 0.26 ) 0 2px 5px 0 , rgba (0 , 0 , 0 , 0.16 ) 0 2px 10px 0 ;
167178 box-shadow : rgba (0 , 0 , 0 , 0.26 ) 0 2px 5px 0 , rgba (0 , 0 , 0 , 0.16 ) 0 2px 10px 0 ;
168- filter : progid:DXImageTransform.Microsoft.Glow(Color=#b8b8b8, Strength=5);
169- -ms-filter : "progid:DXImageTransform.Microsoft.Glow(Color=#b8b8b8,Strength=5)" ;
170179}
171180
172181button .z1 : hover ,
173182button .z1 : focus ,
174- * [role = "button" ].z1 : hover ,
175- * [role = "button" ].z1 : focus ,
183+ [role = "button" ].z1 : hover ,
184+ [role = "button" ].z1 : focus ,
176185input [type = "button" ].z1 : hover ,
177186input [type = "button" ].z1 : focus ,
178187input [type = "submit" ].z1 : hover ,
@@ -182,14 +191,12 @@ input[type="reset"].z1:focus {
182191 -webkit-box-shadow : 0 4px 10px 0 rgba (0 , 0 , 0 , 0.23 ), 0 4px 15px 0 rgba (0 , 0 , 0 , 0.175 );
183192 -moz-box-shadow : 0 4px 10px 0 rgba (0 , 0 , 0 , 0.23 ), 0 4px 15px 0 rgba (0 , 0 , 0 , 0.175 );
184193 box-shadow : 0 4px 10px 0 rgba (0 , 0 , 0 , 0.23 ), 0 4px 15px 0 rgba (0 , 0 , 0 , 0.175 );
185- filter : progid:DXImageTransform.Microsoft.Glow(Color=#b4b4b4, Strength=7);
186- -ms-filter : "progid:DXImageTransform.Microsoft.Glow(Color=#b4b4b4,Strength=7)" ;
187194}
188195.z2 ,
189196button .z1 : enabled : active ,
190197button .z1 : enabled .active ,
191- * [role = "button" ].z1 : active ,
192- * [role = "button" ].z1 .active ,
198+ [role = "button" ].z1 : active ,
199+ [role = "button" ].z1 .active ,
193200input [type = "button" ].z1 : active ,
194201input [type = "button" ].z1 .active ,
195202input [type = "submit" ].z1 : active ,
@@ -199,14 +206,12 @@ input[type="reset"].z1.active {
199206 -webkit-box-shadow : rgba (0 , 0 , 0 , 0.2 ) 0 8px 17px 0 , rgba (0 , 0 , 0 , 0.19 ) 0 6px 20px 0 ;
200207 -moz-box-shadow : rgba (0 , 0 , 0 , 0.2 ) 0 8px 17px 0 , rgba (0 , 0 , 0 , 0.19 ) 0 6px 20px 0 ;
201208 box-shadow : rgba (0 , 0 , 0 , 0.2 ) 0 8px 17px 0 , rgba (0 , 0 , 0 , 0.19 ) 0 6px 20px 0 ;
202- filter : progid:DXImageTransform.Microsoft.Glow(Color=#b0b0b0, Strength=10);
203- -ms-filter : "progid:DXImageTransform.Microsoft.Glow(Color=#b0b0b0,Strength=10)" ;
204209}
205210.z3 ,
206211button .z2 : enabled : active ,
207212button .z2 : enabled .active ,
208- * [role = "button" ].z2 : active ,
209- * [role = "button" ].z2 .active ,
213+ [role = "button" ].z2 : active ,
214+ [role = "button" ].z2 .active ,
210215input [type = "button" ].z2 : active ,
211216input [type = "button" ].z2 .active ,
212217input [type = "submit" ].z2 : active ,
@@ -220,8 +225,8 @@ input[type="reset"].z2.active {
220225.z4 ,
221226button .z3 : enabled : active ,
222227button .z3 : enabled .active ,
223- * [role = "button" ].z3 : active ,
224- * [role = "button" ].z3 .active ,
228+ [role = "button" ].z3 : active ,
229+ [role = "button" ].z3 .active ,
225230input [type = "button" ].z3 : active ,
226231input [type = "button" ].z3 .active ,
227232input [type = "submit" ].z3 : active ,
@@ -235,8 +240,8 @@ input[type="reset"].z3.active {
235240.z5 ,
236241button .z4 : enabled : active ,
237242button .z4 : enabled .active ,
238- * [role = "button" ].z4 : active ,
239- * [role = "button" ].z4 .active ,
243+ [role = "button" ].z4 : active ,
244+ [role = "button" ].z4 .active ,
240245input [type = "button" ].z4 : active ,
241246input [type = "button" ].z4 .active ,
242247input [type = "submit" ].z4 : active ,
@@ -248,13 +253,25 @@ input[type="reset"].z4.active {
248253 box-shadow : rgba (0 , 0 , 0 , 0.2 ) 0 27px 24px 0 , rgba (0 , 0 , 0 , 0.22 ) 0 40px 77px 0 ;
249254}
250255button .z1 : disabled ,
251- * [role = "button" ].z1 .disabled ,
256+ [role = "button" ].z1 .disabled ,
252257input [type = "button" ].z1 .disabled ,
253258input [type = "submit" ].z1 .disabled ,
254259input [type = "reset" ].z1 .disabled {
255260 -webkit-box-shadow : rgba (0 , 0 , 0 , 0.2 ) 0 2px 2px 0 , rgba (0 , 0 , 0 , 0.14 ) 0 2px 5px 0 ;
256261 -moz-box-shadow : rgba (0 , 0 , 0 , 0.2 ) 0 2px 2px 0 , rgba (0 , 0 , 0 , 0.14 ) 0 2px 5px 0 ;
257262 box-shadow : rgba (0 , 0 , 0 , 0.2 ) 0 2px 2px 0 , rgba (0 , 0 , 0 , 0.14 ) 0 2px 5px 0 ;
258- filter : progid:DXImageTransform.Microsoft.Glow(Color=#b8b8b8, Strength=5);
259- -ms-filter : "progid:DXImageTransform.Microsoft.Glow(Color=#b8b8b8,Strength=5)" ;
263+ }
264+
265+ @media (prefers-reduced-motion : reduce) {
266+ .z1 ,
267+ .z2 ,
268+ .z3 ,
269+ .z4 ,
270+ .z5 {
271+ -webkit-transition-duration : 0s ;
272+ -moz-transition-duration : 0s ;
273+ -ms-transition-duration : 0s ;
274+ -o-transition-duration : 0s ;
275+ transition-duration : 0s ;
276+ }
260277}
0 commit comments