PluginProbe
Gutenberg / 24.1.0
Gutenberg v24.1.0
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | build/styles/block-editor/style.css +651 -397 23.4.0 → 24.1.0 View file →
@@ -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-left: 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-left: 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-left: 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-left: 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 left: 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 + left: 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-right: 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 + left: 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-right: 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-right: 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 }
@@ -1518,8 +1576,12 @@
1518 1576 .block-editor-panel-color-gradient-settings__color-indicator {
1519 1577 background: linear-gradient(-45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
1520 1578 }
1521 1579
1580 +.block-editor-panel-color-gradient-settings__contrast-notice {
1581 + margin-top: 16px;
1582 +}
1583 +
1522 1584 /**
1523 1585 * The following styles replicate the separated border of the
1524 1586 * `ItemGroup` component but allows for hidden items. This is because
1525 1587 * to maintain the order of `ToolsPanel` controls, each `ToolsPanelItem`
@@ -1524,10 +1586,14 @@
1524 1586 * `ItemGroup` component but allows for hidden items. This is because
1525 1587 * to maintain the order of `ToolsPanel` controls, each `ToolsPanelItem`
1526 1588 * must at least render a placeholder which would otherwise interfere
1527 1589 * with the `:last-child` styles.
1590 +*
1591 +* Applied via the shared `block-editor-color-gradient-item` class on
1592 +* color/gradient dropdown items across the Color, Background, and
1593 +* Typography panels.
1528 1594 */
1529 -.block-editor-tools-panel-color-gradient-settings__item {
1595 +.block-editor-color-gradient-item {
1530 1596 padding: 0;
1531 1597 max-width: 100%;
1532 1598 position: relative;
1533 1599 border-left: 1px solid #ddd;
@@ -1533,20 +1599,19 @@
1533 1599 border-left: 1px solid #ddd;
1534 1600 border-right: 1px solid #ddd;
1535 1601 border-bottom: 1px solid #ddd;
1536 1602 }
1537 -.block-editor-tools-panel-color-gradient-settings__item:nth-child(1 of .block-editor-tools-panel-color-gradient-settings__item) {
1538 - margin-top: 24px;
1603 +.block-editor-color-gradient-item:nth-child(1 of .block-editor-color-gradient-item) {
1539 1604 border-top-left-radius: 2px;
1540 1605 border-top-right-radius: 2px;
1541 1606 border-top: 1px solid #ddd;
1542 1607 }
1543 -.block-editor-tools-panel-color-gradient-settings__item:nth-last-child(1 of .block-editor-tools-panel-color-gradient-settings__item) {
1608 +.block-editor-color-gradient-item:nth-last-child(1 of .block-editor-color-gradient-item) {
1544 1609 border-bottom-left-radius: 2px;
1545 1610 border-bottom-right-radius: 2px;
1546 1611 }
1547 -.block-editor-tools-panel-color-gradient-settings__item > div,
1548 -.block-editor-tools-panel-color-gradient-settings__item > div > button {
1612 +.block-editor-color-gradient-item > div,
1613 +.block-editor-color-gradient-item > div > button {
1549 1614 border-radius: inherit;
1550 1615 }
1551 1616
1552 1617 .block-editor-tools-panel-color-gradient-settings__dropdown {
@@ -1563,13 +1628,17 @@
1563 1628 background: #f0f0f0;
1564 1629 color: var(--wp-admin-theme-color);
1565 1630 }
1566 1631 .block-editor-tools-panel-color-gradient-settings__dropdown .block-editor-panel-color-gradient-settings__color-name {
1632 + min-width: 0;
1567 1633 white-space: nowrap;
1568 1634 overflow: hidden;
1569 1635 text-overflow: ellipsis;
1570 1636 max-width: calc(100% - 44px);
1571 1637 }
1638 +.block-editor-tools-panel-color-gradient-settings__dropdown > button.has-contrast-warning .block-editor-panel-color-gradient-settings__color-name {
1639 + max-width: calc(100% - 72px);
1640 +}
1572 1641
1573 1642 .block-editor-panel-color-gradient-settings__dropdown {
1574 1643 width: 100%;
1575 1644 }
@@ -1576,8 +1645,21 @@
1576 1645 .block-editor-panel-color-gradient-settings__dropdown .component-color-indicator {
1577 1646 flex-shrink: 0;
1578 1647 }
1579 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 +
1580 1662 .block-editor-panel-color-gradient-settings__reset {
1581 1663 position: absolute;
1582 1664 right: 0;
1583 1665 top: 8px;
@@ -1599,9 +1681,22 @@
1599 1681 .block-editor-panel-color-gradient-settings__reset {
1600 1682 opacity: 1;
1601 1683 }
1602 1684 }
1685 +.block-editor-panel-color-gradient-settings__dropdown.has-contrast-warning + .block-editor-panel-color-gradient-settings__reset {
1686 + right: 28px;
1687 +}
1603 1688
1689 +.block-editor-panel-color-gradient-settings__contrast-warning {
1690 + position: absolute;
1691 + right: 0;
1692 + top: 8px;
1693 + margin: auto 8px auto;
1694 +}
1695 +.block-editor-panel-color-gradient-settings__contrast-warning.block-editor-panel-color-gradient-settings__contrast-warning {
1696 + border-radius: 2px;
1697 +}
1698 +
1604 1699 .block-editor-date-format-picker {
1605 1700 margin: 0 0 16px;
1606 1701 padding: 0;
1607 1702 border: none;
@@ -1610,8 +1705,14 @@
1610 1705 .block-editor-date-format-picker__custom-format-select-control__custom-option {
1611 1706 border-top: 1px solid #ddd;
1612 1707 }
1613 1708
1709 +.block-editor-dimension-control {
1710 + border: 0;
1711 + margin: 0;
1712 + padding: 0;
1713 +}
1714 +
1614 1715 .block-editor-duotone-control__popover.components-popover > .components-popover__content {
1615 1716 padding: 8px;
1616 1717 width: 260px;
1617 1718 }
@@ -1664,8 +1765,13 @@
1664 1765 .block-editor-global-styles-state-control__badges {
1665 1766 min-height: 24px;
1666 1767 }
1667 1768
1769 +.block-editor-global-styles-state-control__badge-tooltip-trigger {
1770 + display: inline-flex;
1771 + max-width: 100%;
1772 +}
1773 +
1668 1774 .block-editor-global-styles-filters-panel__dropdown,
1669 1775 .block-editor-global-styles__shadow-dropdown {
1670 1776 display: block;
1671 1777 padding: 0;
@@ -1683,8 +1789,17 @@
1683 1789 .block-editor-global-styles__shadow-dropdown-toggle.is-open {
1684 1790 background-color: #f0f0f0;
1685 1791 }
1686 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 +
1687 1802 .block-editor-global-styles__shadow-editor__remove-button {
1688 1803 position: absolute;
1689 1804 right: 0;
1690 1805 top: 8px;
@@ -1705,11 +1820,9 @@
1705 1820 }
1706 1821 }
1707 1822
1708 1823 .block-editor-global-styles__shadow-indicator {
1709 - -webkit-appearance: none;
1710 - -moz-appearance: none;
1711 - appearance: none;
1824 + appearance: none;
1712 1825 background: none;
1713 1826 color: #2f2f2f;
1714 1827 border: #e0e0e0 1px solid;
1715 1828 border-radius: 2px;
@@ -1769,8 +1882,189 @@
1769 1882 opacity: 1;
1770 1883 }
1771 1884 }
1772 1885
1886 +.block-editor-global-styles__text-shadow {
1887 + width: 260px;
1888 + padding: 8px;
1889 +}
1890 +
1891 +.block-editor-global-styles__text-shadow-preview {
1892 + display: flex;
1893 + align-items: center;
1894 + justify-content: center;
1895 + height: 80px;
1896 + border: #ddd 1px solid;
1897 + border-radius: 2px;
1898 + font-size: 24px;
1899 + margin-bottom: 16px;
1900 + /*rtl:begin:ignore*/
1901 + 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);
1902 + background-position: 0 0, 8px 8px;
1903 + /*rtl:end:ignore*/
1904 + background-size: 16px 16px;
1905 +}
1906 +
1907 +.block-editor-global-styles__text-shadow-list-item {
1908 + justify-content: space-between;
1909 + gap: 8px;
1910 + width: 100%;
1911 +}
1912 +.block-editor-global-styles__text-shadow-list-item:not(.is-active) svg {
1913 + opacity: 0;
1914 +}
1915 +
1916 +.block-editor-global-styles__text-shadow-dropdown {
1917 + display: block;
1918 + padding: 0;
1919 + position: relative;
1920 + border: 1px solid #ddd;
1921 + border-radius: 2px;
1922 +}
1923 +
1924 +.block-editor-global-styles__text-shadow-dropdown-toggle {
1925 + width: 100%;
1926 + padding: 8px;
1927 +}
1928 +.block-editor-global-styles__text-shadow-dropdown-toggle.is-open {
1929 + background-color: #f0f0f0;
1930 +}
1931 +
1932 +.block-editor-global-styles__text-shadow-remove-button {
1933 + position: absolute;
1934 + right: 8px;
1935 + top: 8px;
1936 + opacity: 0;
1937 +}
1938 +@media not (prefers-reduced-motion) {
1939 + .block-editor-global-styles__text-shadow-remove-button {
1940 + transition: opacity 0.1s ease-in-out;
1941 + }
1942 +}
1943 +.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 {
1944 + opacity: 1;
1945 +}
1946 +@media (hover: none) {
1947 + .block-editor-global-styles__text-shadow-remove-button {
1948 + opacity: 1;
1949 + }
1950 +}
1951 +
1952 +.is-inherited-from-global-styles .components-base-control__label,
1953 +.is-inherited-from-global-styles .components-input-control__label {
1954 + text-decoration-line: underline;
1955 + text-decoration-style: dotted;
1956 + text-decoration-thickness: 1px;
1957 + text-underline-offset: 0.2em;
1958 +}
1959 +.is-inherited-from-global-styles .block-editor-panel-color-gradient-settings__color-name,
1960 +.is-inherited-from-global-styles .block-editor-global-styles-background-panel__inspector-media-replace-title,
1961 +.is-inherited-from-global-styles .block-editor-panel-duotone-settings__label {
1962 + border-bottom: 1px dotted currentColor;
1963 +}
1964 +
1965 +.has-local-override-from-global-styles {
1966 + position: relative;
1967 +}
1968 +
1969 +.global-styles-inheritance-affordance {
1970 + position: absolute;
1971 + inset-block-start: 0;
1972 + inset-inline-end: 0;
1973 + z-index: 1;
1974 + display: flex;
1975 + align-items: center;
1976 + justify-content: center;
1977 + pointer-events: none;
1978 + height: 16px;
1979 +}
1980 +.global-styles-inheritance-affordance--offset-toggle {
1981 + inset-inline-end: 32px;
1982 +}
1983 +.global-styles-inheritance-affordance .has-local-override-from-global-styles__reset {
1984 + pointer-events: auto;
1985 + margin-inline-start: 0 !important;
1986 +}
1987 +
1988 +.has-local-override-from-global-styles__reset {
1989 + display: inline-flex !important;
1990 + align-items: center;
1991 + justify-content: center;
1992 + vertical-align: middle;
1993 + position: relative;
1994 + margin-inline-start: 6px;
1995 + min-width: 14px !important;
1996 + width: 14px !important;
1997 + height: 14px !important;
1998 + padding: 0 !important;
1999 + border-radius: 50% !important;
2000 + background: transparent !important;
2001 + box-shadow: none !important;
2002 + overflow: hidden;
2003 + text-transform: none;
2004 + letter-spacing: normal;
2005 + cursor: var(--wpds-cursor-control, pointer);
2006 +}
2007 +.has-local-override-from-global-styles__reset:hover, .has-local-override-from-global-styles__reset:focus {
2008 + background: transparent !important;
2009 +}
2010 +.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 {
2011 + display: none;
2012 +}
2013 +.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 {
2014 + display: block;
2015 +}
2016 +.has-local-override-from-global-styles__reset:focus-visible {
2017 + outline: 1.5px solid var(--wp-admin-theme-color, #007cba);
2018 + outline-offset: 1px;
2019 +}
2020 +.has-local-override-from-global-styles__reset.block-editor-panel-color-gradient-settings__reset {
2021 + position: absolute;
2022 + justify-content: center;
2023 + top: 50%;
2024 + transform: translateY(-50%);
2025 + margin-block: 0;
2026 + margin-inline-start: 0;
2027 + opacity: 1;
2028 +}
2029 +.has-local-override-from-global-styles__reset.block-editor-global-styles__shadow-editor__remove-button {
2030 + position: absolute;
2031 + justify-content: center;
2032 + inset-inline-end: 8px;
2033 + top: 50%;
2034 + transform: translateY(-50%);
2035 + margin-block: 0;
2036 + margin-inline-start: 0;
2037 + opacity: 1;
2038 +}
2039 +.has-local-override-from-global-styles__reset.block-editor-panel-duotone-settings__reset {
2040 + position: absolute;
2041 + justify-content: center;
2042 + inset-inline-end: 8px;
2043 + top: 50%;
2044 + transform: translateY(-50%);
2045 + margin-block: 0;
2046 + margin-inline-start: 0;
2047 + opacity: 1;
2048 +}
2049 +
2050 +.has-local-override-from-global-styles__dot {
2051 + display: block;
2052 + width: 8px;
2053 + height: 8px;
2054 + background-color: var(--wp-admin-theme-color, #007cba);
2055 + border-radius: 50%;
2056 +}
2057 +
2058 +.has-local-override-from-global-styles__reset-icon {
2059 + display: none;
2060 + position: absolute;
2061 + top: 50%;
2062 + left: 50%;
2063 + transform: translate(-50%, -50%);
2064 + color: var(--wp-admin-theme-color, #007cba);
2065 +}
2066 +
1773 2067 .block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer {
1774 2068 z-index: 30;
1775 2069 }
1776 2070 .block-editor-grid-visualizer.block-editor-grid-visualizer.block-editor-grid-visualizer .components-popover__content * {
@@ -1875,16 +2169,8 @@
1875 2169 animation: components-button__appear-animation 0.1s ease;
1876 2170 animation-fill-mode: forwards;
1877 2171 }
1878 2172 }
1879 -.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 {
1880 - box-shadow: none;
1881 - outline: none;
1882 -}
1883 -.block-editor-grid-item-mover__move-button-container .block-editor-grid-item-mover-button:focus-visible::before {
1884 - box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
1885 - outline: 2px solid transparent;
1886 -}
1887 2173
1888 2174 .block-editor-grid-item-mover__move-vertical-button-container {
1889 2175 display: flex;
1890 2176 position: relative;
@@ -1998,8 +2284,27 @@
1998 2284 position: absolute;
1999 2285 right: 0;
2000 2286 }
2001 2287
2288 +.wp-block-image__crop-area {
2289 + position: relative;
2290 + max-width: 100%;
2291 + width: 100%;
2292 + overflow: hidden;
2293 +}
2294 +.wp-block-image__crop-area .reactEasyCrop_Container {
2295 + pointer-events: auto;
2296 +}
2297 +.wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image {
2298 + border: none;
2299 + border-radius: 0;
2300 +}
2301 +
2302 +.wp-block-image__zoom .components-popover__content {
2303 + min-width: 260px;
2304 + overflow: visible !important;
2305 +}
2306 +
2002 2307 .block-editor-block-types-list__list-item {
2003 2308 display: block;
2004 2309 width: 33.33%;
2005 2310 padding: 0;
@@ -2029,9 +2334,10 @@
2029 2334 align-items: stretch;
2030 2335 justify-content: center;
2031 2336 cursor: var(--wpds-cursor-control, pointer);
2032 2337 background: transparent;
2033 - word-break: break-word;
2338 + word-break: normal;
2339 + overflow-wrap: break-word;
2034 2340 }
2035 2341 @media not (prefers-reduced-motion) {
2036 2342 .components-button.block-editor-block-types-list__item {
2037 2343 transition: all 0.05s ease-in-out;
@@ -2063,17 +2369,8 @@
2063 2369 opacity: 0.04;
2064 2370 background: var(--wp-admin-theme-color);
2065 2371 pointer-events: none;
2066 2372 }
2067 -.components-button.block-editor-block-types-list__item:not(:disabled, [aria-disabled=true]).is-active {
2068 - color: #fff;
2069 - background: #1e1e1e;
2070 - outline: 2px solid transparent;
2071 - outline-offset: -2px;
2072 -}
2073 -.components-button.block-editor-block-types-list__item:not(:disabled):focus {
2074 - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
2075 -}
2076 2373
2077 2374 .block-editor-block-types-list__item-icon {
2078 2375 padding: 12px 20px;
2079 2376 color: #1e1e1e;
@@ -2246,9 +2543,9 @@
2246 2543 display: inline-block;
2247 2544 width: 100%;
2248 2545 }
2249 2546 .block-editor-link-control__search-item .components-menu-item__item mark {
2250 - font-weight: 600;
2547 + font-weight: var(--wpds-typography-font-weight-emphasis, 600);
2251 2548 color: inherit;
2252 2549 background-color: transparent;
2253 2550 }
2254 2551 .block-editor-link-control__search-item .components-menu-item__shortcut {
@@ -2295,9 +2592,9 @@
2295 2592 width: 32px;
2296 2593 max-height: 32px;
2297 2594 }
2298 2595 .block-editor-link-control__preview .block-editor-link-control__preview-title {
2299 - line-height: 1.1;
2596 + line-height: var(--wpds-typography-line-height-sm, 20px);
2300 2597 }
2301 2598 .block-editor-link-control__preview .block-editor-link-control__preview-title:focus {
2302 2599 box-shadow: none;
2303 2600 }
@@ -2306,14 +2603,14 @@
2306 2603 outline: 2px solid transparent;
2307 2604 text-decoration: none;
2308 2605 }
2309 2606 .block-editor-link-control__preview .block-editor-link-control__preview-title mark {
2310 - font-weight: 600;
2607 + font-weight: var(--wpds-typography-font-weight-emphasis, 600);
2311 2608 color: inherit;
2312 2609 background-color: transparent;
2313 2610 }
2314 2611 .block-editor-link-control__preview .block-editor-link-control__preview-title span {
2315 - font-weight: normal;
2612 + font-weight: 400;
2316 2613 }
2317 2614 .block-editor-link-control__preview .block-editor-link-control__preview-title .components-external-link__icon {
2318 2615 position: absolute;
2319 2616 width: 1px;
@@ -2320,9 +2617,9 @@
2320 2617 height: 1px;
2321 2618 padding: 0;
2322 2619 margin: -1px;
2323 2620 overflow: hidden;
2324 - clip: rect(0, 0, 0, 0);
2621 + clip-path: inset(50%);
2325 2622 border: 0;
2326 2623 }
2327 2624
2328 2625 .block-editor-link-control__preview.is-fetching .block-editor-link-control__preview-icon svg,
@@ -2464,9 +2761,8 @@
2464 2761 .link-preview-button.components-button {
2465 2762 width: 100%;
2466 2763 height: auto;
2467 2764 padding: 12px;
2468 - box-shadow: inset 0 0 0 1px #949494;
2469 2765 border-color: #949494;
2470 2766 }
2471 2767
2472 2768 .link-preview-button__image-container {
@@ -2477,10 +2773,9 @@
2477 2773
2478 2774 .link-preview-button__image {
2479 2775 width: 100%;
2480 2776 height: 100%;
2481 - -o-object-fit: cover;
2482 - object-fit: cover;
2777 + object-fit: cover;
2483 2778 border-radius: 2px;
2484 2779 }
2485 2780
2486 2781 .link-preview-button__content {
@@ -2505,9 +2800,9 @@
2505 2800 }
2506 2801
2507 2802 .link-preview-button__title {
2508 2803 margin-top: 4px;
2509 - font-weight: 500;
2804 + font-weight: var(--wpds-typography-font-weight-emphasis, 600);
2510 2805 color: #1e1e1e;
2511 2806 display: block;
2512 2807 }
2513 2808
@@ -2542,8 +2837,11 @@
2542 2837 .block-editor-list-view-leaf {
2543 2838 position: relative;
2544 2839 transform: translateY(0);
2545 2840 }
2841 +.block-editor-list-view-leaf:focus-within, .block-editor-list-view-leaf.is-nesting {
2842 + z-index: 1;
2843 +}
2546 2844 .block-editor-list-view-leaf.is-draggable, .block-editor-list-view-leaf.is-draggable .block-editor-list-view-block-contents {
2547 2845 cursor: grab;
2548 2846 }
2549 2847 .block-editor-list-view-leaf .block-editor-list-view-block-select-button[aria-expanded=true] {
@@ -2554,13 +2852,8 @@
2554 2852 }
2555 2853 .block-editor-list-view-leaf .block-editor-list-view-block-select-button svg {
2556 2854 fill: currentColor;
2557 2855 }
2558 -@media (forced-colors: active) {
2559 - .block-editor-list-view-leaf .block-editor-list-view-block-select-button svg {
2560 - fill: CanvasText;
2561 - }
2562 -}
2563 2856 .is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover {
2564 2857 color: inherit;
2565 2858 }
2566 2859 .block-editor-list-view-leaf.is-selected td {
@@ -2572,23 +2865,45 @@
2572 2865 .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,
2573 2866 .block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon {
2574 2867 color: var(--wp-block-synced-color);
2575 2868 }
2576 -.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus::after {
2577 - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
2869 +.block-editor-list-view-leaf.is-synced .block-editor-list-view-block-contents:focus::after {
2870 + --focus-color: var(--wp-block-synced-color);
2578 2871 }
2872 +.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block__menu:focus {
2873 + --focus-color: var(--wp-block-synced-color);
2874 + 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)));
2875 + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
2876 +}
2579 2877 .block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents, .block-editor-list-view-leaf.is-selected .components-button.has-icon {
2580 2878 color: #fff;
2581 2879 }
2582 -.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus::after {
2583 - box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
2880 +.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus {
2881 + --focus-color: var(--wpds-color-foreground-interactive-brand-strong, #fff);
2882 + 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)));
2883 + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
2884 + outline-offset: calc(-1 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)));
2584 2885 }
2585 -.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus::after {
2586 - box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
2886 +@media (forced-colors: active) {
2887 + .block-editor-list-view-leaf.is-selected td, .block-editor-list-view-leaf.is-selected.is-synced td {
2888 + background: SelectedItem;
2889 + }
2890 + .block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents, .block-editor-list-view-leaf.is-selected .components-button.has-icon {
2891 + color: SelectedItemText;
2892 + }
2893 + .block-editor-list-view-leaf.is-selected svg, .block-editor-list-view-leaf.is-selected .block-editor-block-icon.has-colors svg {
2894 + fill: SelectedItemText;
2895 + }
2896 + .block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__title {
2897 + forced-color-adjust: none;
2898 + }
2899 + .block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus::after {
2900 + --focus-color: CanvasText;
2901 + }
2902 + .block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus {
2903 + --focus-color: SelectedItemText;
2904 + }
2587 2905 }
2588 -.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus {
2589 - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) #fff;
2590 -}
2591 2906 .block-editor-list-view-leaf.is-first-selected td:first-child {
2592 2907 border-top-left-radius: 2px;
2593 2908 }
2594 2909 .block-editor-list-view-leaf.is-first-selected td:last-child {
@@ -2710,8 +3025,9 @@
2710 3025 }
2711 3026 .block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents,
2712 3027 .block-editor-list-view-leaf .block-editor-list-view-block-contents:focus {
2713 3028 box-shadow: none;
3029 + outline: none;
2714 3030 }
2715 3031 .block-editor-list-view-leaf.is-nesting .block-editor-list-view-block-contents::after,
2716 3032 .block-editor-list-view-leaf .block-editor-list-view-block-contents:focus::after {
2717 3033 content: "";
@@ -2716,13 +3032,16 @@
2716 3032 .block-editor-list-view-leaf .block-editor-list-view-block-contents:focus::after {
2717 3033 content: "";
2718 3034 position: absolute;
2719 3035 top: 0;
2720 - right: -29px;
3036 + right: -28px;
2721 3037 bottom: 0;
2722 3038 left: 0;
2723 3039 border-radius: inherit;
2724 - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
3040 + 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)));
3041 + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
3042 + outline-offset: 1px;
3043 + 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);
2725 3044 z-index: 2;
2726 3045 pointer-events: none;
2727 3046 }
2728 3047 .block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus::after {
@@ -2727,13 +3046,8 @@
2727 3046 }
2728 3047 .block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus::after {
2729 3048 right: 0;
2730 3049 }
2731 -.block-editor-list-view-leaf.is-nesting .block-editor-list-view__menu,
2732 -.block-editor-list-view-leaf .block-editor-list-view-block__menu:focus {
2733 - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
2734 - z-index: 1;
2735 -}
2736 3050 .block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents {
2737 3051 opacity: 1;
2738 3052 }
2739 3053 @keyframes __wp-base-styles-fade-in {
@@ -2803,14 +3117,8 @@
2803 3117 }
2804 3118 .block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button svg {
2805 3119 top: -4px;
2806 3120 }
2807 -.block-editor-list-view-leaf .block-editor-block-mover-button::before {
2808 - height: 16px;
2809 - min-width: 100%;
2810 - left: 0;
2811 - right: 0;
2812 -}
2813 3121 .block-editor-list-view-leaf .block-editor-inserter__toggle {
2814 3122 background: #1e1e1e;
2815 3123 color: #fff;
2816 3124 height: 24px;
@@ -2819,8 +3127,14 @@
2819 3127 }
2820 3128 .block-editor-list-view-leaf .block-editor-inserter__toggle:active {
2821 3129 color: #fff;
2822 3130 }
3131 +.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper {
3132 + width: 100%;
3133 +}
3134 +.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper > * {
3135 + min-width: 0;
3136 +}
2823 3137 .block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper svg {
2824 3138 left: 2px;
2825 3139 position: relative;
2826 3140 }
@@ -2841,8 +3155,19 @@
2841 3155 .block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor {
2842 3156 position: absolute;
2843 3157 right: 0;
2844 3158 transform: translateY(-50%);
3159 + box-sizing: border-box;
3160 + max-width: 100%;
3161 + padding: 2px 8px;
3162 + border-radius: 2px;
3163 + background: #f0f0f0;
3164 + color: #2f2f2f;
3165 + font-size: 12px;
3166 + line-height: 20px;
3167 + overflow: hidden;
3168 + text-overflow: ellipsis;
3169 + white-space: nowrap;
2845 3170 }
2846 3171 .block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor {
2847 3172 background: rgba(0, 0, 0, 0.3);
2848 3173 color: #fff;
@@ -2869,8 +3194,25 @@
2869 3194 }
2870 3195 .block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__image:not(:only-child) {
2871 3196 box-shadow: 0 0 0 2px var(--wp-admin-theme-color);
2872 3197 }
3198 +.block-editor-list-view-leaf.is-disabled {
3199 + opacity: 0.2;
3200 +}
3201 +@media not (prefers-reduced-motion) {
3202 + .block-editor-list-view-leaf.is-disabled {
3203 + transition: opacity 0.1s linear;
3204 + }
3205 +}
3206 +.block-editor-list-view-leaf.is-disabled:hover {
3207 + opacity: 0.2;
3208 +}
3209 +.block-editor-list-view-leaf.is-disabled .block-editor-list-view__expander {
3210 + cursor: default;
3211 +}
3212 +.block-editor-list-view-leaf.is-disabled .block-editor-list-view-block-select-button:hover {
3213 + color: inherit;
3214 +}
2873 3215
2874 3216 .block-editor-list-view-draggable-chip {
2875 3217 opacity: 0.8;
2876 3218 }
@@ -3068,11 +3410,15 @@
3068 3410 padding: 16px;
3069 3411 }
3070 3412
3071 3413 .block-editor-multi-selection-inspector__card-title {
3072 - font-weight: 499;
3414 + font-weight: var(--wpds-typography-font-weight-emphasis, 600);
3073 3415 }
3074 3416
3417 +.block-editor-multi-selection-inspector__card-description {
3418 + color: #757575;
3419 +}
3420 +
3075 3421 .block-editor-multi-selection-inspector__card .block-editor-block-icon {
3076 3422 margin-left: -2px;
3077 3423 padding: 0 3px;
3078 3424 width: 36px;
@@ -3078,8 +3424,13 @@
3078 3424 width: 36px;
3079 3425 height: 24px;
3080 3426 }
3081 3427
3428 +.block-editor-plain-text {
3429 + width: 100%;
3430 + field-sizing: content;
3431 +}
3432 +
3082 3433 .block-editor-responsive-block-control {
3083 3434 margin-bottom: 28px;
3084 3435 border-bottom: 1px solid #ccc;
3085 3436 padding-bottom: 14px;
@@ -3095,9 +3446,9 @@
3095 3446 margin-left: -3px;
3096 3447 }
3097 3448
3098 3449 .block-editor-responsive-block-control__label {
3099 - font-weight: 600;
3450 + font-weight: var(--wpds-typography-font-weight-emphasis, 600);
3100 3451 margin-bottom: 0.6em;
3101 3452 margin-left: -3px;
3102 3453 }
3103 3454
@@ -3117,9 +3468,9 @@
3117 3468 overflow: hidden;
3118 3469 padding: 0;
3119 3470 position: absolute;
3120 3471 width: 1px;
3121 - word-wrap: normal !important;
3472 + overflow-wrap: normal !important;
3122 3473 word-break: normal !important;
3123 3474 }
3124 3475
3125 3476 .preset-input-control__wrapper > * {
@@ -3174,9 +3525,9 @@
3174 3525 top: -9999em;
3175 3526 }
3176 3527 .block-editor-skip-to-selected-block:focus {
3177 3528 font-size: 14px;
3178 - font-weight: 600;
3529 + font-weight: var(--wpds-typography-font-weight-emphasis, 600);
3179 3530 background: #f1f1f1;
3180 3531 z-index: 100000;
3181 3532 }
3182 3533
@@ -3372,8 +3723,13 @@
3372 3723 padding: 16px;
3373 3724 border-top: 1px solid #1e1e1e;
3374 3725 }
3375 3726
3727 +.block-editor-url-popover__link-container-content {
3728 + display: flex;
3729 + align-items: center;
3730 +}
3731 +
3376 3732 .block-editor-url-popover__link-editor,
3377 3733 .block-editor-url-popover__link-viewer {
3378 3734 display: flex;
3379 3735 }
@@ -3411,35 +3767,8 @@
3411 3767 color: #757575;
3412 3768 font-size: 12px;
3413 3769 }
3414 3770
3415 -/**
3416 - * ItemGroup-like border styles for the background panel's ToolsPanelItems.
3417 - * Replicates the separated border of the `ItemGroup` component while
3418 - * allowing for hidden placeholder items (same approach as the color panel).
3419 - */
3420 -.block-editor-background-panel__item {
3421 - padding: 0;
3422 - max-width: 100%;
3423 - position: relative;
3424 - border-left: 1px solid #ddd;
3425 - border-right: 1px solid #ddd;
3426 - border-bottom: 1px solid #ddd;
3427 -}
3428 -.block-editor-background-panel__item:nth-child(1 of .block-editor-background-panel__item) {
3429 - border-top-left-radius: 2px;
3430 - border-top-right-radius: 2px;
3431 - border-top: 1px solid #ddd;
3432 -}
3433 -.block-editor-background-panel__item:nth-last-child(1 of .block-editor-background-panel__item) {
3434 - border-bottom-left-radius: 2px;
3435 - border-bottom-right-radius: 2px;
3436 -}
3437 -.block-editor-background-panel__item > div,
3438 -.block-editor-background-panel__item > div > button {
3439 - border-radius: inherit;
3440 -}
3441 -
3442 3771 .background-block-support-panel {
3443 3772 /* Increased specificity required to remove the slot wrapper's row gap */
3444 3773 }
3445 3774 .background-block-support-panel.background-block-support-panel .background-block-support-panel__inner-wrapper {
@@ -3445,180 +3774,8 @@
3445 3774 .background-block-support-panel.background-block-support-panel .background-block-support-panel__inner-wrapper {
3446 3775 row-gap: 0;
3447 3776 }
3448 3777
3449 -.block-editor-content-only-controls__link {
3450 - width: 100%;
3451 - box-shadow: inset 0 0 0 1px #ccc;
3452 -}
3453 -.block-editor-content-only-controls__link:focus:not(:disabled) {
3454 - box-shadow: 0 0 0 currentColor inset, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
3455 -}
3456 -
3457 -.block-editor-content-only-controls__link-row {
3458 - align-items: center;
3459 -}
3460 -
3461 -.block-editor-content-only-controls__link-title {
3462 - width: 100%;
3463 - white-space: nowrap;
3464 - text-overflow: ellipsis;
3465 - overflow: hidden;
3466 -}
3467 -
3468 -.block-editor-content-only-controls__media {
3469 - width: 100%;
3470 - box-shadow: inset 0 0 0 1px #ccc;
3471 - padding-right: 32px;
3472 -}
3473 -.block-editor-content-only-controls__media:focus:not(:disabled) {
3474 - box-shadow: 0 0 0 currentColor inset, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
3475 -}
3476 -
3477 -.block-editor-content-only-controls__media-replace-flow {
3478 - display: block;
3479 -}
3480 -
3481 -.block-editor-content-only-controls__media-row {
3482 - align-items: center;
3483 -}
3484 -
3485 -.block-editor-content-only-controls__media-placeholder {
3486 - width: 24px;
3487 - height: 24px;
3488 - border-radius: 2px;
3489 - box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
3490 - display: inline-block;
3491 - padding: 0;
3492 - background: #fff linear-gradient(-45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
3493 -}
3494 -
3495 -.block-editor-content-only-controls__media-title {
3496 - width: 100%;
3497 - white-space: nowrap;
3498 - text-overflow: ellipsis;
3499 - overflow: hidden;
3500 -}
3501 -
3502 -.block-editor-content-only-controls__media-thumbnail {
3503 - width: 20px;
3504 - height: 20px;
3505 - border-radius: 2px;
3506 - align-self: center;
3507 - overflow: hidden;
3508 -}
3509 -.block-editor-content-only-controls__media-thumbnail img {
3510 - width: 100% !important;
3511 - height: 100% !important;
3512 - -o-object-fit: cover;
3513 - object-fit: cover;
3514 -}
3515 -
3516 -.block-editor-content-only-controls {
3517 - position: relative;
3518 -}
3519 -
3520 -.block-editor-content-only-controls__media-reset {
3521 - position: absolute;
3522 - right: 0;
3523 - top: 8px;
3524 - margin: auto 8px auto;
3525 - opacity: 0;
3526 - border-radius: 2px;
3527 -}
3528 -@media not (prefers-reduced-motion) {
3529 - .block-editor-content-only-controls__media-reset {
3530 - transition: opacity 0.1s ease-in-out;
3531 - }
3532 -}
3533 -.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 {
3534 - opacity: 1;
3535 -}
3536 -@media (hover: none) {
3537 - .block-editor-content-only-controls__media-reset {
3538 - opacity: 1;
3539 - }
3540 -}
3541 -
3542 -.block-editor-content-only-controls__rich-text {
3543 - width: 100%;
3544 - margin: 0;
3545 - background: #fff;
3546 - color: #1e1e1e;
3547 - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
3548 - padding: 6px 8px;
3549 - /* Fonts smaller than 16px causes mobile safari to zoom. */
3550 - font-size: 16px;
3551 - /* Override core line-height. To be reviewed. */
3552 - line-height: normal;
3553 - box-shadow: 0 0 0 transparent;
3554 - border-radius: 2px;
3555 - border: 1px solid #949494;
3556 -}
3557 -@media not (prefers-reduced-motion) {
3558 - .block-editor-content-only-controls__rich-text {
3559 - transition: box-shadow 0.1s linear;
3560 - }
3561 -}
3562 -@media (min-width: 600px) {
3563 - .block-editor-content-only-controls__rich-text {
3564 - font-size: 13px;
3565 - /* Override core line-height. To be reviewed. */
3566 - line-height: normal;
3567 - }
3568 -}
3569 -.block-editor-content-only-controls__rich-text:focus {
3570 - border-color: var(--wp-admin-theme-color, #3858e9);
3571 - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color, #3858e9);
3572 - outline: 2px solid transparent;
3573 -}
3574 -.block-editor-content-only-controls__rich-text::-moz-placeholder {
3575 - color: rgba(30, 30, 30, 0.62);
3576 -}
3577 -.block-editor-content-only-controls__rich-text::placeholder {
3578 - color: rgba(30, 30, 30, 0.62);
3579 -}
3580 -.block-editor-content-only-controls__rich-text {
3581 - border-color: #949494;
3582 -}
3583 -.block-editor-content-only-controls__rich-text::-moz-placeholder {
3584 - color: color-mix(in srgb, #1e1e1e, transparent 38%);
3585 -}
3586 -.block-editor-content-only-controls__rich-text::placeholder {
3587 - color: color-mix(in srgb, #1e1e1e, transparent 38%);
3588 -}
3589 -.block-editor-content-only-controls__rich-text {
3590 - min-height: 40px;
3591 - padding: 12px;
3592 -}
3593 -
3594 -.block-editor-block-fields__container {
3595 - padding: 0 16px 16px;
3596 -}
3597 -.block-editor-block-fields__container:first-of-type {
3598 - padding-block-start: 8px;
3599 - /*
3600 - * Add border for the entire content controls and remove the similar border
3601 - * for tools panel.
3602 - */
3603 - border-block-start: 1px solid #e0e0e0;
3604 -}
3605 -
3606 -.block-editor-block-fields__header {
3607 - padding: 8px 0;
3608 - margin-bottom: 4px;
3609 -}
3610 -
3611 -.block-editor-block-fields__header-icon {
3612 - flex: 0 0 24px;
3613 -}
3614 -
3615 -.block-editor-block-fields__header-title {
3616 - flex: 1;
3617 - /* Override the default margin on a h2 element. */
3618 - margin: 0 !important;
3619 -}
3620 -
3621 3778 .block-editor-hooks__block-hooks {
3622 3779 /**
3623 3780 * Un-reverse the flex direction for the toggle's label.
3624 3781 */
@@ -3652,17 +3809,14 @@
3652 3809 }
3653 3810 .color-block-support-panel.color-block-support-panel .color-block-support-panel__inner-wrapper {
3654 3811 row-gap: 0;
3655 3812 }
3656 -.color-block-support-panel {
3657 - /**
3658 - * After converting PanelColorGradientSettings to render as a ToolsPanel
3659 - * we need to remove the top margin when wrapping inner content due to
3660 - * rendering via SlotFills.
3661 - */
3813 +
3814 +.elements-block-support-panel {
3815 + /* Increased specificity required to remove the slot wrapper's row gap */
3662 3816 }
3663 -.color-block-support-panel .block-editor-tools-panel-color-gradient-settings__item.first {
3664 - margin-top: 0;
3817 +.elements-block-support-panel.elements-block-support-panel .elements-block-support-panel__inner-wrapper {
3818 + row-gap: 0;
3665 3819 }
3666 3820
3667 3821 .dimensions-block-support-panel .single-column {
3668 3822 grid-column: span 1;
@@ -3955,9 +4109,9 @@
3955 4109 }
3956 4110 .block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list {
3957 4111 display: grid;
3958 4112 grid-template-columns: 1fr 1fr;
3959 - grid-gap: 12px;
4113 + gap: 12px;
3960 4114 }
3961 4115 .block-editor-block-toolbar-change-design-content-wrapper .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
3962 4116 margin-bottom: 0;
3963 4117 }
@@ -3969,9 +4123,9 @@
3969 4123 display: inline-block;
3970 4124 background: none;
3971 4125 border: none;
3972 4126 padding: 0;
3973 - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
4127 + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
3974 4128 font-size: 13px;
3975 4129 line-height: 0;
3976 4130 }
3977 4131 @media (min-width: 782px) {
@@ -4105,9 +4259,9 @@
4105 4259 margin: 0 12px 0 0;
4106 4260 color: #757575;
4107 4261 text-transform: uppercase;
4108 4262 font-size: 11px;
4109 - font-weight: 499;
4263 + font-weight: var(--wpds-typography-font-weight-emphasis, 600);
4110 4264 }
4111 4265
4112 4266 .block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input {
4113 4267 height: 36px;
@@ -4143,12 +4297,8 @@
4143 4297 .block-editor-inserter__parent-block-header .block-editor-block-icon {
4144 4298 margin-right: 8px;
4145 4299 }
4146 4300
4147 -.block-editor-inserter__preview-container__popover {
4148 - top: 16px !important;
4149 -}
4150 -
4151 4301 .block-editor-inserter__preview-container {
4152 4302 display: none;
4153 4303 width: 280px;
4154 4304 padding: 16px;
@@ -4289,9 +4439,9 @@
4289 4439
4290 4440 .block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list {
4291 4441 display: grid;
4292 4442 grid-template-columns: 1fr 1fr;
4293 - grid-gap: 8px;
4443 + gap: 8px;
4294 4444 }
4295 4445 .block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
4296 4446 margin-bottom: 0;
4297 4447 }
@@ -4306,59 +4456,54 @@
4306 4456 .block-editor-inserter__popover.is-quick > .components-popover__content {
4307 4457 padding: 0;
4308 4458 }
4309 4459
4310 -.block-editor-inserter__quick-inserter-expand.components-button {
4311 - display: block;
4312 - background: #1e1e1e;
4313 - color: #fff;
4460 +.block-editor-inserter__quick-inserter-expand {
4461 + padding: 0 16px 16px;
4462 +}
4463 +
4464 +.block-editor-inserter__quick-inserter-expand-toggle {
4314 4465 width: 100%;
4315 - border-radius: 0;
4466 + justify-content: center;
4316 4467 }
4317 -.block-editor-inserter__quick-inserter-expand.components-button:hover {
4318 - color: #fff;
4319 -}
4320 -.block-editor-inserter__quick-inserter-expand.components-button:active {
4321 - color: #ccc;
4322 -}
4323 -.block-editor-inserter__quick-inserter-expand.components-button.components-button:focus:not(:disabled) {
4324 - box-shadow: none;
4325 - background: var(--wp-admin-theme-color);
4326 - border-color: var(--wp-admin-theme-color);
4327 -}
4328 4468
4329 4469 .block-editor-block-patterns-explorer__sidebar {
4330 - position: absolute;
4331 - top: 72px;
4332 - left: 0;
4333 - bottom: 0;
4334 - width: 280px;
4335 - padding: 24px 24px 24px;
4336 - overflow-x: visible;
4337 - overflow-y: auto;
4470 + padding-bottom: 24px;
4338 4471 }
4339 -.block-editor-block-patterns-explorer__sidebar__categories-list__item {
4340 - display: block;
4341 - width: 100%;
4342 - height: 48px;
4343 - text-align: left;
4472 +@media (min-width: 782px) {
4473 + .block-editor-block-patterns-explorer__sidebar {
4474 + position: absolute;
4475 + top: 72px;
4476 + left: 0;
4477 + bottom: 0;
4478 + width: 280px;
4479 + padding: 24px;
4480 + overflow-x: visible;
4481 + overflow-y: auto;
4482 + }
4344 4483 }
4345 -.block-editor-block-patterns-explorer__search {
4346 - margin-bottom: 32px;
4484 +
4485 +@media (min-width: 782px) {
4486 + .block-editor-block-patterns-explorer__panel {
4487 + margin-inline-start: 280px;
4488 + }
4347 4489 }
4348 -.block-editor-block-patterns-explorer__search-results-count {
4349 - padding-bottom: 32px;
4490 +
4491 +.block-editor-block-patterns-explorer__no-results {
4492 + padding: 32px;
4493 + text-align: center;
4350 4494 }
4495 +
4351 4496 .block-editor-block-patterns-explorer__list {
4352 - margin-left: 280px;
4353 4497 padding: 24px 0 32px;
4354 4498 }
4355 4499 .block-editor-block-patterns-explorer__list .block-editor-patterns__sync-status-filter .components-input-control__container {
4356 4500 width: 380px;
4357 4501 }
4502 +
4358 4503 .block-editor-block-patterns-explorer .block-editor-block-patterns-list {
4359 4504 display: grid;
4360 - grid-gap: 32px;
4505 + gap: 32px;
4361 4506 grid-template-columns: repeat(1, 1fr);
4362 4507 margin-bottom: 16px;
4363 4508 }
4364 4509 @media (min-width: 1080px) {
@@ -4380,9 +4525,9 @@
4380 4525 max-height: 800px;
4381 4526 }
4382 4527
4383 4528 .components-heading.block-editor-inserter__patterns-category-panel-title {
4384 - font-weight: 499;
4529 + font-weight: var(--wpds-typography-font-weight-emphasis, 600);
4385 4530 }
4386 4531
4387 4532 .block-editor-inserter__patterns-explore-button.components-button,
4388 4533 .block-editor-inserter__media-library-button.components-button {
@@ -4391,17 +4536,26 @@
4391 4536 margin-top: 16px;
4392 4537 width: 100%;
4393 4538 }
4394 4539
4540 +.block-editor-inserter__media-mobile-screen {
4541 + display: flex;
4542 + flex-direction: column;
4543 + align-self: stretch;
4544 +}
4545 +
4395 4546 .block-editor-inserter__media-panel {
4396 - min-height: 100%;
4397 4547 padding: 0 16px;
4398 4548 display: flex;
4399 4549 flex-direction: column;
4550 + flex: 1;
4551 + min-height: 0;
4400 4552 }
4401 4553 @media (min-width: 782px) {
4402 4554 .block-editor-inserter__media-panel {
4403 4555 padding: 0;
4556 + flex: 0 1 auto;
4557 + min-height: 100%;
4404 4558 }
4405 4559 }
4406 4560 .block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner {
4407 4561 height: 100%;
@@ -4418,9 +4572,68 @@
4418 4572 margin-bottom: 0;
4419 4573 padding: 16px 24px 16px;
4420 4574 }
4421 4575 }
4576 +.block-editor-inserter__media-panel .block-editor-inserter__no-results {
4577 + flex-grow: 1;
4578 +}
4579 +.block-editor-inserter__media-panel .block-editor-inserter__media-panel-footer {
4580 + flex-shrink: 0;
4581 + padding-top: 16px;
4582 + padding-bottom: 16px;
4583 +}
4584 +@media (min-width: 782px) {
4585 + .block-editor-inserter__media-panel .block-editor-inserter__media-panel-footer {
4586 + padding-left: 24px;
4587 + padding-right: 24px;
4588 + }
4589 +}
4590 +.block-editor-inserter__media-panel .block-editor-inserter__media-panel-attach.components-button {
4591 + justify-content: center;
4592 + padding: 16px;
4593 +}
4594 +.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results {
4595 + display: flex;
4596 + flex-direction: column;
4597 + flex-grow: 1;
4598 + min-height: 0;
4599 +}
4600 +.block-editor-inserter__media-panel .block-editor-inserter__media-panel-results.is-loading .block-editor-inserter__media-list {
4601 + opacity: 0.5;
4602 + pointer-events: none;
4603 +}
4604 +@media not (prefers-reduced-motion) {
4605 + .block-editor-inserter__media-panel .block-editor-inserter__media-panel-results.is-loading .block-editor-inserter__media-list {
4606 + opacity: 1;
4607 + animation: inserter-media-panel-pulse 1s ease-in-out infinite;
4608 + }
4609 +}
4610 +.block-editor-inserter__media-panel.has-footer .block-editor-inserter__media-list {
4611 + padding-bottom: 0;
4612 +}
4422 4613
4614 +@keyframes inserter-media-panel-pulse {
4615 + 0%, 100% {
4616 + opacity: 1;
4617 + }
4618 + 50% {
4619 + opacity: 0.5;
4620 + }
4621 +}
4622 +.block-editor-inserter__media-panel-detach-modal {
4623 + z-index: 1000001;
4624 +}
4625 +.block-editor-inserter__media-panel-detach-modal p {
4626 + margin-top: 0;
4627 +}
4628 +
4629 +.block-editor-inserter__media-panel-detach-actions {
4630 + display: flex;
4631 + justify-content: flex-end;
4632 + gap: 8px;
4633 + margin-top: 16px;
4634 +}
4635 +
4423 4636 .block-editor-inserter__media-list__list-item {
4424 4637 position: relative;
4425 4638 cursor: var(--wpds-cursor-control, pointer);
4426 4639 margin-bottom: 24px;
@@ -4433,9 +4646,9 @@
4433 4646 }
4434 4647 .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview > * {
4435 4648 outline-color: rgba(0, 0, 0, 0.3);
4436 4649 }
4437 -.block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options > button {
4650 +.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 {
4438 4651 display: block;
4439 4652 }
4440 4653 .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options {
4441 4654 position: absolute;
@@ -4617,12 +4830,12 @@
4617 4830 flex-direction: column;
4618 4831 align-items: start;
4619 4832 }
4620 4833 .block-editor-block-visibility-modal__options-checkbox--everywhere {
4621 - font-weight: 600;
4834 + font-weight: var(--wpds-typography-font-weight-emphasis, 600);
4622 4835 }
4623 4836 .block-editor-block-visibility-modal__options-icon--checked {
4624 - fill: #ddd;
4837 + color: #ddd;
4625 4838 }
4626 4839 .block-editor-block-visibility-modal__sub-options {
4627 4840 width: 100%;
4628 4841 padding-inline-start: 12px;
@@ -4632,11 +4845,52 @@
4632 4845 color: #757575;
4633 4846 }
4634 4847
4635 4848 .block-editor-block-visibility-info {
4636 - padding-top: 4px;
4637 - padding-bottom: 4px;
4638 4849 margin: 0 16px 16px;
4639 - display: flex;
4640 - align-items: center;
4641 - justify-content: start;
4850 +}
4851 +
4852 +/* The stop element is invisible, so its focus indication is drawn around the
4853 + canvas it stands for. For the iframed canvas it is an overlay instead of
4854 + an outline, because Safari paints an outline on an iframe element
4855 + underneath the iframe's content. */
4856 +.block-editor-iframe__scale-container > .block-editor-writing-flow__canvas-stop:focus::after {
4857 + content: "";
4858 + position: absolute;
4859 + inset: 0;
4860 + z-index: 1;
4861 + pointer-events: none;
4862 + border: var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color);
4863 +}
4864 +
4865 +.block-editor-writing-flow__canvas-stop:focus + .block-editor-writing-flow {
4866 + outline: var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color);
4867 + outline-offset: calc(-1 * var(--wp-admin-border-width-focus));
4868 +}
4869 +
4870 +/* Looks like a tooltip. Shown at the top of the canvas while the stop is
4871 + focused. Sticky, because on the widgets screen the stop spans scrolling
4872 + content and the hint must stay in view; anywhere else there is nothing
4873 + to scroll and it stays at the top of the canvas. */
4874 +.block-editor-writing-flow__canvas-stop-hint {
4875 + display: none;
4876 + position: sticky;
4877 + top: 16px;
4878 + margin-inline: auto;
4879 + width: fit-content;
4880 + z-index: 2;
4881 + background: #000;
4882 + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
4883 + border-radius: 4px;
4884 + color: #f0f0f0;
4885 + text-align: center;
4886 + line-height: 1.4;
4887 + font-size: 12px;
4888 + padding: 4px 8px;
4889 + 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);
4890 + white-space: nowrap;
4891 + pointer-events: none;
4892 +}
4893 +
4894 +.block-editor-writing-flow__canvas-stop:focus > .block-editor-writing-flow__canvas-stop-hint {
4895 + display: block;
4642 4896 }