| @@ -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: left; |
| @@ -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 | /*rtl:ignore*/ |
| @@ -456,11 +454,11 @@ | ||
| 456 | 454 | align-items: center; |
| 457 | 455 | justify-content: center; |
| 458 | 456 | overflow: hidden; |
| 459 | 457 | font-size: 13px; |
| 460 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 458 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 461 | 459 | color: #000; |
| 462 | - font-weight: normal; | |
| 460 | + font-weight: 400; | |
| 463 | 461 | } |
| 464 | 462 | .is-zoomed-out .block-editor-block-list__zoom-out-separator { |
| 465 | 463 | font-size: calc(13px / var(--wp-block-editor-iframe-zoom-out-scale)); |
| 466 | 464 | } |
| @@ -528,13 +526,8 @@ | ||
| 528 | 526 | .block-editor-block-list__layout .is-dragging::after { |
| 529 | 527 | content: none !important; |
| 530 | 528 | } |
| 531 | 529 | |
| 532 | -.wp-block img:not([draggable]), | |
| 533 | -.wp-block svg:not([draggable]) { | |
| 534 | - pointer-events: none; | |
| 535 | -} | |
| 536 | - | |
| 537 | 530 | .block-editor-block-preview__content-iframe .block-list-appender { |
| 538 | 531 | display: none; |
| 539 | 532 | } |
| 540 | 533 | |
| @@ -568,9 +561,10 @@ | ||
| 568 | 561 | } |
| 569 | 562 | .block-editor-block-variation-picker__variations svg, |
| 570 | 563 | .block-editor-block-variation-picker__skip svg, |
| 571 | 564 | .wp-block-group-placeholder__variations svg { |
| 572 | - fill: #949494 !important; | |
| 565 | + fill: #949494; | |
| 566 | + color: #949494 !important; | |
| 573 | 567 | } |
| 574 | 568 | .block-editor-block-variation-picker__variations .components-button, |
| 575 | 569 | .block-editor-block-variation-picker__skip .components-button, |
| 576 | 570 | .wp-block-group-placeholder__variations .components-button { |
| @@ -583,9 +577,10 @@ | ||
| 583 | 577 | } |
| 584 | 578 | .block-editor-block-variation-picker__variations .components-button:hover svg, |
| 585 | 579 | .block-editor-block-variation-picker__skip .components-button:hover svg, |
| 586 | 580 | .wp-block-group-placeholder__variations .components-button:hover svg { |
| 587 | - fill: var(--wp-admin-theme-color) !important; | |
| 581 | + fill: var(--wp-admin-theme-color); | |
| 582 | + color: var(--wp-admin-theme-color) !important; | |
| 588 | 583 | } |
| 589 | 584 | .block-editor-block-variation-picker__variations > li, |
| 590 | 585 | .block-editor-block-variation-picker__skip > li, |
| 591 | 586 | .wp-block-group-placeholder__variations > li { |
| @@ -603,29 +598,24 @@ | ||
| 603 | 598 | justify-content: center; |
| 604 | 599 | width: 100%; |
| 605 | 600 | height: auto; |
| 606 | 601 | color: #1e1e1e; |
| 607 | - box-shadow: inset 0 0 0 1px #1e1e1e; | |
| 602 | + border-color: currentColor; | |
| 608 | 603 | } |
| 609 | 604 | .is-dark-theme .block-editor-button-block-appender { |
| 610 | 605 | color: rgba(255, 255, 255, 0.65); |
| 611 | - box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65); | |
| 612 | 606 | } |
| 613 | 607 | .block-editor-button-block-appender:hover { |
| 614 | 608 | color: var(--wp-admin-theme-color); |
| 615 | - box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color); | |
| 616 | 609 | } |
| 617 | -.block-editor-button-block-appender:focus { | |
| 618 | - box-shadow: inset 0 0 0 2px var(--wp-admin-theme-color); | |
| 619 | -} | |
| 620 | 610 | .block-editor-button-block-appender:active { |
| 621 | 611 | color: #000; |
| 622 | 612 | } |
| 623 | 613 | |
| 624 | -.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 { | |
| 614 | +.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 | 615 | pointer-events: none; |
| 626 | 616 | } |
| 627 | -.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 { | |
| 617 | +.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 | 618 | content: ""; |
| 629 | 619 | position: absolute; |
| 630 | 620 | top: 0; |
| 631 | 621 | right: 0; |
| @@ -633,30 +623,30 @@ | ||
| 633 | 623 | left: 0; |
| 634 | 624 | pointer-events: none; |
| 635 | 625 | border: 1px dashed currentColor; |
| 636 | 626 | } |
| 637 | -.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 { | |
| 627 | +.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 | 628 | opacity: 0; |
| 639 | 629 | } |
| 640 | -.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 { | |
| 630 | +.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 | 631 | opacity: 1; |
| 642 | 632 | } |
| 643 | -.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 { | |
| 633 | +.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 | 634 | border: none; |
| 645 | 635 | } |
| 646 | -.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 { | |
| 647 | - visibility: visible; | |
| 636 | +.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 { | |
| 637 | + opacity: 1; | |
| 648 | 638 | } |
| 649 | -.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__block > .block-list-appender:only-child::after { | |
| 639 | +.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 | 640 | border: none; |
| 651 | 641 | } |
| 652 | -.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender { | |
| 642 | +.block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-button-block-appender { | |
| 653 | 643 | background-color: var(--wp-admin-theme-color); |
| 654 | 644 | box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65); |
| 655 | 645 | color: rgba(255, 255, 255, 0.65); |
| 656 | 646 | } |
| 657 | 647 | @media not (prefers-reduced-motion) { |
| 658 | - .block-list-appender:only-child.is-drag-over .block-editor-button-block-appender { | |
| 648 | + .block-list-appender:only-child:has(.block-editor-button-block-appender).is-drag-over .block-editor-button-block-appender { | |
| 659 | 649 | transition: background-color 0.2s ease-in-out; |
| 660 | 650 | } |
| 661 | 651 | } |
| 662 | 652 | |
| @@ -678,8 +668,9 @@ | ||
| 678 | 668 | outline: 1px solid transparent; |
| 679 | 669 | } |
| 680 | 670 | .block-editor-default-block-appender .block-editor-default-block-appender__content { |
| 681 | 671 | opacity: 0.62; |
| 672 | + text-shadow: none; | |
| 682 | 673 | margin-block-start: 0; |
| 683 | 674 | margin-block-end: 0; |
| 684 | 675 | } |
| 685 | 676 | .block-editor-default-block-appender .components-drop-zone__content-icon { |
| @@ -772,9 +763,9 @@ | ||
| 772 | 763 | } |
| 773 | 764 | .block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content { |
| 774 | 765 | display: none; |
| 775 | 766 | } |
| 776 | -.block-editor-block-list__block .block-list-appender:only-child { | |
| 767 | +.block-editor-block-list__block .block-list-appender:first-child { | |
| 777 | 768 | position: relative; |
| 778 | 769 | right: auto; |
| 779 | 770 | align-self: center; |
| 780 | 771 | list-style: none; |
| @@ -779,9 +770,9 @@ | ||
| 779 | 770 | align-self: center; |
| 780 | 771 | list-style: none; |
| 781 | 772 | line-height: inherit; |
| 782 | 773 | } |
| 783 | -.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content { | |
| 774 | +.block-editor-block-list__block .block-list-appender:first-child .block-editor-default-block-appender__content { | |
| 784 | 775 | display: block; |
| 785 | 776 | } |
| 786 | 777 | |
| 787 | 778 | .block-editor-block-list__block.is-selected .block-editor-block-list__layout > .block-list-appender .block-editor-inserter__toggle.components-button.has-icon, |
| @@ -810,9 +801,9 @@ | ||
| 810 | 801 | .block-editor-iframe__html.zoom-out-animation { |
| 811 | 802 | position: fixed; |
| 812 | 803 | left: 0; |
| 813 | 804 | right: 0; |
| 814 | - top: calc(-1 * var(--wp-block-editor-iframe-zoom-out-scroll-top, 0)); | |
| 805 | + top: calc(-1 * var(--wp-block-editor-iframe-zoom-out-scroll-top, 0px)); | |
| 815 | 806 | bottom: 0; |
| 816 | 807 | overflow-y: var(--wp-block-editor-iframe-zoom-out-overflow-behavior, scroll); |
| 817 | 808 | } |
| 818 | 809 | .block-editor-iframe__html.is-zoomed-out { |
| @@ -818,14 +809,14 @@ | ||
| 818 | 809 | .block-editor-iframe__html.is-zoomed-out { |
| 819 | 810 | 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))); |
| 820 | 811 | scale: var(--wp-block-editor-iframe-zoom-out-scale, 1); |
| 821 | 812 | background-color: var(--wp-editor-canvas-background); |
| 822 | - 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)); | |
| 823 | - padding-top: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); | |
| 824 | - padding-bottom: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); | |
| 813 | + 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)); | |
| 814 | + padding-top: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0px) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); | |
| 815 | + padding-bottom: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0px) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); | |
| 825 | 816 | } |
| 826 | 817 | .block-editor-iframe__html.is-zoomed-out body { |
| 827 | - 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)); | |
| 818 | + 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)); | |
| 828 | 819 | } |
| 829 | 820 | .block-editor-iframe__html.is-zoomed-out body > .is-root-container:not(.wp-block-post-content) { |
| 830 | 821 | flex: 1; |
| 831 | 822 | display: flex; |
| @@ -860,9 +851,13 @@ | ||
| 860 | 851 | line-height: inherit; |
| 861 | 852 | border: none; |
| 862 | 853 | padding: 0; |
| 863 | 854 | margin: 0; |
| 855 | +} | |
| 856 | + | |
| 857 | +.block-editor-plain-text { | |
| 864 | 858 | width: 100%; |
| 859 | + field-sizing: content; | |
| 865 | 860 | } |
| 866 | 861 | |
| 867 | 862 | .rich-text [data-rich-text-placeholder] { |
| 868 | 863 | pointer-events: none; |
| @@ -869,8 +864,9 @@ | ||
| 869 | 864 | } |
| 870 | 865 | .rich-text [data-rich-text-placeholder]::after { |
| 871 | 866 | content: attr(data-rich-text-placeholder); |
| 872 | 867 | opacity: 0.62; |
| 868 | + text-shadow: none; | |
| 873 | 869 | } |
| 874 | 870 | .rich-text:focus { |
| 875 | 871 | outline: none; |
| 876 | 872 | } |
| @@ -904,13 +900,19 @@ | ||
| 904 | 900 | .rich-text [contenteditable=false]::selection { |
| 905 | 901 | background-color: transparent; |
| 906 | 902 | } |
| 907 | 903 | |
| 904 | +.is-selected .non-breaking-space { | |
| 905 | + outline: 1px solid currentColor; | |
| 906 | + outline-offset: -1px; | |
| 907 | + opacity: 0.8; | |
| 908 | +} | |
| 909 | + | |
| 908 | 910 | .block-editor-warning { |
| 909 | 911 | align-items: center; |
| 910 | 912 | display: flex; |
| 911 | 913 | flex-wrap: wrap; |
| 912 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 914 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 913 | 915 | padding: 1em; |
| 914 | 916 | border: 1px solid #1e1e1e; |
| 915 | 917 | border-radius: 2px; |
| 916 | 918 | background-color: #fff; |
| @@ -916,9 +918,9 @@ | ||
| 916 | 918 | background-color: #fff; |
| 917 | 919 | } |
| 918 | 920 | .block-editor-warning .block-editor-warning__message { |
| 919 | 921 | line-height: 1.4; |
| 920 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 922 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 921 | 923 | font-size: 13px; |
| 922 | 924 | color: #1e1e1e; |
| 923 | 925 | margin: 0; |
| 924 | 926 | } |