| @@ -67,14 +67,8 @@ | ||
| 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 | -/** | |
| 77 | 71 | * Applies editor left position to the selector passed as argument |
| 78 | 72 | */ |
| 79 | 73 | /** |
| 80 | 74 | * Styles that are reused verbatim in a few places |
| @@ -158,11 +152,8 @@ | ||
| 158 | 152 | /* stylelint-enable */ |
| 159 | 153 | .block-editor-block-list__layout { |
| 160 | 154 | position: relative; |
| 161 | 155 | } |
| 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 | 156 | .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection, .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection { |
| 166 | 157 | background: transparent; |
| 167 | 158 | } |
| 168 | 159 | .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after { |
| @@ -207,9 +198,8 @@ | ||
| 207 | 198 | outline-color: var(--wp-admin-theme-color); |
| 208 | 199 | outline-style: solid; |
| 209 | 200 | outline-width: calc(1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); |
| 210 | 201 | 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 | 202 | z-index: 1; |
| 213 | 203 | } |
| 214 | 204 | .block-editor-block-list__layout .block-editor-block-list__block.is-block-hidden { |
| 215 | 205 | visibility: hidden; |
| @@ -230,9 +220,8 @@ | ||
| 230 | 220 | margin-right: 0 !important; |
| 231 | 221 | } |
| 232 | 222 | .block-editor-block-list__layout [class^=components-] { |
| 233 | 223 | -webkit-user-select: text; |
| 234 | - -moz-user-select: text; | |
| 235 | 224 | user-select: text; |
| 236 | 225 | } |
| 237 | 226 | |
| 238 | 227 | .block-editor-block-list__layout .block-editor-block-list__block { |
| @@ -245,8 +234,11 @@ | ||
| 245 | 234 | } |
| 246 | 235 | .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 | 236 | z-index: 20; |
| 248 | 237 | } |
| 238 | +.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel * { | |
| 239 | + z-index: 1; | |
| 240 | +} | |
| 249 | 241 | .block-editor-block-list__layout .block-editor-block-list__block { |
| 250 | 242 | /** |
| 251 | 243 | * Notices |
| 252 | 244 | */ |
| @@ -257,8 +249,11 @@ | ||
| 257 | 249 | .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui { |
| 258 | 250 | margin: 0 0 12px 0; |
| 259 | 251 | width: 100%; |
| 260 | 252 | } |
| 253 | +.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content { | |
| 254 | + font-size: 13px; | |
| 255 | +} | |
| 261 | 256 | .block-editor-block-list__layout .block-editor-block-list__block.has-warning { |
| 262 | 257 | min-height: 48px; |
| 263 | 258 | } |
| 264 | 259 | .block-editor-block-list__layout .block-editor-block-list__block.has-warning > * { |
| @@ -263,9 +258,8 @@ | ||
| 263 | 258 | } |
| 264 | 259 | .block-editor-block-list__layout .block-editor-block-list__block.has-warning > * { |
| 265 | 260 | pointer-events: none; |
| 266 | 261 | -webkit-user-select: none; |
| 267 | - -moz-user-select: none; | |
| 268 | 262 | user-select: none; |
| 269 | 263 | } |
| 270 | 264 | .block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning { |
| 271 | 265 | pointer-events: all; |
| @@ -298,9 +292,8 @@ | ||
| 298 | 292 | outline-color: var(--wp-admin-theme-color); |
| 299 | 293 | outline-style: solid; |
| 300 | 294 | outline-width: calc(1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); |
| 301 | 295 | 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 | 296 | } |
| 304 | 297 | |
| 305 | 298 | .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 | 299 | .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-reusable.is-hovered::after, |
| @@ -467,9 +460,9 @@ | ||
| 467 | 460 | align-items: center; |
| 468 | 461 | justify-content: center; |
| 469 | 462 | overflow: hidden; |
| 470 | 463 | font-size: 13px; |
| 471 | - font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 464 | + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 472 | 465 | color: #000; |
| 473 | 466 | font-weight: normal; |
| 474 | 467 | } |
| 475 | 468 | .is-zoomed-out .block-editor-block-list__zoom-out-separator { |
| @@ -532,11 +525,8 @@ | ||
| 532 | 525 | } |
| 533 | 526 | .block-editor-block-list__layout .is-dragging iframe { |
| 534 | 527 | pointer-events: none; |
| 535 | 528 | } |
| 536 | -.block-editor-block-list__layout .is-dragging::-moz-selection { | |
| 537 | - background: transparent !important; | |
| 538 | -} | |
| 539 | 529 | .block-editor-block-list__layout .is-dragging::selection { |
| 540 | 530 | background: transparent !important; |
| 541 | 531 | } |
| 542 | 532 | .block-editor-block-list__layout .is-dragging::after { |
| @@ -617,16 +607,21 @@ | ||
| 617 | 607 | justify-content: center; |
| 618 | 608 | width: 100%; |
| 619 | 609 | height: auto; |
| 620 | 610 | color: #1e1e1e; |
| 621 | - border-color: currentColor; | |
| 611 | + box-shadow: inset 0 0 0 1px #1e1e1e; | |
| 622 | 612 | } |
| 623 | 613 | .is-dark-theme .block-editor-button-block-appender { |
| 624 | 614 | color: rgba(255, 255, 255, 0.65); |
| 615 | + box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65); | |
| 625 | 616 | } |
| 626 | 617 | .block-editor-button-block-appender:hover { |
| 627 | 618 | color: var(--wp-admin-theme-color); |
| 619 | + box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color); | |
| 628 | 620 | } |
| 621 | +.block-editor-button-block-appender:focus { | |
| 622 | + box-shadow: inset 0 0 0 2px var(--wp-admin-theme-color); | |
| 623 | +} | |
| 629 | 624 | .block-editor-button-block-appender:active { |
| 630 | 625 | color: #000; |
| 631 | 626 | } |
| 632 | 627 | |
| @@ -687,9 +682,8 @@ | ||
| 687 | 682 | outline: 1px solid transparent; |
| 688 | 683 | } |
| 689 | 684 | .block-editor-default-block-appender .block-editor-default-block-appender__content { |
| 690 | 685 | opacity: 0.62; |
| 691 | - text-shadow: none; | |
| 692 | 686 | margin-block-start: 0; |
| 693 | 687 | margin-block-end: 0; |
| 694 | 688 | } |
| 695 | 689 | .block-editor-default-block-appender .components-drop-zone__content-icon { |
| @@ -705,16 +699,8 @@ | ||
| 705 | 699 | .block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover { |
| 706 | 700 | color: #fff; |
| 707 | 701 | background: var(--wp-admin-theme-color); |
| 708 | 702 | } |
| 709 | -@media not (prefers-reduced-motion) { | |
| 710 | - .block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon svg { | |
| 711 | - transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s; | |
| 712 | - } | |
| 713 | -} | |
| 714 | -.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg { | |
| 715 | - transform: rotate(45deg); | |
| 716 | -} | |
| 717 | 703 | |
| 718 | 704 | .block-editor-default-block-appender .block-editor-inserter { |
| 719 | 705 | position: absolute; |
| 720 | 706 | top: 0; |
| @@ -761,18 +747,8 @@ | ||
| 761 | 747 | .block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover { |
| 762 | 748 | color: #fff; |
| 763 | 749 | background: var(--wp-admin-theme-color); |
| 764 | 750 | } |
| 765 | -@media not (prefers-reduced-motion) { | |
| 766 | - .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon svg, | |
| 767 | - .block-editor-block-list__block .block-list-appender .block-list-appender__toggle svg { | |
| 768 | - transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s; | |
| 769 | - } | |
| 770 | -} | |
| 771 | -.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg, | |
| 772 | -.block-editor-block-list__block .block-list-appender .block-list-appender__toggle.is-pressed svg { | |
| 773 | - transform: rotate(45deg); | |
| 774 | -} | |
| 775 | 751 | .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon, |
| 776 | 752 | .block-editor-block-list__block .block-list-appender .block-list-appender__toggle { |
| 777 | 753 | flex-direction: row; |
| 778 | 754 | box-shadow: none; |
| @@ -820,9 +796,9 @@ | ||
| 820 | 796 | .block-editor-iframe__html.zoom-out-animation { |
| 821 | 797 | position: fixed; |
| 822 | 798 | left: 0; |
| 823 | 799 | right: 0; |
| 824 | - top: calc(-1 * var(--wp-block-editor-iframe-zoom-out-scroll-top, 0px)); | |
| 800 | + top: calc(-1 * var(--wp-block-editor-iframe-zoom-out-scroll-top, 0)); | |
| 825 | 801 | bottom: 0; |
| 826 | 802 | overflow-y: var(--wp-block-editor-iframe-zoom-out-overflow-behavior, scroll); |
| 827 | 803 | } |
| 828 | 804 | .block-editor-iframe__html.is-zoomed-out { |
| @@ -828,14 +804,14 @@ | ||
| 828 | 804 | .block-editor-iframe__html.is-zoomed-out { |
| 829 | 805 | transform: translateX(calc((var(--wp-block-editor-iframe-zoom-out-scale-container-width) - var(--wp-block-editor-iframe-zoom-out-container-width, 100vw)) / 2 / var(--wp-block-editor-iframe-zoom-out-scale, 1))); |
| 830 | 806 | scale: var(--wp-block-editor-iframe-zoom-out-scale, 1); |
| 831 | 807 | background-color: var(--wp-editor-canvas-background); |
| 832 | - 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)); | |
| 833 | - padding-top: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0px) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); | |
| 834 | - padding-bottom: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0px) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); | |
| 808 | + 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)); | |
| 809 | + padding-top: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); | |
| 810 | + padding-bottom: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); | |
| 835 | 811 | } |
| 836 | 812 | .block-editor-iframe__html.is-zoomed-out body { |
| 837 | - 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)); | |
| 813 | + 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)); | |
| 838 | 814 | } |
| 839 | 815 | .block-editor-iframe__html.is-zoomed-out body > .is-root-container:not(.wp-block-post-content) { |
| 840 | 816 | flex: 1; |
| 841 | 817 | display: flex; |
| @@ -857,9 +833,9 @@ | ||
| 857 | 833 | .block-editor-media-placeholder.is-appender { |
| 858 | 834 | min-height: 0; |
| 859 | 835 | } |
| 860 | 836 | .block-editor-media-placeholder.is-appender:hover { |
| 861 | - cursor: var(--wpds-cursor-control, pointer); | |
| 837 | + cursor: pointer; | |
| 862 | 838 | box-shadow: 0 0 0 1px var(--wp-admin-theme-color); |
| 863 | 839 | } |
| 864 | 840 | |
| 865 | 841 | .block-editor-plain-text { |
| @@ -879,9 +855,8 @@ | ||
| 879 | 855 | } |
| 880 | 856 | .rich-text [data-rich-text-placeholder]::after { |
| 881 | 857 | content: attr(data-rich-text-placeholder); |
| 882 | 858 | opacity: 0.62; |
| 883 | - text-shadow: none; | |
| 884 | 859 | } |
| 885 | 860 | .rich-text:focus { |
| 886 | 861 | outline: none; |
| 887 | 862 | } |
| @@ -911,12 +886,8 @@ | ||
| 911 | 886 | color: currentColor; |
| 912 | 887 | padding: 0 2px; |
| 913 | 888 | } |
| 914 | 889 | |
| 915 | -.rich-text [contenteditable=false]::-moz-selection { | |
| 916 | - background-color: transparent; | |
| 917 | -} | |
| 918 | - | |
| 919 | 890 | .rich-text [contenteditable=false]::selection { |
| 920 | 891 | background-color: transparent; |
| 921 | 892 | } |
| 922 | 893 | |
| @@ -923,9 +894,9 @@ | ||
| 923 | 894 | .block-editor-warning { |
| 924 | 895 | align-items: center; |
| 925 | 896 | display: flex; |
| 926 | 897 | flex-wrap: wrap; |
| 927 | - font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 898 | + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 928 | 899 | padding: 1em; |
| 929 | 900 | border: 1px solid #1e1e1e; |
| 930 | 901 | border-radius: 2px; |
| 931 | 902 | background-color: #fff; |
| @@ -931,9 +902,9 @@ | ||
| 931 | 902 | background-color: #fff; |
| 932 | 903 | } |
| 933 | 904 | .block-editor-warning .block-editor-warning__message { |
| 934 | 905 | line-height: 1.4; |
| 935 | - font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 906 | + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 936 | 907 | font-size: 13px; |
| 937 | 908 | color: #1e1e1e; |
| 938 | 909 | margin: 0; |
| 939 | 910 | } |