| @@ -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; |
| @@ -152,11 +153,8 @@ | ||
| 152 | 153 | /* stylelint-enable */ |
| 153 | 154 | .block-editor-block-list__layout { |
| 154 | 155 | position: relative; |
| 155 | 156 | } |
| 156 | -.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 { | |
| 157 | - background: transparent; | |
| 158 | -} | |
| 159 | 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 { |
| 160 | 158 | background: transparent; |
| 161 | 159 | } |
| 162 | 160 | .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after { |
| @@ -184,13 +182,17 @@ | ||
| 184 | 182 | outline-color: transparent; |
| 185 | 183 | } |
| 186 | 184 | .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted, |
| 187 | 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 | 188 | .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus { |
| 189 | 189 | outline: none; |
| 190 | 190 | } |
| 191 | 191 | .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, |
| 192 | 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, | |
| 193 | 195 | .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable=true]):focus::after { |
| 194 | 196 | content: ""; |
| 195 | 197 | position: absolute; |
| 196 | 198 | pointer-events: none; |
| @@ -224,9 +226,8 @@ | ||
| 224 | 226 | margin-left: 0 !important; |
| 225 | 227 | } |
| 226 | 228 | .block-editor-block-list__layout [class^=components-] { |
| 227 | 229 | -webkit-user-select: text; |
| 228 | - -moz-user-select: text; | |
| 229 | 230 | user-select: text; |
| 230 | 231 | } |
| 231 | 232 | |
| 232 | 233 | .block-editor-block-list__layout .block-editor-block-list__block { |
| @@ -257,9 +258,8 @@ | ||
| 257 | 258 | } |
| 258 | 259 | .block-editor-block-list__layout .block-editor-block-list__block.has-warning > * { |
| 259 | 260 | pointer-events: none; |
| 260 | 261 | -webkit-user-select: none; |
| 261 | - -moz-user-select: none; | |
| 262 | 262 | user-select: none; |
| 263 | 263 | } |
| 264 | 264 | .block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning { |
| 265 | 265 | pointer-events: all; |
| @@ -366,9 +366,9 @@ | ||
| 366 | 366 | .wp-block[data-align=left] > *, |
| 367 | 367 | .wp-block[data-align=right] > *, |
| 368 | 368 | .wp-block.alignleft, |
| 369 | 369 | .wp-block.alignright { |
| 370 | - z-index: 21; | |
| 370 | + z-index: 9; | |
| 371 | 371 | } |
| 372 | 372 | |
| 373 | 373 | .wp-site-blocks > [data-align=left] { |
| 374 | 374 | float: right; |
| @@ -409,16 +409,8 @@ | ||
| 409 | 409 | animation-fill-mode: forwards; |
| 410 | 410 | } |
| 411 | 411 | } |
| 412 | 412 | |
| 413 | -.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender { | |
| 414 | - display: none; | |
| 415 | -} | |
| 416 | -.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle { | |
| 417 | - opacity: 0; | |
| 418 | - transform: scale(0); | |
| 419 | -} | |
| 420 | - | |
| 421 | 413 | .block-editor-block-list__block .block-editor-block-list__block-html-textarea { |
| 422 | 414 | display: block; |
| 423 | 415 | margin: 0; |
| 424 | 416 | padding: 12px; |
| @@ -428,9 +420,10 @@ | ||
| 428 | 420 | border-radius: 2px; |
| 429 | 421 | box-sizing: border-box; |
| 430 | 422 | box-shadow: inset 0 0 0 1px #1e1e1e; |
| 431 | 423 | resize: none; |
| 432 | - overflow: hidden; | |
| 424 | + field-sizing: content; | |
| 425 | + overflow: auto; | |
| 433 | 426 | font-family: Menlo, Consolas, monaco, monospace; |
| 434 | 427 | font-size: 15px; |
| 435 | 428 | line-height: 1.5; |
| 436 | 429 | direction: ltr; |
| @@ -460,11 +453,11 @@ | ||
| 460 | 453 | align-items: center; |
| 461 | 454 | justify-content: center; |
| 462 | 455 | overflow: hidden; |
| 463 | 456 | font-size: 13px; |
| 464 | - 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; | |
| 465 | 458 | color: #000; |
| 466 | - font-weight: normal; | |
| 459 | + font-weight: 400; | |
| 467 | 460 | } |
| 468 | 461 | .is-zoomed-out .block-editor-block-list__zoom-out-separator { |
| 469 | 462 | font-size: calc(13px / var(--wp-block-editor-iframe-zoom-out-scale)); |
| 470 | 463 | } |
| @@ -525,11 +518,8 @@ | ||
| 525 | 518 | } |
| 526 | 519 | .block-editor-block-list__layout .is-dragging iframe { |
| 527 | 520 | pointer-events: none; |
| 528 | 521 | } |
| 529 | -.block-editor-block-list__layout .is-dragging::-moz-selection { | |
| 530 | - background: transparent !important; | |
| 531 | -} | |
| 532 | 522 | .block-editor-block-list__layout .is-dragging::selection { |
| 533 | 523 | background: transparent !important; |
| 534 | 524 | } |
| 535 | 525 | .block-editor-block-list__layout .is-dragging::after { |
| @@ -535,13 +525,8 @@ | ||
| 535 | 525 | .block-editor-block-list__layout .is-dragging::after { |
| 536 | 526 | content: none !important; |
| 537 | 527 | } |
| 538 | 528 | |
| 539 | -.wp-block img:not([draggable]), | |
| 540 | -.wp-block svg:not([draggable]) { | |
| 541 | - pointer-events: none; | |
| 542 | -} | |
| 543 | - | |
| 544 | 529 | .block-editor-block-preview__content-iframe .block-list-appender { |
| 545 | 530 | display: none; |
| 546 | 531 | } |
| 547 | 532 | |
| @@ -575,9 +560,10 @@ | ||
| 575 | 560 | } |
| 576 | 561 | .block-editor-block-variation-picker__variations svg, |
| 577 | 562 | .block-editor-block-variation-picker__skip svg, |
| 578 | 563 | .wp-block-group-placeholder__variations svg { |
| 579 | - fill: #949494 !important; | |
| 564 | + fill: #949494; | |
| 565 | + color: #949494 !important; | |
| 580 | 566 | } |
| 581 | 567 | .block-editor-block-variation-picker__variations .components-button, |
| 582 | 568 | .block-editor-block-variation-picker__skip .components-button, |
| 583 | 569 | .wp-block-group-placeholder__variations .components-button { |
| @@ -590,9 +576,10 @@ | ||
| 590 | 576 | } |
| 591 | 577 | .block-editor-block-variation-picker__variations .components-button:hover svg, |
| 592 | 578 | .block-editor-block-variation-picker__skip .components-button:hover svg, |
| 593 | 579 | .wp-block-group-placeholder__variations .components-button:hover svg { |
| 594 | - fill: var(--wp-admin-theme-color) !important; | |
| 580 | + fill: var(--wp-admin-theme-color); | |
| 581 | + color: var(--wp-admin-theme-color) !important; | |
| 595 | 582 | } |
| 596 | 583 | .block-editor-block-variation-picker__variations > li, |
| 597 | 584 | .block-editor-block-variation-picker__skip > li, |
| 598 | 585 | .wp-block-group-placeholder__variations > li { |
| @@ -610,29 +597,24 @@ | ||
| 610 | 597 | justify-content: center; |
| 611 | 598 | width: 100%; |
| 612 | 599 | height: auto; |
| 613 | 600 | color: #1e1e1e; |
| 614 | - box-shadow: inset 0 0 0 1px #1e1e1e; | |
| 601 | + border-color: currentColor; | |
| 615 | 602 | } |
| 616 | 603 | .is-dark-theme .block-editor-button-block-appender { |
| 617 | 604 | color: rgba(255, 255, 255, 0.65); |
| 618 | - box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65); | |
| 619 | 605 | } |
| 620 | 606 | .block-editor-button-block-appender:hover { |
| 621 | 607 | color: var(--wp-admin-theme-color); |
| 622 | - box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color); | |
| 623 | 608 | } |
| 624 | -.block-editor-button-block-appender:focus { | |
| 625 | - box-shadow: inset 0 0 0 2px var(--wp-admin-theme-color); | |
| 626 | -} | |
| 627 | 609 | .block-editor-button-block-appender:active { |
| 628 | 610 | color: #000; |
| 629 | 611 | } |
| 630 | 612 | |
| 631 | -.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) { | |
| 632 | 614 | pointer-events: none; |
| 633 | 615 | } |
| 634 | -.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 { | |
| 635 | 617 | content: ""; |
| 636 | 618 | position: absolute; |
| 637 | 619 | top: 0; |
| 638 | 620 | left: 0; |
| @@ -640,30 +622,30 @@ | ||
| 640 | 622 | right: 0; |
| 641 | 623 | pointer-events: none; |
| 642 | 624 | border: 1px dashed currentColor; |
| 643 | 625 | } |
| 644 | -.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 { | |
| 645 | 627 | opacity: 0; |
| 646 | 628 | } |
| 647 | -.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 { | |
| 648 | 630 | opacity: 1; |
| 649 | 631 | } |
| 650 | -.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 { | |
| 651 | 633 | border: none; |
| 652 | 634 | } |
| 653 | -.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 { | |
| 654 | - 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; | |
| 655 | 637 | } |
| 656 | -.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 { | |
| 657 | 639 | border: none; |
| 658 | 640 | } |
| 659 | -.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 { | |
| 660 | 642 | background-color: var(--wp-admin-theme-color); |
| 661 | 643 | box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65); |
| 662 | 644 | color: rgba(255, 255, 255, 0.65); |
| 663 | 645 | } |
| 664 | 646 | @media not (prefers-reduced-motion) { |
| 665 | - .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 { | |
| 666 | 648 | transition: background-color 0.2s ease-in-out; |
| 667 | 649 | } |
| 668 | 650 | } |
| 669 | 651 | |
| @@ -780,9 +762,9 @@ | ||
| 780 | 762 | } |
| 781 | 763 | .block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content { |
| 782 | 764 | display: none; |
| 783 | 765 | } |
| 784 | -.block-editor-block-list__block .block-list-appender:only-child { | |
| 766 | +.block-editor-block-list__block .block-list-appender:first-child { | |
| 785 | 767 | position: relative; |
| 786 | 768 | left: auto; |
| 787 | 769 | align-self: center; |
| 788 | 770 | list-style: none; |
| @@ -787,9 +769,9 @@ | ||
| 787 | 769 | align-self: center; |
| 788 | 770 | list-style: none; |
| 789 | 771 | line-height: inherit; |
| 790 | 772 | } |
| 791 | -.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 { | |
| 792 | 774 | display: block; |
| 793 | 775 | } |
| 794 | 776 | |
| 795 | 777 | .block-editor-block-list__block.is-selected .block-editor-block-list__layout > .block-list-appender .block-editor-inserter__toggle.components-button.has-icon, |
| @@ -818,9 +800,9 @@ | ||
| 818 | 800 | .block-editor-iframe__html.zoom-out-animation { |
| 819 | 801 | position: fixed; |
| 820 | 802 | right: 0; |
| 821 | 803 | left: 0; |
| 822 | - 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)); | |
| 823 | 805 | bottom: 0; |
| 824 | 806 | overflow-y: var(--wp-block-editor-iframe-zoom-out-overflow-behavior, scroll); |
| 825 | 807 | } |
| 826 | 808 | .block-editor-iframe__html.is-zoomed-out { |
| @@ -826,14 +808,14 @@ | ||
| 826 | 808 | .block-editor-iframe__html.is-zoomed-out { |
| 827 | 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)))); |
| 828 | 810 | scale: var(--wp-block-editor-iframe-zoom-out-scale, 1); |
| 829 | 811 | background-color: var(--wp-editor-canvas-background); |
| 830 | - 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)); | |
| 831 | - padding-top: calc(var(--wp-block-editor-iframe-zoom-out-frame-size, 0) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); | |
| 832 | - 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)); | |
| 833 | 815 | } |
| 834 | 816 | .block-editor-iframe__html.is-zoomed-out body { |
| 835 | - 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)); | |
| 836 | 818 | } |
| 837 | 819 | .block-editor-iframe__html.is-zoomed-out body > .is-root-container:not(.wp-block-post-content) { |
| 838 | 820 | flex: 1; |
| 839 | 821 | display: flex; |
| @@ -868,9 +850,13 @@ | ||
| 868 | 850 | line-height: inherit; |
| 869 | 851 | border: none; |
| 870 | 852 | padding: 0; |
| 871 | 853 | margin: 0; |
| 854 | +} | |
| 855 | + | |
| 856 | +.block-editor-plain-text { | |
| 872 | 857 | width: 100%; |
| 858 | + field-sizing: content; | |
| 873 | 859 | } |
| 874 | 860 | |
| 875 | 861 | .rich-text [data-rich-text-placeholder] { |
| 876 | 862 | pointer-events: none; |
| @@ -909,14 +895,16 @@ | ||
| 909 | 895 | color: currentColor; |
| 910 | 896 | padding: 0 2px; |
| 911 | 897 | } |
| 912 | 898 | |
| 913 | -.rich-text [contenteditable=false]::-moz-selection { | |
| 899 | +.rich-text [contenteditable=false]::selection { | |
| 914 | 900 | background-color: transparent; |
| 915 | 901 | } |
| 916 | 902 | |
| 917 | -.rich-text [contenteditable=false]::selection { | |
| 918 | - background-color: transparent; | |
| 903 | +.is-selected .non-breaking-space { | |
| 904 | + outline: 1px solid currentColor; | |
| 905 | + outline-offset: -1px; | |
| 906 | + opacity: 0.8; | |
| 919 | 907 | } |
| 920 | 908 | |
| 921 | 909 | .block-editor-warning { |
| 922 | 910 | align-items: center; |
| @@ -921,9 +909,9 @@ | ||
| 921 | 909 | .block-editor-warning { |
| 922 | 910 | align-items: center; |
| 923 | 911 | display: flex; |
| 924 | 912 | flex-wrap: wrap; |
| 925 | - 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; | |
| 926 | 914 | padding: 1em; |
| 927 | 915 | border: 1px solid #1e1e1e; |
| 928 | 916 | border-radius: 2px; |
| 929 | 917 | background-color: #fff; |
| @@ -929,9 +917,9 @@ | ||
| 929 | 917 | background-color: #fff; |
| 930 | 918 | } |
| 931 | 919 | .block-editor-warning .block-editor-warning__message { |
| 932 | 920 | line-height: 1.4; |
| 933 | - 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; | |
| 934 | 922 | font-size: 13px; |
| 935 | 923 | color: #1e1e1e; |
| 936 | 924 | margin: 0; |
| 937 | 925 | } |