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 / block-editor / content.css

content.css in Gutenberg 22.7.0, at build/styles/block-editor/content.css

931 lines 31.2 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 .block-editor-block-icon {
110 display: flex;
111 align-items: center;
112 justify-content: center;
113 width: 24px;
114 height: 24px;
115 }
116 .block-editor-block-icon.has-colors svg {
117 fill: currentColor;
118 }
119 @media (forced-colors: active) {
120 .block-editor-block-icon.has-colors svg {
121 fill: CanvasText;
122 }
123 }
124 .block-editor-block-icon svg {
125 min-width: 20px;
126 min-height: 20px;
127 max-width: 24px;
128 max-height: 24px;
129 }
130
131 .block-editor-block-styles .block-editor-block-list__block {
132 margin: 0;
133 }
134
135 /**
136 * Cross-Block Selection
137 */
138 @keyframes selection-overlay__fade-in-animation {
139 from {
140 opacity: 0;
141 }
142 to {
143 opacity: 0.4;
144 }
145 }
146 /* stylelint-disable -- Stylelint is disabled to allow the hack to work. */
147 _::-webkit-full-page-media, _:future, :root .block-editor-block-list__layout::selection,
148 _::-webkit-full-page-media, _:future, :root [data-has-multi-selection=true] .block-editor-block-list__layout::selection {
149 background-color: transparent;
150 }
151
152 /* stylelint-enable */
153 .block-editor-block-list__layout {
154 position: relative;
155 }
156 .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection, .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection {
157 background: transparent;
158 }
159 .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after {
160 content: "";
161 position: absolute;
162 z-index: 1;
163 pointer-events: none;
164 top: 0;
165 right: 0;
166 bottom: 0;
167 left: 0;
168 background: var(--wp-admin-theme-color);
169 opacity: 0.4;
170 }
171 @media not (prefers-reduced-motion) {
172 .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after {
173 animation: selection-overlay__fade-in-animation 0.1s ease-out;
174 animation-fill-mode: forwards;
175 }
176 }
177 .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after {
178 outline: 2px solid transparent;
179 }
180 .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted::after {
181 outline-color: transparent;
182 }
183 .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,
184 .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected,
185 .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus {
186 outline: none;
187 }
188 .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after,
189 .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected::after,
190 .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus::after {
191 content: "";
192 position: absolute;
193 pointer-events: none;
194 top: 0;
195 right: 0;
196 bottom: 0;
197 left: 0;
198 outline-color: var(--wp-admin-theme-color);
199 outline-style: solid;
200 outline-width: calc(1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1));
201 outline-offset: calc(1 * -1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1));
202 z-index: 1;
203 }
204 .block-editor-block-list__layout .block-editor-block-list__block.is-block-hidden {
205 visibility: hidden;
206 overflow: hidden;
207 height: 0;
208 border: none !important;
209 padding: 0 !important;
210 opacity: 0;
211 margin-top: 0 !important;
212 margin-bottom: 0 !important;
213 }
214 .block-editor-block-list__layout.is-layout-flex:not(.is-vertical) > .is-block-hidden {
215 width: 0;
216 height: auto;
217 align-self: stretch;
218 white-space: nowrap !important;
219 margin-left: 0 !important;
220 margin-right: 0 !important;
221 }
222 .block-editor-block-list__layout [class^=components-] {
223 -webkit-user-select: text;
224 user-select: text;
225 }
226
227 .block-editor-block-list__layout .block-editor-block-list__block {
228 position: relative;
229 overflow-wrap: break-word;
230 pointer-events: auto;
231 }
232 .block-editor-block-list__layout .block-editor-block-list__block.is-editing-disabled {
233 pointer-events: none;
234 }
235 .block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.is-selected, .block-editor-block-list__layout .block-editor-block-list__block.has-negative-margin.has-child-selected {
236 z-index: 20;
237 }
238 .block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel * {
239 z-index: 1;
240 }
241 .block-editor-block-list__layout .block-editor-block-list__block {
242 /**
243 * Notices
244 */
245 }
246 .block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui {
247 margin: -10px 0 12px 0;
248 }
249 .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui {
250 margin: 0 0 12px 0;
251 width: 100%;
252 }
253 .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content {
254 font-size: 13px;
255 }
256 .block-editor-block-list__layout .block-editor-block-list__block.has-warning {
257 min-height: 48px;
258 }
259 .block-editor-block-list__layout .block-editor-block-list__block.has-warning > * {
260 pointer-events: none;
261 -webkit-user-select: none;
262 user-select: none;
263 }
264 .block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning {
265 pointer-events: all;
266 }
267 .block-editor-block-list__layout .block-editor-block-list__block[data-clear=true] {
268 float: none;
269 }
270 .block-editor-block-list__layout .block-editor-block-list__block:not([draggable=true]), .block-editor-block-list__layout .block-editor-block-list__block:not([data-draggable=true]) {
271 cursor: default;
272 }
273 .block-editor-block-list__layout .block-editor-block-list__block[draggable=true], .block-editor-block-list__layout .block-editor-block-list__block[data-draggable=true] {
274 cursor: grab;
275 }
276 .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected {
277 cursor: default;
278 }
279 .block-editor-block-list__layout .block-editor-block-list__block[contenteditable],
280 .block-editor-block-list__layout .block-editor-block-list__block [contenteditable] {
281 cursor: text;
282 }
283
284 .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:not(.is-selected)::after, .is-outline-mode .block-editor-block-list__block:not(.remove-outline):not(.rich-text):not([contenteditable=true]).is-selected::after {
285 content: "";
286 position: absolute;
287 pointer-events: none;
288 top: 0;
289 right: 0;
290 bottom: 0;
291 left: 0;
292 outline-color: var(--wp-admin-theme-color);
293 outline-style: solid;
294 outline-width: calc(1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1));
295 outline-offset: calc(1 * -1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1));
296 }
297
298 .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-hovered::after, .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-selected::after, .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.is-highlighted::after,
299 .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-hovered::after,
300 .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected::after,
301 .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted::after {
302 outline-color: var(--wp-block-synced-color);
303 }
304 .is-outline-mode .block-editor-block-list__block:not(.remove-outline).wp-block-template-part.block-editor-block-list__block:not([contenteditable]):focus::after,
305 .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus::after {
306 outline-color: var(--wp-block-synced-color);
307 }
308
309 @keyframes block-editor-is-editable__animation {
310 from {
311 background-color: rgba(var(--wp-admin-theme-color--rgb), 0.1);
312 }
313 to {
314 background-color: rgba(var(--wp-admin-theme-color--rgb), 0);
315 }
316 }
317 @keyframes block-editor-is-editable__animation_reduce-motion {
318 0% {
319 background-color: rgba(var(--wp-admin-theme-color--rgb), 0.1);
320 }
321 99% {
322 background-color: rgba(var(--wp-admin-theme-color--rgb), 0.1);
323 }
324 100% {
325 background-color: rgba(var(--wp-admin-theme-color--rgb), 0);
326 }
327 }
328 .is-root-container:not([inert]) .block-editor-block-list__block.is-selected .block-editor-block-list__block.has-editable-outline::after {
329 animation-name: block-editor-is-editable__animation;
330 animation-duration: 0.8s;
331 animation-timing-function: ease-out;
332 animation-delay: 0.1s;
333 animation-fill-mode: backwards;
334 bottom: 0;
335 content: "";
336 left: 0;
337 pointer-events: none;
338 position: absolute;
339 right: 0;
340 top: 0;
341 }
342 @media (prefers-reduced-motion: reduce) {
343 .is-root-container:not([inert]) .block-editor-block-list__block.is-selected .block-editor-block-list__block.has-editable-outline::after {
344 animation-name: block-editor-is-editable__animation_reduce-motion;
345 animation-delay: 0s;
346 }
347 }
348
349 .is-focus-mode .block-editor-block-list__block:not(.has-child-selected) {
350 opacity: 0.2;
351 }
352 @media not (prefers-reduced-motion) {
353 .is-focus-mode .block-editor-block-list__block:not(.has-child-selected) {
354 transition: opacity 0.1s linear;
355 }
356 }
357 .is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block, .is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected, .is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected {
358 opacity: 1;
359 }
360
361 .is-focus-mode .block-editor-block-list__block.is-editing-content-only-section.has-child-selected, .is-focus-mode .block-editor-block-list__block.is-editing-content-only-section.has-child-selected .block-editor-block-list__block {
362 opacity: 1;
363 }
364
365 .wp-block[data-align=left] > *,
366 .wp-block[data-align=right] > *,
367 .wp-block.alignleft,
368 .wp-block.alignright {
369 z-index: 21;
370 }
371
372 .wp-site-blocks > [data-align=left] {
373 float: left;
374 margin-right: 2em;
375 }
376
377 .wp-site-blocks > [data-align=right] {
378 float: right;
379 margin-left: 2em;
380 }
381
382 .wp-site-blocks > [data-align=center] {
383 justify-content: center;
384 margin-left: auto;
385 margin-right: auto;
386 }
387
388 /**
389 * In-Canvas Inserter
390 */
391 .block-editor-block-list .block-editor-inserter {
392 margin: 8px;
393 cursor: move;
394 cursor: grab;
395 }
396
397 @keyframes block-editor-inserter__toggle__fade-in-animation {
398 from {
399 opacity: 0;
400 }
401 to {
402 opacity: 1;
403 }
404 }
405 @media not (prefers-reduced-motion) {
406 .wp-block .block-list-appender .block-editor-inserter__toggle {
407 animation: block-editor-inserter__toggle__fade-in-animation 0.1s ease;
408 animation-fill-mode: forwards;
409 }
410 }
411
412 .block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender {
413 display: none;
414 }
415 .block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle {
416 opacity: 0;
417 transform: scale(0);
418 }
419
420 .block-editor-block-list__block .block-editor-block-list__block-html-textarea {
421 display: block;
422 margin: 0;
423 padding: 12px;
424 width: 100%;
425 border: none;
426 outline: none;
427 border-radius: 2px;
428 box-sizing: border-box;
429 box-shadow: inset 0 0 0 1px #1e1e1e;
430 resize: none;
431 overflow: hidden;
432 font-family: Menlo, Consolas, monaco, monospace;
433 font-size: 15px;
434 line-height: 1.5;
435 /*rtl:ignore*/
436 direction: ltr;
437 }
438 @media not (prefers-reduced-motion) {
439 .block-editor-block-list__block .block-editor-block-list__block-html-textarea {
440 transition: padding 0.2s linear;
441 }
442 }
443 .block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus {
444 box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
445 }
446
447 .block-editor-block-list__zoom-out-separator {
448 /* same color as the iframe's background */
449 background: #ddd;
450 margin-left: -1px;
451 margin-right: -1px;
452 }
453 @media not (prefers-reduced-motion) {
454 .block-editor-block-list__zoom-out-separator {
455 transition: background-color 0.3s ease;
456 }
457 }
458 .block-editor-block-list__zoom-out-separator {
459 display: flex;
460 align-items: center;
461 justify-content: center;
462 overflow: hidden;
463 font-size: 13px;
464 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
465 color: #000;
466 font-weight: normal;
467 }
468 .is-zoomed-out .block-editor-block-list__zoom-out-separator {
469 font-size: calc(13px / var(--wp-block-editor-iframe-zoom-out-scale));
470 }
471 .block-editor-block-list__zoom-out-separator.is-dragged-over {
472 background: #ccc;
473 }
474
475 .has-global-padding > .block-editor-block-list__zoom-out-separator,
476 .block-editor-block-list__layout.is-root-container.has-global-padding > .block-editor-block-list__zoom-out-separator {
477 max-width: none;
478 margin: 0 calc(-1 * var(--wp--style--root--padding-right) - 1px) 0 calc(-1 * var(--wp--style--root--padding-left) - 1px) !important;
479 }
480
481 .is-dragging {
482 cursor: grabbing;
483 }
484
485 .is-preview-mode {
486 pointer-events: none;
487 }
488 .is-preview-mode .block-editor-block-list__block {
489 pointer-events: auto;
490 }
491 .is-preview-mode .block-editor-block-list__block > *:not(.block-editor-block-list__block) {
492 pointer-events: none;
493 }
494
495 .is-vertical .block-list-appender {
496 width: 24px;
497 margin-right: auto;
498 margin-top: 12px;
499 margin-left: 12px;
500 }
501
502 .block-list-appender > .block-editor-inserter {
503 display: block;
504 }
505
506 .block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout > .block-list-appender .block-list-appender__toggle {
507 opacity: 0;
508 transform: scale(0);
509 }
510
511 .block-editor-block-list__block.has-block-overlay {
512 cursor: default;
513 }
514 .block-editor-block-list__block.has-block-overlay .block-editor-block-list__block {
515 pointer-events: none;
516 }
517 .block-editor-block-list__block.has-block-overlay .block-editor-block-list__block.has-block-overlay::before {
518 left: 0;
519 right: 0;
520 width: auto;
521 }
522
523 .block-editor-block-list__layout .is-dragging {
524 opacity: 0.1;
525 }
526 .block-editor-block-list__layout .is-dragging iframe {
527 pointer-events: none;
528 }
529 .block-editor-block-list__layout .is-dragging::selection {
530 background: transparent !important;
531 }
532 .block-editor-block-list__layout .is-dragging::after {
533 content: none !important;
534 }
535
536 .wp-block img:not([draggable]),
537 .wp-block svg:not([draggable]) {
538 pointer-events: none;
539 }
540
541 .block-editor-block-preview__content-iframe .block-list-appender {
542 display: none;
543 }
544
545 .block-editor-block-preview__live-content * {
546 pointer-events: none;
547 }
548 .block-editor-block-preview__live-content .block-list-appender {
549 display: none;
550 }
551 .block-editor-block-preview__live-content .components-button:disabled {
552 opacity: initial;
553 }
554 .block-editor-block-preview__live-content .components-placeholder,
555 .block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true] {
556 display: none;
557 }
558
559 .block-editor-block-variation-picker__variations,
560 .block-editor-block-variation-picker__skip,
561 .wp-block-group-placeholder__variations {
562 list-style: none;
563 display: flex;
564 justify-content: flex-start;
565 flex-direction: row;
566 flex-wrap: wrap;
567 width: 100%;
568 padding: 0;
569 margin: 0;
570 gap: 8px;
571 font-size: 12px;
572 }
573 .block-editor-block-variation-picker__variations svg,
574 .block-editor-block-variation-picker__skip svg,
575 .wp-block-group-placeholder__variations svg {
576 fill: #949494 !important;
577 }
578 .block-editor-block-variation-picker__variations .components-button,
579 .block-editor-block-variation-picker__skip .components-button,
580 .wp-block-group-placeholder__variations .components-button {
581 padding: 4px;
582 }
583 .block-editor-block-variation-picker__variations .components-button:hover,
584 .block-editor-block-variation-picker__skip .components-button:hover,
585 .wp-block-group-placeholder__variations .components-button:hover {
586 background: none !important;
587 }
588 .block-editor-block-variation-picker__variations .components-button:hover svg,
589 .block-editor-block-variation-picker__skip .components-button:hover svg,
590 .wp-block-group-placeholder__variations .components-button:hover svg {
591 fill: var(--wp-admin-theme-color) !important;
592 }
593 .block-editor-block-variation-picker__variations > li,
594 .block-editor-block-variation-picker__skip > li,
595 .wp-block-group-placeholder__variations > li {
596 width: auto;
597 display: flex;
598 flex-direction: column;
599 align-items: center;
600 gap: 4px;
601 }
602
603 .block-editor-button-block-appender {
604 display: flex;
605 flex-direction: column;
606 align-items: center;
607 justify-content: center;
608 width: 100%;
609 height: auto;
610 color: #1e1e1e;
611 box-shadow: inset 0 0 0 1px #1e1e1e;
612 }
613 .is-dark-theme .block-editor-button-block-appender {
614 color: rgba(255, 255, 255, 0.65);
615 box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
616 }
617 .block-editor-button-block-appender:hover {
618 color: var(--wp-admin-theme-color);
619 box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color);
620 }
621 .block-editor-button-block-appender:focus {
622 box-shadow: inset 0 0 0 2px var(--wp-admin-theme-color);
623 }
624 .block-editor-button-block-appender:active {
625 color: #000;
626 }
627
628 .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child, .block-editor-block-list__block:not(.is-selected) > .is-layout-constrained.wp-block-group__inner-container > .block-list-appender:only-child, .block-editor-block-list__block:not(.is-selected) > .is-layout-flow.wp-block-group__inner-container > .block-list-appender:only-child {
629 pointer-events: none;
630 }
631 .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child::after, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child::after, .block-editor-block-list__block:not(.is-selected) > .is-layout-constrained.wp-block-group__inner-container > .block-list-appender:only-child::after, .block-editor-block-list__block:not(.is-selected) > .is-layout-flow.wp-block-group__inner-container > .block-list-appender:only-child::after {
632 content: "";
633 position: absolute;
634 top: 0;
635 right: 0;
636 bottom: 0;
637 left: 0;
638 pointer-events: none;
639 border: 1px dashed currentColor;
640 }
641 .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child .block-editor-inserter, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child .block-editor-inserter, .block-editor-block-list__block:not(.is-selected) > .is-layout-constrained.wp-block-group__inner-container > .block-list-appender:only-child .block-editor-inserter, .block-editor-block-list__block:not(.is-selected) > .is-layout-flow.wp-block-group__inner-container > .block-list-appender:only-child .block-editor-inserter {
642 opacity: 0;
643 }
644 .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child .block-editor-inserter:focus-within, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child .block-editor-inserter:focus-within, .block-editor-block-list__block:not(.is-selected) > .is-layout-constrained.wp-block-group__inner-container > .block-list-appender:only-child .block-editor-inserter:focus-within, .block-editor-block-list__block:not(.is-selected) > .is-layout-flow.wp-block-group__inner-container > .block-list-appender:only-child .block-editor-inserter:focus-within {
645 opacity: 1;
646 }
647 .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child.is-drag-over::after, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child.is-drag-over::after, .block-editor-block-list__block:not(.is-selected) > .is-layout-constrained.wp-block-group__inner-container > .block-list-appender:only-child.is-drag-over::after, .block-editor-block-list__block:not(.is-selected) > .is-layout-flow.wp-block-group__inner-container > .block-list-appender:only-child.is-drag-over::after {
648 border: none;
649 }
650 .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child.is-drag-over .block-editor-inserter, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child.is-drag-over .block-editor-inserter, .block-editor-block-list__block:not(.is-selected) > .is-layout-constrained.wp-block-group__inner-container > .block-list-appender:only-child.is-drag-over .block-editor-inserter, .block-editor-block-list__block:not(.is-selected) > .is-layout-flow.wp-block-group__inner-container > .block-list-appender:only-child.is-drag-over .block-editor-inserter {
651 visibility: visible;
652 }
653 .block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block > .block-list-appender:only-child::after {
654 border: none;
655 }
656 .block-list-appender:only-child.is-drag-over .block-editor-button-block-appender {
657 background-color: var(--wp-admin-theme-color);
658 box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
659 color: rgba(255, 255, 255, 0.65);
660 }
661 @media not (prefers-reduced-motion) {
662 .block-list-appender:only-child.is-drag-over .block-editor-button-block-appender {
663 transition: background-color 0.2s ease-in-out;
664 }
665 }
666
667 /**
668 * Default block appender.
669 *
670 * This component shows up in 3 places:
671 * - the black plus that sits at the end of the canvas, if the last block isn't a paragraph
672 * - on the right, inside empty paragraphs
673 * - absolute positioned and blue inside nesting containers
674 */
675 .block-editor-default-block-appender {
676 clear: both;
677 margin-left: auto;
678 margin-right: auto;
679 position: relative;
680 }
681 .block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover {
682 outline: 1px solid transparent;
683 }
684 .block-editor-default-block-appender .block-editor-default-block-appender__content {
685 opacity: 0.62;
686 margin-block-start: 0;
687 margin-block-end: 0;
688 }
689 .block-editor-default-block-appender .components-drop-zone__content-icon {
690 display: none;
691 }
692 .block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon {
693 background: #1e1e1e;
694 color: #fff;
695 padding: 0;
696 min-width: 24px;
697 height: 24px;
698 }
699 .block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover {
700 color: #fff;
701 background: var(--wp-admin-theme-color);
702 }
703
704 .block-editor-default-block-appender .block-editor-inserter {
705 position: absolute;
706 top: 0;
707 right: 0;
708 line-height: 0;
709 }
710 .block-editor-default-block-appender .block-editor-inserter:disabled {
711 display: none;
712 }
713
714 /**
715 * Fixed position appender (right bottom corner).
716 *
717 * These styles apply to all in-canvas inserters. All in-canvas inserters always
718 * exist within a block.
719 */
720 .block-editor-block-list__block .block-list-appender {
721 position: absolute;
722 list-style: none;
723 padding: 0;
724 z-index: 2;
725 bottom: 0;
726 right: 0;
727 }
728 .block-editor-block-list__block .block-list-appender.block-list-appender {
729 margin: 0;
730 line-height: 0;
731 }
732 .block-editor-block-list__block .block-list-appender .block-editor-inserter:disabled {
733 display: none;
734 }
735 .block-editor-block-list__block .block-list-appender .block-editor-default-block-appender {
736 height: 24px;
737 }
738 .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,
739 .block-editor-block-list__block .block-list-appender .block-list-appender__toggle {
740 background: #1e1e1e;
741 color: #fff;
742 padding: 0;
743 min-width: 24px;
744 height: 24px;
745 }
746 .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,
747 .block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover {
748 color: #fff;
749 background: var(--wp-admin-theme-color);
750 }
751 .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,
752 .block-editor-block-list__block .block-list-appender .block-list-appender__toggle {
753 flex-direction: row;
754 box-shadow: none;
755 width: 24px;
756 display: none;
757 padding: 0 !important;
758 }
759 .block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content {
760 display: none;
761 }
762 .block-editor-block-list__block .block-list-appender:only-child {
763 position: relative;
764 right: auto;
765 align-self: center;
766 list-style: none;
767 line-height: inherit;
768 }
769 .block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content {
770 display: block;
771 }
772
773 .block-editor-block-list__block.is-selected .block-editor-block-list__layout > .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,
774 .block-editor-block-list__block.is-selected .block-editor-block-list__layout > .block-list-appender .block-list-appender__toggle,
775 .block-editor-block-list__block.is-selected > .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,
776 .block-editor-block-list__block.is-selected > .block-list-appender .block-list-appender__toggle {
777 display: flex;
778 }
779
780 .block-editor-default-block-appender__content {
781 cursor: text;
782 }
783
784 .block-editor-iframe__body {
785 position: relative;
786 }
787
788 .block-editor-iframe__html {
789 transform-origin: top center;
790 }
791 @media not (prefers-reduced-motion) {
792 .block-editor-iframe__html {
793 transition: background-color 400ms;
794 }
795 }
796 .block-editor-iframe__html.zoom-out-animation {
797 position: fixed;
798 left: 0;
799 right: 0;
800 top: calc(-1 * var(--wp-block-editor-iframe-zoom-out-scroll-top, 0));
801 bottom: 0;
802 overflow-y: var(--wp-block-editor-iframe-zoom-out-overflow-behavior, scroll);
803 }
804 .block-editor-iframe__html.is-zoomed-out {
805 transform: translateX(calc((var(--wp-block-editor-iframe-zoom-out-scale-container-width) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw)) / 2 / var(--wp-block-editor-iframe-zoom-out-scale, 1)));
806 scale: var(--wp-block-editor-iframe-zoom-out-scale, 1);
807 background-color: var(--wp-editor-canvas-background);
808 margin-bottom: calc(-1 * calc(calc(var(--wp-block-editor-iframe-zoom-out-content-height) * (1 - var(--wp-block-editor-iframe-zoom-out-scale, 1))) + calc(2 * var(--wp-block-editor-iframe-zoom-out-frame-size, 0) / var(--wp-block-editor-iframe-zoom-out-scale, 1)) + 2px));
809 padding-top: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0) / var(--wp-block-editor-iframe-zoom-out-scale, 1));
810 padding-bottom: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0) / var(--wp-block-editor-iframe-zoom-out-scale, 1));
811 }
812 .block-editor-iframe__html.is-zoomed-out body {
813 min-height: calc((var(--wp-block-editor-iframe-zoom-out-inner-height) - calc(2 * var(--wp-block-editor-iframe-zoom-out-frame-size, 0) / var(--wp-block-editor-iframe-zoom-out-scale, 1))) / var(--wp-block-editor-iframe-zoom-out-scale, 1));
814 }
815 .block-editor-iframe__html.is-zoomed-out body > .is-root-container:not(.wp-block-post-content) {
816 flex: 1;
817 display: flex;
818 flex-direction: column;
819 height: 100%;
820 }
821 .block-editor-iframe__html.is-zoomed-out body > .is-root-container:not(.wp-block-post-content) > main {
822 flex: 1;
823 }
824 .block-editor-iframe__html.is-zoomed-out .wp-block[draggable] {
825 cursor: grab;
826 }
827
828 .block-editor-media-placeholder__cancel-button.is-link {
829 margin: 1em;
830 display: block;
831 }
832
833 .block-editor-media-placeholder.is-appender {
834 min-height: 0;
835 }
836 .block-editor-media-placeholder.is-appender:hover {
837 cursor: pointer;
838 box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
839 }
840
841 .block-editor-plain-text {
842 box-shadow: none;
843 font-family: inherit;
844 font-size: inherit;
845 color: inherit;
846 line-height: inherit;
847 border: none;
848 padding: 0;
849 margin: 0;
850 width: 100%;
851 }
852
853 .rich-text [data-rich-text-placeholder] {
854 pointer-events: none;
855 }
856 .rich-text [data-rich-text-placeholder]::after {
857 content: attr(data-rich-text-placeholder);
858 opacity: 0.62;
859 }
860 .rich-text:focus {
861 outline: none;
862 }
863
864 figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]::before {
865 opacity: 0.8;
866 }
867
868 [data-rich-text-script] {
869 display: inline;
870 }
871 [data-rich-text-script]::before {
872 content: "</>";
873 background: rgb(255, 255, 0);
874 }
875
876 [data-rich-text-comment],
877 [data-rich-text-format-boundary] {
878 border-radius: 2px;
879 }
880
881 [data-rich-text-comment] {
882 background-color: currentColor;
883 }
884 [data-rich-text-comment] span {
885 filter: invert(100%);
886 color: currentColor;
887 padding: 0 2px;
888 }
889
890 .rich-text [contenteditable=false]::selection {
891 background-color: transparent;
892 }
893
894 .block-editor-warning {
895 align-items: center;
896 display: flex;
897 flex-wrap: wrap;
898 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
899 padding: 1em;
900 border: 1px solid #1e1e1e;
901 border-radius: 2px;
902 background-color: #fff;
903 }
904 .block-editor-warning .block-editor-warning__message {
905 line-height: 1.4;
906 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
907 font-size: 13px;
908 color: #1e1e1e;
909 margin: 0;
910 }
911 .block-editor-warning p.block-editor-warning__message.block-editor-warning__message {
912 min-height: auto;
913 }
914 .block-editor-warning .block-editor-warning__contents {
915 display: flex;
916 flex-direction: row;
917 justify-content: space-between;
918 flex-wrap: wrap;
919 align-items: baseline;
920 width: 100%;
921 gap: 12px;
922 }
923 .block-editor-warning .block-editor-warning__actions {
924 align-items: center;
925 display: flex;
926 gap: 8px;
927 }
928
929 .components-popover.block-editor-warning__dropdown {
930 z-index: 99998;
931 }