PluginProbe
Gutenberg / 23.0.1
Gutenberg v23.0.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.0.1, at build/styles/block-editor/content.css

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