PluginProbe
Gutenberg / 23.2.1
Gutenberg v23.2.1
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 7.4.0 All 402 releases
gutenberg / build / styles / block-editor / content.css

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

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