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 |
.wp-block-freeform.block-library-rich-text__tinymce { |
|
78 |
height: auto; |
|
79 |
/* Allow height of embed iframes to be calculated properly */ |
|
80 |
/* Remove blue highlighting of selected images in WebKit */ |
|
81 |
/* Image captions */ |
|
82 |
/* WP Views */ |
|
83 |
} |
|
84 |
.wp-block-freeform.block-library-rich-text__tinymce p, |
|
85 |
.wp-block-freeform.block-library-rich-text__tinymce li { |
|
86 |
line-height: 1.8; |
|
87 |
} |
|
88 |
.wp-block-freeform.block-library-rich-text__tinymce ul, |
|
89 |
.wp-block-freeform.block-library-rich-text__tinymce ol { |
|
90 |
padding-left: 2.5em; |
|
91 |
margin-left: 0; |
|
92 |
} |
|
93 |
.wp-block-freeform.block-library-rich-text__tinymce blockquote { |
|
94 |
margin: 0; |
|
95 |
box-shadow: inset 0 0 0 0 #ddd; |
|
96 |
border-left: 4px solid #000; |
|
97 |
padding-left: 1em; |
|
98 |
} |
|
99 |
.wp-block-freeform.block-library-rich-text__tinymce pre { |
|
100 |
white-space: pre-wrap; |
|
101 |
font-family: Menlo, Consolas, monaco, monospace; |
|
102 |
font-size: 15px; |
|
103 |
color: #1e1e1e; |
|
104 |
} |
|
105 |
.wp-block-freeform.block-library-rich-text__tinymce > *:first-child { |
|
106 |
margin-top: 0; |
|
107 |
} |
|
108 |
.wp-block-freeform.block-library-rich-text__tinymce > *:last-child { |
|
109 |
margin-bottom: 0; |
|
110 |
} |
|
111 |
.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus { |
|
112 |
outline: none; |
|
113 |
} |
|
114 |
.wp-block-freeform.block-library-rich-text__tinymce a { |
|
115 |
color: var(--wp-admin-theme-color); |
|
116 |
} |
|
117 |
.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected] { |
|
118 |
padding: 0 2px; |
|
119 |
margin: 0 -2px; |
|
120 |
border-radius: 2px; |
|
121 |
box-shadow: 0 0 0 1px #e5f5fa; |
|
122 |
background: #e5f5fa; |
|
123 |
} |
|
124 |
.wp-block-freeform.block-library-rich-text__tinymce code { |
|
125 |
padding: 2px; |
|
126 |
border-radius: 2px; |
|
127 |
color: #1e1e1e; |
|
128 |
background: #f0f0f0; |
|
129 |
font-family: Menlo, Consolas, monaco, monospace; |
|
130 |
font-size: 14px; |
|
131 |
} |
|
132 |
.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected] { |
|
133 |
background: #ddd; |
|
134 |
} |
|
135 |
.wp-block-freeform.block-library-rich-text__tinymce .alignright { |
|
136 |
/*rtl:ignore*/ |
|
137 |
float: right; |
|
138 |
/*rtl:ignore*/ |
|
139 |
margin: 0.5em 0 0.5em 1em; |
|
140 |
} |
|
141 |
.wp-block-freeform.block-library-rich-text__tinymce .alignleft { |
|
142 |
/*rtl:ignore*/ |
|
143 |
float: left; |
|
144 |
/*rtl:ignore*/ |
|
145 |
margin: 0.5em 1em 0.5em 0; |
|
146 |
} |
|
147 |
.wp-block-freeform.block-library-rich-text__tinymce .aligncenter { |
|
148 |
display: block; |
|
149 |
margin-left: auto; |
|
150 |
margin-right: auto; |
|
151 |
} |
|
152 |
.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag { |
|
153 |
width: 96%; |
|
154 |
height: 20px; |
|
155 |
display: block; |
|
156 |
margin: 15px auto; |
|
157 |
outline: 0; |
|
158 |
cursor: default; |
|
159 |
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC); |
|
160 |
background-size: 1900px 20px; |
|
161 |
background-repeat: no-repeat; |
|
162 |
background-position: center; |
|
163 |
} |
|
164 |
.wp-block-freeform.block-library-rich-text__tinymce img::selection { |
|
165 |
background-color: transparent; |
|
166 |
} |
|
167 |
.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp { |
|
168 |
-ms-user-select: element; |
|
169 |
} |
|
170 |
.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption { |
|
171 |
margin: 0; |
|
172 |
/* dl browser reset */ |
|
173 |
max-width: 100%; |
|
174 |
} |
|
175 |
.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a, |
|
176 |
.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img { |
|
177 |
display: block; |
|
178 |
} |
|
179 |
.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption, .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption * { |
|
180 |
-webkit-user-drag: none; |
|
181 |
} |
|
182 |
.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd { |
|
183 |
padding-top: 0.5em; |
|
184 |
margin: 0; |
|
185 |
/* browser dd reset */ |
|
186 |
} |
|
187 |
.wp-block-freeform.block-library-rich-text__tinymce .wpview { |
|
188 |
width: 99.99%; |
|
189 |
/* All IE need hasLayout, incl. 11 (ugh, not again!!) */ |
|
190 |
position: relative; |
|
191 |
clear: both; |
|
192 |
margin-bottom: 16px; |
|
193 |
border: 1px solid transparent; |
|
194 |
} |
|
195 |
.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe { |
|
196 |
display: block; |
|
197 |
max-width: 100%; |
|
198 |
background: transparent; |
|
199 |
} |
|
200 |
.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim { |
|
201 |
position: absolute; |
|
202 |
top: 0; |
|
203 |
right: 0; |
|
204 |
bottom: 0; |
|
205 |
left: 0; |
|
206 |
} |
|
207 |
.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim { |
|
208 |
display: none; |
|
209 |
} |
|
210 |
.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder { |
|
211 |
border: 1px dashed #ddd; |
|
212 |
padding: 10px; |
|
213 |
} |
|
214 |
.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error { |
|
215 |
border: 1px solid #ddd; |
|
216 |
padding: 1em 0; |
|
217 |
margin: 0; |
|
218 |
word-wrap: break-word; |
|
219 |
} |
|
220 |
.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p { |
|
221 |
margin: 0; |
|
222 |
text-align: center; |
|
223 |
} |
|
224 |
.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder, .wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error { |
|
225 |
border-color: transparent; |
|
226 |
} |
|
227 |
.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons { |
|
228 |
display: block; |
|
229 |
margin: 0 auto; |
|
230 |
width: 32px; |
|
231 |
height: 32px; |
|
232 |
font-size: 32px; |
|
233 |
} |
|
234 |
.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery::after { |
|
235 |
content: ""; |
|
236 |
display: table; |
|
237 |
clear: both; |
|
238 |
} |
|
239 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus { |
|
240 |
outline: none; |
|
241 |
} |
|
242 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery a { |
|
243 |
cursor: default; |
|
244 |
} |
|
245 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery { |
|
246 |
margin: auto -6px; |
|
247 |
padding: 6px 0; |
|
248 |
line-height: 1; |
|
249 |
overflow-x: hidden; |
|
250 |
} |
|
251 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item { |
|
252 |
float: left; |
|
253 |
margin: 0; |
|
254 |
text-align: center; |
|
255 |
padding: 6px; |
|
256 |
box-sizing: border-box; |
|
257 |
} |
|
258 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption, |
|
259 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon { |
|
260 |
margin: 0; |
|
261 |
} |
|
262 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption { |
|
263 |
font-size: 13px; |
|
264 |
margin: 4px 0; |
|
265 |
} |
|
266 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item { |
|
267 |
width: 100%; |
|
268 |
} |
|
269 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item { |
|
270 |
width: 50%; |
|
271 |
} |
|
272 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item { |
|
273 |
width: 33.3333333333%; |
|
274 |
} |
|
275 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item { |
|
276 |
width: 25%; |
|
277 |
} |
|
278 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item { |
|
279 |
width: 20%; |
|
280 |
} |
|
281 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item { |
|
282 |
width: 16.6666666667%; |
|
283 |
} |
|
284 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item { |
|
285 |
width: 14.2857142857%; |
|
286 |
} |
|
287 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item { |
|
288 |
width: 12.5%; |
|
289 |
} |
|
290 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item { |
|
291 |
width: 11.1111111111%; |
|
292 |
} |
|
293 |
.wp-block-freeform.block-library-rich-text__tinymce .gallery img { |
|
294 |
max-width: 100%; |
|
295 |
height: auto; |
|
296 |
border: none; |
|
297 |
padding: 0; |
|
298 |
} |
|
299 |
|
|
300 |
div[data-type="core/freeform"]::before { |
|
301 |
transition: border-color 0.1s linear, box-shadow 0.1s linear; |
|
302 |
border: 1px solid #ddd; |
|
303 |
outline: 1px solid transparent; |
|
304 |
} |
|
305 |
@media (prefers-reduced-motion: reduce) { |
|
306 |
div[data-type="core/freeform"]::before { |
|
307 |
transition-duration: 0s; |
|
308 |
transition-delay: 0s; |
|
309 |
} |
|
310 |
} |
|
311 |
div[data-type="core/freeform"].is-selected::before { |
|
312 |
border-color: #1e1e1e; |
|
313 |
} |
|
314 |
div[data-type="core/freeform"] .block-editor-block-contextual-toolbar + div { |
|
315 |
margin-top: 0; |
|
316 |
padding-top: 0; |
|
317 |
} |
|
318 |
div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce::after { |
|
319 |
content: ""; |
|
320 |
display: table; |
|
321 |
clear: both; |
|
322 |
} |
|
323 |
|
|
324 |
.mce-toolbar-grp .mce-btn.mce-active button, |
|
325 |
.mce-toolbar-grp .mce-btn.mce-active:hover button, |
|
326 |
.mce-toolbar-grp .mce-btn.mce-active i, |
|
327 |
.mce-toolbar-grp .mce-btn.mce-active:hover i { |
|
328 |
color: #1e1e1e; |
|
329 |
} |
|
330 |
.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last { |
|
331 |
margin-right: 0; |
|
332 |
margin-left: 8px; |
|
333 |
} |
|
334 |
.mce-toolbar-grp .mce-btn i { |
|
335 |
font-style: normal; |
|
336 |
} |
|
337 |
|
|
338 |
.block-library-classic__toolbar { |
|
339 |
display: none; |
|
340 |
width: auto; |
|
341 |
margin: 0; |
|
342 |
position: sticky; |
|
343 |
z-index: 31; |
|
344 |
top: 0; |
|
345 |
border: 1px solid #ddd; |
|
346 |
border-bottom: none; |
|
347 |
border-radius: 2px; |
|
348 |
margin-bottom: 8px; |
|
349 |
padding: 0; |
|
350 |
} |
|
351 |
div[data-type="core/freeform"].is-selected .block-library-classic__toolbar { |
|
352 |
display: block; |
|
353 |
border-color: #1e1e1e; |
|
354 |
} |
|
355 |
.block-library-classic__toolbar .mce-tinymce { |
|
356 |
box-shadow: none; |
|
357 |
} |
|
358 |
@media (min-width: 600px) { |
|
359 |
.block-library-classic__toolbar { |
|
360 |
padding: 0; |
|
361 |
} |
|
362 |
} |
|
363 |
.block-library-classic__toolbar:empty { |
|
364 |
display: block; |
|
365 |
background: #f5f5f5; |
|
366 |
border-bottom: 1px solid #e2e4e7; |
|
367 |
} |
|
368 |
.block-library-classic__toolbar:empty::before { |
|
369 |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
|
370 |
font-size: 13px; |
|
371 |
content: attr(data-placeholder); |
|
372 |
color: #555d66; |
|
373 |
line-height: 37px; |
|
374 |
padding: 14px; |
|
375 |
} |
|
376 |
.block-library-classic__toolbar div.mce-toolbar-grp { |
|
377 |
border-bottom: 1px solid #1e1e1e; |
|
378 |
} |
|
379 |
.block-library-classic__toolbar .mce-tinymce-inline, |
|
380 |
.block-library-classic__toolbar .mce-tinymce-inline > div, |
|
381 |
.block-library-classic__toolbar div.mce-toolbar-grp, |
|
382 |
.block-library-classic__toolbar div.mce-toolbar-grp > div, |
|
383 |
.block-library-classic__toolbar .mce-menubar, |
|
384 |
.block-library-classic__toolbar .mce-menubar > div { |
|
385 |
height: auto !important; |
|
386 |
width: 100% !important; |
|
387 |
} |
|
388 |
.block-library-classic__toolbar .mce-container-body.mce-abs-layout { |
|
389 |
overflow: visible; |
|
390 |
} |
|
391 |
.block-library-classic__toolbar .mce-menubar, |
|
392 |
.block-library-classic__toolbar div.mce-toolbar-grp { |
|
393 |
position: static; |
|
394 |
} |
|
395 |
.block-library-classic__toolbar .mce-toolbar-grp > div { |
|
396 |
padding: 1px 3px; |
|
397 |
} |
|
398 |
.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child) { |
|
399 |
display: none; |
|
400 |
} |
|
401 |
.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar { |
|
402 |
display: block; |
|
403 |
} |