PluginProbe
Gutenberg / 22.7.0
Gutenberg v22.7.0
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
gutenberg / build / styles / edit-post / style.css

style.css in Gutenberg 22.7.0, at build/styles/edit-post/style.css

694 lines 15.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Typography
3 */
4 /**
5 * SCSS Variables.
6 *
7 * Please use variables from this sheet to ensure consistency across the UI.
8 * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
9 * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
10 */
11 /**
12 * Colors
13 */
14 /**
15 * Fonts & basic variables.
16 */
17 /**
18 * Typography
19 */
20 /**
21 * Grid System.
22 * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
23 */
24 /**
25 * Radius scale.
26 */
27 /**
28 * Elevation scale.
29 */
30 /**
31 * Dimensions.
32 */
33 /**
34 * Mobile specific styles
35 */
36 /**
37 * Editor styles.
38 */
39 /**
40 * Block & Editor UI.
41 */
42 /**
43 * Block paddings.
44 */
45 /**
46 * React Native specific.
47 * These variables do not appear to be used anywhere else.
48 */
49 /**
50 * Breakpoints & Media Queries
51 */
52 /**
53 * Converts a hex value into the rgb equivalent.
54 *
55 * @param {string} hex - the hexadecimal value to convert
56 * @return {string} comma separated rgb values
57 */
58 /**
59 * Long content fade mixin
60 *
61 * Creates a fading overlay to signify that the content is longer
62 * than the space allows.
63 */
64 /**
65 * Breakpoint mixins
66 */
67 /**
68 * Focus styles.
69 */
70 /**
71 * Applies editor left position to the selector passed as argument
72 */
73 /**
74 * Styles that are reused verbatim in a few places
75 */
76 /**
77 * Allows users to opt-out of animations via OS-level preferences.
78 */
79 /**
80 * Reset default styles for JavaScript UI based pages.
81 * This is a WP-admin agnostic reset
82 */
83 /**
84 * Reset the WP Admin page styles for Gutenberg-like pages.
85 */
86 /**
87 * Creates a checkerboard pattern background to indicate transparency.
88 * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
89 */
90 :root {
91 --wp-block-synced-color: #7a00df;
92 --wp-block-synced-color--rgb: 122, 0, 223;
93 --wp-bound-block-color: var(--wp-block-synced-color);
94 --wp-editor-canvas-background: #ddd;
95 --wp-admin-theme-color: #007cba;
96 --wp-admin-theme-color--rgb: 0, 124, 186;
97 --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5);
98 --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5;
99 --wp-admin-theme-color-darker-20: #005a87;
100 --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
101 --wp-admin-border-width-focus: 2px;
102 }
103 @media (min-resolution: 192dpi) {
104 :root {
105 --wp-admin-border-width-focus: 1.5px;
106 }
107 }
108
109 /**
110 * Colors
111 */
112 /**
113 * SCSS Variables.
114 *
115 * Please use variables from this sheet to ensure consistency across the UI.
116 * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
117 * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
118 */
119 /**
120 * Fonts & basic variables.
121 */
122 /**
123 * Typography
124 */
125 /**
126 * Grid System.
127 * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
128 */
129 /**
130 * Radius scale.
131 */
132 /**
133 * Elevation scale.
134 */
135 /**
136 * Dimensions.
137 */
138 /**
139 * Mobile specific styles
140 */
141 /**
142 * Editor styles.
143 */
144 /**
145 * Block & Editor UI.
146 */
147 /**
148 * Block paddings.
149 */
150 /**
151 * React Native specific.
152 * These variables do not appear to be used anywhere else.
153 */
154 /**
155 * Typography
156 */
157 /**
158 * Breakpoints & Media Queries
159 */
160 /**
161 * Converts a hex value into the rgb equivalent.
162 *
163 * @param {string} hex - the hexadecimal value to convert
164 * @return {string} comma separated rgb values
165 */
166 /**
167 * Long content fade mixin
168 *
169 * Creates a fading overlay to signify that the content is longer
170 * than the space allows.
171 */
172 /**
173 * Breakpoint mixins
174 */
175 /**
176 * Focus styles.
177 */
178 /**
179 * Applies editor left position to the selector passed as argument
180 */
181 /**
182 * Styles that are reused verbatim in a few places
183 */
184 /**
185 * Allows users to opt-out of animations via OS-level preferences.
186 */
187 /**
188 * Reset default styles for JavaScript UI based pages.
189 * This is a WP-admin agnostic reset
190 */
191 /**
192 * Reset the WP Admin page styles for Gutenberg-like pages.
193 */
194 /**
195 * Creates a checkerboard pattern background to indicate transparency.
196 * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
197 */
198 .admin-ui-page {
199 display: flex;
200 height: 100%;
201 background-color: #fff;
202 color: #2f2f2f;
203 position: relative;
204 z-index: 1;
205 flex-flow: column;
206 text-wrap: pretty;
207 }
208
209 .admin-ui-page__header {
210 padding: 16px 24px;
211 border-bottom: 1px solid #f0f0f0;
212 background: #fff;
213 position: sticky;
214 top: 0;
215 z-index: 1;
216 }
217
218 .admin-ui-page__sidebar-toggle-slot:empty {
219 display: none;
220 }
221
222 .admin-ui-page__header-subtitle {
223 padding-block-end: 8px;
224 color: #757575;
225 font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
226 font-weight: 400;
227 font-size: 13px;
228 line-height: 20px;
229 margin: 0;
230 }
231
232 .admin-ui-page__content {
233 flex-grow: 1;
234 overflow: auto;
235 display: flex;
236 flex-direction: column;
237 }
238
239 .admin-ui-page__content.has-padding {
240 padding: 16px 24px;
241 }
242
243 .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon {
244 width: auto;
245 padding: 0 8px;
246 }
247
248 .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg {
249 display: none;
250 }
251
252 .show-icon-labels .admin-ui-page__header-actions .components-button.has-icon::after {
253 content: attr(aria-label);
254 font-size: 12px;
255 }
256
257 .admin-ui-breadcrumbs__list {
258 list-style: none;
259 padding: 0;
260 margin: 0;
261 gap: 0;
262 font-size: 15px;
263 min-height: 32px;
264 font-weight: 500;
265 }
266
267 .admin-ui-breadcrumbs__list li:not(:last-child)::after {
268 content: "/";
269 margin: 0 8px;
270 }
271
272 .admin-ui-breadcrumbs__list h1 {
273 font-size: inherit;
274 line-height: inherit;
275 }
276
277 .edit-post-fullscreen-mode-close__view-mode-toggle {
278 top: 0;
279 left: 0;
280 height: 64px;
281 width: 64px;
282 z-index: 100;
283 }
284 .edit-post-fullscreen-mode-close__view-mode-toggle .components-button {
285 color: #fff;
286 height: 100%;
287 width: 100%;
288 border-radius: 0;
289 overflow: hidden;
290 padding: 0;
291 display: flex;
292 align-items: center;
293 justify-content: center;
294 }
295 .edit-post-fullscreen-mode-close__view-mode-toggle .components-button:hover, .edit-post-fullscreen-mode-close__view-mode-toggle .components-button:active {
296 color: #fff;
297 }
298 .edit-post-fullscreen-mode-close__view-mode-toggle .components-button:focus {
299 box-shadow: none;
300 }
301 .edit-post-fullscreen-mode-close__view-mode-toggle .edit-post-fullscreen-mode-close__view-mode-toggle-icon svg,
302 .edit-post-fullscreen-mode-close__view-mode-toggle .edit-post-fullscreen-mode-close__view-mode-toggle-icon img {
303 background: #1e1e1e;
304 display: block;
305 }
306
307 .edit-post-fullscreen-mode-close-site-icon__icon {
308 fill: currentColor;
309 width: 100%;
310 height: 100%;
311 padding: 12px;
312 }
313
314 .edit-post-fullscreen-mode-close-site-icon__image {
315 width: 100%;
316 height: 100%;
317 object-fit: cover;
318 background: #333;
319 aspect-ratio: 1/1;
320 }
321
322 .edit-post-fullscreen-mode-close.components-button:focus {
323 position: relative;
324 }
325 .edit-post-fullscreen-mode-close.components-button:focus::before {
326 content: "";
327 display: block;
328 position: absolute;
329 z-index: 1;
330 top: 0;
331 right: 0;
332 bottom: 0;
333 left: 0;
334 box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 0 0 calc(1px + var(--wp-admin-border-width-focus)) #fff;
335 }
336
337 .edit-post-fullscreen-mode-close__back-icon {
338 position: absolute;
339 top: 0;
340 left: 0;
341 width: 64px;
342 height: 64px;
343 display: flex;
344 align-items: center;
345 justify-content: center;
346 background-color: hsl(0, 0%, 80%);
347 pointer-events: none;
348 }
349 .edit-post-fullscreen-mode-close__back-icon svg {
350 fill: currentColor;
351 }
352 .edit-post-fullscreen-mode-close__back-icon.has-site-icon {
353 background-color: hsla(0, 0%, 100%, 0.6);
354 backdrop-filter: saturate(180%) blur(15px);
355 }
356
357 /**
358 * Show icon label overrides.
359 */
360 .show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon {
361 width: 64px;
362 }
363 .show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon svg {
364 display: block;
365 }
366 .show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon::after {
367 content: none;
368 }
369
370 .edit-post-meta-boxes-main {
371 filter: drop-shadow(0 -1px rgba(0, 0, 0, 0.133));
372 outline: 1px solid transparent;
373 background-color: #fff;
374 display: flex;
375 flex-direction: column;
376 overflow: hidden;
377 }
378
379 .edit-post-meta-boxes-main__presenter {
380 flex-shrink: 0;
381 display: flex;
382 justify-content: center;
383 box-shadow: 0 1px #ddd;
384 outline: 1px solid transparent;
385 position: relative;
386 z-index: 1;
387 height: 32px;
388 }
389 @media (pointer: coarse) {
390 .edit-post-meta-boxes-main__presenter {
391 height: 36px;
392 }
393 }
394 .edit-post-meta-boxes-main__presenter > button {
395 appearance: none;
396 padding: 0;
397 border: none;
398 outline: none;
399 background-color: transparent;
400 touch-action: none;
401 }
402 .edit-post-meta-boxes-main__presenter > button[aria-expanded] {
403 cursor: pointer;
404 width: 100%;
405 display: flex;
406 justify-content: space-between;
407 align-items: center;
408 padding-inline: 24px 12px;
409 }
410 .edit-post-meta-boxes-main__presenter > button[aria-expanded]:is(:hover, :focus-visible) {
411 color: var(--wp-admin-theme-color);
412 }
413 .edit-post-meta-boxes-main__presenter > button[aria-expanded]:focus-visible::after {
414 content: "";
415 position: absolute;
416 inset: var(--wp-admin-border-width-focus);
417 box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
418 outline: 2px solid transparent;
419 }
420 .edit-post-meta-boxes-main__presenter > button[aria-expanded] > svg {
421 fill: currentColor;
422 }
423 .edit-post-meta-boxes-main__presenter > button[role=separator] {
424 cursor: row-resize;
425 position: absolute;
426 width: 64px;
427 height: inherit;
428 }
429 .edit-post-meta-boxes-main__presenter > button[role=separator]::before {
430 content: "";
431 background-color: #ddd;
432 outline: 2px solid transparent;
433 outline-offset: -2px;
434 position: absolute;
435 inset-block: calc(50% - 4px / 2) auto;
436 transform: translateX(-50%);
437 width: inherit;
438 height: 4px;
439 border-radius: 2px;
440 }
441 @media not (prefers-reduced-motion) {
442 .edit-post-meta-boxes-main__presenter > button[role=separator]::before {
443 transition: width 0.3s ease-out;
444 }
445 }
446 .edit-post-meta-boxes-main__presenter > button[role=separator]:is(:hover, :focus)::before {
447 background-color: var(--wp-admin-theme-color);
448 width: 80px;
449 }
450
451 .edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner {
452 overflow: auto;
453 }
454 .edit-post-meta-boxes-main__liner {
455 isolation: isolate;
456 }
457 .is-resizing.edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner {
458 display: unset;
459 }
460
461 .edit-post-layout__metaboxes {
462 clear: both;
463 }
464
465 .has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-visual-editor {
466 flex-shrink: 1;
467 flex-basis: 0%;
468 overflow: hidden;
469 isolation: isolate;
470 }
471
472 .edit-post-layout__snackbar {
473 position: fixed;
474 bottom: 24px;
475 left: 0;
476 right: 0;
477 padding-inline: 16px;
478 box-sizing: border-box;
479 display: flex;
480 flex-direction: column;
481 pointer-events: none;
482 }
483 .edit-post-layout__snackbar .components-snackbar {
484 margin-inline: auto;
485 }
486
487 .edit-post-meta-boxes-area {
488 position: relative;
489 /**
490 * The wordpress default for most meta-box elements is content-box. Some
491 * elements such as textarea and input are set to border-box in forms.css.
492 * These elements therefore specifically set back to border-box here, while
493 * other elements (such as .button) are unaffected by Gutenberg's style
494 * because of their higher specificity.
495 */
496 }
497 .edit-post-meta-boxes-area__container,
498 .edit-post-meta-boxes-area .inside {
499 box-sizing: content-box;
500 }
501 .edit-post-meta-boxes-area textarea,
502 .edit-post-meta-boxes-area input {
503 box-sizing: border-box;
504 }
505 .edit-post-meta-boxes-area .postbox-header {
506 border-top: 1px solid #ddd;
507 border-bottom: 0;
508 }
509 .edit-post-meta-boxes-area {
510 /* Match width and positioning of the meta boxes. Override default styles. */
511 }
512 .edit-post-meta-boxes-area #poststuff {
513 margin: 0 auto;
514 padding-top: 0;
515 min-width: auto;
516 }
517 .edit-post-meta-boxes-area {
518 /* Override Default meta box stylings */
519 }
520 .edit-post-meta-boxes-area #poststuff h3.hndle,
521 .edit-post-meta-boxes-area #poststuff .stuffbox > h3,
522 .edit-post-meta-boxes-area #poststuff h2.hndle { /* WordPress selectors yolo */
523 box-sizing: border-box;
524 color: inherit;
525 font-weight: 600;
526 outline: none;
527 padding: 0 24px;
528 position: relative;
529 width: 100%;
530 }
531 .edit-post-meta-boxes-area .postbox {
532 border: 0;
533 color: inherit;
534 margin-bottom: 0;
535 }
536 .edit-post-meta-boxes-area .postbox > .inside {
537 color: inherit;
538 padding: 0 24px 24px;
539 margin: 0;
540 }
541 .edit-post-meta-boxes-area .postbox .handlediv {
542 height: 44px;
543 width: 44px;
544 }
545 .edit-post-meta-boxes-area.is-loading::before {
546 position: absolute;
547 top: 0;
548 left: 0;
549 right: 0;
550 bottom: 0;
551 content: "";
552 background: transparent;
553 z-index: 1;
554 }
555 .edit-post-meta-boxes-area .components-spinner {
556 position: absolute;
557 top: 10px;
558 right: 20px;
559 z-index: 5;
560 }
561 .edit-post-meta-boxes-area .is-hidden {
562 display: none;
563 }
564 .edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox] {
565 border: 1px solid #757575;
566 }
567 .edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked {
568 background: #fff;
569 border-color: #757575;
570 }
571 .edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]::before {
572 margin: -3px -4px;
573 }
574
575 .edit-post-meta-boxes-area__clear {
576 clear: both;
577 }
578
579 .edit-post-welcome-guide,
580 .edit-template-welcome-guide {
581 width: 312px;
582 }
583 .edit-post-welcome-guide__image,
584 .edit-template-welcome-guide__image {
585 background: #00a0d2;
586 margin: 0 0 16px;
587 }
588 .edit-post-welcome-guide__image > img,
589 .edit-template-welcome-guide__image > img {
590 display: block;
591 max-width: 100%;
592 object-fit: cover;
593 }
594 .edit-post-welcome-guide__heading,
595 .edit-template-welcome-guide__heading {
596 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
597 font-size: 24px;
598 line-height: 1.4;
599 margin: 16px 0 16px 0;
600 padding: 0 24px;
601 }
602 .edit-post-welcome-guide__text,
603 .edit-template-welcome-guide__text {
604 font-size: 13px;
605 line-height: 1.4;
606 margin: 0 0 24px 0;
607 padding: 0 24px;
608 }
609 .edit-post-welcome-guide__inserter-icon,
610 .edit-template-welcome-guide__inserter-icon {
611 margin: 0 4px;
612 vertical-align: text-top;
613 }
614 .edit-post-welcome-guide .components-button:hover svg,
615 .edit-template-welcome-guide .components-button:hover svg {
616 fill: #fff;
617 }
618
619 .edit-template-welcome-guide .components-button svg {
620 fill: #fff;
621 }
622
623 body.js.block-editor-page {
624 background: #fff;
625 }
626 body.js.block-editor-page #wpcontent {
627 padding-left: 0;
628 }
629 body.js.block-editor-page #wpbody-content {
630 padding-bottom: 0;
631 }
632 body.js.block-editor-page {
633 /* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well.
634 Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
635 }
636 body.js.block-editor-page #wpbody-content > div:not(.block-editor):not(#screen-meta) {
637 display: none;
638 }
639 body.js.block-editor-page #wpfooter {
640 display: none;
641 }
642 body.js.block-editor-page .a11y-speak-region {
643 left: -1px;
644 top: -1px;
645 }
646 body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu::after,
647 body.js.block-editor-page ul#adminmenu > li.current > a.current::after {
648 border-right-color: #fff;
649 }
650 body.js.block-editor-page .media-frame select.attachment-filters:last-of-type {
651 width: auto;
652 max-width: 100%;
653 }
654
655 .block-editor-page #wpwrap {
656 overflow-y: auto;
657 }
658 @media (min-width: 782px) {
659 .block-editor-page #wpwrap {
660 overflow-y: initial;
661 }
662 }
663
664 .edit-post-visual-editor.is-iframed {
665 box-sizing: border-box;
666 }
667 .edit-post-visual-editor.is-iframed *,
668 .edit-post-visual-editor.is-iframed *::before,
669 .edit-post-visual-editor.is-iframed *::after {
670 box-sizing: inherit;
671 }
672
673 @media (min-width: 600px) {
674 .block-editor__container {
675 position: absolute;
676 top: 0;
677 right: 0;
678 bottom: 0;
679 left: 0;
680 min-height: calc(100vh - 46px);
681 }
682 }
683 @media (min-width: 782px) {
684 .block-editor__container {
685 min-height: calc(100vh - 32px);
686 }
687 body.is-fullscreen-mode .block-editor__container {
688 min-height: 100vh;
689 }
690 }
691 .block-editor__container img {
692 max-width: 100%;
693 height: auto;
694 }