PluginProbe
Gutenberg / 23.7.2
Gutenberg v23.7.2
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-rtl.css

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

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