PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
gutenberg / build / styles / block-editor / content-rtl.css

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

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