18
|
1 |
/** |
|
2 |
* Colors |
|
3 |
*/ |
|
4 |
/** |
|
5 |
* Breakpoints & Media Queries |
|
6 |
*/ |
|
7 |
/** |
|
8 |
* SCSS Variables. |
|
9 |
* |
|
10 |
* Please use variables from this sheet to ensure consistency across the UI. |
|
11 |
* Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
|
12 |
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI. |
|
13 |
*/ |
|
14 |
/** |
|
15 |
* Colors |
|
16 |
*/ |
|
17 |
/** |
|
18 |
* Fonts & basic variables. |
|
19 |
*/ |
|
20 |
/** |
|
21 |
* Grid System. |
|
22 |
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ |
|
23 |
*/ |
|
24 |
/** |
|
25 |
* Dimensions. |
|
26 |
*/ |
|
27 |
/** |
|
28 |
* Shadows. |
|
29 |
*/ |
|
30 |
/** |
|
31 |
* Editor widths. |
|
32 |
*/ |
|
33 |
/** |
|
34 |
* Block & Editor UI. |
|
35 |
*/ |
|
36 |
/** |
|
37 |
* Block paddings. |
|
38 |
*/ |
|
39 |
/** |
|
40 |
* React Native specific. |
|
41 |
* These variables do not appear to be used anywhere else. |
|
42 |
*/ |
|
43 |
/** |
19
|
44 |
* Converts a hex value into the rgb equivalent. |
|
45 |
* |
|
46 |
* @param {string} hex - the hexadecimal value to convert |
|
47 |
* @return {string} comma separated rgb values |
|
48 |
*/ |
|
49 |
/** |
18
|
50 |
* Breakpoint mixins |
|
51 |
*/ |
|
52 |
/** |
|
53 |
* Long content fade mixin |
|
54 |
* |
|
55 |
* Creates a fading overlay to signify that the content is longer |
|
56 |
* than the space allows. |
|
57 |
*/ |
|
58 |
/** |
|
59 |
* Focus styles. |
|
60 |
*/ |
|
61 |
/** |
|
62 |
* Applies editor left position to the selector passed as argument |
|
63 |
*/ |
|
64 |
/** |
|
65 |
* Styles that are reused verbatim in a few places |
|
66 |
*/ |
|
67 |
/** |
|
68 |
* Allows users to opt-out of animations via OS-level preferences. |
|
69 |
*/ |
|
70 |
/** |
|
71 |
* Reset default styles for JavaScript UI based pages. |
|
72 |
* This is a WP-admin agnostic reset |
|
73 |
*/ |
|
74 |
/** |
|
75 |
* Reset the WP Admin page styles for Gutenberg-like pages. |
|
76 |
*/ |
|
77 |
:root { |
|
78 |
--wp-admin-theme-color: #007cba; |
19
|
79 |
--wp-admin-theme-color--rgb: 0, 124, 186; |
18
|
80 |
--wp-admin-theme-color-darker-10: #006ba1; |
19
|
81 |
--wp-admin-theme-color-darker-10--rgb: 0, 107, 161; |
18
|
82 |
--wp-admin-theme-color-darker-20: #005a87; |
19
|
83 |
--wp-admin-theme-color-darker-20--rgb: 0, 90, 135; |
18
|
84 |
--wp-admin-border-width-focus: 2px; |
|
85 |
} |
|
86 |
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { |
|
87 |
:root { |
|
88 |
--wp-admin-border-width-focus: 1.5px; |
|
89 |
} |
|
90 |
} |
|
91 |
|
|
92 |
:root { |
19
|
93 |
/* |
|
94 |
* Our classes uses the same values we set for gradient value attributes, |
|
95 |
* and we can not use spacing because of WP multi site kses rule. |
|
96 |
*/ |
18
|
97 |
/* stylelint-disable function-comma-space-after */ |
|
98 |
/* stylelint-enable function-comma-space-after */ |
19
|
99 |
--wp--preset--font-size--normal: 16px; |
|
100 |
--wp--preset--font-size--huge: 42px; |
18
|
101 |
} |
|
102 |
:root .has-very-light-gray-background-color { |
|
103 |
background-color: #eee; |
|
104 |
} |
|
105 |
:root .has-very-dark-gray-background-color { |
|
106 |
background-color: #313131; |
|
107 |
} |
|
108 |
:root .has-very-light-gray-color { |
|
109 |
color: #eee; |
|
110 |
} |
|
111 |
:root .has-very-dark-gray-color { |
|
112 |
color: #313131; |
|
113 |
} |
|
114 |
:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background { |
|
115 |
background: linear-gradient(-135deg, #00d084 0%, #0693e3 100%); |
|
116 |
} |
|
117 |
:root .has-purple-crush-gradient-background { |
|
118 |
background: linear-gradient(-135deg, #34e2e4 0%, #4721fb 50%, #ab1dfe 100%); |
|
119 |
} |
|
120 |
:root .has-hazy-dawn-gradient-background { |
|
121 |
background: linear-gradient(-135deg, #faaca8 0%, #dad0ec 100%); |
|
122 |
} |
|
123 |
:root .has-subdued-olive-gradient-background { |
|
124 |
background: linear-gradient(-135deg, #fafae1 0%, #67a671 100%); |
|
125 |
} |
|
126 |
:root .has-atomic-cream-gradient-background { |
|
127 |
background: linear-gradient(-135deg, #fdd79a 0%, #004a59 100%); |
|
128 |
} |
|
129 |
:root .has-nightshade-gradient-background { |
|
130 |
background: linear-gradient(-135deg, #330968 0%, #31cdcf 100%); |
|
131 |
} |
|
132 |
:root .has-midnight-gradient-background { |
|
133 |
background: linear-gradient(-135deg, #020381 0%, #2874fc 100%); |
|
134 |
} |
|
135 |
|
19
|
136 |
.has-regular-font-size { |
18
|
137 |
font-size: 1em; |
|
138 |
} |
|
139 |
|
19
|
140 |
.has-larger-font-size { |
|
141 |
font-size: 2.625em; |
18
|
142 |
} |
|
143 |
|
19
|
144 |
.has-normal-font-size { |
|
145 |
font-size: var(--wp--preset--font-size--normal); |
18
|
146 |
} |
|
147 |
|
|
148 |
.has-huge-font-size { |
19
|
149 |
font-size: var(--wp--preset--font-size--huge); |
18
|
150 |
} |
|
151 |
|
|
152 |
.has-text-align-center { |
|
153 |
text-align: center; |
|
154 |
} |
|
155 |
|
|
156 |
.has-text-align-left { |
|
157 |
text-align: left; |
|
158 |
} |
|
159 |
|
|
160 |
.has-text-align-right { |
|
161 |
text-align: right; |
|
162 |
} |
|
163 |
|
|
164 |
#end-resizable-editor-section { |
|
165 |
display: none; |
|
166 |
} |
|
167 |
|
|
168 |
.aligncenter { |
|
169 |
clear: both; |
|
170 |
} |
|
171 |
|
|
172 |
.items-justified-left { |
|
173 |
justify-content: flex-start; |
|
174 |
} |
|
175 |
|
|
176 |
.items-justified-center { |
|
177 |
justify-content: center; |
|
178 |
} |
|
179 |
|
|
180 |
.items-justified-right { |
|
181 |
justify-content: flex-end; |
|
182 |
} |
|
183 |
|
|
184 |
.items-justified-space-between { |
|
185 |
justify-content: space-between; |
|
186 |
} |
|
187 |
|
|
188 |
.screen-reader-text { |
|
189 |
border: 0; |
|
190 |
clip: rect(1px, 1px, 1px, 1px); |
|
191 |
-webkit-clip-path: inset(50%); |
|
192 |
clip-path: inset(50%); |
|
193 |
height: 1px; |
|
194 |
margin: -1px; |
|
195 |
overflow: hidden; |
|
196 |
padding: 0; |
|
197 |
position: absolute; |
|
198 |
width: 1px; |
|
199 |
word-wrap: normal !important; |
|
200 |
} |
|
201 |
|
|
202 |
.screen-reader-text:focus { |
|
203 |
background-color: #ddd; |
|
204 |
clip: auto !important; |
|
205 |
-webkit-clip-path: none; |
|
206 |
clip-path: none; |
|
207 |
color: #444; |
|
208 |
display: block; |
|
209 |
font-size: 1em; |
|
210 |
height: auto; |
|
211 |
right: 5px; |
|
212 |
line-height: normal; |
|
213 |
padding: 15px 23px 14px; |
|
214 |
text-decoration: none; |
|
215 |
top: 5px; |
|
216 |
width: auto; |
|
217 |
z-index: 100000; |
19
|
218 |
} |
|
219 |
|
|
220 |
/** |
|
221 |
* The following provide a simple means of applying a default border style when |
|
222 |
* a user first makes a selection in the border block support panel. |
|
223 |
* This prevents issues such as where the user could set a border width |
|
224 |
* and see no border due there being no border style set. |
|
225 |
* |
|
226 |
* This is intended to be removed once intelligent defaults can be set while |
|
227 |
* making border selections via the block support. |
|
228 |
* |
|
229 |
* See: https://github.com/WordPress/gutenberg/pull/33743 |
|
230 |
*/ |
|
231 |
html :where(.has-border-color) { |
|
232 |
border-style: solid; |
|
233 |
} |
|
234 |
|
|
235 |
html :where([style*="border-width"]) { |
|
236 |
border-style: solid; |
|
237 |
} |
|
238 |
|
|
239 |
/** |
|
240 |
* Provide baseline responsiveness for images. |
|
241 |
*/ |
|
242 |
html :where(img[class*="wp-image-"]) { |
|
243 |
height: auto; |
|
244 |
max-width: 100%; |
18
|
245 |
} |