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
← All changes | build/styles/block-editor/content-rtl.css +51 -49 23.3.2 → trunk View file →
@@ -67,8 +67,14 @@
67 67 /**
68 68 * Focus styles.
69 69 */
70 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 +/**
71 77 * Applies editor left position to the selector passed as argument
72 78 */
73 79 /**
74 80 * Styles that are reused verbatim in a few places
@@ -115,13 +121,8 @@
115 121 }
116 122 .block-editor-block-icon.has-colors svg {
117 123 fill: currentColor;
118 124 }
119 -@media (forced-colors: active) {
120 - .block-editor-block-icon.has-colors svg {
121 - fill: CanvasText;
122 - }
123 -}
124 125 .block-editor-block-icon svg {
125 126 min-width: 20px;
126 127 min-height: 20px;
127 128 max-width: 24px;
@@ -181,13 +182,17 @@
181 182 outline-color: transparent;
182 183 }
183 184 .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,
184 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),
185 188 .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus {
186 189 outline: none;
187 190 }
188 191 .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after,
189 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,
190 195 .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus::after {
191 196 content: "";
192 197 position: absolute;
193 198 pointer-events: none;
@@ -361,9 +366,9 @@
361 366 .wp-block[data-align=left] > *,
362 367 .wp-block[data-align=right] > *,
363 368 .wp-block.alignleft,
364 369 .wp-block.alignright {
365 - z-index: 21;
370 + z-index: 9;
366 371 }
367 372
368 373 .wp-site-blocks > [data-align=left] {
369 374 float: right;
@@ -404,16 +409,8 @@
404 409 animation-fill-mode: forwards;
405 410 }
406 411 }
407 412
408 -.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender {
409 - display: none;
410 -}
411 -.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle {
412 - opacity: 0;
413 - transform: scale(0);
414 -}
415 -
416 413 .block-editor-block-list__block .block-editor-block-list__block-html-textarea {
417 414 display: block;
418 415 margin: 0;
419 416 padding: 12px;
@@ -423,9 +420,10 @@
423 420 border-radius: 2px;
424 421 box-sizing: border-box;
425 422 box-shadow: inset 0 0 0 1px #1e1e1e;
426 423 resize: none;
427 - overflow: hidden;
424 + field-sizing: content;
425 + overflow: auto;
428 426 font-family: Menlo, Consolas, monaco, monospace;
429 427 font-size: 15px;
430 428 line-height: 1.5;
431 429 direction: ltr;
@@ -455,11 +453,11 @@
455 453 align-items: center;
456 454 justify-content: center;
457 455 overflow: hidden;
458 456 font-size: 13px;
459 - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
457 + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
460 458 color: #000;
461 - font-weight: normal;
459 + font-weight: 400;
462 460 }
463 461 .is-zoomed-out .block-editor-block-list__zoom-out-separator {
464 462 font-size: calc(13px / var(--wp-block-editor-iframe-zoom-out-scale));
465 463 }
@@ -527,13 +525,8 @@
527 525 .block-editor-block-list__layout .is-dragging::after {
528 526 content: none !important;
529 527 }
530 528
531 -.wp-block img:not([draggable]),
532 -.wp-block svg:not([draggable]) {
533 - pointer-events: none;
534 -}
535 -
536 529 .block-editor-block-preview__content-iframe .block-list-appender {
537 530 display: none;
538 531 }
539 532
@@ -567,9 +560,10 @@
567 560 }
568 561 .block-editor-block-variation-picker__variations svg,
569 562 .block-editor-block-variation-picker__skip svg,
570 563 .wp-block-group-placeholder__variations svg {
571 - fill: #949494 !important;
564 + fill: #949494;
565 + color: #949494 !important;
572 566 }
573 567 .block-editor-block-variation-picker__variations .components-button,
574 568 .block-editor-block-variation-picker__skip .components-button,
575 569 .wp-block-group-placeholder__variations .components-button {
@@ -582,9 +576,10 @@
582 576 }
583 577 .block-editor-block-variation-picker__variations .components-button:hover svg,
584 578 .block-editor-block-variation-picker__skip .components-button:hover svg,
585 579 .wp-block-group-placeholder__variations .components-button:hover svg {
586 - fill: var(--wp-admin-theme-color) !important;
580 + fill: var(--wp-admin-theme-color);
581 + color: var(--wp-admin-theme-color) !important;
587 582 }
588 583 .block-editor-block-variation-picker__variations > li,
589 584 .block-editor-block-variation-picker__skip > li,
590 585 .wp-block-group-placeholder__variations > li {
@@ -602,29 +597,24 @@
602 597 justify-content: center;
603 598 width: 100%;
604 599 height: auto;
605 600 color: #1e1e1e;
606 - box-shadow: inset 0 0 0 1px #1e1e1e;
601 + border-color: currentColor;
607 602 }
608 603 .is-dark-theme .block-editor-button-block-appender {
609 604 color: rgba(255, 255, 255, 0.65);
610 - box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
611 605 }
612 606 .block-editor-button-block-appender:hover {
613 607 color: var(--wp-admin-theme-color);
614 - box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color);
615 608 }
616 -.block-editor-button-block-appender:focus {
617 - box-shadow: inset 0 0 0 2px var(--wp-admin-theme-color);
618 -}
619 609 .block-editor-button-block-appender:active {
620 610 color: #000;
621 611 }
622 612
623 -.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 {
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) {
624 614 pointer-events: none;
625 615 }
626 -.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 {
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 {
627 617 content: "";
628 618 position: absolute;
629 619 top: 0;
630 620 left: 0;
@@ -632,30 +622,30 @@
632 622 right: 0;
633 623 pointer-events: none;
634 624 border: 1px dashed currentColor;
635 625 }
636 -.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 {
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 {
637 627 opacity: 0;
638 628 }
639 -.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 {
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 {
640 630 opacity: 1;
641 631 }
642 -.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 {
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 {
643 633 border: none;
644 634 }
645 -.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 {
646 - visibility: visible;
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;
647 637 }
648 -.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block > .block-list-appender:only-child::after {
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 {
649 639 border: none;
650 640 }
651 -.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender {
641 +.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-button-block-appender {
652 642 background-color: var(--wp-admin-theme-color);
653 643 box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
654 644 color: rgba(255, 255, 255, 0.65);
655 645 }
656 646 @media not (prefers-reduced-motion) {
657 - .block-list-appender:only-child.is-drag-over .block-editor-button-block-appender {
647 + .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-button-block-appender {
658 648 transition: background-color 0.2s ease-in-out;
659 649 }
660 650 }
661 651
@@ -677,8 +667,9 @@
677 667 outline: 1px solid transparent;
678 668 }
679 669 .block-editor-default-block-appender .block-editor-default-block-appender__content {
680 670 opacity: 0.62;
671 + text-shadow: none;
681 672 margin-block-start: 0;
682 673 margin-block-end: 0;
683 674 }
684 675 .block-editor-default-block-appender .components-drop-zone__content-icon {
@@ -771,9 +762,9 @@
771 762 }
772 763 .block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content {
773 764 display: none;
774 765 }
775 -.block-editor-block-list__block .block-list-appender:only-child {
766 +.block-editor-block-list__block .block-list-appender:first-child {
776 767 position: relative;
777 768 left: auto;
778 769 align-self: center;
779 770 list-style: none;
@@ -778,9 +769,9 @@
778 769 align-self: center;
779 770 list-style: none;
780 771 line-height: inherit;
781 772 }
782 -.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content {
773 +.block-editor-block-list__block .block-list-appender:first-child .block-editor-default-block-appender__content {
783 774 display: block;
784 775 }
785 776
786 777 .block-editor-block-list__block.is-selected .block-editor-block-list__layout > .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,
@@ -809,9 +800,9 @@
809 800 .block-editor-iframe__html.zoom-out-animation {
810 801 position: fixed;
811 802 right: 0;
812 803 left: 0;
813 - top: calc(-1 * var(--wp-block-editor-iframe-zoom-out-scroll-top, 0));
804 + top: calc(-1 * var(--wp-block-editor-iframe-zoom-out-scroll-top, 0px));
814 805 bottom: 0;
815 806 overflow-y: var(--wp-block-editor-iframe-zoom-out-overflow-behavior, scroll);
816 807 }
817 808 .block-editor-iframe__html.is-zoomed-out {
@@ -817,14 +808,14 @@
817 808 .block-editor-iframe__html.is-zoomed-out {
818 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))));
819 810 scale: var(--wp-block-editor-iframe-zoom-out-scale, 1);
820 811 background-color: var(--wp-editor-canvas-background);
821 - 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));
822 - padding-top: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0) / var(--wp-block-editor-iframe-zoom-out-scale, 1));
823 - padding-bottom: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0) / var(--wp-block-editor-iframe-zoom-out-scale, 1));
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));
824 815 }
825 816 .block-editor-iframe__html.is-zoomed-out body {
826 - 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));
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));
827 818 }
828 819 .block-editor-iframe__html.is-zoomed-out body > .is-root-container:not(.wp-block-post-content) {
829 820 flex: 1;
830 821 display: flex;
@@ -859,9 +850,13 @@
859 850 line-height: inherit;
860 851 border: none;
861 852 padding: 0;
862 853 margin: 0;
854 +}
855 +
856 +.block-editor-plain-text {
863 857 width: 100%;
858 + field-sizing: content;
864 859 }
865 860
866 861 .rich-text [data-rich-text-placeholder] {
867 862 pointer-events: none;
@@ -868,8 +863,9 @@
868 863 }
869 864 .rich-text [data-rich-text-placeholder]::after {
870 865 content: attr(data-rich-text-placeholder);
871 866 opacity: 0.62;
867 + text-shadow: none;
872 868 }
873 869 .rich-text:focus {
874 870 outline: none;
875 871 }
@@ -903,13 +899,19 @@
903 899 .rich-text [contenteditable=false]::selection {
904 900 background-color: transparent;
905 901 }
906 902
903 +.is-selected .non-breaking-space {
904 + outline: 1px solid currentColor;
905 + outline-offset: -1px;
906 + opacity: 0.8;
907 +}
908 +
907 909 .block-editor-warning {
908 910 align-items: center;
909 911 display: flex;
910 912 flex-wrap: wrap;
911 - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
913 + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
912 914 padding: 1em;
913 915 border: 1px solid #1e1e1e;
914 916 border-radius: 2px;
915 917 background-color: #fff;
@@ -915,9 +917,9 @@
915 917 background-color: #fff;
916 918 }
917 919 .block-editor-warning .block-editor-warning__message {
918 920 line-height: 1.4;
919 - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
921 + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
920 922 font-size: 13px;
921 923 color: #1e1e1e;
922 924 margin: 0;
923 925 }