| @@ -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; |
| @@ -247,11 +252,8 @@ | ||
| 247 | 252 | .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui { |
| 248 | 253 | margin: 0 0 12px 0; |
| 249 | 254 | width: 100%; |
| 250 | 255 | } |
| 251 | -.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content { | |
| 252 | - font-size: 13px; | |
| 253 | -} | |
| 254 | 256 | .block-editor-block-list__layout .block-editor-block-list__block.has-warning { |
| 255 | 257 | min-height: 48px; |
| 256 | 258 | } |
| 257 | 259 | .block-editor-block-list__layout .block-editor-block-list__block.has-warning > * { |
| @@ -364,9 +366,9 @@ | ||
| 364 | 366 | .wp-block[data-align=left] > *, |
| 365 | 367 | .wp-block[data-align=right] > *, |
| 366 | 368 | .wp-block.alignleft, |
| 367 | 369 | .wp-block.alignright { |
| 368 | - z-index: 21; | |
| 370 | + z-index: 9; | |
| 369 | 371 | } |
| 370 | 372 | |
| 371 | 373 | .wp-site-blocks > [data-align=left] { |
| 372 | 374 | float: left; |
| @@ -407,16 +409,8 @@ | ||
| 407 | 409 | animation-fill-mode: forwards; |
| 408 | 410 | } |
| 409 | 411 | } |
| 410 | 412 | |
| 411 | -.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender { | |
| 412 | - display: none; | |
| 413 | -} | |
| 414 | -.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle { | |
| 415 | - opacity: 0; | |
| 416 | - transform: scale(0); | |
| 417 | -} | |
| 418 | - | |
| 419 | 413 | .block-editor-block-list__block .block-editor-block-list__block-html-textarea { |
| 420 | 414 | display: block; |
| 421 | 415 | margin: 0; |
| 422 | 416 | padding: 12px; |
| @@ -426,9 +420,10 @@ | ||
| 426 | 420 | border-radius: 2px; |
| 427 | 421 | box-sizing: border-box; |
| 428 | 422 | box-shadow: inset 0 0 0 1px #1e1e1e; |
| 429 | 423 | resize: none; |
| 430 | - overflow: hidden; | |
| 424 | + field-sizing: content; | |
| 425 | + overflow: auto; | |
| 431 | 426 | font-family: Menlo, Consolas, monaco, monospace; |
| 432 | 427 | font-size: 15px; |
| 433 | 428 | line-height: 1.5; |
| 434 | 429 | /*rtl:ignore*/ |
| @@ -459,11 +454,11 @@ | ||
| 459 | 454 | align-items: center; |
| 460 | 455 | justify-content: center; |
| 461 | 456 | overflow: hidden; |
| 462 | 457 | font-size: 13px; |
| 463 | - 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; | |
| 464 | 459 | color: #000; |
| 465 | - font-weight: normal; | |
| 460 | + font-weight: 400; | |
| 466 | 461 | } |
| 467 | 462 | .is-zoomed-out .block-editor-block-list__zoom-out-separator { |
| 468 | 463 | font-size: calc(13px / var(--wp-block-editor-iframe-zoom-out-scale)); |
| 469 | 464 | } |
| @@ -531,13 +526,8 @@ | ||
| 531 | 526 | .block-editor-block-list__layout .is-dragging::after { |
| 532 | 527 | content: none !important; |
| 533 | 528 | } |
| 534 | 529 | |
| 535 | -.wp-block img:not([draggable]), | |
| 536 | -.wp-block svg:not([draggable]) { | |
| 537 | - pointer-events: none; | |
| 538 | -} | |
| 539 | - | |
| 540 | 530 | .block-editor-block-preview__content-iframe .block-list-appender { |
| 541 | 531 | display: none; |
| 542 | 532 | } |
| 543 | 533 | |
| @@ -571,9 +561,10 @@ | ||
| 571 | 561 | } |
| 572 | 562 | .block-editor-block-variation-picker__variations svg, |
| 573 | 563 | .block-editor-block-variation-picker__skip svg, |
| 574 | 564 | .wp-block-group-placeholder__variations svg { |
| 575 | - fill: #949494 !important; | |
| 565 | + fill: #949494; | |
| 566 | + color: #949494 !important; | |
| 576 | 567 | } |
| 577 | 568 | .block-editor-block-variation-picker__variations .components-button, |
| 578 | 569 | .block-editor-block-variation-picker__skip .components-button, |
| 579 | 570 | .wp-block-group-placeholder__variations .components-button { |
| @@ -586,9 +577,10 @@ | ||
| 586 | 577 | } |
| 587 | 578 | .block-editor-block-variation-picker__variations .components-button:hover svg, |
| 588 | 579 | .block-editor-block-variation-picker__skip .components-button:hover svg, |
| 589 | 580 | .wp-block-group-placeholder__variations .components-button:hover svg { |
| 590 | - fill: var(--wp-admin-theme-color) !important; | |
| 581 | + fill: var(--wp-admin-theme-color); | |
| 582 | + color: var(--wp-admin-theme-color) !important; | |
| 591 | 583 | } |
| 592 | 584 | .block-editor-block-variation-picker__variations > li, |
| 593 | 585 | .block-editor-block-variation-picker__skip > li, |
| 594 | 586 | .wp-block-group-placeholder__variations > li { |
| @@ -606,29 +598,24 @@ | ||
| 606 | 598 | justify-content: center; |
| 607 | 599 | width: 100%; |
| 608 | 600 | height: auto; |
| 609 | 601 | color: #1e1e1e; |
| 610 | - box-shadow: inset 0 0 0 1px #1e1e1e; | |
| 602 | + border-color: currentColor; | |
| 611 | 603 | } |
| 612 | 604 | .is-dark-theme .block-editor-button-block-appender { |
| 613 | 605 | color: rgba(255, 255, 255, 0.65); |
| 614 | - box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65); | |
| 615 | 606 | } |
| 616 | 607 | .block-editor-button-block-appender:hover { |
| 617 | 608 | color: var(--wp-admin-theme-color); |
| 618 | - box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color); | |
| 619 | 609 | } |
| 620 | -.block-editor-button-block-appender:focus { | |
| 621 | - box-shadow: inset 0 0 0 2px var(--wp-admin-theme-color); | |
| 622 | -} | |
| 623 | 610 | .block-editor-button-block-appender:active { |
| 624 | 611 | color: #000; |
| 625 | 612 | } |
| 626 | 613 | |
| 627 | -.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) { | |
| 628 | 615 | pointer-events: none; |
| 629 | 616 | } |
| 630 | -.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 { | |
| 631 | 618 | content: ""; |
| 632 | 619 | position: absolute; |
| 633 | 620 | top: 0; |
| 634 | 621 | right: 0; |
| @@ -636,30 +623,30 @@ | ||
| 636 | 623 | left: 0; |
| 637 | 624 | pointer-events: none; |
| 638 | 625 | border: 1px dashed currentColor; |
| 639 | 626 | } |
| 640 | -.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 { | |
| 641 | 628 | opacity: 0; |
| 642 | 629 | } |
| 643 | -.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 { | |
| 644 | 631 | opacity: 1; |
| 645 | 632 | } |
| 646 | -.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 { | |
| 647 | 634 | border: none; |
| 648 | 635 | } |
| 649 | -.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 { | |
| 650 | - 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; | |
| 651 | 638 | } |
| 652 | -.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 { | |
| 653 | 640 | border: none; |
| 654 | 641 | } |
| 655 | -.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 { | |
| 656 | 643 | background-color: var(--wp-admin-theme-color); |
| 657 | 644 | box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65); |
| 658 | 645 | color: rgba(255, 255, 255, 0.65); |
| 659 | 646 | } |
| 660 | 647 | @media not (prefers-reduced-motion) { |
| 661 | - .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 { | |
| 662 | 649 | transition: background-color 0.2s ease-in-out; |
| 663 | 650 | } |
| 664 | 651 | } |
| 665 | 652 | |
| @@ -681,8 +668,9 @@ | ||
| 681 | 668 | outline: 1px solid transparent; |
| 682 | 669 | } |
| 683 | 670 | .block-editor-default-block-appender .block-editor-default-block-appender__content { |
| 684 | 671 | opacity: 0.62; |
| 672 | + text-shadow: none; | |
| 685 | 673 | margin-block-start: 0; |
| 686 | 674 | margin-block-end: 0; |
| 687 | 675 | } |
| 688 | 676 | .block-editor-default-block-appender .components-drop-zone__content-icon { |
| @@ -698,8 +686,16 @@ | ||
| 698 | 686 | .block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover { |
| 699 | 687 | color: #fff; |
| 700 | 688 | background: var(--wp-admin-theme-color); |
| 701 | 689 | } |
| 690 | +@media not (prefers-reduced-motion) { | |
| 691 | + .block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon svg { | |
| 692 | + transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s; | |
| 693 | + } | |
| 694 | +} | |
| 695 | +.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg { | |
| 696 | + transform: rotate(45deg); | |
| 697 | +} | |
| 702 | 698 | |
| 703 | 699 | .block-editor-default-block-appender .block-editor-inserter { |
| 704 | 700 | position: absolute; |
| 705 | 701 | top: 0; |
| @@ -746,8 +742,18 @@ | ||
| 746 | 742 | .block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover { |
| 747 | 743 | color: #fff; |
| 748 | 744 | background: var(--wp-admin-theme-color); |
| 749 | 745 | } |
| 746 | +@media not (prefers-reduced-motion) { | |
| 747 | + .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon svg, | |
| 748 | + .block-editor-block-list__block .block-list-appender .block-list-appender__toggle svg { | |
| 749 | + transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s; | |
| 750 | + } | |
| 751 | +} | |
| 752 | +.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg, | |
| 753 | +.block-editor-block-list__block .block-list-appender .block-list-appender__toggle.is-pressed svg { | |
| 754 | + transform: rotate(45deg); | |
| 755 | +} | |
| 750 | 756 | .block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon, |
| 751 | 757 | .block-editor-block-list__block .block-list-appender .block-list-appender__toggle { |
| 752 | 758 | flex-direction: row; |
| 753 | 759 | box-shadow: none; |
| @@ -757,9 +763,9 @@ | ||
| 757 | 763 | } |
| 758 | 764 | .block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content { |
| 759 | 765 | display: none; |
| 760 | 766 | } |
| 761 | -.block-editor-block-list__block .block-list-appender:only-child { | |
| 767 | +.block-editor-block-list__block .block-list-appender:first-child { | |
| 762 | 768 | position: relative; |
| 763 | 769 | right: auto; |
| 764 | 770 | align-self: center; |
| 765 | 771 | list-style: none; |
| @@ -764,9 +770,9 @@ | ||
| 764 | 770 | align-self: center; |
| 765 | 771 | list-style: none; |
| 766 | 772 | line-height: inherit; |
| 767 | 773 | } |
| 768 | -.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 { | |
| 769 | 775 | display: block; |
| 770 | 776 | } |
| 771 | 777 | |
| 772 | 778 | .block-editor-block-list__block.is-selected .block-editor-block-list__layout > .block-list-appender .block-editor-inserter__toggle.components-button.has-icon, |
| @@ -795,9 +801,9 @@ | ||
| 795 | 801 | .block-editor-iframe__html.zoom-out-animation { |
| 796 | 802 | position: fixed; |
| 797 | 803 | left: 0; |
| 798 | 804 | right: 0; |
| 799 | - 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)); | |
| 800 | 806 | bottom: 0; |
| 801 | 807 | overflow-y: var(--wp-block-editor-iframe-zoom-out-overflow-behavior, scroll); |
| 802 | 808 | } |
| 803 | 809 | .block-editor-iframe__html.is-zoomed-out { |
| @@ -803,14 +809,14 @@ | ||
| 803 | 809 | .block-editor-iframe__html.is-zoomed-out { |
| 804 | 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))); |
| 805 | 811 | scale: var(--wp-block-editor-iframe-zoom-out-scale, 1); |
| 806 | 812 | background-color: var(--wp-editor-canvas-background); |
| 807 | - 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)); | |
| 808 | - padding-top: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); | |
| 809 | - 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)); | |
| 810 | 816 | } |
| 811 | 817 | .block-editor-iframe__html.is-zoomed-out body { |
| 812 | - 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)); | |
| 813 | 819 | } |
| 814 | 820 | .block-editor-iframe__html.is-zoomed-out body > .is-root-container:not(.wp-block-post-content) { |
| 815 | 821 | flex: 1; |
| 816 | 822 | display: flex; |
| @@ -845,9 +851,13 @@ | ||
| 845 | 851 | line-height: inherit; |
| 846 | 852 | border: none; |
| 847 | 853 | padding: 0; |
| 848 | 854 | margin: 0; |
| 855 | +} | |
| 856 | + | |
| 857 | +.block-editor-plain-text { | |
| 849 | 858 | width: 100%; |
| 859 | + field-sizing: content; | |
| 850 | 860 | } |
| 851 | 861 | |
| 852 | 862 | .rich-text [data-rich-text-placeholder] { |
| 853 | 863 | pointer-events: none; |
| @@ -854,8 +864,9 @@ | ||
| 854 | 864 | } |
| 855 | 865 | .rich-text [data-rich-text-placeholder]::after { |
| 856 | 866 | content: attr(data-rich-text-placeholder); |
| 857 | 867 | opacity: 0.62; |
| 868 | + text-shadow: none; | |
| 858 | 869 | } |
| 859 | 870 | .rich-text:focus { |
| 860 | 871 | outline: none; |
| 861 | 872 | } |
| @@ -889,13 +900,19 @@ | ||
| 889 | 900 | .rich-text [contenteditable=false]::selection { |
| 890 | 901 | background-color: transparent; |
| 891 | 902 | } |
| 892 | 903 | |
| 904 | +.is-selected .non-breaking-space { | |
| 905 | + outline: 1px solid currentColor; | |
| 906 | + outline-offset: -1px; | |
| 907 | + opacity: 0.8; | |
| 908 | +} | |
| 909 | + | |
| 893 | 910 | .block-editor-warning { |
| 894 | 911 | align-items: center; |
| 895 | 912 | display: flex; |
| 896 | 913 | flex-wrap: wrap; |
| 897 | - 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; | |
| 898 | 915 | padding: 1em; |
| 899 | 916 | border: 1px solid #1e1e1e; |
| 900 | 917 | border-radius: 2px; |
| 901 | 918 | background-color: #fff; |
| @@ -901,9 +918,9 @@ | ||
| 901 | 918 | background-color: #fff; |
| 902 | 919 | } |
| 903 | 920 | .block-editor-warning .block-editor-warning__message { |
| 904 | 921 | line-height: 1.4; |
| 905 | - 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; | |
| 906 | 923 | font-size: 13px; |
| 907 | 924 | color: #1e1e1e; |
| 908 | 925 | margin: 0; |
| 909 | 926 | } |