| @@ -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 |
| @@ -157,11 +163,8 @@ | ||
| 157 | 163 | } |
| 158 | 164 | .block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:hover { |
| 159 | 165 | color: var(--wp-admin-theme-color); |
| 160 | 166 | } |
| 161 | -.block-editor-global-styles-background-panel__image-tools-panel-item button.components-button:focus { | |
| 162 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 163 | -} | |
| 164 | 167 | .block-editor-global-styles-background-panel__image-tools-panel-item .block-editor-global-styles-background-panel__loading { |
| 165 | 168 | height: 100%; |
| 166 | 169 | position: absolute; |
| 167 | 170 | z-index: 1; |
| @@ -193,12 +196,23 @@ | ||
| 193 | 196 | .block-editor-global-styles-background-panel__reset { |
| 194 | 197 | transition: opacity 0.1s ease-in-out; |
| 195 | 198 | } |
| 196 | 199 | } |
| 200 | +.block-editor-global-styles-background-panel__reset.has-local-override-from-global-styles__reset { | |
| 201 | + position: absolute; | |
| 202 | + display: inline-flex; | |
| 203 | + align-items: center; | |
| 204 | + justify-content: center; | |
| 205 | + top: 50%; | |
| 206 | + transform: translateY(-50%); | |
| 207 | + margin-block: 0; | |
| 208 | + margin-inline: 0 8px; | |
| 209 | + opacity: 1; | |
| 210 | +} | |
| 197 | 211 | .block-editor-global-styles-background-panel__reset.block-editor-global-styles-background-panel__reset { |
| 198 | 212 | border-radius: 2px; |
| 199 | 213 | } |
| 200 | -.block-editor-global-styles-background-panel__dropdown-toggle:hover + .block-editor-global-styles-background-panel__reset, .block-editor-global-styles-background-panel__reset:focus, .block-editor-global-styles-background-panel__reset:hover { | |
| 214 | +.block-editor-global-styles-background-panel__dropdown-toggle:hover + .block-editor-global-styles-background-panel__reset, .block-editor-global-styles-background-panel__reset:focus, .block-editor-global-styles-background-panel__reset:focus-within, .block-editor-global-styles-background-panel__reset:hover { | |
| 201 | 215 | opacity: 1; |
| 202 | 216 | } |
| 203 | 217 | @media (hover: none) { |
| 204 | 218 | .block-editor-global-styles-background-panel__reset { |
| @@ -243,11 +257,11 @@ | ||
| 243 | 257 | z-index: 159890; |
| 244 | 258 | } |
| 245 | 259 | |
| 246 | 260 | .block-editor-global-styles-background-panel__media-replace-popover .components-popover__content { |
| 247 | - width: 226px; | |
| 261 | + width: auto; | |
| 248 | 262 | } |
| 249 | -.block-editor-global-styles-background-panel__media-replace-popover .components-button { | |
| 263 | +.block-editor-global-styles-background-panel__media-replace-popover .components-menu-item__button.components-button { | |
| 250 | 264 | padding: 0 8px; |
| 251 | 265 | } |
| 252 | 266 | .block-editor-global-styles-background-panel__media-replace-popover .components-button .components-menu-items__item-icon.has-icon-right { |
| 253 | 267 | margin-right: 16px; |
| @@ -281,13 +295,8 @@ | ||
| 281 | 295 | } |
| 282 | 296 | .block-editor-block-icon.has-colors svg { |
| 283 | 297 | fill: currentColor; |
| 284 | 298 | } |
| 285 | -@media (forced-colors: active) { | |
| 286 | - .block-editor-block-icon.has-colors svg { | |
| 287 | - fill: CanvasText; | |
| 288 | - } | |
| 289 | -} | |
| 290 | 299 | .block-editor-block-icon svg { |
| 291 | 300 | min-width: 20px; |
| 292 | 301 | min-height: 20px; |
| 293 | 302 | max-width: 24px; |
| @@ -330,8 +339,21 @@ | ||
| 330 | 339 | padding: 32px 16px; |
| 331 | 340 | text-align: center; |
| 332 | 341 | } |
| 333 | 342 | |
| 343 | +.block-editor-block-inspector__state-badges { | |
| 344 | + display: flex; | |
| 345 | + align-items: center; | |
| 346 | + flex-wrap: wrap; | |
| 347 | + gap: 8px; | |
| 348 | + padding: 8px 16px; | |
| 349 | + margin-top: -16px; | |
| 350 | +} | |
| 351 | + | |
| 352 | +.block-editor-block-inspector__state-badges-text { | |
| 353 | + white-space: nowrap; | |
| 354 | +} | |
| 355 | + | |
| 334 | 356 | .block-editor-block-inspector__no-block-tools { |
| 335 | 357 | border-top: 1px solid #ddd; |
| 336 | 358 | } |
| 337 | 359 | |
| @@ -458,8 +480,14 @@ | ||
| 458 | 480 | } |
| 459 | 481 | .show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent { |
| 460 | 482 | margin-right: 0; |
| 461 | 483 | } |
| 484 | +.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent:has(.block-editor-block-parent-selector__inserter) { | |
| 485 | + margin-right: calc(48px + 24px + 12px + 8px + 2 * 1px); | |
| 486 | +} | |
| 487 | +.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar.has-parent:has(.block-editor-block-parent-selector__inserter) { | |
| 488 | + margin-right: 0; | |
| 489 | +} | |
| 462 | 490 | .components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar { |
| 463 | 491 | overflow: visible; |
| 464 | 492 | } |
| 465 | 493 | .components-popover.block-editor-block-list__block-popover .block-editor-block-toolbar .components-toolbar-group, |
| @@ -480,8 +508,67 @@ | ||
| 480 | 508 | .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector { |
| 481 | 509 | position: absolute; |
| 482 | 510 | right: calc(-48px - 8px - 1px); |
| 483 | 511 | } |
| 512 | +.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:has(.block-editor-block-parent-selector__inserter) { | |
| 513 | + right: calc(-48px - 24px - 12px - 8px - 3 * 1px); | |
| 514 | + border: 1px solid #1e1e1e; | |
| 515 | + border-radius: 2px; | |
| 516 | + background-color: #fff; | |
| 517 | +} | |
| 518 | +.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:has(.block-editor-block-parent-selector__inserter) > .components-toolbar-group:last-child { | |
| 519 | + border-left: none; | |
| 520 | +} | |
| 521 | +.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector:has(.block-editor-block-parent-selector__inserter) .block-editor-block-parent-selector__button { | |
| 522 | + border: none; | |
| 523 | + background: none; | |
| 524 | +} | |
| 525 | +.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__inserter.components-button.has-icon { | |
| 526 | + color: #fff; | |
| 527 | + background: transparent; | |
| 528 | +} | |
| 529 | +.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__inserter.components-button.has-icon::after { | |
| 530 | + content: ""; | |
| 531 | + position: absolute; | |
| 532 | + z-index: -1; | |
| 533 | + top: 50%; | |
| 534 | + right: 50%; | |
| 535 | + transform: translate(50%, -50%); | |
| 536 | + width: 24px; | |
| 537 | + height: 24px; | |
| 538 | + border-radius: 2px; | |
| 539 | + background: #1e1e1e; | |
| 540 | +} | |
| 541 | +.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__inserter.components-button.has-icon:hover { | |
| 542 | + color: #fff; | |
| 543 | +} | |
| 544 | +.components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__inserter.components-button.has-icon:hover::after { | |
| 545 | + background: var(--wp-admin-theme-color); | |
| 546 | +} | |
| 547 | +.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__inserter.components-button.has-icon { | |
| 548 | + width: auto; | |
| 549 | + padding: 0 12px; | |
| 550 | + color: inherit; | |
| 551 | +} | |
| 552 | +.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__inserter.components-button.has-icon svg { | |
| 553 | + display: none; | |
| 554 | +} | |
| 555 | +.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__inserter.components-button.has-icon::after { | |
| 556 | + content: attr(aria-label); | |
| 557 | + position: static; | |
| 558 | + transform: none; | |
| 559 | + width: auto; | |
| 560 | + height: auto; | |
| 561 | + border-radius: 0; | |
| 562 | + background: none; | |
| 563 | + white-space: nowrap; | |
| 564 | +} | |
| 565 | +.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__inserter.components-button.has-icon:hover { | |
| 566 | + color: var(--wp-admin-theme-color); | |
| 567 | +} | |
| 568 | +.show-icon-labels .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector .block-editor-block-parent-selector__inserter.components-button.has-icon:hover::after { | |
| 569 | + background: none; | |
| 570 | +} | |
| 484 | 571 | .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector::before { |
| 485 | 572 | content: ""; |
| 486 | 573 | } |
| 487 | 574 | .components-popover.block-editor-block-list__block-popover .block-editor-block-parent-selector::after { |
| @@ -547,9 +634,9 @@ | ||
| 547 | 634 | .block-editor-block-lock-modal__options-all { |
| 548 | 635 | padding: 12px 0; |
| 549 | 636 | } |
| 550 | 637 | .block-editor-block-lock-modal__options-all .components-checkbox-control__label { |
| 551 | - font-weight: 600; | |
| 638 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 552 | 639 | } |
| 553 | 640 | |
| 554 | 641 | .block-editor-block-lock-modal__checklist-item { |
| 555 | 642 | display: flex; |
| @@ -561,9 +648,9 @@ | ||
| 561 | 648 | } |
| 562 | 649 | .block-editor-block-lock-modal__checklist-item .block-editor-block-lock-modal__lock-icon { |
| 563 | 650 | flex-shrink: 0; |
| 564 | 651 | margin-left: 12px; |
| 565 | - fill: #1e1e1e; | |
| 652 | + color: #1e1e1e; | |
| 566 | 653 | } |
| 567 | 654 | .block-editor-block-lock-modal__checklist-item:hover { |
| 568 | 655 | background-color: #f0f0f0; |
| 569 | 656 | border-radius: 2px; |
| @@ -666,13 +753,14 @@ | ||
| 666 | 753 | height: auto !important; |
| 667 | 754 | } |
| 668 | 755 | |
| 669 | 756 | .block-editor-block-card__title { |
| 670 | - font-weight: 499; | |
| 757 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 671 | 758 | display: flex; |
| 672 | 759 | align-items: center; |
| 673 | 760 | flex-wrap: wrap; |
| 674 | 761 | gap: 4px 8px; |
| 762 | + overflow-wrap: anywhere; | |
| 675 | 763 | } |
| 676 | 764 | .block-editor-block-card__title.block-editor-block-card__title { |
| 677 | 765 | font-size: 13px; |
| 678 | 766 | line-height: 1.4; |
| @@ -776,11 +864,9 @@ | ||
| 776 | 864 | height: 48px; |
| 777 | 865 | padding: 0 13px; |
| 778 | 866 | position: relative; |
| 779 | 867 | -webkit-user-select: none; |
| 780 | - -moz-user-select: none; | |
| 781 | 868 | user-select: none; |
| 782 | - width: -moz-max-content; | |
| 783 | 869 | width: max-content; |
| 784 | 870 | } |
| 785 | 871 | .block-editor-block-draggable-chip svg { |
| 786 | 872 | fill: currentColor; |
| @@ -799,9 +885,9 @@ | ||
| 799 | 885 | min-width: 18px; |
| 800 | 886 | min-height: 18px; |
| 801 | 887 | } |
| 802 | 888 | .block-editor-block-draggable-chip .components-flex__item { |
| 803 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 889 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 804 | 890 | font-size: 13px; |
| 805 | 891 | } |
| 806 | 892 | |
| 807 | 893 | .block-editor-block-draggable-chip__disabled.block-editor-block-draggable-chip__disabled { |
| @@ -855,9 +941,9 @@ | ||
| 855 | 941 | background-color: #fff; |
| 856 | 942 | z-index: 1; |
| 857 | 943 | } |
| 858 | 944 | .block-editor-block-manager__category-title .components-checkbox-control__label { |
| 859 | - font-weight: 600; | |
| 945 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 860 | 946 | } |
| 861 | 947 | |
| 862 | 948 | .block-editor-block-manager__checklist { |
| 863 | 949 | margin-top: 0; |
| @@ -880,8 +966,9 @@ | ||
| 880 | 966 | } |
| 881 | 967 | .block-editor-block-manager__checklist-item .block-editor-block-icon { |
| 882 | 968 | margin-left: 10px; |
| 883 | 969 | fill: #1e1e1e; |
| 970 | + color: #1e1e1e; | |
| 884 | 971 | } |
| 885 | 972 | |
| 886 | 973 | .block-editor-block-manager__results { |
| 887 | 974 | border-top: 1px solid #ddd; |
| @@ -970,16 +1057,8 @@ | ||
| 970 | 1057 | animation: components-button__appear-animation 0.1s ease; |
| 971 | 1058 | animation-fill-mode: forwards; |
| 972 | 1059 | } |
| 973 | 1060 | } |
| 974 | -.components-button.block-editor-block-mover-button:focus, .components-button.block-editor-block-mover-button:focus:enabled, .components-button.block-editor-block-mover-button:focus::before { | |
| 975 | - box-shadow: none; | |
| 976 | - outline: none; | |
| 977 | -} | |
| 978 | -.components-button.block-editor-block-mover-button:focus-visible::before { | |
| 979 | - box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 980 | - outline: 2px solid transparent; | |
| 981 | -} | |
| 982 | 1061 | |
| 983 | 1062 | .block-editor-block-navigation__container { |
| 984 | 1063 | min-width: 280px; |
| 985 | 1064 | } |
| @@ -988,9 +1067,9 @@ | ||
| 988 | 1067 | margin: 0 0 12px; |
| 989 | 1068 | color: #757575; |
| 990 | 1069 | text-transform: uppercase; |
| 991 | 1070 | font-size: 11px; |
| 992 | - font-weight: 499; | |
| 1071 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 993 | 1072 | } |
| 994 | 1073 | |
| 995 | 1074 | .block-editor-block-patterns-list__list-item { |
| 996 | 1075 | cursor: var(--wpds-cursor-control, pointer); |
| @@ -1052,9 +1131,9 @@ | ||
| 1052 | 1131 | min-width: 24px; |
| 1053 | 1132 | height: 24px; |
| 1054 | 1133 | } |
| 1055 | 1134 | .block-editor-block-patterns-list__item .block-editor-patterns__pattern-icon-wrapper .block-editor-patterns__pattern-icon { |
| 1056 | - fill: var(--wp-block-synced-color); | |
| 1135 | + color: var(--wp-block-synced-color); | |
| 1057 | 1136 | } |
| 1058 | 1137 | |
| 1059 | 1138 | .block-editor-patterns__grid-pagination-wrapper .block-editor-patterns__grid-pagination { |
| 1060 | 1139 | border-top: 1px solid #2f2f2f; |
| @@ -1080,9 +1159,8 @@ | ||
| 1080 | 1159 | } |
| 1081 | 1160 | .components-popover.block-editor-block-popover .components-popover__content { |
| 1082 | 1161 | margin: 0 !important; |
| 1083 | 1162 | min-width: auto; |
| 1084 | - width: -moz-max-content; | |
| 1085 | 1163 | width: max-content; |
| 1086 | 1164 | overflow-y: visible; |
| 1087 | 1165 | } |
| 1088 | 1166 | .components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween, .block-editor-block-popover__drop-zone, .block-editor-block-list__block-side-inserter-popover) .components-popover__content * { |
| @@ -1142,9 +1220,9 @@ | ||
| 1142 | 1220 | z-index: 1; |
| 1143 | 1221 | } |
| 1144 | 1222 | |
| 1145 | 1223 | .block-editor-block-quick-navigation__item { |
| 1146 | - font-weight: 400; | |
| 1224 | + font-weight: var(--wpds-typography-font-weight-default, 400); | |
| 1147 | 1225 | } |
| 1148 | 1226 | |
| 1149 | 1227 | .block-editor-block-rename-modal { |
| 1150 | 1228 | z-index: 1000001; |
| @@ -1167,40 +1245,19 @@ | ||
| 1167 | 1245 | grid-column: 1/-1; |
| 1168 | 1246 | } |
| 1169 | 1247 | |
| 1170 | 1248 | .block-editor-block-styles__variants { |
| 1171 | - display: flex; | |
| 1172 | - flex-wrap: wrap; | |
| 1173 | - justify-content: space-between; | |
| 1249 | + display: grid; | |
| 1174 | 1250 | gap: 8px; |
| 1175 | 1251 | } |
| 1176 | -.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item { | |
| 1177 | - color: #1e1e1e; | |
| 1178 | - box-shadow: inset 0 0 0 1px #ddd; | |
| 1179 | - display: inline-block; | |
| 1180 | - width: calc(50% - 4px); | |
| 1252 | +.block-editor-block-styles__variants .block-editor-block-styles__row { | |
| 1253 | + display: grid; | |
| 1254 | + grid-template-columns: repeat(2, minmax(0, 1fr)); | |
| 1255 | + gap: 8px; | |
| 1181 | 1256 | } |
| 1182 | -.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover { | |
| 1183 | - color: var(--wp-admin-theme-color); | |
| 1184 | - box-shadow: inset 0 0 0 1px #ddd; | |
| 1185 | -} | |
| 1186 | -.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active, .block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover { | |
| 1187 | - background-color: #1e1e1e; | |
| 1188 | - box-shadow: none; | |
| 1189 | -} | |
| 1190 | -.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active .block-editor-block-styles__item-text, .block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text { | |
| 1191 | - color: #fff; | |
| 1192 | -} | |
| 1193 | -.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus, .block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus { | |
| 1194 | - box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 1195 | - outline: 2px solid transparent; | |
| 1196 | -} | |
| 1197 | 1257 | .block-editor-block-styles__variants .block-editor-block-styles__item-text { |
| 1198 | - word-break: break-all; | |
| 1199 | - white-space: normal; | |
| 1200 | 1258 | text-align: start; |
| 1201 | - -moz-text-align-last: center; | |
| 1202 | - text-align-last: center; | |
| 1259 | + text-align-last: center; | |
| 1203 | 1260 | } |
| 1204 | 1261 | |
| 1205 | 1262 | .components-popover.block-editor-block-switcher__popover .components-popover__content { |
| 1206 | 1263 | min-width: 300px; |
| @@ -1284,9 +1341,8 @@ | ||
| 1284 | 1341 | padding: 8px; |
| 1285 | 1342 | } |
| 1286 | 1343 | |
| 1287 | 1344 | .block-editor-block-types-list > [role=presentation] { |
| 1288 | - overflow: hidden; | |
| 1289 | 1345 | display: flex; |
| 1290 | 1346 | flex-wrap: wrap; |
| 1291 | 1347 | } |
| 1292 | 1348 | |
| @@ -1304,22 +1360,19 @@ | ||
| 1304 | 1360 | .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar { |
| 1305 | 1361 | justify-content: center; |
| 1306 | 1362 | } |
| 1307 | 1363 | .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container { |
| 1308 | - -moz-column-gap: 24px; | |
| 1309 | - column-gap: 24px; | |
| 1364 | + column-gap: 24px; | |
| 1310 | 1365 | display: block; |
| 1311 | 1366 | width: 100%; |
| 1312 | 1367 | padding: 32px; |
| 1313 | 1368 | padding-bottom: 0; |
| 1314 | 1369 | padding-top: 0; |
| 1315 | - -moz-column-count: 2; | |
| 1316 | - column-count: 2; | |
| 1370 | + column-count: 2; | |
| 1317 | 1371 | } |
| 1318 | 1372 | @media (min-width: 1440px) { |
| 1319 | 1373 | .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container { |
| 1320 | - -moz-column-count: 3; | |
| 1321 | - column-count: 3; | |
| 1374 | + column-count: 3; | |
| 1322 | 1375 | } |
| 1323 | 1376 | } |
| 1324 | 1377 | .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container, |
| 1325 | 1378 | .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button] { |
| @@ -1339,10 +1392,9 @@ | ||
| 1339 | 1392 | .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-pattern-setup-list__item-title, .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-pattern-setup-list__item-title { |
| 1340 | 1393 | color: var(--wp-admin-theme-color); |
| 1341 | 1394 | } |
| 1342 | 1395 | .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item { |
| 1343 | - -moz-column-break-inside: avoid; | |
| 1344 | - break-inside: avoid-column; | |
| 1396 | + break-inside: avoid-column; | |
| 1345 | 1397 | margin-bottom: 24px; |
| 1346 | 1398 | } |
| 1347 | 1399 | .block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title { |
| 1348 | 1400 | padding-top: 8px; |
| @@ -1492,12 +1544,8 @@ | ||
| 1492 | 1544 | margin: 0; |
| 1493 | 1545 | min-width: 0; |
| 1494 | 1546 | } |
| 1495 | 1547 | |
| 1496 | -.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings, .block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings > div:not(:first-of-type) { | |
| 1497 | - display: block; | |
| 1498 | -} | |
| 1499 | - | |
| 1500 | 1548 | @media screen and (min-width: 782px) { |
| 1501 | 1549 | .block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches { |
| 1502 | 1550 | display: grid; |
| 1503 | 1551 | grid-template-columns: repeat(6, 28px); |
| @@ -1505,8 +1553,18 @@ | ||
| 1505 | 1553 | } |
| 1506 | 1554 | .block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control { |
| 1507 | 1555 | margin-bottom: inherit; |
| 1508 | 1556 | } |
| 1557 | +.block-editor-panel-color-gradient-settings { | |
| 1558 | + /* Increased specificity required to remove the slot wrapper's row gap */ | |
| 1559 | +} | |
| 1560 | +.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings .block-editor-panel-color-gradient-settings__inner-wrapper { | |
| 1561 | + grid-column: 1/-1; | |
| 1562 | + row-gap: 0; | |
| 1563 | +} | |
| 1564 | +.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings .block-editor-panel-color-gradient-settings__inner-wrapper > * { | |
| 1565 | + grid-column: 1/-1; | |
| 1566 | +} | |
| 1509 | 1567 | |
| 1510 | 1568 | .block-editor-panel-color-gradient-settings__dropdown-content { |
| 1511 | 1569 | min-height: 160px; |
| 1512 | 1570 | } |
| @@ -1519,9 +1577,9 @@ | ||
| 1519 | 1577 | background: linear-gradient(45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%); |
| 1520 | 1578 | } |
| 1521 | 1579 | |
| 1522 | 1580 | .block-editor-panel-color-gradient-settings__contrast-notice { |
| 1523 | - margin-bottom: 16px; | |
| 1581 | + margin-top: 16px; | |
| 1524 | 1582 | } |
| 1525 | 1583 | |
| 1526 | 1584 | /** |
| 1527 | 1585 | * The following styles replicate the separated border of the |
| @@ -1570,8 +1628,9 @@ | ||
| 1570 | 1628 | background: #f0f0f0; |
| 1571 | 1629 | color: var(--wp-admin-theme-color); |
| 1572 | 1630 | } |
| 1573 | 1631 | .block-editor-tools-panel-color-gradient-settings__dropdown .block-editor-panel-color-gradient-settings__color-name { |
| 1632 | + min-width: 0; | |
| 1574 | 1633 | white-space: nowrap; |
| 1575 | 1634 | overflow: hidden; |
| 1576 | 1635 | text-overflow: ellipsis; |
| 1577 | 1636 | max-width: calc(100% - 44px); |
| @@ -1586,8 +1645,21 @@ | ||
| 1586 | 1645 | .block-editor-panel-color-gradient-settings__dropdown .component-color-indicator { |
| 1587 | 1646 | flex-shrink: 0; |
| 1588 | 1647 | } |
| 1589 | 1648 | |
| 1649 | +.block-editor-panel-color-gradient-settings__labeled-indicators { | |
| 1650 | + width: 100%; | |
| 1651 | + min-width: 0; | |
| 1652 | +} | |
| 1653 | + | |
| 1654 | +.block-editor-panel-color-gradient-settings__color-indicators { | |
| 1655 | + display: flex; | |
| 1656 | + flex-shrink: 0; | |
| 1657 | +} | |
| 1658 | +.block-editor-panel-color-gradient-settings__color-indicators > * + * { | |
| 1659 | + margin-inline-start: -8px; | |
| 1660 | +} | |
| 1661 | + | |
| 1590 | 1662 | .block-editor-panel-color-gradient-settings__reset { |
| 1591 | 1663 | position: absolute; |
| 1592 | 1664 | left: 0; |
| 1593 | 1665 | top: 8px; |
| @@ -1633,8 +1705,14 @@ | ||
| 1633 | 1705 | .block-editor-date-format-picker__custom-format-select-control__custom-option { |
| 1634 | 1706 | border-top: 1px solid #ddd; |
| 1635 | 1707 | } |
| 1636 | 1708 | |
| 1709 | +.block-editor-dimension-control { | |
| 1710 | + border: 0; | |
| 1711 | + margin: 0; | |
| 1712 | + padding: 0; | |
| 1713 | +} | |
| 1714 | + | |
| 1637 | 1715 | .block-editor-duotone-control__popover.components-popover > .components-popover__content { |
| 1638 | 1716 | padding: 8px; |
| 1639 | 1717 | width: 260px; |
| 1640 | 1718 | } |
| @@ -1687,8 +1765,13 @@ | ||
| 1687 | 1765 | .block-editor-global-styles-state-control__badges { |
| 1688 | 1766 | min-height: 24px; |
| 1689 | 1767 | } |
| 1690 | 1768 | |
| 1769 | +.block-editor-global-styles-state-control__badge-tooltip-trigger { | |
| 1770 | + display: inline-flex; | |
| 1771 | + max-width: 100%; | |
| 1772 | +} | |
| 1773 | + | |
| 1691 | 1774 | .block-editor-global-styles-filters-panel__dropdown, |
| 1692 | 1775 | .block-editor-global-styles__shadow-dropdown { |
| 1693 | 1776 | display: block; |
| 1694 | 1777 | padding: 0; |
| @@ -1706,8 +1789,17 @@ | ||
| 1706 | 1789 | .block-editor-global-styles__shadow-dropdown-toggle.is-open { |
| 1707 | 1790 | background-color: #f0f0f0; |
| 1708 | 1791 | } |
| 1709 | 1792 | |
| 1793 | +.block-editor-panel-duotone-settings__label-row { | |
| 1794 | + width: 100%; | |
| 1795 | + min-width: 0; | |
| 1796 | +} | |
| 1797 | + | |
| 1798 | +.block-editor-panel-duotone-settings__label { | |
| 1799 | + min-width: 0; | |
| 1800 | +} | |
| 1801 | + | |
| 1710 | 1802 | .block-editor-global-styles__shadow-editor__remove-button { |
| 1711 | 1803 | position: absolute; |
| 1712 | 1804 | left: 0; |
| 1713 | 1805 | top: 8px; |
| @@ -1728,11 +1820,9 @@ | ||
| 1728 | 1820 | } |
| 1729 | 1821 | } |
| 1730 | 1822 | |
| 1731 | 1823 | .block-editor-global-styles__shadow-indicator { |
| 1732 | - -webkit-appearance: none; | |
| 1733 | - -moz-appearance: none; | |
| 1734 | - appearance: none; | |
| 1824 | + appearance: none; | |
| 1735 | 1825 | background: none; |
| 1736 | 1826 | color: #2f2f2f; |
| 1737 | 1827 | border: #e0e0e0 1px solid; |
| 1738 | 1828 | border-radius: 2px; |
| @@ -1791,8 +1881,187 @@ | ||
| 1791 | 1881 | opacity: 1; |
| 1792 | 1882 | } |
| 1793 | 1883 | } |
| 1794 | 1884 | |
| 1885 | +.block-editor-global-styles__text-shadow { | |
| 1886 | + width: 260px; | |
| 1887 | + padding: 8px; | |
| 1888 | +} | |
| 1889 | + | |
| 1890 | +.block-editor-global-styles__text-shadow-preview { | |
| 1891 | + display: flex; | |
| 1892 | + align-items: center; | |
| 1893 | + justify-content: center; | |
| 1894 | + height: 80px; | |
| 1895 | + border: #ddd 1px solid; | |
| 1896 | + border-radius: 2px; | |
| 1897 | + font-size: 24px; | |
| 1898 | + margin-bottom: 16px; | |
| 1899 | + background-image: repeating-linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0), repeating-linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0); | |
| 1900 | + background-position: 0 0, 8px 8px; | |
| 1901 | + background-size: 16px 16px; | |
| 1902 | +} | |
| 1903 | + | |
| 1904 | +.block-editor-global-styles__text-shadow-list-item { | |
| 1905 | + justify-content: space-between; | |
| 1906 | + gap: 8px; | |
| 1907 | + width: 100%; | |
| 1908 | +} | |
| 1909 | +.block-editor-global-styles__text-shadow-list-item:not(.is-active) svg { | |
| 1910 | + opacity: 0; | |
| 1911 | +} | |
| 1912 | + | |
| 1913 | +.block-editor-global-styles__text-shadow-dropdown { | |
| 1914 | + display: block; | |
| 1915 | + padding: 0; | |
| 1916 | + position: relative; | |
| 1917 | + border: 1px solid #ddd; | |
| 1918 | + border-radius: 2px; | |
| 1919 | +} | |
| 1920 | + | |
| 1921 | +.block-editor-global-styles__text-shadow-dropdown-toggle { | |
| 1922 | + width: 100%; | |
| 1923 | + padding: 8px; | |
| 1924 | +} | |
| 1925 | +.block-editor-global-styles__text-shadow-dropdown-toggle.is-open { | |
| 1926 | + background-color: #f0f0f0; | |
| 1927 | +} | |
| 1928 | + | |
| 1929 | +.block-editor-global-styles__text-shadow-remove-button { | |
| 1930 | + position: absolute; | |
| 1931 | + left: 8px; | |
| 1932 | + top: 8px; | |
| 1933 | + opacity: 0; | |
| 1934 | +} | |
| 1935 | +@media not (prefers-reduced-motion) { | |
| 1936 | + .block-editor-global-styles__text-shadow-remove-button { | |
| 1937 | + transition: opacity 0.1s ease-in-out; | |
| 1938 | + } | |
| 1939 | +} | |
| 1940 | +.block-editor-global-styles__text-shadow-dropdown:hover .block-editor-global-styles__text-shadow-remove-button, .block-editor-global-styles__text-shadow-remove-button:focus, .block-editor-global-styles__text-shadow-remove-button:hover { | |
| 1941 | + opacity: 1; | |
| 1942 | +} | |
| 1943 | +@media (hover: none) { | |
| 1944 | + .block-editor-global-styles__text-shadow-remove-button { | |
| 1945 | + opacity: 1; | |
| 1946 | + } | |
| 1947 | +} | |
| 1948 | + | |
| 1949 | +.is-inherited-from-global-styles .components-base-control__label, | |
| 1950 | +.is-inherited-from-global-styles .components-input-control__label { | |
| 1951 | + text-decoration-line: underline; | |
| 1952 | + text-decoration-style: dotted; | |
| 1953 | + text-decoration-thickness: 1px; | |
| 1954 | + text-underline-offset: 0.2em; | |
| 1955 | +} | |
| 1956 | +.is-inherited-from-global-styles .block-editor-panel-color-gradient-settings__color-name, | |
| 1957 | +.is-inherited-from-global-styles .block-editor-global-styles-background-panel__inspector-media-replace-title, | |
| 1958 | +.is-inherited-from-global-styles .block-editor-panel-duotone-settings__label { | |
| 1959 | + border-bottom: 1px dotted currentColor; | |
| 1960 | +} | |
| 1961 | + | |
| 1962 | +.has-local-override-from-global-styles { | |
| 1963 | + position: relative; | |
| 1964 | +} | |
| 1965 | + | |
| 1966 | +.global-styles-inheritance-affordance { | |
| 1967 | + position: absolute; | |
| 1968 | + inset-block-start: 0; | |
| 1969 | + inset-inline-end: 0; | |
| 1970 | + z-index: 1; | |
| 1971 | + display: flex; | |
| 1972 | + align-items: center; | |
| 1973 | + justify-content: center; | |
| 1974 | + pointer-events: none; | |
| 1975 | + height: 16px; | |
| 1976 | +} | |
| 1977 | +.global-styles-inheritance-affordance--offset-toggle { | |
| 1978 | + inset-inline-end: 32px; | |
| 1979 | +} | |
| 1980 | +.global-styles-inheritance-affordance .has-local-override-from-global-styles__reset { | |
| 1981 | + pointer-events: auto; | |
| 1982 | + margin-inline-start: 0 !important; | |
| 1983 | +} | |
| 1984 | + | |
| 1985 | +.has-local-override-from-global-styles__reset { | |
| 1986 | + display: inline-flex !important; | |
| 1987 | + align-items: center; | |
| 1988 | + justify-content: center; | |
| 1989 | + vertical-align: middle; | |
| 1990 | + position: relative; | |
| 1991 | + margin-inline-start: 6px; | |
| 1992 | + min-width: 14px !important; | |
| 1993 | + width: 14px !important; | |
| 1994 | + height: 14px !important; | |
| 1995 | + padding: 0 !important; | |
| 1996 | + border-radius: 50% !important; | |
| 1997 | + background: transparent !important; | |
| 1998 | + box-shadow: none !important; | |
| 1999 | + overflow: hidden; | |
| 2000 | + text-transform: none; | |
| 2001 | + letter-spacing: normal; | |
| 2002 | + cursor: var(--wpds-cursor-control, pointer); | |
| 2003 | +} | |
| 2004 | +.has-local-override-from-global-styles__reset:hover, .has-local-override-from-global-styles__reset:focus { | |
| 2005 | + background: transparent !important; | |
| 2006 | +} | |
| 2007 | +.has-local-override-from-global-styles__reset:hover .has-local-override-from-global-styles__dot, .has-local-override-from-global-styles__reset:focus .has-local-override-from-global-styles__dot { | |
| 2008 | + display: none; | |
| 2009 | +} | |
| 2010 | +.has-local-override-from-global-styles__reset:hover .has-local-override-from-global-styles__reset-icon, .has-local-override-from-global-styles__reset:focus .has-local-override-from-global-styles__reset-icon { | |
| 2011 | + display: block; | |
| 2012 | +} | |
| 2013 | +.has-local-override-from-global-styles__reset:focus-visible { | |
| 2014 | + outline: 1.5px solid var(--wp-admin-theme-color, #007cba); | |
| 2015 | + outline-offset: 1px; | |
| 2016 | +} | |
| 2017 | +.has-local-override-from-global-styles__reset.block-editor-panel-color-gradient-settings__reset { | |
| 2018 | + position: absolute; | |
| 2019 | + justify-content: center; | |
| 2020 | + top: 50%; | |
| 2021 | + transform: translateY(-50%); | |
| 2022 | + margin-block: 0; | |
| 2023 | + margin-inline-start: 0; | |
| 2024 | + opacity: 1; | |
| 2025 | +} | |
| 2026 | +.has-local-override-from-global-styles__reset.block-editor-global-styles__shadow-editor__remove-button { | |
| 2027 | + position: absolute; | |
| 2028 | + justify-content: center; | |
| 2029 | + inset-inline-end: 8px; | |
| 2030 | + top: 50%; | |
| 2031 | + transform: translateY(-50%); | |
| 2032 | + margin-block: 0; | |
| 2033 | + margin-inline-start: 0; | |
| 2034 | + opacity: 1; | |
| 2035 | +} | |
| 2036 | +.has-local-override-from-global-styles__reset.block-editor-panel-duotone-settings__reset { | |
| 2037 | + position: absolute; | |
| 2038 | + justify-content: center; | |
| 2039 | + inset-inline-end: 8px; | |
| 2040 | + top: 50%; | |
| 2041 | + transform: translateY(-50%); | |
| 2042 | + margin-block: 0; | |
| 2043 | + margin-inline-start: 0; | |
| 2044 | + opacity: 1; | |
| 2045 | +} | |
| 2046 | + | |
| 2047 | +.has-local-override-from-global-styles__dot { | |
| 2048 | + display: block; | |
| 2049 | + width: 8px; | |
| 2050 | + height: 8px; | |
| 2051 | + background-color: var(--wp-admin-theme-color, #007cba); | |
| 2052 | + border-radius: 50%; | |
| 2053 | +} | |
| 2054 | + | |
| 2055 | +.has-local-override-from-global-styles__reset-icon { | |
| 2056 | + display: none; | |
| 2057 | + position: absolute; | |
| 2058 | + top: 50%; | |
| 2059 | + right: 50%; | |
| 2060 | + transform: translate(50%, -50%); | |
| 2061 | + color: var(--wp-admin-theme-color, #007cba); | |
| 2062 | +} | |
| 2063 | + | |
| 1795 | 2064 | .block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer { |
| 1796 | 2065 | z-index: 30; |
| 1797 | 2066 | } |
| 1798 | 2067 | .block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer .components-popover__content * { |
| @@ -1897,16 +2166,8 @@ | ||
| 1897 | 2166 | animation: components-button__appear-animation 0.1s ease; |
| 1898 | 2167 | animation-fill-mode: forwards; |
| 1899 | 2168 | } |
| 1900 | 2169 | } |
| 1901 | -.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus, .block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus:enabled, .block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus::before { | |
| 1902 | - box-shadow: none; | |
| 1903 | - outline: none; | |
| 1904 | -} | |
| 1905 | -.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus-visible::before { | |
| 1906 | - box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 1907 | - outline: 2px solid transparent; | |
| 1908 | -} | |
| 1909 | 2170 | |
| 1910 | 2171 | .block-editor-grid-item-mover__move-vertical-button-container { |
| 1911 | 2172 | display: flex; |
| 1912 | 2173 | position: relative; |
| @@ -2020,8 +2281,27 @@ | ||
| 2020 | 2281 | position: absolute; |
| 2021 | 2282 | left: 0; |
| 2022 | 2283 | } |
| 2023 | 2284 | |
| 2285 | +.wp-block-image__crop-area { | |
| 2286 | + position: relative; | |
| 2287 | + max-width: 100%; | |
| 2288 | + width: 100%; | |
| 2289 | + overflow: hidden; | |
| 2290 | +} | |
| 2291 | +.wp-block-image__crop-area .reactEasyCrop_Container { | |
| 2292 | + pointer-events: auto; | |
| 2293 | +} | |
| 2294 | +.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image { | |
| 2295 | + border: none; | |
| 2296 | + border-radius: 0; | |
| 2297 | +} | |
| 2298 | + | |
| 2299 | +.wp-block-image__zoom .components-popover__content { | |
| 2300 | + min-width: 260px; | |
| 2301 | + overflow: visible !important; | |
| 2302 | +} | |
| 2303 | + | |
| 2024 | 2304 | .block-editor-block-types-list__list-item { |
| 2025 | 2305 | display: block; |
| 2026 | 2306 | width: 33.33%; |
| 2027 | 2307 | padding: 0; |
| @@ -2051,9 +2331,10 @@ | ||
| 2051 | 2331 | align-items: stretch; |
| 2052 | 2332 | justify-content: center; |
| 2053 | 2333 | cursor: var(--wpds-cursor-control, pointer); |
| 2054 | 2334 | background: transparent; |
| 2055 | - word-break: break-word; | |
| 2335 | + word-break: normal; | |
| 2336 | + overflow-wrap: break-word; | |
| 2056 | 2337 | } |
| 2057 | 2338 | @media not (prefers-reduced-motion) { |
| 2058 | 2339 | .components-button.block-editor-block-types-list__item { |
| 2059 | 2340 | transition: all 0.05s ease-in-out; |
| @@ -2085,17 +2366,8 @@ | ||
| 2085 | 2366 | opacity: 0.04; |
| 2086 | 2367 | background: var(--wp-admin-theme-color); |
| 2087 | 2368 | pointer-events: none; |
| 2088 | 2369 | } |
| 2089 | -.components-button.block-editor-block-types-list__item:not(:disabled, [aria-disabled=true]).is-active { | |
| 2090 | - color: #fff; | |
| 2091 | - background: #1e1e1e; | |
| 2092 | - outline: 2px solid transparent; | |
| 2093 | - outline-offset: -2px; | |
| 2094 | -} | |
| 2095 | -.components-button.block-editor-block-types-list__item:not(:disabled):focus { | |
| 2096 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 2097 | -} | |
| 2098 | 2370 | |
| 2099 | 2371 | .block-editor-block-types-list__item-icon { |
| 2100 | 2372 | padding: 12px 20px; |
| 2101 | 2373 | color: #1e1e1e; |
| @@ -2268,9 +2540,9 @@ | ||
| 2268 | 2540 | display: inline-block; |
| 2269 | 2541 | width: 100%; |
| 2270 | 2542 | } |
| 2271 | 2543 | .block-editor-link-control__search-item .components-menu-item__item mark { |
| 2272 | - font-weight: 600; | |
| 2544 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 2273 | 2545 | color: inherit; |
| 2274 | 2546 | background-color: transparent; |
| 2275 | 2547 | } |
| 2276 | 2548 | .block-editor-link-control__search-item .components-menu-item__shortcut { |
| @@ -2317,9 +2589,9 @@ | ||
| 2317 | 2589 | width: 32px; |
| 2318 | 2590 | max-height: 32px; |
| 2319 | 2591 | } |
| 2320 | 2592 | .block-editor-link-control__preview .block-editor-link-control__preview-title { |
| 2321 | - line-height: 1.1; | |
| 2593 | + line-height: var(--wpds-typography-line-height-sm, 20px); | |
| 2322 | 2594 | } |
| 2323 | 2595 | .block-editor-link-control__preview .block-editor-link-control__preview-title:focus { |
| 2324 | 2596 | box-shadow: none; |
| 2325 | 2597 | } |
| @@ -2328,14 +2600,14 @@ | ||
| 2328 | 2600 | outline: 2px solid transparent; |
| 2329 | 2601 | text-decoration: none; |
| 2330 | 2602 | } |
| 2331 | 2603 | .block-editor-link-control__preview .block-editor-link-control__preview-title mark { |
| 2332 | - font-weight: 600; | |
| 2604 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 2333 | 2605 | color: inherit; |
| 2334 | 2606 | background-color: transparent; |
| 2335 | 2607 | } |
| 2336 | 2608 | .block-editor-link-control__preview .block-editor-link-control__preview-title span { |
| 2337 | - font-weight: normal; | |
| 2609 | + font-weight: 400; | |
| 2338 | 2610 | } |
| 2339 | 2611 | .block-editor-link-control__preview .block-editor-link-control__preview-title .components-external-link__icon { |
| 2340 | 2612 | position: absolute; |
| 2341 | 2613 | width: 1px; |
| @@ -2342,9 +2614,9 @@ | ||
| 2342 | 2614 | height: 1px; |
| 2343 | 2615 | padding: 0; |
| 2344 | 2616 | margin: -1px; |
| 2345 | 2617 | overflow: hidden; |
| 2346 | - clip: rect(0, 0, 0, 0); | |
| 2618 | + clip-path: inset(50%); | |
| 2347 | 2619 | border: 0; |
| 2348 | 2620 | } |
| 2349 | 2621 | |
| 2350 | 2622 | .block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon svg, |
| @@ -2486,9 +2758,8 @@ | ||
| 2486 | 2758 | .link-preview-button.components-button { |
| 2487 | 2759 | width: 100%; |
| 2488 | 2760 | height: auto; |
| 2489 | 2761 | padding: 12px; |
| 2490 | - box-shadow: inset 0 0 0 1px #949494; | |
| 2491 | 2762 | border-color: #949494; |
| 2492 | 2763 | } |
| 2493 | 2764 | |
| 2494 | 2765 | .link-preview-button__image-container { |
| @@ -2499,10 +2770,9 @@ | ||
| 2499 | 2770 | |
| 2500 | 2771 | .link-preview-button__image { |
| 2501 | 2772 | width: 100%; |
| 2502 | 2773 | height: 100%; |
| 2503 | - -o-object-fit: cover; | |
| 2504 | - object-fit: cover; | |
| 2774 | + object-fit: cover; | |
| 2505 | 2775 | border-radius: 2px; |
| 2506 | 2776 | } |
| 2507 | 2777 | |
| 2508 | 2778 | .link-preview-button__content { |
| @@ -2527,9 +2797,9 @@ | ||
| 2527 | 2797 | } |
| 2528 | 2798 | |
| 2529 | 2799 | .link-preview-button__title { |
| 2530 | 2800 | margin-top: 4px; |
| 2531 | - font-weight: 500; | |
| 2801 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 2532 | 2802 | color: #1e1e1e; |
| 2533 | 2803 | display: block; |
| 2534 | 2804 | } |
| 2535 | 2805 | |
| @@ -2564,8 +2834,11 @@ | ||
| 2564 | 2834 | .block-editor-list-view-leaf { |
| 2565 | 2835 | position: relative; |
| 2566 | 2836 | transform: translateY(0); |
| 2567 | 2837 | } |
| 2838 | +.block-editor-list-view-leaf:focus-within, .block-editor-list-view-leaf.is-nesting { | |
| 2839 | + z-index: 1; | |
| 2840 | +} | |
| 2568 | 2841 | .block-editor-list-view-leaf.is-draggable, .block-editor-list-view-leaf.is-draggable .block-editor-list-view-block-contents { |
| 2569 | 2842 | cursor: grab; |
| 2570 | 2843 | } |
| 2571 | 2844 | .block-editor-list-view-leaf .block-editor-list-view-block-select-button[aria-expanded=true] { |
| @@ -2576,13 +2849,8 @@ | ||
| 2576 | 2849 | } |
| 2577 | 2850 | .block-editor-list-view-leaf .block-editor-list-view-block-select-button svg { |
| 2578 | 2851 | fill: currentColor; |
| 2579 | 2852 | } |
| 2580 | -@media (forced-colors: active) { | |
| 2581 | - .block-editor-list-view-leaf .block-editor-list-view-block-select-button svg { | |
| 2582 | - fill: CanvasText; | |
| 2583 | - } | |
| 2584 | -} | |
| 2585 | 2853 | .is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover { |
| 2586 | 2854 | color: inherit; |
| 2587 | 2855 | } |
| 2588 | 2856 | .block-editor-list-view-leaf.is-selected td { |
| @@ -2594,23 +2862,45 @@ | ||
| 2594 | 2862 | .block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:hover, .block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus, |
| 2595 | 2863 | .block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon { |
| 2596 | 2864 | color: var(--wp-block-synced-color); |
| 2597 | 2865 | } |
| 2598 | -.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus::after { | |
| 2599 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color); | |
| 2866 | +.block-editor-list-view-leaf.is-synced .block-editor-list-view-block-contents:focus::after { | |
| 2867 | + --focus-color: var(--wp-block-synced-color); | |
| 2600 | 2868 | } |
| 2869 | +.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block__menu:focus { | |
| 2870 | + --focus-color: var(--wp-block-synced-color); | |
| 2871 | + outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9))); | |
| 2872 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 2873 | +} | |
| 2601 | 2874 | .block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents, .block-editor-list-view-leaf.is-selected .components-button.has-icon { |
| 2602 | 2875 | color: #fff; |
| 2603 | 2876 | } |
| 2604 | -.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus::after { | |
| 2605 | - box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 2877 | +.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus { | |
| 2878 | + --focus-color: var(--wpds-color-foreground-interactive-brand-strong, #fff); | |
| 2879 | + outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9))); | |
| 2880 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 2881 | + outline-offset: calc(-1 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))); | |
| 2606 | 2882 | } |
| 2607 | -.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus::after { | |
| 2608 | - box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color); | |
| 2883 | +@media (forced-colors: active) { | |
| 2884 | + .block-editor-list-view-leaf.is-selected td, .block-editor-list-view-leaf.is-selected.is-synced td { | |
| 2885 | + background: SelectedItem; | |
| 2886 | + } | |
| 2887 | + .block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents, .block-editor-list-view-leaf.is-selected .components-button.has-icon { | |
| 2888 | + color: SelectedItemText; | |
| 2889 | + } | |
| 2890 | + .block-editor-list-view-leaf.is-selected svg, .block-editor-list-view-leaf.is-selected .block-editor-block-icon.has-colors svg { | |
| 2891 | + fill: SelectedItemText; | |
| 2892 | + } | |
| 2893 | + .block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__title { | |
| 2894 | + forced-color-adjust: none; | |
| 2895 | + } | |
| 2896 | + .block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus::after { | |
| 2897 | + --focus-color: CanvasText; | |
| 2898 | + } | |
| 2899 | + .block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus { | |
| 2900 | + --focus-color: SelectedItemText; | |
| 2901 | + } | |
| 2609 | 2902 | } |
| 2610 | -.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus { | |
| 2611 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) #fff; | |
| 2612 | -} | |
| 2613 | 2903 | .block-editor-list-view-leaf.is-first-selected td:first-child { |
| 2614 | 2904 | border-top-right-radius: 2px; |
| 2615 | 2905 | } |
| 2616 | 2906 | .block-editor-list-view-leaf.is-first-selected td:last-child { |
| @@ -2732,8 +3022,9 @@ | ||
| 2732 | 3022 | } |
| 2733 | 3023 | .block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents, |
| 2734 | 3024 | .block-editor-list-view-leaf .block-editor-list-view-block-contents:focus { |
| 2735 | 3025 | box-shadow: none; |
| 3026 | + outline: none; | |
| 2736 | 3027 | } |
| 2737 | 3028 | .block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents::after, |
| 2738 | 3029 | .block-editor-list-view-leaf .block-editor-list-view-block-contents:focus::after { |
| 2739 | 3030 | content: ""; |
| @@ -2738,13 +3029,16 @@ | ||
| 2738 | 3029 | .block-editor-list-view-leaf .block-editor-list-view-block-contents:focus::after { |
| 2739 | 3030 | content: ""; |
| 2740 | 3031 | position: absolute; |
| 2741 | 3032 | top: 0; |
| 2742 | - left: -29px; | |
| 3033 | + left: -28px; | |
| 2743 | 3034 | bottom: 0; |
| 2744 | 3035 | right: 0; |
| 2745 | 3036 | border-radius: inherit; |
| 2746 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 3037 | + outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color, var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9))); | |
| 3038 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 3039 | + outline-offset: 1px; | |
| 3040 | + box-shadow: 0 0 0 calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) + 2px) var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 2747 | 3041 | z-index: 2; |
| 2748 | 3042 | pointer-events: none; |
| 2749 | 3043 | } |
| 2750 | 3044 | .block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus::after { |
| @@ -2749,13 +3043,8 @@ | ||
| 2749 | 3043 | } |
| 2750 | 3044 | .block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus::after { |
| 2751 | 3045 | left: 0; |
| 2752 | 3046 | } |
| 2753 | -.block-editor-list-view-leaf.is-nesting .block-editor-list-view__menu, | |
| 2754 | -.block-editor-list-view-leaf .block-editor-list-view-block__menu:focus { | |
| 2755 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 2756 | - z-index: 1; | |
| 2757 | -} | |
| 2758 | 3047 | .block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents { |
| 2759 | 3048 | opacity: 1; |
| 2760 | 3049 | } |
| 2761 | 3050 | @keyframes __wp-base-styles-fade-in { |
| @@ -2825,14 +3114,8 @@ | ||
| 2825 | 3114 | } |
| 2826 | 3115 | .block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button svg { |
| 2827 | 3116 | top: -4px; |
| 2828 | 3117 | } |
| 2829 | -.block-editor-list-view-leaf .block-editor-block-mover-button::before { | |
| 2830 | - height: 16px; | |
| 2831 | - min-width: 100%; | |
| 2832 | - right: 0; | |
| 2833 | - left: 0; | |
| 2834 | -} | |
| 2835 | 3118 | .block-editor-list-view-leaf .block-editor-inserter__toggle { |
| 2836 | 3119 | background: #1e1e1e; |
| 2837 | 3120 | color: #fff; |
| 2838 | 3121 | height: 24px; |
| @@ -2841,8 +3124,14 @@ | ||
| 2841 | 3124 | } |
| 2842 | 3125 | .block-editor-list-view-leaf .block-editor-inserter__toggle:active { |
| 2843 | 3126 | color: #fff; |
| 2844 | 3127 | } |
| 3128 | +.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper { | |
| 3129 | + width: 100%; | |
| 3130 | +} | |
| 3131 | +.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper > * { | |
| 3132 | + min-width: 0; | |
| 3133 | +} | |
| 2845 | 3134 | .block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper svg { |
| 2846 | 3135 | right: 2px; |
| 2847 | 3136 | position: relative; |
| 2848 | 3137 | } |
| @@ -2863,8 +3152,19 @@ | ||
| 2863 | 3152 | .block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor { |
| 2864 | 3153 | position: absolute; |
| 2865 | 3154 | left: 0; |
| 2866 | 3155 | transform: translateY(-50%); |
| 3156 | + box-sizing: border-box; | |
| 3157 | + max-width: 100%; | |
| 3158 | + padding: 2px 8px; | |
| 3159 | + border-radius: 2px; | |
| 3160 | + background: #f0f0f0; | |
| 3161 | + color: #2f2f2f; | |
| 3162 | + font-size: 12px; | |
| 3163 | + line-height: 20px; | |
| 3164 | + overflow: hidden; | |
| 3165 | + text-overflow: ellipsis; | |
| 3166 | + white-space: nowrap; | |
| 2867 | 3167 | } |
| 2868 | 3168 | .block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor { |
| 2869 | 3169 | background: rgba(0, 0, 0, 0.3); |
| 2870 | 3170 | color: #fff; |
| @@ -2891,8 +3191,25 @@ | ||
| 2891 | 3191 | } |
| 2892 | 3192 | .block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__image:not(:only-child) { |
| 2893 | 3193 | box-shadow: 0 0 0 2px var(--wp-admin-theme-color); |
| 2894 | 3194 | } |
| 3195 | +.block-editor-list-view-leaf.is-disabled { | |
| 3196 | + opacity: 0.2; | |
| 3197 | +} | |
| 3198 | +@media not (prefers-reduced-motion) { | |
| 3199 | + .block-editor-list-view-leaf.is-disabled { | |
| 3200 | + transition: opacity 0.1s linear; | |
| 3201 | + } | |
| 3202 | +} | |
| 3203 | +.block-editor-list-view-leaf.is-disabled:hover { | |
| 3204 | + opacity: 0.2; | |
| 3205 | +} | |
| 3206 | +.block-editor-list-view-leaf.is-disabled .block-editor-list-view__expander { | |
| 3207 | + cursor: default; | |
| 3208 | +} | |
| 3209 | +.block-editor-list-view-leaf.is-disabled .block-editor-list-view-block-select-button:hover { | |
| 3210 | + color: inherit; | |
| 3211 | +} | |
| 2895 | 3212 | |
| 2896 | 3213 | .block-editor-list-view-draggable-chip { |
| 2897 | 3214 | opacity: 0.8; |
| 2898 | 3215 | } |
| @@ -3089,11 +3406,15 @@ | ||
| 3089 | 3406 | padding: 16px; |
| 3090 | 3407 | } |
| 3091 | 3408 | |
| 3092 | 3409 | .block-editor-multi-selection-inspector__card-title { |
| 3093 | - font-weight: 499; | |
| 3410 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3094 | 3411 | } |
| 3095 | 3412 | |
| 3413 | +.block-editor-multi-selection-inspector__card-description { | |
| 3414 | + color: #757575; | |
| 3415 | +} | |
| 3416 | + | |
| 3096 | 3417 | .block-editor-multi-selection-inspector__card .block-editor-block-icon { |
| 3097 | 3418 | margin-right: -2px; |
| 3098 | 3419 | padding: 0 3px; |
| 3099 | 3420 | width: 36px; |
| @@ -3099,8 +3420,13 @@ | ||
| 3099 | 3420 | width: 36px; |
| 3100 | 3421 | height: 24px; |
| 3101 | 3422 | } |
| 3102 | 3423 | |
| 3424 | +.block-editor-plain-text { | |
| 3425 | + width: 100%; | |
| 3426 | + field-sizing: content; | |
| 3427 | +} | |
| 3428 | + | |
| 3103 | 3429 | .block-editor-responsive-block-control { |
| 3104 | 3430 | margin-bottom: 28px; |
| 3105 | 3431 | border-bottom: 1px solid #ccc; |
| 3106 | 3432 | padding-bottom: 14px; |
| @@ -3116,9 +3442,9 @@ | ||
| 3116 | 3442 | margin-right: -3px; |
| 3117 | 3443 | } |
| 3118 | 3444 | |
| 3119 | 3445 | .block-editor-responsive-block-control__label { |
| 3120 | - font-weight: 600; | |
| 3446 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3121 | 3447 | margin-bottom: 0.6em; |
| 3122 | 3448 | margin-right: -3px; |
| 3123 | 3449 | } |
| 3124 | 3450 | |
| @@ -3138,9 +3464,9 @@ | ||
| 3138 | 3464 | overflow: hidden; |
| 3139 | 3465 | padding: 0; |
| 3140 | 3466 | position: absolute; |
| 3141 | 3467 | width: 1px; |
| 3142 | - word-wrap: normal !important; | |
| 3468 | + overflow-wrap: normal !important; | |
| 3143 | 3469 | word-break: normal !important; |
| 3144 | 3470 | } |
| 3145 | 3471 | |
| 3146 | 3472 | .preset-input-control__wrapper > * { |
| @@ -3195,9 +3521,9 @@ | ||
| 3195 | 3521 | top: -9999em; |
| 3196 | 3522 | } |
| 3197 | 3523 | .block-editor-skip-to-selected-block:focus { |
| 3198 | 3524 | font-size: 14px; |
| 3199 | - font-weight: 600; | |
| 3525 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3200 | 3526 | background: #f1f1f1; |
| 3201 | 3527 | z-index: 100000; |
| 3202 | 3528 | } |
| 3203 | 3529 | |
| @@ -3393,8 +3719,13 @@ | ||
| 3393 | 3719 | padding: 16px; |
| 3394 | 3720 | border-top: 1px solid #1e1e1e; |
| 3395 | 3721 | } |
| 3396 | 3722 | |
| 3723 | +.block-editor-url-popover__link-container-content { | |
| 3724 | + display: flex; | |
| 3725 | + align-items: center; | |
| 3726 | +} | |
| 3727 | + | |
| 3397 | 3728 | .block-editor-url-popover__link-editor, |
| 3398 | 3729 | .block-editor-url-popover__link-viewer { |
| 3399 | 3730 | display: flex; |
| 3400 | 3731 | } |
| @@ -3439,180 +3770,8 @@ | ||
| 3439 | 3770 | .background-block-support-panel.background-block-support-panel .background-block-support-panel__inner-wrapper { |
| 3440 | 3771 | row-gap: 0; |
| 3441 | 3772 | } |
| 3442 | 3773 | |
| 3443 | -.block-editor-content-only-controls__link { | |
| 3444 | - width: 100%; | |
| 3445 | - box-shadow: inset 0 0 0 1px #ccc; | |
| 3446 | -} | |
| 3447 | -.block-editor-content-only-controls__link:focus:not(:disabled) { | |
| 3448 | - box-shadow: 0 0 0 currentColor inset, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 3449 | -} | |
| 3450 | - | |
| 3451 | -.block-editor-content-only-controls__link-row { | |
| 3452 | - align-items: center; | |
| 3453 | -} | |
| 3454 | - | |
| 3455 | -.block-editor-content-only-controls__link-title { | |
| 3456 | - width: 100%; | |
| 3457 | - white-space: nowrap; | |
| 3458 | - text-overflow: ellipsis; | |
| 3459 | - overflow: hidden; | |
| 3460 | -} | |
| 3461 | - | |
| 3462 | -.block-editor-content-only-controls__media { | |
| 3463 | - width: 100%; | |
| 3464 | - box-shadow: inset 0 0 0 1px #ccc; | |
| 3465 | - padding-left: 32px; | |
| 3466 | -} | |
| 3467 | -.block-editor-content-only-controls__media:focus:not(:disabled) { | |
| 3468 | - box-shadow: 0 0 0 currentColor inset, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 3469 | -} | |
| 3470 | - | |
| 3471 | -.block-editor-content-only-controls__media-replace-flow { | |
| 3472 | - display: block; | |
| 3473 | -} | |
| 3474 | - | |
| 3475 | -.block-editor-content-only-controls__media-row { | |
| 3476 | - align-items: center; | |
| 3477 | -} | |
| 3478 | - | |
| 3479 | -.block-editor-content-only-controls__media-placeholder { | |
| 3480 | - width: 24px; | |
| 3481 | - height: 24px; | |
| 3482 | - border-radius: 2px; | |
| 3483 | - box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); | |
| 3484 | - display: inline-block; | |
| 3485 | - padding: 0; | |
| 3486 | - background: #fff linear-gradient(45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%); | |
| 3487 | -} | |
| 3488 | - | |
| 3489 | -.block-editor-content-only-controls__media-title { | |
| 3490 | - width: 100%; | |
| 3491 | - white-space: nowrap; | |
| 3492 | - text-overflow: ellipsis; | |
| 3493 | - overflow: hidden; | |
| 3494 | -} | |
| 3495 | - | |
| 3496 | -.block-editor-content-only-controls__media-thumbnail { | |
| 3497 | - width: 20px; | |
| 3498 | - height: 20px; | |
| 3499 | - border-radius: 2px; | |
| 3500 | - align-self: center; | |
| 3501 | - overflow: hidden; | |
| 3502 | -} | |
| 3503 | -.block-editor-content-only-controls__media-thumbnail img { | |
| 3504 | - width: 100% !important; | |
| 3505 | - height: 100% !important; | |
| 3506 | - -o-object-fit: cover; | |
| 3507 | - object-fit: cover; | |
| 3508 | -} | |
| 3509 | - | |
| 3510 | -.block-editor-content-only-controls { | |
| 3511 | - position: relative; | |
| 3512 | -} | |
| 3513 | - | |
| 3514 | -.block-editor-content-only-controls__media-reset { | |
| 3515 | - position: absolute; | |
| 3516 | - left: 0; | |
| 3517 | - top: 8px; | |
| 3518 | - margin: auto 8px auto; | |
| 3519 | - opacity: 0; | |
| 3520 | - border-radius: 2px; | |
| 3521 | -} | |
| 3522 | -@media not (prefers-reduced-motion) { | |
| 3523 | - .block-editor-content-only-controls__media-reset { | |
| 3524 | - transition: opacity 0.1s ease-in-out; | |
| 3525 | - } | |
| 3526 | -} | |
| 3527 | -.block-editor-content-only-controls:hover .block-editor-content-only-controls__media-reset, .block-editor-content-only-controls__media-reset:focus, .block-editor-content-only-controls__media-reset:hover { | |
| 3528 | - opacity: 1; | |
| 3529 | -} | |
| 3530 | -@media (hover: none) { | |
| 3531 | - .block-editor-content-only-controls__media-reset { | |
| 3532 | - opacity: 1; | |
| 3533 | - } | |
| 3534 | -} | |
| 3535 | - | |
| 3536 | -.block-editor-content-only-controls__rich-text { | |
| 3537 | - width: 100%; | |
| 3538 | - margin: 0; | |
| 3539 | - background: #fff; | |
| 3540 | - color: #1e1e1e; | |
| 3541 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 3542 | - padding: 6px 8px; | |
| 3543 | - /* Fonts smaller than 16px causes mobile safari to zoom. */ | |
| 3544 | - font-size: 16px; | |
| 3545 | - /* Override core line-height. To be reviewed. */ | |
| 3546 | - line-height: normal; | |
| 3547 | - box-shadow: 0 0 0 transparent; | |
| 3548 | - border-radius: 2px; | |
| 3549 | - border: 1px solid #949494; | |
| 3550 | -} | |
| 3551 | -@media not (prefers-reduced-motion) { | |
| 3552 | - .block-editor-content-only-controls__rich-text { | |
| 3553 | - transition: box-shadow 0.1s linear; | |
| 3554 | - } | |
| 3555 | -} | |
| 3556 | -@media (min-width: 600px) { | |
| 3557 | - .block-editor-content-only-controls__rich-text { | |
| 3558 | - font-size: 13px; | |
| 3559 | - /* Override core line-height. To be reviewed. */ | |
| 3560 | - line-height: normal; | |
| 3561 | - } | |
| 3562 | -} | |
| 3563 | -.block-editor-content-only-controls__rich-text:focus { | |
| 3564 | - border-color: var(--wp-admin-theme-color, #3858e9); | |
| 3565 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color, #3858e9); | |
| 3566 | - outline: 2px solid transparent; | |
| 3567 | -} | |
| 3568 | -.block-editor-content-only-controls__rich-text::-moz-placeholder { | |
| 3569 | - color: rgba(30, 30, 30, 0.62); | |
| 3570 | -} | |
| 3571 | -.block-editor-content-only-controls__rich-text::placeholder { | |
| 3572 | - color: rgba(30, 30, 30, 0.62); | |
| 3573 | -} | |
| 3574 | -.block-editor-content-only-controls__rich-text { | |
| 3575 | - border-color: #949494; | |
| 3576 | -} | |
| 3577 | -.block-editor-content-only-controls__rich-text::-moz-placeholder { | |
| 3578 | - color: color-mix(in srgb, #1e1e1e, transparent 38%); | |
| 3579 | -} | |
| 3580 | -.block-editor-content-only-controls__rich-text::placeholder { | |
| 3581 | - color: color-mix(in srgb, #1e1e1e, transparent 38%); | |
| 3582 | -} | |
| 3583 | -.block-editor-content-only-controls__rich-text { | |
| 3584 | - min-height: 40px; | |
| 3585 | - padding: 12px; | |
| 3586 | -} | |
| 3587 | - | |
| 3588 | -.block-editor-block-fields__container { | |
| 3589 | - padding: 0 16px 16px; | |
| 3590 | -} | |
| 3591 | -.block-editor-block-fields__container:first-of-type { | |
| 3592 | - padding-block-start: 8px; | |
| 3593 | - /* | |
| 3594 | - * Add border for the entire content controls and remove the similar border | |
| 3595 | - * for tools panel. | |
| 3596 | - */ | |
| 3597 | - border-block-start: 1px solid #e0e0e0; | |
| 3598 | -} | |
| 3599 | - | |
| 3600 | -.block-editor-block-fields__header { | |
| 3601 | - padding: 8px 0; | |
| 3602 | - margin-bottom: 4px; | |
| 3603 | -} | |
| 3604 | - | |
| 3605 | -.block-editor-block-fields__header-icon { | |
| 3606 | - flex: 0 0 24px; | |
| 3607 | -} | |
| 3608 | - | |
| 3609 | -.block-editor-block-fields__header-title { | |
| 3610 | - flex: 1; | |
| 3611 | - /* Override the default margin on a h2 element. */ | |
| 3612 | - margin: 0 !important; | |
| 3613 | -} | |
| 3614 | - | |
| 3615 | 3774 | .block-editor-hooks__block-hooks { |
| 3616 | 3775 | /** |
| 3617 | 3776 | * Un-reverse the flex direction for the toggle's label. |
| 3618 | 3777 | */ |
| @@ -3946,9 +4105,9 @@ | ||
| 3946 | 4105 | } |
| 3947 | 4106 | .block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list { |
| 3948 | 4107 | display: grid; |
| 3949 | 4108 | grid-template-columns: 1fr 1fr; |
| 3950 | - grid-gap: 12px; | |
| 4109 | + gap: 12px; | |
| 3951 | 4110 | } |
| 3952 | 4111 | .block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item { |
| 3953 | 4112 | margin-bottom: 0; |
| 3954 | 4113 | } |
| @@ -3960,9 +4119,9 @@ | ||
| 3960 | 4119 | display: inline-block; |
| 3961 | 4120 | background: none; |
| 3962 | 4121 | border: none; |
| 3963 | 4122 | padding: 0; |
| 3964 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 4123 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 3965 | 4124 | font-size: 13px; |
| 3966 | 4125 | line-height: 0; |
| 3967 | 4126 | } |
| 3968 | 4127 | @media (min-width: 782px) { |
| @@ -4096,9 +4255,9 @@ | ||
| 4096 | 4255 | margin: 0 0 0 12px; |
| 4097 | 4256 | color: #757575; |
| 4098 | 4257 | text-transform: uppercase; |
| 4099 | 4258 | font-size: 11px; |
| 4100 | - font-weight: 499; | |
| 4259 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 4101 | 4260 | } |
| 4102 | 4261 | |
| 4103 | 4262 | .block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input { |
| 4104 | 4263 | height: 36px; |
| @@ -4134,12 +4293,8 @@ | ||
| 4134 | 4293 | .block-editor-inserter__parent-block-header .block-editor-block-icon { |
| 4135 | 4294 | margin-left: 8px; |
| 4136 | 4295 | } |
| 4137 | 4296 | |
| 4138 | -.block-editor-inserter__preview-container__popover { | |
| 4139 | - top: 16px !important; | |
| 4140 | -} | |
| 4141 | - | |
| 4142 | 4297 | .block-editor-inserter__preview-container { |
| 4143 | 4298 | display: none; |
| 4144 | 4299 | width: 280px; |
| 4145 | 4300 | padding: 16px; |
| @@ -4280,9 +4435,9 @@ | ||
| 4280 | 4435 | |
| 4281 | 4436 | .block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list { |
| 4282 | 4437 | display: grid; |
| 4283 | 4438 | grid-template-columns: 1fr 1fr; |
| 4284 | - grid-gap: 8px; | |
| 4439 | + gap: 8px; | |
| 4285 | 4440 | } |
| 4286 | 4441 | .block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item { |
| 4287 | 4442 | margin-bottom: 0; |
| 4288 | 4443 | } |
| @@ -4297,59 +4452,54 @@ | ||
| 4297 | 4452 | .block-editor-inserter__popover.is-quick > .components-popover__content { |
| 4298 | 4453 | padding: 0; |
| 4299 | 4454 | } |
| 4300 | 4455 | |
| 4301 | -.block-editor-inserter__quick-inserter-expand.components-button { | |
| 4302 | - display: block; | |
| 4303 | - background: #1e1e1e; | |
| 4304 | - color: #fff; | |
| 4456 | +.block-editor-inserter__quick-inserter-expand { | |
| 4457 | + padding: 0 16px 16px; | |
| 4458 | +} | |
| 4459 | + | |
| 4460 | +.block-editor-inserter__quick-inserter-expand-toggle { | |
| 4305 | 4461 | width: 100%; |
| 4306 | - border-radius: 0; | |
| 4462 | + justify-content: center; | |
| 4307 | 4463 | } |
| 4308 | -.block-editor-inserter__quick-inserter-expand.components-button:hover { | |
| 4309 | - color: #fff; | |
| 4310 | -} | |
| 4311 | -.block-editor-inserter__quick-inserter-expand.components-button:active { | |
| 4312 | - color: #ccc; | |
| 4313 | -} | |
| 4314 | -.block-editor-inserter__quick-inserter-expand.components-button.components-button:focus:not(:disabled) { | |
| 4315 | - box-shadow: none; | |
| 4316 | - background: var(--wp-admin-theme-color); | |
| 4317 | - border-color: var(--wp-admin-theme-color); | |
| 4318 | -} | |
| 4319 | 4464 | |
| 4320 | 4465 | .block-editor-block-patterns-explorer__sidebar { |
| 4321 | - position: absolute; | |
| 4322 | - top: 72px; | |
| 4323 | - right: 0; | |
| 4324 | - bottom: 0; | |
| 4325 | - width: 280px; | |
| 4326 | - padding: 24px 24px 24px; | |
| 4327 | - overflow-x: visible; | |
| 4328 | - overflow-y: auto; | |
| 4466 | + padding-bottom: 24px; | |
| 4329 | 4467 | } |
| 4330 | -.block-editor-block-patterns-explorer__sidebar__categories-list__item { | |
| 4331 | - display: block; | |
| 4332 | - width: 100%; | |
| 4333 | - height: 48px; | |
| 4334 | - text-align: right; | |
| 4468 | +@media (min-width: 782px) { | |
| 4469 | + .block-editor-block-patterns-explorer__sidebar { | |
| 4470 | + position: absolute; | |
| 4471 | + top: 72px; | |
| 4472 | + right: 0; | |
| 4473 | + bottom: 0; | |
| 4474 | + width: 280px; | |
| 4475 | + padding: 24px; | |
| 4476 | + overflow-x: visible; | |
| 4477 | + overflow-y: auto; | |
| 4478 | + } | |
| 4335 | 4479 | } |
| 4336 | -.block-editor-block-patterns-explorer__search { | |
| 4337 | - margin-bottom: 32px; | |
| 4480 | + | |
| 4481 | +@media (min-width: 782px) { | |
| 4482 | + .block-editor-block-patterns-explorer__panel { | |
| 4483 | + margin-inline-start: 280px; | |
| 4484 | + } | |
| 4338 | 4485 | } |
| 4339 | -.block-editor-block-patterns-explorer__search-results-count { | |
| 4340 | - padding-bottom: 32px; | |
| 4486 | + | |
| 4487 | +.block-editor-block-patterns-explorer__no-results { | |
| 4488 | + padding: 32px; | |
| 4489 | + text-align: center; | |
| 4341 | 4490 | } |
| 4491 | + | |
| 4342 | 4492 | .block-editor-block-patterns-explorer__list { |
| 4343 | - margin-right: 280px; | |
| 4344 | 4493 | padding: 24px 0 32px; |
| 4345 | 4494 | } |
| 4346 | 4495 | .block-editor-block-patterns-explorer__list .block-editor-patterns__sync-status-filter .components-input-control__container { |
| 4347 | 4496 | width: 380px; |
| 4348 | 4497 | } |
| 4498 | + | |
| 4349 | 4499 | .block-editor-block-patterns-explorer .block-editor-block-patterns-list { |
| 4350 | 4500 | display: grid; |
| 4351 | - grid-gap: 32px; | |
| 4501 | + gap: 32px; | |
| 4352 | 4502 | grid-template-columns: repeat(1, 1fr); |
| 4353 | 4503 | margin-bottom: 16px; |
| 4354 | 4504 | } |
| 4355 | 4505 | @media (min-width: 1080px) { |
| @@ -4371,9 +4521,9 @@ | ||
| 4371 | 4521 | max-height: 800px; |
| 4372 | 4522 | } |
| 4373 | 4523 | |
| 4374 | 4524 | .components-heading.block-editor-inserter__patterns-category-panel-title { |
| 4375 | - font-weight: 499; | |
| 4525 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 4376 | 4526 | } |
| 4377 | 4527 | |
| 4378 | 4528 | .block-editor-inserter__patterns-explore-button.components-button, |
| 4379 | 4529 | .block-editor-inserter__media-library-button.components-button { |
| @@ -4382,17 +4532,26 @@ | ||
| 4382 | 4532 | margin-top: 16px; |
| 4383 | 4533 | width: 100%; |
| 4384 | 4534 | } |
| 4385 | 4535 | |
| 4536 | +.block-editor-inserter__media-mobile-screen { | |
| 4537 | + display: flex; | |
| 4538 | + flex-direction: column; | |
| 4539 | + align-self: stretch; | |
| 4540 | +} | |
| 4541 | + | |
| 4386 | 4542 | .block-editor-inserter__media-panel { |
| 4387 | - min-height: 100%; | |
| 4388 | 4543 | padding: 0 16px; |
| 4389 | 4544 | display: flex; |
| 4390 | 4545 | flex-direction: column; |
| 4546 | + flex: 1; | |
| 4547 | + min-height: 0; | |
| 4391 | 4548 | } |
| 4392 | 4549 | @media (min-width: 782px) { |
| 4393 | 4550 | .block-editor-inserter__media-panel { |
| 4394 | 4551 | padding: 0; |
| 4552 | + flex: 0 1 auto; | |
| 4553 | + min-height: 100%; | |
| 4395 | 4554 | } |
| 4396 | 4555 | } |
| 4397 | 4556 | .block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner { |
| 4398 | 4557 | height: 100%; |
| @@ -4409,9 +4568,68 @@ | ||
| 4409 | 4568 | margin-bottom: 0; |
| 4410 | 4569 | padding: 16px 24px 16px; |
| 4411 | 4570 | } |
| 4412 | 4571 | } |
| 4572 | +.block-editor-inserter__media-panel .block-editor-inserter__no-results { | |
| 4573 | + flex-grow: 1; | |
| 4574 | +} | |
| 4575 | +.block-editor-inserter__media-panel .block-editor-inserter__media-panel-footer { | |
| 4576 | + flex-shrink: 0; | |
| 4577 | + padding-top: 16px; | |
| 4578 | + padding-bottom: 16px; | |
| 4579 | +} | |
| 4580 | +@media (min-width: 782px) { | |
| 4581 | + .block-editor-inserter__media-panel .block-editor-inserter__media-panel-footer { | |
| 4582 | + padding-right: 24px; | |
| 4583 | + padding-left: 24px; | |
| 4584 | + } | |
| 4585 | +} | |
| 4586 | +.block-editor-inserter__media-panel .block-editor-inserter__media-panel-attach.components-button { | |
| 4587 | + justify-content: center; | |
| 4588 | + padding: 16px; | |
| 4589 | +} | |
| 4590 | +.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results { | |
| 4591 | + display: flex; | |
| 4592 | + flex-direction: column; | |
| 4593 | + flex-grow: 1; | |
| 4594 | + min-height: 0; | |
| 4595 | +} | |
| 4596 | +.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results.is-loading .block-editor-inserter__media-list { | |
| 4597 | + opacity: 0.5; | |
| 4598 | + pointer-events: none; | |
| 4599 | +} | |
| 4600 | +@media not (prefers-reduced-motion) { | |
| 4601 | + .block-editor-inserter__media-panel .block-editor-inserter__media-panel-results.is-loading .block-editor-inserter__media-list { | |
| 4602 | + opacity: 1; | |
| 4603 | + animation: inserter-media-panel-pulse 1s ease-in-out infinite; | |
| 4604 | + } | |
| 4605 | +} | |
| 4606 | +.block-editor-inserter__media-panel.has-footer .block-editor-inserter__media-list { | |
| 4607 | + padding-bottom: 0; | |
| 4608 | +} | |
| 4413 | 4609 | |
| 4610 | +@keyframes inserter-media-panel-pulse { | |
| 4611 | + 0%, 100% { | |
| 4612 | + opacity: 1; | |
| 4613 | + } | |
| 4614 | + 50% { | |
| 4615 | + opacity: 0.5; | |
| 4616 | + } | |
| 4617 | +} | |
| 4618 | +.block-editor-inserter__media-panel-detach-modal { | |
| 4619 | + z-index: 1000001; | |
| 4620 | +} | |
| 4621 | +.block-editor-inserter__media-panel-detach-modal p { | |
| 4622 | + margin-top: 0; | |
| 4623 | +} | |
| 4624 | + | |
| 4625 | +.block-editor-inserter__media-panel-detach-actions { | |
| 4626 | + display: flex; | |
| 4627 | + justify-content: flex-end; | |
| 4628 | + gap: 8px; | |
| 4629 | + margin-top: 16px; | |
| 4630 | +} | |
| 4631 | + | |
| 4414 | 4632 | .block-editor-inserter__media-list__list-item { |
| 4415 | 4633 | position: relative; |
| 4416 | 4634 | cursor: var(--wpds-cursor-control, pointer); |
| 4417 | 4635 | margin-bottom: 24px; |
| @@ -4424,9 +4642,9 @@ | ||
| 4424 | 4642 | } |
| 4425 | 4643 | .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview > * { |
| 4426 | 4644 | outline-color: rgba(0, 0, 0, 0.3); |
| 4427 | 4645 | } |
| 4428 | -.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options > button { | |
| 4646 | +.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options > button, .block-editor-inserter__media-list__list-item:focus-within .block-editor-inserter__media-list__item-preview-options > button { | |
| 4429 | 4647 | display: block; |
| 4430 | 4648 | } |
| 4431 | 4649 | .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options { |
| 4432 | 4650 | position: absolute; |
| @@ -4608,12 +4826,12 @@ | ||
| 4608 | 4826 | flex-direction: column; |
| 4609 | 4827 | align-items: start; |
| 4610 | 4828 | } |
| 4611 | 4829 | .block-editor-block-visibility-modal__options-checkbox--everywhere { |
| 4612 | - font-weight: 600; | |
| 4830 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 4613 | 4831 | } |
| 4614 | 4832 | .block-editor-block-visibility-modal__options-icon--checked { |
| 4615 | - fill: #ddd; | |
| 4833 | + color: #ddd; | |
| 4616 | 4834 | } |
| 4617 | 4835 | .block-editor-block-visibility-modal__sub-options { |
| 4618 | 4836 | width: 100%; |
| 4619 | 4837 | padding-inline-start: 12px; |
| @@ -4623,11 +4841,52 @@ | ||
| 4623 | 4841 | color: #757575; |
| 4624 | 4842 | } |
| 4625 | 4843 | |
| 4626 | 4844 | .block-editor-block-visibility-info { |
| 4627 | - padding-top: 4px; | |
| 4628 | - padding-bottom: 4px; | |
| 4629 | 4845 | margin: 0 16px 16px; |
| 4630 | - display: flex; | |
| 4631 | - align-items: center; | |
| 4632 | - justify-content: start; | |
| 4846 | +} | |
| 4847 | + | |
| 4848 | +/* The stop element is invisible, so its focus indication is drawn around the | |
| 4849 | + canvas it stands for. For the iframed canvas it is an overlay instead of | |
| 4850 | + an outline, because Safari paints an outline on an iframe element | |
| 4851 | + underneath the iframe's content. */ | |
| 4852 | +.block-editor-iframe__scale-container > .block-editor-writing-flow__canvas-stop:focus::after { | |
| 4853 | + content: ""; | |
| 4854 | + position: absolute; | |
| 4855 | + inset: 0; | |
| 4856 | + z-index: 1; | |
| 4857 | + pointer-events: none; | |
| 4858 | + border: var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color); | |
| 4859 | +} | |
| 4860 | + | |
| 4861 | +.block-editor-writing-flow__canvas-stop:focus + .block-editor-writing-flow { | |
| 4862 | + outline: var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color); | |
| 4863 | + outline-offset: calc(-1 * var(--wp-admin-border-width-focus)); | |
| 4864 | +} | |
| 4865 | + | |
| 4866 | +/* Looks like a tooltip. Shown at the top of the canvas while the stop is | |
| 4867 | + focused. Sticky, because on the widgets screen the stop spans scrolling | |
| 4868 | + content and the hint must stay in view; anywhere else there is nothing | |
| 4869 | + to scroll and it stays at the top of the canvas. */ | |
| 4870 | +.block-editor-writing-flow__canvas-stop-hint { | |
| 4871 | + display: none; | |
| 4872 | + position: sticky; | |
| 4873 | + top: 16px; | |
| 4874 | + margin-inline: auto; | |
| 4875 | + width: fit-content; | |
| 4876 | + z-index: 2; | |
| 4877 | + background: #000; | |
| 4878 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 4879 | + border-radius: 4px; | |
| 4880 | + color: #f0f0f0; | |
| 4881 | + text-align: center; | |
| 4882 | + line-height: 1.4; | |
| 4883 | + font-size: 12px; | |
| 4884 | + padding: 4px 8px; | |
| 4885 | + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02); | |
| 4886 | + white-space: nowrap; | |
| 4887 | + pointer-events: none; | |
| 4888 | +} | |
| 4889 | + | |
| 4890 | +.block-editor-writing-flow__canvas-stop:focus > .block-editor-writing-flow__canvas-stop-hint { | |
| 4891 | + display: block; | |
| 4633 | 4892 | } |