| @@ -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-right: 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: left; |
| @@ -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 | /*rtl:ignore*/ |
| @@ -461,11 +454,11 @@ | ||
| 461 | 454 | align-items: center; |
| 462 | 455 | justify-content: center; |
| 463 | 456 | overflow: hidden; |
| 464 | 457 | font-size: 13px; |
| 465 | - 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; | |
| 466 | 459 | color: #000; |
| 467 | - font-weight: normal; | |
| 460 | + font-weight: 400; | |
| 468 | 461 | } |
| 469 | 462 | .is-zoomed-out .block-editor-block-list__zoom-out-separator { |
| 470 | 463 | font-size: calc(13px / var(--wp-block-editor-iframe-zoom-out-scale)); |
| 471 | 464 | } |
| @@ -526,11 +519,8 @@ | ||
| 526 | 519 | } |
| 527 | 520 | .block-editor-block-list__layout .is-dragging iframe { |
| 528 | 521 | pointer-events: none; |
| 529 | 522 | } |
| 530 | -.block-editor-block-list__layout .is-dragging::-moz-selection { | |
| 531 | - background: transparent !important; | |
| 532 | -} | |
| 533 | 523 | .block-editor-block-list__layout .is-dragging::selection { |
| 534 | 524 | background: transparent !important; |
| 535 | 525 | } |
| 536 | 526 | .block-editor-block-list__layout .is-dragging::after { |
| @@ -536,13 +526,8 @@ | ||
| 536 | 526 | .block-editor-block-list__layout .is-dragging::after { |
| 537 | 527 | content: none !important; |
| 538 | 528 | } |
| 539 | 529 | |
| 540 | -.wp-block img:not([draggable]), | |
| 541 | -.wp-block svg:not([draggable]) { | |
| 542 | - pointer-events: none; | |
| 543 | -} | |
| 544 | - | |
| 545 | 530 | .block-editor-block-preview__content-iframe .block-list-appender { |
| 546 | 531 | display: none; |
| 547 | 532 | } |
| 548 | 533 | |
| @@ -576,9 +561,10 @@ | ||
| 576 | 561 | } |
| 577 | 562 | .block-editor-block-variation-picker__variations svg, |
| 578 | 563 | .block-editor-block-variation-picker__skip svg, |
| 579 | 564 | .wp-block-group-placeholder__variations svg { |
| 580 | - fill: #949494 !important; | |
| 565 | + fill: #949494; | |
| 566 | + color: #949494 !important; | |
| 581 | 567 | } |
| 582 | 568 | .block-editor-block-variation-picker__variations .components-button, |
| 583 | 569 | .block-editor-block-variation-picker__skip .components-button, |
| 584 | 570 | .wp-block-group-placeholder__variations .components-button { |
| @@ -591,9 +577,10 @@ | ||
| 591 | 577 | } |
| 592 | 578 | .block-editor-block-variation-picker__variations .components-button:hover svg, |
| 593 | 579 | .block-editor-block-variation-picker__skip .components-button:hover svg, |
| 594 | 580 | .wp-block-group-placeholder__variations .components-button:hover svg { |
| 595 | - fill: var(--wp-admin-theme-color) !important; | |
| 581 | + fill: var(--wp-admin-theme-color); | |
| 582 | + color: var(--wp-admin-theme-color) !important; | |
| 596 | 583 | } |
| 597 | 584 | .block-editor-block-variation-picker__variations > li, |
| 598 | 585 | .block-editor-block-variation-picker__skip > li, |
| 599 | 586 | .wp-block-group-placeholder__variations > li { |
| @@ -611,29 +598,24 @@ | ||
| 611 | 598 | justify-content: center; |
| 612 | 599 | width: 100%; |
| 613 | 600 | height: auto; |
| 614 | 601 | color: #1e1e1e; |
| 615 | - box-shadow: inset 0 0 0 1px #1e1e1e; | |
| 602 | + border-color: currentColor; | |
| 616 | 603 | } |
| 617 | 604 | .is-dark-theme .block-editor-button-block-appender { |
| 618 | 605 | color: rgba(255, 255, 255, 0.65); |
| 619 | - box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65); | |
| 620 | 606 | } |
| 621 | 607 | .block-editor-button-block-appender:hover { |
| 622 | 608 | color: var(--wp-admin-theme-color); |
| 623 | - box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color); | |
| 624 | 609 | } |
| 625 | -.block-editor-button-block-appender:focus { | |
| 626 | - box-shadow: inset 0 0 0 2px var(--wp-admin-theme-color); | |
| 627 | -} | |
| 628 | 610 | .block-editor-button-block-appender:active { |
| 629 | 611 | color: #000; |
| 630 | 612 | } |
| 631 | 613 | |
| 632 | -.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) { | |
| 633 | 615 | pointer-events: none; |
| 634 | 616 | } |
| 635 | -.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 { | |
| 636 | 618 | content: ""; |
| 637 | 619 | position: absolute; |
| 638 | 620 | top: 0; |
| 639 | 621 | right: 0; |
| @@ -641,30 +623,30 @@ | ||
| 641 | 623 | left: 0; |
| 642 | 624 | pointer-events: none; |
| 643 | 625 | border: 1px dashed currentColor; |
| 644 | 626 | } |
| 645 | -.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 { | |
| 646 | 628 | opacity: 0; |
| 647 | 629 | } |
| 648 | -.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 { | |
| 649 | 631 | opacity: 1; |
| 650 | 632 | } |
| 651 | -.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 { | |
| 652 | 634 | border: none; |
| 653 | 635 | } |
| 654 | -.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 { | |
| 655 | - 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; | |
| 656 | 638 | } |
| 657 | -.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 { | |
| 658 | 640 | border: none; |
| 659 | 641 | } |
| 660 | -.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 { | |
| 661 | 643 | background-color: var(--wp-admin-theme-color); |
| 662 | 644 | box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65); |
| 663 | 645 | color: rgba(255, 255, 255, 0.65); |
| 664 | 646 | } |
| 665 | 647 | @media not (prefers-reduced-motion) { |
| 666 | - .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 { | |
| 667 | 649 | transition: background-color 0.2s ease-in-out; |
| 668 | 650 | } |
| 669 | 651 | } |
| 670 | 652 | |
| @@ -686,8 +668,9 @@ | ||
| 686 | 668 | outline: 1px solid transparent; |
| 687 | 669 | } |
| 688 | 670 | .block-editor-default-block-appender .block-editor-default-block-appender__content { |
| 689 | 671 | opacity: 0.62; |
| 672 | + text-shadow: none; | |
| 690 | 673 | margin-block-start: 0; |
| 691 | 674 | margin-block-end: 0; |
| 692 | 675 | } |
| 693 | 676 | .block-editor-default-block-appender .components-drop-zone__content-icon { |
| @@ -780,9 +763,9 @@ | ||
| 780 | 763 | } |
| 781 | 764 | .block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content { |
| 782 | 765 | display: none; |
| 783 | 766 | } |
| 784 | -.block-editor-block-list__block .block-list-appender:only-child { | |
| 767 | +.block-editor-block-list__block .block-list-appender:first-child { | |
| 785 | 768 | position: relative; |
| 786 | 769 | right: auto; |
| 787 | 770 | align-self: center; |
| 788 | 771 | list-style: none; |
| @@ -787,9 +770,9 @@ | ||
| 787 | 770 | align-self: center; |
| 788 | 771 | list-style: none; |
| 789 | 772 | line-height: inherit; |
| 790 | 773 | } |
| 791 | -.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 { | |
| 792 | 775 | display: block; |
| 793 | 776 | } |
| 794 | 777 | |
| 795 | 778 | .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 +801,9 @@ | ||
| 818 | 801 | .block-editor-iframe__html.zoom-out-animation { |
| 819 | 802 | position: fixed; |
| 820 | 803 | left: 0; |
| 821 | 804 | right: 0; |
| 822 | - 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)); | |
| 823 | 806 | bottom: 0; |
| 824 | 807 | overflow-y: var(--wp-block-editor-iframe-zoom-out-overflow-behavior, scroll); |
| 825 | 808 | } |
| 826 | 809 | .block-editor-iframe__html.is-zoomed-out { |
| @@ -826,14 +809,14 @@ | ||
| 826 | 809 | .block-editor-iframe__html.is-zoomed-out { |
| 827 | 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))); |
| 828 | 811 | scale: var(--wp-block-editor-iframe-zoom-out-scale, 1); |
| 829 | 812 | 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)); | |
| 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)); | |
| 833 | 816 | } |
| 834 | 817 | .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)); | |
| 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)); | |
| 836 | 819 | } |
| 837 | 820 | .block-editor-iframe__html.is-zoomed-out body > .is-root-container:not(.wp-block-post-content) { |
| 838 | 821 | flex: 1; |
| 839 | 822 | display: flex; |
| @@ -868,9 +851,13 @@ | ||
| 868 | 851 | line-height: inherit; |
| 869 | 852 | border: none; |
| 870 | 853 | padding: 0; |
| 871 | 854 | margin: 0; |
| 855 | +} | |
| 856 | + | |
| 857 | +.block-editor-plain-text { | |
| 872 | 858 | width: 100%; |
| 859 | + field-sizing: content; | |
| 873 | 860 | } |
| 874 | 861 | |
| 875 | 862 | .rich-text [data-rich-text-placeholder] { |
| 876 | 863 | pointer-events: none; |
| @@ -877,8 +864,9 @@ | ||
| 877 | 864 | } |
| 878 | 865 | .rich-text [data-rich-text-placeholder]::after { |
| 879 | 866 | content: attr(data-rich-text-placeholder); |
| 880 | 867 | opacity: 0.62; |
| 868 | + text-shadow: none; | |
| 881 | 869 | } |
| 882 | 870 | .rich-text:focus { |
| 883 | 871 | outline: none; |
| 884 | 872 | } |
| @@ -908,14 +896,16 @@ | ||
| 908 | 896 | color: currentColor; |
| 909 | 897 | padding: 0 2px; |
| 910 | 898 | } |
| 911 | 899 | |
| 912 | -.rich-text [contenteditable=false]::-moz-selection { | |
| 900 | +.rich-text [contenteditable=false]::selection { | |
| 913 | 901 | background-color: transparent; |
| 914 | 902 | } |
| 915 | 903 | |
| 916 | -.rich-text [contenteditable=false]::selection { | |
| 917 | - background-color: transparent; | |
| 904 | +.is-selected .non-breaking-space { | |
| 905 | + outline: 1px solid currentColor; | |
| 906 | + outline-offset: -1px; | |
| 907 | + opacity: 0.8; | |
| 918 | 908 | } |
| 919 | 909 | |
| 920 | 910 | .block-editor-warning { |
| 921 | 911 | align-items: center; |
| @@ -920,9 +910,9 @@ | ||
| 920 | 910 | .block-editor-warning { |
| 921 | 911 | align-items: center; |
| 922 | 912 | display: flex; |
| 923 | 913 | flex-wrap: wrap; |
| 924 | - 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; | |
| 925 | 915 | padding: 1em; |
| 926 | 916 | border: 1px solid #1e1e1e; |
| 927 | 917 | border-radius: 2px; |
| 928 | 918 | background-color: #fff; |
| @@ -928,9 +918,9 @@ | ||
| 928 | 918 | background-color: #fff; |
| 929 | 919 | } |
| 930 | 920 | .block-editor-warning .block-editor-warning__message { |
| 931 | 921 | line-height: 1.4; |
| 932 | - 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; | |
| 933 | 923 | font-size: 13px; |
| 934 | 924 | color: #1e1e1e; |
| 935 | 925 | margin: 0; |
| 936 | 926 | } |