| @@ -68,8 +68,14 @@ | ||
| 68 | 68 | /** |
| 69 | 69 | * Focus styles. |
| 70 | 70 | */ |
| 71 | 71 | /** |
| 72 | + * Standard focus rings for the WordPress Design System. | |
| 73 | + * | |
| 74 | + * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site, | |
| 75 | + * e.g. `&:focus { @include outset-ring__focus(); }`. | |
| 76 | + */ | |
| 77 | +/** | |
| 72 | 78 | * Applies editor left position to the selector passed as argument |
| 73 | 79 | */ |
| 74 | 80 | /** |
| 75 | 81 | * Styles that are reused verbatim in a few places |
| @@ -186,8 +192,14 @@ | ||
| 186 | 192 | /** |
| 187 | 193 | * Focus styles. |
| 188 | 194 | */ |
| 189 | 195 | /** |
| 196 | + * Standard focus rings for the WordPress Design System. | |
| 197 | + * | |
| 198 | + * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site, | |
| 199 | + * e.g. `&:focus { @include outset-ring__focus(); }`. | |
| 200 | + */ | |
| 201 | +/** | |
| 190 | 202 | * Applies editor left position to the selector passed as argument |
| 191 | 203 | */ |
| 192 | 204 | /** |
| 193 | 205 | * Styles that are reused verbatim in a few places |
| @@ -210,8 +222,9 @@ | ||
| 210 | 222 | background: #fff; |
| 211 | 223 | color: #1e1e1e; |
| 212 | 224 | height: 100%; |
| 213 | 225 | overflow: auto; |
| 226 | + width: 100vw; | |
| 214 | 227 | } |
| 215 | 228 | |
| 216 | 229 | @media (min-width: 782px) { |
| 217 | 230 | .interface-complementary-area { |
| @@ -239,9 +252,9 @@ | ||
| 239 | 252 | } |
| 240 | 253 | |
| 241 | 254 | .interface-complementary-area h2 { |
| 242 | 255 | font-size: 13px; |
| 243 | - font-weight: 499; | |
| 256 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 244 | 257 | color: #1e1e1e; |
| 245 | 258 | margin-bottom: 1.5em; |
| 246 | 259 | } |
| 247 | 260 | |
| @@ -247,9 +260,9 @@ | ||
| 247 | 260 | |
| 248 | 261 | .interface-complementary-area h3 { |
| 249 | 262 | font-size: 11px; |
| 250 | 263 | text-transform: uppercase; |
| 251 | - font-weight: 499; | |
| 264 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 252 | 265 | color: #1e1e1e; |
| 253 | 266 | margin-bottom: 1.5em; |
| 254 | 267 | } |
| 255 | 268 | |
| @@ -281,14 +294,9 @@ | ||
| 281 | 294 | height: 100%; |
| 282 | 295 | } |
| 283 | 296 | |
| 284 | 297 | @media (min-width: 782px) { |
| 285 | - body.js.is-fullscreen-mode { | |
| 286 | - margin-top: -32px; | |
| 287 | - height: calc(100% + 32px); | |
| 288 | - } | |
| 289 | - body.js.is-fullscreen-mode #adminmenumain, | |
| 290 | - body.js.is-fullscreen-mode #wpadminbar { | |
| 298 | + body.js.is-fullscreen-mode #adminmenumain { | |
| 291 | 299 | display: none; |
| 292 | 300 | } |
| 293 | 301 | body.js.is-fullscreen-mode #wpcontent, |
| 294 | 302 | body.js.is-fullscreen-mode #wpfooter { |
| @@ -322,9 +330,9 @@ | ||
| 322 | 330 | .interface-interface-skeleton { |
| 323 | 331 | top: 32px; |
| 324 | 332 | } |
| 325 | 333 | .is-fullscreen-mode .interface-interface-skeleton { |
| 326 | - top: 0; | |
| 334 | + top: var(--wp-admin--admin-bar--height, 0); | |
| 327 | 335 | } |
| 328 | 336 | } |
| 329 | 337 | .interface-interface-skeleton__editor { |
| 330 | 338 | display: flex; |
| @@ -377,9 +385,9 @@ | ||
| 377 | 385 | } |
| 378 | 386 | |
| 379 | 387 | @media (min-width: 782px) { |
| 380 | 388 | .has-footer .interface-interface-skeleton__body { |
| 381 | - padding-bottom: 25px; | |
| 389 | + padding-bottom: calc(var(--wpds-dimension-size-md, 32px) + 1px); | |
| 382 | 390 | } |
| 383 | 391 | } |
| 384 | 392 | .interface-interface-skeleton__content { |
| 385 | 393 | flex-grow: 1; |
| @@ -466,9 +474,9 @@ | ||
| 466 | 474 | .interface-interface-skeleton__footer .block-editor-block-breadcrumb { |
| 467 | 475 | z-index: 30; |
| 468 | 476 | display: flex; |
| 469 | 477 | background: #fff; |
| 470 | - height: 24px; | |
| 478 | + height: var(--wpds-dimension-size-md, 32px); | |
| 471 | 479 | align-items: center; |
| 472 | 480 | font-size: 13px; |
| 473 | 481 | padding: 0 18px; |
| 474 | 482 | } |
| @@ -504,9 +512,9 @@ | ||
| 504 | 512 | border-right: 1px solid #ddd; |
| 505 | 513 | top: 32px; |
| 506 | 514 | } |
| 507 | 515 | .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus, .is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within { |
| 508 | - top: 0; | |
| 516 | + top: var(--wp-admin--admin-bar--height, 0); | |
| 509 | 517 | } |
| 510 | 518 | } |
| 511 | 519 | .interface-pinned-items { |
| 512 | 520 | display: flex; |
| @@ -604,8 +612,14 @@ | ||
| 604 | 612 | /** |
| 605 | 613 | * Focus styles. |
| 606 | 614 | */ |
| 607 | 615 | /** |
| 616 | + * Standard focus rings for the WordPress Design System. | |
| 617 | + * | |
| 618 | + * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site, | |
| 619 | + * e.g. `&:focus { @include outset-ring__focus(); }`. | |
| 620 | + */ | |
| 621 | +/** | |
| 608 | 622 | * Applies editor left position to the selector passed as argument |
| 609 | 623 | */ |
| 610 | 624 | /** |
| 611 | 625 | * Styles that are reused verbatim in a few places |
| @@ -639,9 +653,9 @@ | ||
| 639 | 653 | } |
| 640 | 654 | |
| 641 | 655 | .font-library-modal .font-library__subtitle { |
| 642 | 656 | text-transform: uppercase; |
| 643 | - font-weight: 499; | |
| 657 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 644 | 658 | font-size: 11px; |
| 645 | 659 | } |
| 646 | 660 | |
| 647 | 661 | .font-library-modal__tab-panel { |
| @@ -679,9 +693,9 @@ | ||
| 679 | 693 | .font-library__footer { |
| 680 | 694 | position: absolute; |
| 681 | 695 | width: 100%; |
| 682 | 696 | bottom: 0; |
| 683 | - border-top: 1px solid #ddd; | |
| 697 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 684 | 698 | padding: 24px; |
| 685 | 699 | background-color: #fff; |
| 686 | 700 | box-sizing: border-box; |
| 687 | 701 | flex-grow: 0 !important; |
| @@ -690,22 +704,26 @@ | ||
| 690 | 704 | } |
| 691 | 705 | |
| 692 | 706 | .font-library__page-selection { |
| 693 | 707 | font-size: 11px; |
| 694 | - font-weight: 499; | |
| 708 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 695 | 709 | text-transform: uppercase; |
| 696 | 710 | } |
| 697 | 711 | |
| 698 | 712 | @media (min-width: 600px) { |
| 699 | - .font-library__page-selection .font-library__page-selection-trigger { | |
| 713 | + .font-library__page-selection .components-select-control__input { | |
| 700 | 714 | font-size: 11px !important; |
| 701 | - font-weight: 499; | |
| 715 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 702 | 716 | } |
| 703 | 717 | } |
| 718 | +.font-library__search { | |
| 719 | + width: 240px; | |
| 720 | +} | |
| 721 | + | |
| 704 | 722 | .font-library__fonts-title { |
| 705 | 723 | text-transform: uppercase; |
| 706 | 724 | font-size: 11px; |
| 707 | - font-weight: 600; | |
| 725 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 708 | 726 | margin-top: 0; |
| 709 | 727 | margin-bottom: 0; |
| 710 | 728 | } |
| 711 | 729 | |
| @@ -719,11 +737,15 @@ | ||
| 719 | 737 | .font-library__fonts-list-item { |
| 720 | 738 | margin-bottom: 0; |
| 721 | 739 | } |
| 722 | 740 | |
| 741 | +.font-library__font-demo { | |
| 742 | + position: relative; | |
| 743 | +} | |
| 744 | + | |
| 723 | 745 | .font-library__font-card { |
| 724 | 746 | box-sizing: border-box; |
| 725 | - border: 1px solid #ddd; | |
| 747 | + border: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 726 | 748 | width: 100%; |
| 727 | 749 | height: auto !important; |
| 728 | 750 | padding: 16px; |
| 729 | 751 | margin-top: -1px; /* To collapse the margin with the previous element */ |
| @@ -737,13 +759,13 @@ | ||
| 737 | 759 | position: relative; |
| 738 | 760 | } |
| 739 | 761 | |
| 740 | 762 | .font-library__font-card .font-library__font-card__name { |
| 741 | - font-weight: bold; | |
| 763 | + font-weight: 700; | |
| 742 | 764 | } |
| 743 | 765 | |
| 744 | 766 | .font-library__font-card .font-library__font-card__count { |
| 745 | - color: #757575; | |
| 767 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 746 | 768 | } |
| 747 | 769 | |
| 748 | 770 | .font-library__font-card .font-library__font-variant_demo-image { |
| 749 | 771 | display: block; |
| @@ -750,8 +772,25 @@ | ||
| 750 | 772 | height: 24px; |
| 751 | 773 | width: auto; |
| 752 | 774 | } |
| 753 | 775 | |
| 776 | +@media not (prefers-reduced-motion) { | |
| 777 | + .font-library__font-card .font-library__font-variant_demo-image { | |
| 778 | + transition: opacity var(--wpds-motion-duration-lg, 300ms) var(--wpds-motion-easing-subtle, cubic-bezier(0.15, 0, 0.15, 1)); | |
| 779 | + } | |
| 780 | +} | |
| 781 | +.font-library__font-card .font-library__font-variant_demo-image.is-loading { | |
| 782 | + position: absolute; | |
| 783 | + top: 0; | |
| 784 | + right: 0; | |
| 785 | + opacity: 0; | |
| 786 | +} | |
| 787 | + | |
| 788 | +.font-library__font-card .font-library__font-variant-demo-skeleton { | |
| 789 | + height: 24px; | |
| 790 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 791 | +} | |
| 792 | + | |
| 754 | 793 | .font-library__font-card .font-library__font-variant_demo-text { |
| 755 | 794 | white-space: nowrap; |
| 756 | 795 | flex-shrink: 0; |
| 757 | 796 | } |
| @@ -763,9 +802,9 @@ | ||
| 763 | 802 | } |
| 764 | 803 | .font-library-modal__tablist-container { |
| 765 | 804 | position: sticky; |
| 766 | 805 | top: 0; |
| 767 | - border-bottom: 1px solid #ddd; | |
| 806 | + border-bottom: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 768 | 807 | background: #fff; |
| 769 | 808 | z-index: 1; |
| 770 | 809 | } |
| 771 | 810 | |
| @@ -786,9 +825,9 @@ | ||
| 786 | 825 | width: 80%; |
| 787 | 826 | } |
| 788 | 827 | |
| 789 | 828 | .font-library__local-fonts .font-library__upload-area__text { |
| 790 | - color: #757575; | |
| 829 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 791 | 830 | } |
| 792 | 831 | |
| 793 | 832 | .font-library__google-fonts-confirm { |
| 794 | 833 | display: flex; |
| @@ -823,115 +862,22 @@ | ||
| 823 | 862 | .font-library__select-all .components-checkbox-control__label { |
| 824 | 863 | padding-right: 16px; |
| 825 | 864 | } |
| 826 | 865 | |
| 827 | -.global-styles-ui-pagination .components-button.is-tertiary { | |
| 828 | - width: 32px; | |
| 829 | - height: 32px; | |
| 830 | - justify-content: center; | |
| 831 | -} | |
| 832 | - | |
| 833 | -.global-styles-ui-screen-revisions__revisions-list { | |
| 834 | - list-style: none; | |
| 835 | - margin: 0 16px 16px 16px; | |
| 836 | - flex-grow: 1; | |
| 837 | -} | |
| 838 | - | |
| 839 | -.global-styles-ui-screen-revisions__revisions-list li { | |
| 840 | - margin-bottom: 0; | |
| 841 | -} | |
| 842 | - | |
| 843 | -.global-styles-ui-screen-revisions__revision-item { | |
| 844 | - position: relative; | |
| 845 | - cursor: var(--wpds-cursor-control, pointer); | |
| 866 | +.global-styles-ui-screen-revisions { | |
| 846 | 867 | display: flex; |
| 847 | 868 | flex-direction: column; |
| 869 | + flex-grow: 1; | |
| 870 | + min-height: 0; | |
| 848 | 871 | } |
| 849 | 872 | |
| 850 | -.global-styles-ui-screen-revisions__revision-item[role=option]:active, .global-styles-ui-screen-revisions__revision-item[role=option]:focus { | |
| 851 | - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 852 | - outline: 2px solid transparent; | |
| 873 | +.global-styles-ui-screen-revisions__actions { | |
| 874 | + margin-inline-start: auto; | |
| 853 | 875 | } |
| 854 | 876 | |
| 855 | -.global-styles-ui-screen-revisions__revision-item:hover { | |
| 856 | - background: rgba(var(--wp-admin-theme-color--rgb), 0.04); | |
| 857 | -} | |
| 858 | - | |
| 859 | -.global-styles-ui-screen-revisions__revision-item:hover .global-styles-ui-screen-revisions__date { | |
| 860 | - color: var(--wp-admin-theme-color); | |
| 861 | -} | |
| 862 | - | |
| 863 | -.global-styles-ui-screen-revisions__revision-item::before, .global-styles-ui-screen-revisions__revision-item::after { | |
| 864 | - position: absolute; | |
| 865 | - content: "\a"; | |
| 866 | - display: block; | |
| 867 | -} | |
| 868 | - | |
| 869 | -.global-styles-ui-screen-revisions__revision-item::before { | |
| 870 | - background: #ddd; | |
| 871 | - border-radius: 50%; | |
| 872 | - height: 8px; | |
| 873 | - width: 8px; | |
| 874 | - top: 18px; | |
| 875 | - right: 17px; | |
| 876 | - transform: translate(50%, -50%); | |
| 877 | - z-index: 1; | |
| 878 | - border: 4px solid transparent; | |
| 879 | -} | |
| 880 | - | |
| 881 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true] { | |
| 882 | - border-radius: 2px; | |
| 883 | - outline: 3px solid transparent; | |
| 884 | - outline-offset: -2px; | |
| 885 | - color: var(--wp-admin-theme-color); | |
| 886 | - background: rgba(var(--wp-admin-theme-color--rgb), 0.04); | |
| 887 | -} | |
| 888 | - | |
| 889 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__date { | |
| 890 | - color: var(--wp-admin-theme-color); | |
| 891 | -} | |
| 892 | - | |
| 893 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true]::before { | |
| 894 | - background: var(--wp-admin-theme-color); | |
| 895 | -} | |
| 896 | - | |
| 897 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__changes > li, | |
| 898 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__meta, | |
| 899 | -.global-styles-ui-screen-revisions__revision-item[aria-selected=true] .global-styles-ui-screen-revisions__applied-text { | |
| 900 | - color: #1e1e1e; | |
| 901 | -} | |
| 902 | - | |
| 903 | -.global-styles-ui-screen-revisions__revision-item::after { | |
| 904 | - height: 100%; | |
| 905 | - right: 16px; | |
| 906 | - top: 0; | |
| 907 | - width: 0; | |
| 908 | - border: 0.5px solid #ddd; | |
| 909 | -} | |
| 910 | - | |
| 911 | -.global-styles-ui-screen-revisions__revision-item:first-child::after { | |
| 912 | - top: 18px; | |
| 913 | -} | |
| 914 | - | |
| 915 | -.global-styles-ui-screen-revisions__revision-item:last-child::after { | |
| 916 | - height: 18px; | |
| 917 | -} | |
| 918 | - | |
| 919 | -.global-styles-ui-screen-revisions__revision-item-wrapper { | |
| 920 | - display: block; | |
| 921 | - padding: 12px 40px 4px 12px; | |
| 922 | -} | |
| 923 | - | |
| 924 | -.global-styles-ui-screen-revisions__apply-button.is-primary, | |
| 925 | -.global-styles-ui-screen-revisions__applied-text { | |
| 926 | - align-self: flex-start; | |
| 927 | - margin: 4px 40px 12px 12px; | |
| 928 | -} | |
| 929 | - | |
| 930 | -.global-styles-ui-screen-revisions__changes, | |
| 931 | -.global-styles-ui-screen-revisions__meta, | |
| 932 | -.global-styles-ui-screen-revisions__applied-text { | |
| 933 | - color: #757575; | |
| 877 | +.global-styles-ui-screen-revisions__date { | |
| 878 | + text-transform: uppercase; | |
| 879 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 934 | 880 | font-size: 12px; |
| 935 | 881 | } |
| 936 | 882 | |
| 937 | 883 | .global-styles-ui-screen-revisions__description { |
| @@ -940,11 +886,11 @@ | ||
| 940 | 886 | align-items: flex-start; |
| 941 | 887 | gap: 8px; |
| 942 | 888 | } |
| 943 | 889 | |
| 944 | -.global-styles-ui-screen-revisions__description .global-styles-ui-screen-revisions__date { | |
| 945 | - text-transform: uppercase; | |
| 946 | - font-weight: 600; | |
| 890 | +.global-styles-ui-screen-revisions__changes, | |
| 891 | +.global-styles-ui-screen-revisions__meta { | |
| 892 | + color: #2f2f2f; | |
| 947 | 893 | font-size: 12px; |
| 948 | 894 | } |
| 949 | 895 | |
| 950 | 896 | .global-styles-ui-screen-revisions__meta { |
| @@ -950,11 +896,10 @@ | ||
| 950 | 896 | .global-styles-ui-screen-revisions__meta { |
| 951 | 897 | display: flex; |
| 952 | 898 | justify-content: start; |
| 953 | 899 | width: 100%; |
| 954 | - align-items: flex-start; | |
| 900 | + align-items: center; | |
| 955 | 901 | text-align: right; |
| 956 | - margin-bottom: 4px; | |
| 957 | 902 | } |
| 958 | 903 | |
| 959 | 904 | .global-styles-ui-screen-revisions__meta img { |
| 960 | 905 | width: 16px; |
| @@ -962,16 +907,12 @@ | ||
| 962 | 907 | border-radius: 100%; |
| 963 | 908 | margin-left: 8px; |
| 964 | 909 | } |
| 965 | 910 | |
| 966 | -.global-styles-ui-screen-revisions__loading { | |
| 967 | - margin: 24px auto !important; | |
| 968 | -} | |
| 969 | - | |
| 970 | 911 | .global-styles-ui-screen-revisions__changes { |
| 971 | 912 | text-align: right; |
| 972 | 913 | line-height: 1.4; |
| 973 | - margin-right: 12px; | |
| 914 | + margin: 0 12px 0 0; | |
| 974 | 915 | list-style: disc; |
| 975 | 916 | } |
| 976 | 917 | |
| 977 | 918 | .global-styles-ui-screen-revisions__changes li { |
| @@ -977,47 +918,8 @@ | ||
| 977 | 918 | .global-styles-ui-screen-revisions__changes li { |
| 978 | 919 | margin-bottom: 4px; |
| 979 | 920 | } |
| 980 | 921 | |
| 981 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination { | |
| 982 | - justify-content: space-between; | |
| 983 | - gap: 2px; | |
| 984 | -} | |
| 985 | - | |
| 986 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .edit-site-pagination__total { | |
| 987 | - position: absolute; | |
| 988 | - right: -1000px; | |
| 989 | - height: 1px; | |
| 990 | - margin: -1px; | |
| 991 | - overflow: hidden; | |
| 992 | -} | |
| 993 | - | |
| 994 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-text { | |
| 995 | - font-size: 12px; | |
| 996 | - will-change: opacity; | |
| 997 | -} | |
| 998 | - | |
| 999 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary { | |
| 1000 | - color: #1e1e1e; | |
| 1001 | -} | |
| 1002 | - | |
| 1003 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary:disabled, | |
| 1004 | -.global-styles-ui-screen-revisions__pagination.global-styles-ui-screen-revisions__pagination .components-button.is-tertiary[aria-disabled=true] { | |
| 1005 | - color: #949494; | |
| 1006 | -} | |
| 1007 | - | |
| 1008 | -.global-styles-ui-screen-revisions__footer { | |
| 1009 | - height: 56px; | |
| 1010 | - z-index: 1; | |
| 1011 | - position: sticky; | |
| 1012 | - min-width: 100%; | |
| 1013 | - bottom: 0; | |
| 1014 | - background: #fff; | |
| 1015 | - padding: 12px; | |
| 1016 | - border-top: 1px solid #ddd; | |
| 1017 | - box-sizing: border-box; | |
| 1018 | -} | |
| 1019 | - | |
| 1020 | 922 | .global-styles-ui-variations_item { |
| 1021 | 923 | box-sizing: border-box; |
| 1022 | 924 | cursor: var(--wpds-cursor-control, pointer); |
| 1023 | 925 | } |
| @@ -1098,13 +1000,34 @@ | ||
| 1098 | 1000 | justify-content: center; |
| 1099 | 1001 | border-radius: 2px; |
| 1100 | 1002 | } |
| 1101 | 1003 | |
| 1004 | +.global-styles-ui-block-types-filter { | |
| 1005 | + margin-bottom: 12px; | |
| 1006 | + padding: 0 16px; | |
| 1007 | +} | |
| 1008 | + | |
| 1102 | 1009 | .global-styles-ui-block-types-search { |
| 1103 | - margin-bottom: 10px; | |
| 1104 | - padding: 0 16px; | |
| 1010 | + flex-grow: 1; | |
| 1105 | 1011 | } |
| 1106 | 1012 | |
| 1013 | +.global-styles-ui-block-types-item-list .global-styles-ui-block-types-item__icon { | |
| 1014 | + min-width: 24px; | |
| 1015 | +} | |
| 1016 | + | |
| 1017 | +.global-styles-ui-block-types-item-list__no-results { | |
| 1018 | + padding-top: 16px; | |
| 1019 | +} | |
| 1020 | + | |
| 1021 | +.global-styles-ui-block-types-item__indicator { | |
| 1022 | + background: var(--wp-admin-theme-color); | |
| 1023 | + border-radius: 50%; | |
| 1024 | + flex: none; | |
| 1025 | + height: 6px; | |
| 1026 | + margin-right: auto; | |
| 1027 | + width: 6px; | |
| 1028 | +} | |
| 1029 | + | |
| 1107 | 1030 | .global-styles-ui-screen-typography__font-variants-count { |
| 1108 | 1031 | color: #757575; |
| 1109 | 1032 | } |
| 1110 | 1033 | |
| @@ -1127,15 +1050,15 @@ | ||
| 1127 | 1050 | |
| 1128 | 1051 | .global-styles-ui-subtitle { |
| 1129 | 1052 | margin-bottom: 0 !important; |
| 1130 | 1053 | text-transform: uppercase; |
| 1131 | - font-weight: 499 !important; | |
| 1054 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600) !important; | |
| 1132 | 1055 | font-size: 11px !important; |
| 1133 | 1056 | } |
| 1134 | 1057 | |
| 1135 | 1058 | .global-styles-ui-section-title { |
| 1136 | 1059 | color: #2f2f2f; |
| 1137 | - font-weight: 600; | |
| 1060 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 1138 | 1061 | line-height: 1.2; |
| 1139 | 1062 | padding: 16px 16px 0; |
| 1140 | 1063 | margin: 0; |
| 1141 | 1064 | } |
| @@ -1146,10 +1069,20 @@ | ||
| 1146 | 1069 | |
| 1147 | 1070 | .global-styles-ui__color-indicator-wrapper { |
| 1148 | 1071 | height: 24px; |
| 1149 | 1072 | flex-shrink: 0; |
| 1073 | + display: flex; | |
| 1074 | + align-items: center; | |
| 1150 | 1075 | } |
| 1151 | 1076 | |
| 1077 | +.global-styles-ui__palette-preview { | |
| 1078 | + display: inline-flex; | |
| 1079 | +} | |
| 1080 | + | |
| 1081 | +.global-styles-ui__palette-preview > * + * { | |
| 1082 | + margin-inline-start: -8px; | |
| 1083 | +} | |
| 1084 | + | |
| 1152 | 1085 | .global-styles-ui__shadows-panel__options-container, |
| 1153 | 1086 | .global-styles-ui__typography-panel__options-container { |
| 1154 | 1087 | height: 24px; |
| 1155 | 1088 | } |
| @@ -1161,9 +1094,10 @@ | ||
| 1161 | 1094 | border-radius: 2px; |
| 1162 | 1095 | overflow: hidden; |
| 1163 | 1096 | } |
| 1164 | 1097 | |
| 1165 | -.global-styles-ui__shadow-preview-panel { | |
| 1098 | +.global-styles-ui__shadow-preview-panel, | |
| 1099 | +.global-styles-ui__text-shadow-preview-panel { | |
| 1166 | 1100 | height: 144px; |
| 1167 | 1101 | border: #ddd 1px solid; |
| 1168 | 1102 | border-radius: 2px; |
| 1169 | 1103 | overflow: auto; |
| @@ -1171,9 +1105,9 @@ | ||
| 1171 | 1105 | background-position: 0 0, 8px 8px; |
| 1172 | 1106 | background-size: 16px 16px; |
| 1173 | 1107 | } |
| 1174 | 1108 | |
| 1175 | -.global-styles-ui__shadow-preview-panel .global-styles-ui__shadow-preview-block { | |
| 1109 | +.global-styles-ui__shadow-preview-block { | |
| 1176 | 1110 | border: #ddd 1px solid; |
| 1177 | 1111 | border-radius: 2px; |
| 1178 | 1112 | background-color: #fff; |
| 1179 | 1113 | width: 60%; |
| @@ -1179,22 +1113,44 @@ | ||
| 1179 | 1113 | width: 60%; |
| 1180 | 1114 | height: 60px; |
| 1181 | 1115 | } |
| 1182 | 1116 | |
| 1183 | -.global-styles-ui__shadow-editor__dropdown-content { | |
| 1117 | +.global-styles-ui__text-shadow-preview-panel { | |
| 1118 | + margin-block: -8px 16px; | |
| 1119 | +} | |
| 1120 | + | |
| 1121 | +.global-styles-ui__text-shadow-preview-text { | |
| 1122 | + font-size: 24px; | |
| 1123 | +} | |
| 1124 | + | |
| 1125 | +.global-styles-ui__text-shadow-editor__header { | |
| 1126 | + margin-block-end: 8px; | |
| 1127 | +} | |
| 1128 | + | |
| 1129 | +.global-styles-ui__text-shadow-editor__inputs { | |
| 1130 | + display: grid; | |
| 1131 | + grid-template-columns: repeat(2, 1fr); | |
| 1132 | + gap: 16px; | |
| 1133 | +} | |
| 1134 | + | |
| 1135 | +.global-styles-ui__shadow-editor__dropdown-content, | |
| 1136 | +.global-styles-ui__text-shadow-editor__dropdown-content { | |
| 1184 | 1137 | width: 280px; |
| 1185 | 1138 | } |
| 1186 | 1139 | |
| 1187 | -.global-styles-ui__shadow-editor-panel { | |
| 1140 | +.global-styles-ui__shadow-editor-panel, | |
| 1141 | +.global-styles-ui__text-shadow-editor-panel { | |
| 1188 | 1142 | margin-bottom: 4px; |
| 1189 | 1143 | } |
| 1190 | 1144 | |
| 1191 | -.global-styles-ui__shadow-editor__dropdown { | |
| 1145 | +.global-styles-ui__shadow-editor__dropdown, | |
| 1146 | +.global-styles-ui__text-shadow-editor__dropdown { | |
| 1192 | 1147 | width: 100%; |
| 1193 | 1148 | position: relative; |
| 1194 | 1149 | } |
| 1195 | 1150 | |
| 1196 | -.global-styles-ui__shadow-editor__dropdown-toggle { | |
| 1151 | +.global-styles-ui__shadow-editor__dropdown-toggle, | |
| 1152 | +.global-styles-ui__text-shadow-editor__dropdown-toggle { | |
| 1197 | 1153 | width: 100%; |
| 1198 | 1154 | height: auto; |
| 1199 | 1155 | padding-top: 8px; |
| 1200 | 1156 | padding-bottom: 8px; |
| @@ -1201,14 +1157,16 @@ | ||
| 1201 | 1157 | text-align: right; |
| 1202 | 1158 | border-radius: inherit; |
| 1203 | 1159 | } |
| 1204 | 1160 | |
| 1205 | -.global-styles-ui__shadow-editor__dropdown-toggle.is-open { | |
| 1161 | +.global-styles-ui__shadow-editor__dropdown-toggle.is-open, | |
| 1162 | +.global-styles-ui__text-shadow-editor__dropdown-toggle.is-open { | |
| 1206 | 1163 | background: #f0f0f0; |
| 1207 | 1164 | color: var(--wp-admin-theme-color); |
| 1208 | 1165 | } |
| 1209 | 1166 | |
| 1210 | -.global-styles-ui__shadow-editor__remove-button { | |
| 1167 | +.global-styles-ui__shadow-editor__remove-button, | |
| 1168 | +.global-styles-ui__text-shadow-editor__remove-button { | |
| 1211 | 1169 | position: absolute; |
| 1212 | 1170 | left: 8px; |
| 1213 | 1171 | top: 8px; |
| 1214 | 1172 | opacity: 0; |
| @@ -1213,18 +1171,19 @@ | ||
| 1213 | 1171 | top: 8px; |
| 1214 | 1172 | opacity: 0; |
| 1215 | 1173 | } |
| 1216 | 1174 | |
| 1217 | -.global-styles-ui__shadow-editor__remove-button.global-styles-ui__shadow-editor__remove-button { | |
| 1218 | - border: none; | |
| 1219 | -} | |
| 1220 | - | |
| 1221 | -.global-styles-ui__shadow-editor__dropdown-toggle:hover + .global-styles-ui__shadow-editor__remove-button, .global-styles-ui__shadow-editor__remove-button:focus, .global-styles-ui__shadow-editor__remove-button:hover { | |
| 1175 | +.global-styles-ui__shadow-editor__dropdown-toggle:hover + .global-styles-ui__shadow-editor__remove-button, .global-styles-ui__text-shadow-editor__dropdown-toggle:hover + .global-styles-ui__shadow-editor__remove-button, .global-styles-ui__shadow-editor__remove-button:focus, .global-styles-ui__shadow-editor__remove-button:hover, | |
| 1176 | +.global-styles-ui__shadow-editor__dropdown-toggle:hover + .global-styles-ui__text-shadow-editor__remove-button, | |
| 1177 | +.global-styles-ui__text-shadow-editor__dropdown-toggle:hover + .global-styles-ui__text-shadow-editor__remove-button, | |
| 1178 | +.global-styles-ui__text-shadow-editor__remove-button:focus, | |
| 1179 | +.global-styles-ui__text-shadow-editor__remove-button:hover { | |
| 1222 | 1180 | opacity: 1; |
| 1223 | 1181 | } |
| 1224 | 1182 | |
| 1225 | 1183 | @media (hover: none) { |
| 1226 | - .global-styles-ui__shadow-editor__remove-button { | |
| 1184 | + .global-styles-ui__shadow-editor__remove-button, | |
| 1185 | + .global-styles-ui__text-shadow-editor__remove-button { | |
| 1227 | 1186 | opacity: 1; |
| 1228 | 1187 | } |
| 1229 | 1188 | } |
| 1230 | 1189 | .global-styles-ui-screen-css { |
| @@ -1233,27 +1192,26 @@ | ||
| 1233 | 1192 | flex-direction: column; |
| 1234 | 1193 | margin: 16px; |
| 1235 | 1194 | } |
| 1236 | 1195 | |
| 1237 | -.global-styles-ui-screen-css .components-v-stack { | |
| 1196 | +.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel { | |
| 1238 | 1197 | flex: 1 1 auto; |
| 1239 | 1198 | } |
| 1240 | 1199 | |
| 1241 | -.global-styles-ui-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input { | |
| 1200 | +.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input { | |
| 1242 | 1201 | flex: 1 1 auto; |
| 1243 | 1202 | display: flex; |
| 1244 | 1203 | flex-direction: column; |
| 1245 | 1204 | } |
| 1246 | 1205 | |
| 1247 | -.global-styles-ui-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field { | |
| 1206 | +.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field { | |
| 1248 | 1207 | flex: 1 1 auto; |
| 1249 | 1208 | display: flex; |
| 1250 | 1209 | flex-direction: column; |
| 1251 | 1210 | } |
| 1252 | 1211 | |
| 1253 | -.global-styles-ui-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input { | |
| 1212 | +.global-styles-ui-screen-css .block-editor-global-styles-advanced-panel__custom-css-input textarea { | |
| 1254 | 1213 | flex: 1 1 auto; |
| 1255 | - direction: ltr; | |
| 1256 | 1214 | } |
| 1257 | 1215 | |
| 1258 | 1216 | .global-styles-ui-screen-css-help-link { |
| 1259 | 1217 | display: inline-block; |
| @@ -1278,8 +1236,16 @@ | ||
| 1278 | 1236 | flex-direction: column; |
| 1279 | 1237 | height: 100%; |
| 1280 | 1238 | } |
| 1281 | 1239 | |
| 1240 | +.global-styles-ui-color-palette__tablist-container { | |
| 1241 | + border-bottom: 1px solid #ddd; | |
| 1242 | +} | |
| 1243 | + | |
| 1244 | +.global-styles-ui-color-palette__tablist { | |
| 1245 | + margin-bottom: -1px; | |
| 1246 | +} | |
| 1247 | + | |
| 1282 | 1248 | .global-styles-ui-sidebar__navigator-screen .single-column { |
| 1283 | 1249 | grid-column: span 1; |
| 1284 | 1250 | } |
| 1285 | 1251 | |
| @@ -1301,9 +1267,10 @@ | ||
| 1301 | 1267 | clip-path: border-box; |
| 1302 | 1268 | } |
| 1303 | 1269 | |
| 1304 | 1270 | .global-styles-ui-color-palette-panel, |
| 1305 | -.global-styles-ui-gradient-palette-panel { | |
| 1271 | +.global-styles-ui-gradient-palette-panel, | |
| 1272 | +.global-styles-ui-duotone-palette-panel { | |
| 1306 | 1273 | padding: 16px; |
| 1307 | 1274 | } |
| 1308 | 1275 | |
| 1309 | 1276 | /** |
| @@ -1375,8 +1342,14 @@ | ||
| 1375 | 1342 | /** |
| 1376 | 1343 | * Focus styles. |
| 1377 | 1344 | */ |
| 1378 | 1345 | /** |
| 1346 | + * Standard focus rings for the WordPress Design System. | |
| 1347 | + * | |
| 1348 | + * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site, | |
| 1349 | + * e.g. `&:focus { @include outset-ring__focus(); }`. | |
| 1350 | + */ | |
| 1351 | +/** | |
| 1379 | 1352 | * Applies editor left position to the selector passed as argument |
| 1380 | 1353 | */ |
| 1381 | 1354 | /** |
| 1382 | 1355 | * Styles that are reused verbatim in a few places |
| @@ -1400,16 +1373,15 @@ | ||
| 1400 | 1373 | height: 100%; |
| 1401 | 1374 | flex-grow: 1; |
| 1402 | 1375 | min-height: 0; |
| 1403 | 1376 | box-sizing: border-box; |
| 1404 | - scroll-padding-bottom: calc(var(--wpds-dimension-base, 4px) * 16); | |
| 1405 | - /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */ | |
| 1377 | + scroll-padding-bottom: 64px; | |
| 1406 | 1378 | container: dataviews-wrapper/inline-size; |
| 1407 | 1379 | display: flex; |
| 1408 | 1380 | flex-direction: column; |
| 1409 | 1381 | font-size: var(--wpds-typography-font-size-md, 13px); |
| 1410 | 1382 | line-height: var(--wpds-typography-line-height-sm, 20px); |
| 1411 | - background-color: var(--wp-dataviews-color-background, var(--wpds-color-bg-surface-neutral-strong, #fff)); | |
| 1383 | + background-color: var(--wp-dataviews-color-background, var(--wpds-color-background-surface-neutral-strong, #fff)); | |
| 1412 | 1384 | } |
| 1413 | 1385 | |
| 1414 | 1386 | .dataviews__view-actions, |
| 1415 | 1387 | .dataviews-filters__container { |
| @@ -1426,8 +1398,16 @@ | ||
| 1426 | 1398 | .dataviews-filters__container { |
| 1427 | 1399 | transition: padding ease-out 0.1s; |
| 1428 | 1400 | } |
| 1429 | 1401 | } |
| 1402 | +.dataviews__search { | |
| 1403 | + flex-grow: 1; | |
| 1404 | +} | |
| 1405 | + | |
| 1406 | +.dataviews__search .dataviews-search { | |
| 1407 | + flex-basis: 210px; | |
| 1408 | +} | |
| 1409 | + | |
| 1430 | 1410 | .dataviews-no-results, |
| 1431 | 1411 | .dataviews-loading { |
| 1432 | 1412 | padding: 0 var(--wpds-dimension-padding-2xl, 24px); |
| 1433 | 1413 | flex-grow: 1; |
| @@ -1464,8 +1444,12 @@ | ||
| 1464 | 1444 | .dataviews-loading-more { |
| 1465 | 1445 | text-align: center; |
| 1466 | 1446 | } |
| 1467 | 1447 | |
| 1448 | +.dataviews-loading-more[aria-hidden=true] { | |
| 1449 | + visibility: hidden; | |
| 1450 | +} | |
| 1451 | + | |
| 1468 | 1452 | @container (max-width: 430px) { |
| 1469 | 1453 | .dataviews__view-actions, |
| 1470 | 1454 | .dataviews-filters__container { |
| 1471 | 1455 | padding: var(--wpds-dimension-padding-md, 12px) var(--wpds-dimension-padding-2xl, 24px); |
| @@ -1472,10 +1456,10 @@ | ||
| 1472 | 1456 | } |
| 1473 | 1457 | } |
| 1474 | 1458 | .dataviews-title-field { |
| 1475 | 1459 | font-size: var(--wpds-typography-font-size-md, 13px); |
| 1476 | - font-weight: var(--wpds-typography-font-weight-medium, 499); | |
| 1477 | - color: var(--wpds-color-fg-content-neutral, #1e1e1e); | |
| 1460 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 1461 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 1478 | 1462 | text-overflow: ellipsis; |
| 1479 | 1463 | white-space: nowrap; |
| 1480 | 1464 | width: 100%; |
| 1481 | 1465 | } |
| @@ -1486,13 +1470,13 @@ | ||
| 1486 | 1470 | white-space: nowrap; |
| 1487 | 1471 | overflow: hidden; |
| 1488 | 1472 | display: block; |
| 1489 | 1473 | flex-grow: 0; |
| 1490 | - color: var(--wpds-color-fg-interactive-neutral, #1e1e1e); | |
| 1474 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 1491 | 1475 | } |
| 1492 | 1476 | |
| 1493 | 1477 | .dataviews-title-field a:hover { |
| 1494 | - color: var(--wpds-color-fg-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 1478 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 1495 | 1479 | } |
| 1496 | 1480 | |
| 1497 | 1481 | .dataviews-title-field a:focus { |
| 1498 | 1482 | color: var(--wp-admin-theme-color--rgb); |
| @@ -1507,22 +1491,22 @@ | ||
| 1507 | 1491 | white-space: nowrap; |
| 1508 | 1492 | overflow: hidden; |
| 1509 | 1493 | display: block; |
| 1510 | 1494 | width: 100%; |
| 1511 | - color: var(--wpds-color-fg-interactive-neutral-active, #1e1e1e); | |
| 1495 | + color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e); | |
| 1512 | 1496 | } |
| 1513 | 1497 | |
| 1514 | 1498 | .dataviews-title-field button.components-button.is-link:hover { |
| 1515 | - color: var(--wpds-color-fg-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 1499 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 1516 | 1500 | } |
| 1517 | 1501 | |
| 1518 | 1502 | .dataviews-title-field--clickable { |
| 1519 | 1503 | cursor: var(--wpds-cursor-control, pointer); |
| 1520 | - color: var(--wpds-color-fg-interactive-neutral, #1e1e1e); | |
| 1504 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 1521 | 1505 | } |
| 1522 | 1506 | |
| 1523 | 1507 | .dataviews-title-field--clickable:hover { |
| 1524 | - color: var(--wpds-color-fg-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 1508 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 1525 | 1509 | } |
| 1526 | 1510 | |
| 1527 | 1511 | .dataviews-title-field--clickable:focus { |
| 1528 | 1512 | color: var(--wp-admin-theme-color--rgb); |
| @@ -1546,14 +1530,14 @@ | ||
| 1546 | 1530 | overflow: hidden; |
| 1547 | 1531 | } |
| 1548 | 1532 | |
| 1549 | 1533 | .dataviews-bulk-actions-footer__item-count { |
| 1550 | - color: var(--wpds-color-fg-content-neutral, #1e1e1e); | |
| 1534 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 1551 | 1535 | } |
| 1552 | 1536 | |
| 1553 | 1537 | .dataviews-bulk-actions-footer__container { |
| 1554 | 1538 | margin-left: auto; |
| 1555 | - min-height: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 1539 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 1556 | 1540 | } |
| 1557 | 1541 | |
| 1558 | 1542 | .dataviews-layout__container { |
| 1559 | 1543 | flex: 1; |
| @@ -1608,9 +1592,9 @@ | ||
| 1608 | 1592 | display: none; |
| 1609 | 1593 | } |
| 1610 | 1594 | |
| 1611 | 1595 | .dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name { |
| 1612 | - color: var(--wpds-color-fg-content-neutral-weak, #707070); | |
| 1596 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 1613 | 1597 | white-space: nowrap; |
| 1614 | 1598 | overflow: hidden; |
| 1615 | 1599 | text-overflow: ellipsis; |
| 1616 | 1600 | flex-shrink: 0; /* Prevents this element from shrinking */ |
| @@ -1618,10 +1602,10 @@ | ||
| 1618 | 1602 | } |
| 1619 | 1603 | |
| 1620 | 1604 | .dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select { |
| 1621 | 1605 | width: 100%; |
| 1606 | + min-width: 0; | |
| 1622 | 1607 | white-space: nowrap; |
| 1623 | - overflow: hidden; | |
| 1624 | 1608 | } |
| 1625 | 1609 | |
| 1626 | 1610 | .dataviews-filters__summary-chip-container { |
| 1627 | 1611 | position: relative; |
| @@ -1632,10 +1616,10 @@ | ||
| 1632 | 1616 | border-radius: var(--wpds-border-radius-lg, 8px); |
| 1633 | 1617 | border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); |
| 1634 | 1618 | cursor: var(--wpds-cursor-control, pointer); |
| 1635 | 1619 | padding: var(--wpds-dimension-padding-xs, 4px) var(--wpds-dimension-padding-md, 12px); |
| 1636 | - min-height: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 1637 | - color: var(--wpds-color-fg-interactive-neutral, #1e1e1e); | |
| 1620 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 1621 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 1638 | 1622 | position: relative; |
| 1639 | 1623 | display: flex; |
| 1640 | 1624 | align-items: center; |
| 1641 | 1625 | box-sizing: border-box; |
| @@ -1645,41 +1629,41 @@ | ||
| 1645 | 1629 | cursor: default; |
| 1646 | 1630 | } |
| 1647 | 1631 | |
| 1648 | 1632 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset { |
| 1649 | - padding-inline-end: calc(24px + var(--wpds-dimension-padding-xs, 4px)); | |
| 1633 | + padding-inline-end: calc(var(--wpds-dimension-size-sm, 24px) + var(--wpds-dimension-padding-xs, 4px)); | |
| 1650 | 1634 | } |
| 1651 | 1635 | |
| 1652 | 1636 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.is-not-clickable), .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip[aria-expanded=true] { |
| 1653 | - color: var(--wpds-color-fg-interactive-neutral, #1e1e1e); | |
| 1637 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 1654 | 1638 | border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e); |
| 1655 | - background-color: var(--wpds-color-bg-interactive-neutral-weak-active, #ededed); | |
| 1639 | + background-color: var(--wpds-color-background-interactive-neutral-weak-active, #ededed); | |
| 1656 | 1640 | } |
| 1657 | 1641 | |
| 1658 | 1642 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values { |
| 1659 | - color: var(--wpds-color-fg-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 1660 | - background: var(--wpds-color-bg-interactive-brand-weak, rgba(0, 0, 0, 0)); | |
| 1643 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 1644 | + background: var(--wpds-color-background-interactive-brand-weak, rgba(0, 0, 0, 0)); | |
| 1661 | 1645 | border-color: var(--wpds-color-stroke-interactive-brand, var(--wp-admin-theme-color, #3858e9)); |
| 1662 | 1646 | } |
| 1663 | 1647 | |
| 1664 | 1648 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values:hover:not(.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values.is-not-clickable), .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-values[aria-expanded=true] { |
| 1665 | - color: var(--wpds-color-fg-interactive-brand-active, var(--wp-admin-theme-color, #3858e9)); | |
| 1666 | - background: var(--wpds-color-bg-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 1649 | + color: var(--wpds-color-foreground-interactive-brand-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 52%, black)); | |
| 1650 | + background: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 1667 | 1651 | border-color: var(--wpds-color-stroke-interactive-brand-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 85%, black)); |
| 1668 | 1652 | } |
| 1669 | 1653 | |
| 1670 | 1654 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip:focus-visible { |
| 1671 | 1655 | outline: none; |
| 1672 | - box-shadow: 0 0 0 var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) var(--wpds-color-stroke-focus-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 1656 | + box-shadow: 0 0 0 var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 1673 | 1657 | } |
| 1674 | 1658 | |
| 1675 | 1659 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip .dataviews-filters-__summary-filter-text-name { |
| 1676 | - font-weight: var(--wpds-typography-font-weight-medium, 499); | |
| 1660 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 1677 | 1661 | } |
| 1678 | 1662 | |
| 1679 | 1663 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove { |
| 1680 | - width: 24px; | |
| 1681 | - height: 24px; | |
| 1664 | + width: var(--wpds-dimension-size-sm, 24px); | |
| 1665 | + height: var(--wpds-dimension-size-sm, 24px); | |
| 1682 | 1666 | border-radius: var(--wpds-border-radius-md, 4px); |
| 1683 | 1667 | border: 0; |
| 1684 | 1668 | padding: 0; |
| 1685 | 1669 | position: absolute; |
| @@ -1693,34 +1677,34 @@ | ||
| 1693 | 1677 | cursor: var(--wpds-cursor-control, pointer); |
| 1694 | 1678 | } |
| 1695 | 1679 | |
| 1696 | 1680 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove svg { |
| 1697 | - fill: var(--wpds-color-fg-interactive-neutral, #1e1e1e); | |
| 1681 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 1698 | 1682 | } |
| 1699 | 1683 | |
| 1700 | 1684 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus { |
| 1701 | - background: var(--wpds-color-bg-interactive-neutral-weak-active, #ededed); | |
| 1685 | + background: var(--wpds-color-background-interactive-neutral-weak-active, #ededed); | |
| 1702 | 1686 | } |
| 1703 | 1687 | |
| 1704 | 1688 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:hover svg, .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus svg { |
| 1705 | - fill: var(--wpds-color-fg-interactive-neutral-active, #1e1e1e); | |
| 1689 | + color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e); | |
| 1706 | 1690 | } |
| 1707 | 1691 | |
| 1708 | 1692 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values svg { |
| 1709 | - fill: var(--wpds-color-fg-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 1693 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 1710 | 1694 | } |
| 1711 | 1695 | |
| 1712 | 1696 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove.has-values:hover { |
| 1713 | - background: var(--wpds-color-bg-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 1697 | + background: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 1714 | 1698 | } |
| 1715 | 1699 | |
| 1716 | 1700 | .dataviews-filters__summary-chip-container .dataviews-filters__summary-chip-remove:focus-visible { |
| 1717 | 1701 | outline: none; |
| 1718 | - box-shadow: 0 0 0 var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) var(--wpds-color-stroke-focus-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 1702 | + box-shadow: 0 0 0 var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 1719 | 1703 | } |
| 1720 | 1704 | |
| 1721 | 1705 | .dataviews-filters__search-widget-filter-combobox-list { |
| 1722 | - max-height: calc(var(--wpds-dimension-base, 4px) * 46); | |
| 1706 | + max-height: 184px; | |
| 1723 | 1707 | padding: var(--wpds-dimension-padding-xs, 4px); |
| 1724 | 1708 | overflow: auto; |
| 1725 | 1709 | border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); |
| 1726 | 1710 | } |
| @@ -1725,9 +1709,9 @@ | ||
| 1725 | 1709 | border-top: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); |
| 1726 | 1710 | } |
| 1727 | 1711 | |
| 1728 | 1712 | .dataviews-filters__search-widget-filter-combobox-list .dataviews-filters__search-widget-filter-combobox-item-value [data-user-value] { |
| 1729 | - font-weight: 600; | |
| 1713 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 1730 | 1714 | } |
| 1731 | 1715 | |
| 1732 | 1716 | .dataviews-filters__search-widget-listbox { |
| 1733 | 1717 | padding: var(--wpds-dimension-padding-xs, 4px); |
| @@ -1741,13 +1725,14 @@ | ||
| 1741 | 1725 | border-radius: var(--wpds-border-radius-sm, 2px); |
| 1742 | 1726 | box-sizing: border-box; |
| 1743 | 1727 | padding: var(--wpds-dimension-padding-xs, 4px) var(--wpds-dimension-padding-md, 12px); |
| 1744 | 1728 | cursor: default; |
| 1745 | - min-height: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 1746 | - font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 1747 | - font-weight: 400; | |
| 1729 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 1730 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 1731 | + font-weight: var(--wpds-typography-font-weight-default, 400); | |
| 1748 | 1732 | font-size: 13px; |
| 1749 | 1733 | line-height: 20px; |
| 1734 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 1750 | 1735 | } |
| 1751 | 1736 | |
| 1752 | 1737 | .dataviews-filters__search-widget-listitem:last-child { |
| 1753 | 1738 | margin-block-end: 0; |
| @@ -1753,31 +1738,37 @@ | ||
| 1753 | 1738 | margin-block-end: 0; |
| 1754 | 1739 | } |
| 1755 | 1740 | |
| 1756 | 1741 | .dataviews-filters__search-widget-listitem:hover, .dataviews-filters__search-widget-listitem[data-active-item], .dataviews-filters__search-widget-listitem:focus { |
| 1757 | - background-color: var(--wpds-color-bg-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 1742 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 1743 | + color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e); | |
| 1758 | 1744 | } |
| 1759 | 1745 | |
| 1760 | 1746 | .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection { |
| 1761 | 1747 | border-color: var(--wpds-color-stroke-interactive-brand-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 85%, black)); |
| 1762 | - background: var(--wpds-color-bg-surface-neutral-strong, #fff); | |
| 1748 | + background: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 1763 | 1749 | } |
| 1764 | 1750 | |
| 1765 | 1751 | .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected { |
| 1766 | 1752 | border-color: var(--wpds-color-stroke-interactive-brand-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 85%, black)); |
| 1767 | - background: var(--wpds-color-bg-interactive-brand-strong-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 93%, black)); | |
| 1753 | + background: var(--wpds-color-background-interactive-brand-strong-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 93%, black)); | |
| 1768 | 1754 | } |
| 1769 | 1755 | |
| 1770 | 1756 | .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection { |
| 1757 | + /* stylelint-disable-next-line plugin-wpds/no-token-fallback-values -- Preserve custom background theming with older @wordpress/theme runtimes that do not set this token. */ | |
| 1758 | + background-color: var(--wpds-color-background-interactive-neutral, var(--wpds-color-background-surface-neutral-strong, #fff)); | |
| 1771 | 1759 | border-color: var(--wpds-color-stroke-interactive-brand-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 85%, black)); |
| 1772 | - background: var(--wpds-color-bg-surface-neutral-strong, #fff); | |
| 1773 | 1760 | } |
| 1774 | 1761 | |
| 1775 | 1762 | .dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected { |
| 1776 | 1763 | border-color: var(--wpds-color-stroke-interactive-brand-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 85%, black)); |
| 1777 | - background: var(--wpds-color-bg-interactive-brand-strong-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 93%, black)); | |
| 1764 | + background: var(--wpds-color-background-interactive-brand-strong-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 93%, black)); | |
| 1778 | 1765 | } |
| 1779 | 1766 | |
| 1767 | +.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description { | |
| 1768 | + color: var(--wpds-color-foreground-interactive-neutral-weak-active, #1e1e1e); | |
| 1769 | +} | |
| 1770 | + | |
| 1780 | 1771 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-value { |
| 1781 | 1772 | overflow: hidden; |
| 1782 | 1773 | text-overflow: ellipsis; |
| 1783 | 1774 | white-space: nowrap; |
| @@ -1789,9 +1780,9 @@ | ||
| 1789 | 1780 | overflow: hidden; |
| 1790 | 1781 | text-overflow: ellipsis; |
| 1791 | 1782 | font-size: var(--wpds-typography-font-size-sm, 12px); |
| 1792 | 1783 | line-height: 16px; |
| 1793 | - color: var(--wpds-color-fg-content-neutral-weak, #707070); | |
| 1784 | + color: var(--wpds-color-foreground-interactive-neutral-weak, #707070); | |
| 1794 | 1785 | } |
| 1795 | 1786 | |
| 1796 | 1787 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection { |
| 1797 | 1788 | border: 1px solid #1e1e1e; |
| @@ -1852,9 +1843,9 @@ | ||
| 1852 | 1843 | padding: 0; |
| 1853 | 1844 | } |
| 1854 | 1845 | |
| 1855 | 1846 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected { |
| 1856 | - background: var(--wpds-color-bg-interactive-brand-strong, var(--wp-admin-theme-color, #3858e9)); | |
| 1847 | + background: var(--wpds-color-background-interactive-brand-strong, var(--wp-admin-theme-color, #3858e9)); | |
| 1857 | 1848 | border-color: var(--wpds-color-stroke-interactive-brand, var(--wp-admin-theme-color, #3858e9)); |
| 1858 | 1849 | } |
| 1859 | 1850 | |
| 1860 | 1851 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected::before { |
| @@ -1867,10 +1858,10 @@ | ||
| 1867 | 1858 | top: 50%; |
| 1868 | 1859 | right: 50%; |
| 1869 | 1860 | transform: translate(50%, -50%); |
| 1870 | 1861 | margin: 0; |
| 1871 | - background-color: var(--wpds-color-fg-interactive-brand-strong, #fff); | |
| 1872 | - border: 4px solid var(--wpds-color-fg-interactive-brand-strong, #fff); | |
| 1862 | + background-color: var(--wpds-color-foreground-interactive-brand-strong, #fff); | |
| 1863 | + border: 4px solid var(--wpds-color-foreground-interactive-brand-strong, #fff); | |
| 1873 | 1864 | } |
| 1874 | 1865 | |
| 1875 | 1866 | @media (min-width: 600px) { |
| 1876 | 1867 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected::before { |
| @@ -1880,28 +1871,22 @@ | ||
| 1880 | 1871 | } |
| 1881 | 1872 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { |
| 1882 | 1873 | --checkbox-size: 24px; |
| 1883 | 1874 | flex-shrink: 0; |
| 1884 | - border: 1px solid #1e1e1e; | |
| 1875 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 1885 | 1876 | margin-left: 12px; |
| 1886 | 1877 | transition: none; |
| 1887 | 1878 | border-radius: 2px; |
| 1888 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 1879 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 1889 | 1880 | padding: 6px 8px; |
| 1890 | 1881 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 1891 | 1882 | font-size: 16px; |
| 1892 | 1883 | /* Override core line-height. To be reviewed. */ |
| 1893 | 1884 | line-height: normal; |
| 1894 | - box-shadow: 0 0 0 transparent; | |
| 1895 | - border-radius: 2px; | |
| 1896 | - border: 1px solid #949494; | |
| 1885 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 1886 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 1897 | 1887 | } |
| 1898 | 1888 | |
| 1899 | -@media not (prefers-reduced-motion) { | |
| 1900 | - .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { | |
| 1901 | - transition: box-shadow 0.1s linear; | |
| 1902 | - } | |
| 1903 | -} | |
| 1904 | 1889 | @media (min-width: 600px) { |
| 1905 | 1890 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { |
| 1906 | 1891 | font-size: 13px; |
| 1907 | 1892 | /* Override core line-height. To be reviewed. */ |
| @@ -1907,12 +1892,17 @@ | ||
| 1907 | 1892 | /* Override core line-height. To be reviewed. */ |
| 1908 | 1893 | line-height: normal; |
| 1909 | 1894 | } |
| 1910 | 1895 | } |
| 1896 | +.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:hover:not(:disabled, [aria-disabled=true]) { | |
| 1897 | + border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e); | |
| 1898 | +} | |
| 1899 | + | |
| 1911 | 1900 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus { |
| 1912 | - border-color: var(--wp-admin-theme-color); | |
| 1913 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 1914 | - outline: 2px solid transparent; | |
| 1901 | + 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))); | |
| 1902 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 1903 | + border-color: var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 1904 | + box-shadow: none; | |
| 1915 | 1905 | } |
| 1916 | 1906 | |
| 1917 | 1907 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::placeholder { |
| 1918 | 1908 | color: rgba(30, 30, 30, 0.62); |
| @@ -1917,8 +1907,12 @@ | ||
| 1917 | 1907 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::placeholder { |
| 1918 | 1908 | color: rgba(30, 30, 30, 0.62); |
| 1919 | 1909 | } |
| 1920 | 1910 | |
| 1911 | +.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:hover:not(:disabled, [aria-disabled=true]) { | |
| 1912 | + background: var(--wpds-color-background-interactive-neutral-active, #fff); | |
| 1913 | +} | |
| 1914 | + | |
| 1921 | 1915 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus { |
| 1922 | 1916 | box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color); |
| 1923 | 1917 | outline: 2px solid transparent; |
| 1924 | 1918 | } |
| @@ -1949,9 +1943,9 @@ | ||
| 1949 | 1943 | display: inline-block; |
| 1950 | 1944 | vertical-align: middle; |
| 1951 | 1945 | width: 16px; |
| 1952 | 1946 | /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- dashicons don't need a generic family keyword. */ |
| 1953 | - font: normal 30px/1 dashicons; | |
| 1947 | + font: 400 30px/1 dashicons; | |
| 1954 | 1948 | speak: none; |
| 1955 | 1949 | -webkit-font-smoothing: antialiased; |
| 1956 | 1950 | -moz-osx-font-smoothing: grayscale; |
| 1957 | 1951 | } |
| @@ -1962,18 +1956,24 @@ | ||
| 1962 | 1956 | font-size: 21px; |
| 1963 | 1957 | } |
| 1964 | 1958 | } |
| 1965 | 1959 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true], .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled { |
| 1966 | - background: #f0f0f0; | |
| 1967 | - border-color: #ddd; | |
| 1960 | + background: var(--wpds-color-background-interactive-neutral-disabled, #fff); | |
| 1961 | + border-color: var(--wpds-color-stroke-interactive-neutral-disabled, #dbdbdb); | |
| 1962 | + color: var(--wpds-color-foreground-interactive-neutral-disabled, #8d8d8d); | |
| 1968 | 1963 | cursor: default; |
| 1969 | 1964 | opacity: 1; |
| 1970 | 1965 | } |
| 1971 | 1966 | |
| 1967 | +.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true]:checked::before, .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true][aria-checked=mixed]::before, .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled:checked::before, .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled[aria-checked=mixed]::before { | |
| 1968 | + color: var(--wpds-color-foreground-interactive-neutral-disabled, #8d8d8d); | |
| 1969 | +} | |
| 1970 | + | |
| 1972 | 1971 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection { |
| 1973 | 1972 | position: relative; |
| 1974 | - background: var(--wpds-color-bg-interactive-neutral-weak, rgba(0, 0, 0, 0)); | |
| 1975 | - color: var(--wpds-color-fg-content-neutral, #1e1e1e); | |
| 1973 | + /* stylelint-disable-next-line plugin-wpds/no-token-fallback-values -- Preserve custom background theming with older @wordpress/theme runtimes that do not set this token. */ | |
| 1974 | + background: var(--wpds-color-background-interactive-neutral, var(--wpds-color-background-surface-neutral-strong, #fff)); | |
| 1975 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 1976 | 1976 | margin: 0; |
| 1977 | 1977 | padding: 0; |
| 1978 | 1978 | width: var(--checkbox-size); |
| 1979 | 1979 | height: var(--checkbox-size); |
| @@ -1989,15 +1989,15 @@ | ||
| 1989 | 1989 | transition: 0.1s border-color ease-in-out; |
| 1990 | 1990 | } |
| 1991 | 1991 | } |
| 1992 | 1992 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected { |
| 1993 | - background: var(--wpds-color-bg-interactive-brand-strong, var(--wp-admin-theme-color, #3858e9)); | |
| 1993 | + background: var(--wpds-color-background-interactive-brand-strong, var(--wp-admin-theme-color, #3858e9)); | |
| 1994 | 1994 | border-color: var(--wpds-color-stroke-interactive-brand, var(--wp-admin-theme-color, #3858e9)); |
| 1995 | 1995 | } |
| 1996 | 1996 | |
| 1997 | 1997 | .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg { |
| 1998 | 1998 | --checkmark-size: var(--checkbox-size); |
| 1999 | - fill: var(--wpds-color-fg-interactive-neutral-strong, #f0f0f0); | |
| 1999 | + color: var(--wpds-color-foreground-interactive-neutral-strong, #f0f0f0); | |
| 2000 | 2000 | position: absolute; |
| 2001 | 2001 | right: 50%; |
| 2002 | 2002 | top: 50%; |
| 2003 | 2003 | transform: translate(50%, -50%); |
| @@ -2015,24 +2015,18 @@ | ||
| 2015 | 2015 | padding: var(--wpds-dimension-padding-sm, 8px); |
| 2016 | 2016 | } |
| 2017 | 2017 | |
| 2018 | 2018 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { |
| 2019 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 2019 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 2020 | 2020 | padding: 6px 8px; |
| 2021 | 2021 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 2022 | 2022 | font-size: 16px; |
| 2023 | 2023 | /* Override core line-height. To be reviewed. */ |
| 2024 | 2024 | line-height: normal; |
| 2025 | - box-shadow: 0 0 0 transparent; | |
| 2026 | - border-radius: 2px; | |
| 2027 | - border: 1px solid #949494; | |
| 2025 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 2026 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 2028 | 2027 | } |
| 2029 | 2028 | |
| 2030 | -@media not (prefers-reduced-motion) { | |
| 2031 | - .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { | |
| 2032 | - transition: box-shadow 0.1s linear; | |
| 2033 | - } | |
| 2034 | -} | |
| 2035 | 2029 | @media (min-width: 600px) { |
| 2036 | 2030 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { |
| 2037 | 2031 | font-size: 13px; |
| 2038 | 2032 | /* Override core line-height. To be reviewed. */ |
| @@ -2038,12 +2032,17 @@ | ||
| 2038 | 2032 | /* Override core line-height. To be reviewed. */ |
| 2039 | 2033 | line-height: normal; |
| 2040 | 2034 | } |
| 2041 | 2035 | } |
| 2036 | +.dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:hover:not(:disabled, [aria-disabled=true]) { | |
| 2037 | + border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e); | |
| 2038 | +} | |
| 2039 | + | |
| 2042 | 2040 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus { |
| 2043 | - border-color: var(--wp-admin-theme-color); | |
| 2044 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 2045 | - outline: 2px solid transparent; | |
| 2041 | + 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))); | |
| 2042 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 2043 | + border-color: var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 2044 | + box-shadow: none; | |
| 2046 | 2045 | } |
| 2047 | 2046 | |
| 2048 | 2047 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder { |
| 2049 | 2048 | color: rgba(30, 30, 30, 0.62); |
| @@ -2050,11 +2049,11 @@ | ||
| 2050 | 2049 | } |
| 2051 | 2050 | |
| 2052 | 2051 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input { |
| 2053 | 2052 | display: block; |
| 2054 | - padding: 0 calc(var(--wpds-dimension-base, 4px) * 8) 0 var(--wpds-dimension-padding-sm, 8px); | |
| 2053 | + padding: 0 var(--wpds-dimension-size-md, 32px) 0 var(--wpds-dimension-padding-sm, 8px); | |
| 2055 | 2054 | width: 100%; |
| 2056 | - height: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 2055 | + height: var(--wpds-dimension-size-md, 32px); | |
| 2057 | 2056 | margin-right: 0; |
| 2058 | 2057 | margin-left: 0; |
| 2059 | 2058 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 2060 | 2059 | font-size: 16px; |
| @@ -2065,14 +2064,13 @@ | ||
| 2065 | 2064 | font-size: var(--wpds-typography-font-size-md, 13px); |
| 2066 | 2065 | } |
| 2067 | 2066 | } |
| 2068 | 2067 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input:focus { |
| 2069 | - background: var(--wpds-color-bg-surface-neutral-strong, #fff); | |
| 2070 | - box-shadow: inset 0 0 0 var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) var(--wpds-color-stroke-focus-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 2068 | + background: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 2071 | 2069 | } |
| 2072 | 2070 | |
| 2073 | 2071 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::placeholder { |
| 2074 | - color: var(--wpds-color-fg-content-neutral-weak, #707070); | |
| 2072 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 2075 | 2073 | } |
| 2076 | 2074 | |
| 2077 | 2075 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-decoration, .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-cancel-button, .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-button, .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__input::-webkit-search-results-decoration { |
| 2078 | 2076 | -webkit-appearance: none; |
| @@ -2085,9 +2083,9 @@ | ||
| 2085 | 2083 | bottom: 0; |
| 2086 | 2084 | display: flex; |
| 2087 | 2085 | align-items: center; |
| 2088 | 2086 | justify-content: center; |
| 2089 | - width: 24px; | |
| 2087 | + width: var(--wpds-dimension-size-sm, 24px); | |
| 2090 | 2088 | } |
| 2091 | 2089 | |
| 2092 | 2090 | .dataviews-filters__search-widget-filter-combobox__wrapper .dataviews-filters__search-widget-filter-combobox__icon:dir(ltr) { |
| 2093 | 2091 | transform: scaleX(-1); |
| @@ -2102,25 +2100,21 @@ | ||
| 2102 | 2100 | position: absolute; |
| 2103 | 2101 | top: 0; |
| 2104 | 2102 | left: 0; |
| 2105 | 2103 | transform: translate(-50%, -50%); |
| 2106 | - background: var(--wpds-color-bg-interactive-brand-strong, var(--wp-admin-theme-color, #3858e9)); | |
| 2107 | - height: calc(var(--wpds-dimension-base, 4px) * 4); | |
| 2108 | - min-width: calc(var(--wpds-dimension-base, 4px) * 4); | |
| 2104 | + background: var(--wpds-color-background-interactive-brand-strong, var(--wp-admin-theme-color, #3858e9)); | |
| 2105 | + height: var(--wpds-dimension-size-2xs, 16px); | |
| 2106 | + min-width: var(--wpds-dimension-size-2xs, 16px); | |
| 2109 | 2107 | line-height: var(--wpds-typography-line-height-xs, 16px); |
| 2110 | 2108 | padding: 0 var(--wpds-dimension-padding-xs, 4px); |
| 2111 | 2109 | text-align: center; |
| 2112 | 2110 | border-radius: var(--wpds-border-radius-lg, 8px); |
| 2113 | 2111 | font-size: 11px; |
| 2114 | - outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--wpds-color-bg-surface-neutral-strong, #fff); | |
| 2115 | - color: var(--wpds-color-fg-interactive-neutral-strong, #f0f0f0); | |
| 2112 | + outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 2113 | + color: var(--wpds-color-foreground-interactive-neutral-strong, #f0f0f0); | |
| 2116 | 2114 | box-sizing: border-box; |
| 2117 | 2115 | } |
| 2118 | 2116 | |
| 2119 | -.dataviews-search { | |
| 2120 | - width: fit-content; | |
| 2121 | -} | |
| 2122 | - | |
| 2123 | 2117 | .dataviews-filters__user-input-widget { |
| 2124 | 2118 | padding: var(--wpds-dimension-padding-lg, 16px); |
| 2125 | 2119 | } |
| 2126 | 2120 | |
| @@ -2140,9 +2134,9 @@ | ||
| 2140 | 2134 | bottom: 0; |
| 2141 | 2135 | right: 0; |
| 2142 | 2136 | background-color: inherit; |
| 2143 | 2137 | padding: var(--wpds-dimension-padding-md, 12px) var(--wpds-dimension-padding-2xl, 24px); |
| 2144 | - border-top: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-surface-neutral-weak, #e4e4e4); | |
| 2138 | + border-top: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-surface-neutral-weak, #f0f0f0); | |
| 2145 | 2139 | flex-shrink: 0; |
| 2146 | 2140 | } |
| 2147 | 2141 | |
| 2148 | 2142 | @media not (prefers-reduced-motion) { |
| @@ -2181,9 +2175,9 @@ | ||
| 2181 | 2175 | } |
| 2182 | 2176 | } |
| 2183 | 2177 | .dataviews-pagination__page-select { |
| 2184 | 2178 | font-size: 11px; |
| 2185 | - font-weight: var(--wpds-typography-font-weight-medium, 499); | |
| 2179 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 2186 | 2180 | text-transform: uppercase; |
| 2187 | 2181 | } |
| 2188 | 2182 | |
| 2189 | 2183 | @media (min-width: 600px) { |
| @@ -2188,9 +2182,9 @@ | ||
| 2188 | 2182 | |
| 2189 | 2183 | @media (min-width: 600px) { |
| 2190 | 2184 | .dataviews-pagination__page-select .components-select-control__input { |
| 2191 | 2185 | font-size: 11px !important; |
| 2192 | - font-weight: var(--wpds-typography-font-weight-medium, 499); | |
| 2186 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 2193 | 2187 | } |
| 2194 | 2188 | } |
| 2195 | 2189 | .dataviews-action-modal { |
| 2196 | 2190 | z-index: 1000001; |
| @@ -2219,9 +2213,8 @@ | ||
| 2219 | 2213 | } |
| 2220 | 2214 | |
| 2221 | 2215 | .dataviews-view-config { |
| 2222 | 2216 | width: 320px; |
| 2223 | - /* stylelint-disable-next-line property-no-unknown -- the linter needs to be updated to accepted the container-type property */ | |
| 2224 | 2217 | container-type: inline-size; |
| 2225 | 2218 | font-size: var(--wpds-typography-font-size-md, 13px); |
| 2226 | 2219 | line-height: var(--wpds-typography-line-height-sm, 20px); |
| 2227 | 2220 | } |
| @@ -2294,9 +2287,9 @@ | ||
| 2294 | 2287 | top: var(--wpds-dimension-gap-xs, 4px); |
| 2295 | 2288 | left: var(--wpds-dimension-gap-xs, 4px); |
| 2296 | 2289 | width: var(--wpds-dimension-gap-xs, 4px); |
| 2297 | 2290 | height: var(--wpds-dimension-gap-xs, 4px); |
| 2298 | - background: var(--wpds-color-bg-interactive-brand-strong, var(--wp-admin-theme-color, #3858e9)); | |
| 2291 | + background: var(--wpds-color-background-interactive-brand-strong, var(--wp-admin-theme-color, #3858e9)); | |
| 2299 | 2292 | border-radius: 50%; |
| 2300 | 2293 | pointer-events: none; |
| 2301 | 2294 | } |
| 2302 | 2295 | |
| @@ -2369,9 +2362,9 @@ | ||
| 2369 | 2362 | top: 0; |
| 2370 | 2363 | right: 0; |
| 2371 | 2364 | width: 100%; |
| 2372 | 2365 | height: 100%; |
| 2373 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 2366 | + box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 2374 | 2367 | border-radius: var(--wpds-border-radius-md, 4px); |
| 2375 | 2368 | pointer-events: none; |
| 2376 | 2369 | outline: 2px solid transparent; |
| 2377 | 2370 | } |
| @@ -2390,9 +2383,9 @@ | ||
| 2390 | 2383 | } |
| 2391 | 2384 | |
| 2392 | 2385 | .dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__title-field, |
| 2393 | 2386 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__title-field { |
| 2394 | - min-height: calc(var(--wpds-dimension-base, 4px) * 6); | |
| 2387 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2395 | 2388 | overflow: hidden; |
| 2396 | 2389 | align-content: center; |
| 2397 | 2390 | text-align: start; |
| 2398 | 2391 | } |
| @@ -2403,26 +2396,26 @@ | ||
| 2403 | 2396 | } |
| 2404 | 2397 | |
| 2405 | 2398 | .dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value, |
| 2406 | 2399 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-value { |
| 2407 | - color: var(--wpds-color-fg-content-neutral, #1e1e1e); | |
| 2400 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 2408 | 2401 | } |
| 2409 | 2402 | |
| 2410 | 2403 | .dataviews-view-grid .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after, |
| 2411 | 2404 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__card.is-selected .dataviews-view-grid__media::after { |
| 2412 | - box-shadow: inset 0 0 0 var(--wpds-border-width-xs, 1px) var(--wpds-color-stroke-interactive-brand, var(--wp-admin-theme-color, #3858e9)), inset 0 0 0 var(--wpds-border-width-sm, 2px) var(--wpds-color-bg-surface-neutral-strong, #fff); | |
| 2405 | + box-shadow: inset 0 0 0 var(--wpds-border-width-xs, 1px) var(--wpds-color-stroke-interactive-brand, var(--wp-admin-theme-color, #3858e9)), inset 0 0 0 var(--wpds-border-width-sm, 2px) var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 2413 | 2406 | } |
| 2414 | 2407 | |
| 2415 | 2408 | .dataviews-view-grid .dataviews-view-grid__card .dataviews-view-grid__media:focus::after, |
| 2416 | 2409 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__card .dataviews-view-grid__media:focus::after { |
| 2417 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 2410 | + box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 2418 | 2411 | } |
| 2419 | 2412 | |
| 2420 | 2413 | .dataviews-view-grid .dataviews-view-grid__media, |
| 2421 | 2414 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__media { |
| 2422 | 2415 | width: 100%; |
| 2423 | - aspect-ratio: 1/1; | |
| 2424 | - background-color: var(--wpds-color-bg-surface-neutral-strong, #fff); | |
| 2416 | + aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1); | |
| 2417 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 2425 | 2418 | border-radius: var(--wpds-border-radius-md, 4px); |
| 2426 | 2419 | overflow: hidden; |
| 2427 | 2420 | position: relative; |
| 2428 | 2421 | } |
| @@ -2458,11 +2451,21 @@ | ||
| 2458 | 2451 | height: 100%; |
| 2459 | 2452 | display: block; |
| 2460 | 2453 | border-radius: var(--wpds-border-radius-md, 4px); |
| 2461 | 2454 | box-shadow: none; |
| 2462 | - background: var(--wpds-color-bg-surface-neutral, #fcfcfc); | |
| 2455 | + background: var(--wpds-color-background-surface-neutral, #fcfcfc); | |
| 2463 | 2456 | } |
| 2464 | 2457 | |
| 2458 | +.dataviews-view-grid.has-media-fit-contain .dataviews-view-grid__media, | |
| 2459 | +.dataviews-view-grid-infinite-scroll.has-media-fit-contain .dataviews-view-grid__media { | |
| 2460 | + background-color: var(--wpds-color-background-surface-neutral, #fcfcfc); | |
| 2461 | +} | |
| 2462 | + | |
| 2463 | +.dataviews-view-grid.has-media-fit-contain .dataviews-view-grid__media img, | |
| 2464 | +.dataviews-view-grid-infinite-scroll.has-media-fit-contain .dataviews-view-grid__media img { | |
| 2465 | + object-fit: contain; | |
| 2466 | +} | |
| 2467 | + | |
| 2465 | 2468 | .dataviews-view-grid .dataviews-view-grid__fields, |
| 2466 | 2469 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields { |
| 2467 | 2470 | position: relative; |
| 2468 | 2471 | font-size: 12px; |
| @@ -2475,16 +2478,16 @@ | ||
| 2475 | 2478 | } |
| 2476 | 2479 | |
| 2477 | 2480 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty), |
| 2478 | 2481 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field-value:not(:empty) { |
| 2479 | - min-height: calc(var(--wpds-dimension-base, 4px) * 6); | |
| 2482 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2480 | 2483 | line-height: var(--wpds-typography-line-height-sm, 20px); |
| 2481 | - padding-top: calc(var(--wpds-dimension-base, 4px) / 2); | |
| 2484 | + padding-top: calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px)) / 2); | |
| 2482 | 2485 | } |
| 2483 | 2486 | |
| 2484 | 2487 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field, |
| 2485 | 2488 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field { |
| 2486 | - min-height: calc(var(--wpds-dimension-base, 4px) * 6); | |
| 2489 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2487 | 2490 | align-items: center; |
| 2488 | 2491 | } |
| 2489 | 2492 | |
| 2490 | 2493 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name, |
| @@ -2489,9 +2492,9 @@ | ||
| 2489 | 2492 | |
| 2490 | 2493 | .dataviews-view-grid .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name, |
| 2491 | 2494 | .dataviews-view-grid-infinite-scroll .dataviews-view-grid__fields .dataviews-view-grid__field .dataviews-view-grid__field-name { |
| 2492 | 2495 | width: 35%; |
| 2493 | - color: var(--wpds-color-fg-content-neutral-weak, #707070); | |
| 2496 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 2494 | 2497 | overflow: hidden; |
| 2495 | 2498 | text-overflow: ellipsis; |
| 2496 | 2499 | white-space: nowrap; |
| 2497 | 2500 | } |
| @@ -2566,9 +2569,9 @@ | ||
| 2566 | 2569 | left: var(--wpds-dimension-padding-xs, 4px); |
| 2567 | 2570 | } |
| 2568 | 2571 | |
| 2569 | 2572 | .dataviews-view-grid__card .dataviews-view-grid__media-actions .dataviews-all-actions-button { |
| 2570 | - background-color: var(--wpds-color-bg-surface-neutral-strong, #fff); | |
| 2573 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 2571 | 2574 | } |
| 2572 | 2575 | |
| 2573 | 2576 | @media not (prefers-reduced-motion) { |
| 2574 | 2577 | .dataviews-view-grid__card .dataviews-view-grid__media-actions { |
| @@ -2592,10 +2595,10 @@ | ||
| 2592 | 2595 | } |
| 2593 | 2596 | |
| 2594 | 2597 | .dataviews-view-grid__group-header { |
| 2595 | 2598 | font-size: var(--wpds-typography-font-size-lg, 15px); |
| 2596 | - font-weight: var(--wpds-typography-font-weight-medium, 499); | |
| 2597 | - color: var(--wpds-color-fg-content-neutral, #1e1e1e); | |
| 2599 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 2600 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 2598 | 2601 | margin: 0 0 var(--wpds-dimension-gap-sm, 8px) 0; |
| 2599 | 2602 | padding: 0 var(--wpds-dimension-padding-2xl, 24px); |
| 2600 | 2603 | container-type: inline-size; |
| 2601 | 2604 | } |
| @@ -2610,9 +2613,9 @@ | ||
| 2610 | 2613 | |
| 2611 | 2614 | .dataviews-view-list div[role=row], |
| 2612 | 2615 | .dataviews-view-list div[role=article] { |
| 2613 | 2616 | margin: 0; |
| 2614 | - border-top: 1px solid var(--wpds-color-stroke-surface-neutral-weak, #e4e4e4); | |
| 2617 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral-weak, #f0f0f0); | |
| 2615 | 2618 | } |
| 2616 | 2619 | |
| 2617 | 2620 | .dataviews-view-list div[role=row] .dataviews-view-list__item-wrapper, |
| 2618 | 2621 | .dataviews-view-list div[role=article] .dataviews-view-list__item-wrapper { |
| @@ -2637,9 +2640,9 @@ | ||
| 2637 | 2640 | } |
| 2638 | 2641 | |
| 2639 | 2642 | .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > div, |
| 2640 | 2643 | .dataviews-view-list div[role=article] .dataviews-view-list__item-actions > div { |
| 2641 | - height: 24px; | |
| 2644 | + height: var(--wpds-dimension-size-sm, 24px); | |
| 2642 | 2645 | } |
| 2643 | 2646 | |
| 2644 | 2647 | .dataviews-view-list div[role=row] .dataviews-view-list__item-actions > :not(:last-child), |
| 2645 | 2648 | .dataviews-view-list div[role=article] .dataviews-view-list__item-actions > :not(:last-child) { |
| @@ -2664,15 +2667,15 @@ | ||
| 2664 | 2667 | } |
| 2665 | 2668 | } |
| 2666 | 2669 | .dataviews-view-list div[role=row].is-selected.is-selected, |
| 2667 | 2670 | .dataviews-view-list div[role=article].is-selected.is-selected { |
| 2668 | - border-top: 1px solid var(--wpds-color-stroke-surface-brand, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 46%, white)); | |
| 2671 | + border-top: 1px solid var(--wpds-color-stroke-surface-brand, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 40%, white)); | |
| 2669 | 2672 | } |
| 2670 | 2673 | |
| 2671 | 2674 | .dataviews-view-list div[role=row].is-selected.is-selected + div[role=row], .dataviews-view-list div[role=row].is-selected.is-selected + div[role=article], |
| 2672 | 2675 | .dataviews-view-list div[role=article].is-selected.is-selected + div[role=row], |
| 2673 | 2676 | .dataviews-view-list div[role=article].is-selected.is-selected + div[role=article] { |
| 2674 | - border-top: 1px solid var(--wpds-color-stroke-surface-brand, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 46%, white)); | |
| 2677 | + border-top: 1px solid var(--wpds-color-stroke-surface-brand, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 40%, white)); | |
| 2675 | 2678 | } |
| 2676 | 2679 | |
| 2677 | 2680 | .dataviews-view-list div[role=row]:not(.is-selected):hover, .dataviews-view-list div[role=row]:not(.is-selected).is-hovered, .dataviews-view-list div[role=row]:not(.is-selected):focus-within, |
| 2678 | 2681 | .dataviews-view-list div[role=article]:not(.is-selected):hover, |
| @@ -2677,10 +2680,9 @@ | ||
| 2677 | 2680 | .dataviews-view-list div[role=row]:not(.is-selected):hover, .dataviews-view-list div[role=row]:not(.is-selected).is-hovered, .dataviews-view-list div[role=row]:not(.is-selected):focus-within, |
| 2678 | 2681 | .dataviews-view-list div[role=article]:not(.is-selected):hover, |
| 2679 | 2682 | .dataviews-view-list div[role=article]:not(.is-selected).is-hovered, |
| 2680 | 2683 | .dataviews-view-list div[role=article]:not(.is-selected):focus-within { |
| 2681 | - color: var(--wpds-color-fg-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 2682 | - background-color: var(--wpds-color-bg-interactive-brand-weak, rgba(0, 0, 0, 0)); | |
| 2684 | + background-color: var(--wpds-color-background-interactive-neutral-weak-active, #ededed); | |
| 2683 | 2685 | } |
| 2684 | 2686 | |
| 2685 | 2687 | .dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-title-field, |
| 2686 | 2688 | .dataviews-view-list div[role=row]:not(.is-selected):hover .dataviews-view-list__field, .dataviews-view-list div[role=row]:not(.is-selected).is-hovered .dataviews-title-field, |
| @@ -2691,9 +2693,9 @@ | ||
| 2691 | 2693 | .dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-title-field, |
| 2692 | 2694 | .dataviews-view-list div[role=article]:not(.is-selected).is-hovered .dataviews-view-list__field, |
| 2693 | 2695 | .dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-title-field, |
| 2694 | 2696 | .dataviews-view-list div[role=article]:not(.is-selected):focus-within .dataviews-view-list__field { |
| 2695 | - color: var(--wpds-color-fg-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 2697 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 2696 | 2698 | } |
| 2697 | 2699 | |
| 2698 | 2700 | .dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper, |
| 2699 | 2701 | .dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper, |
| @@ -2698,10 +2700,10 @@ | ||
| 2698 | 2700 | .dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper, |
| 2699 | 2701 | .dataviews-view-list div[role=row].is-selected:focus-within .dataviews-view-list__item-wrapper, |
| 2700 | 2702 | .dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper, |
| 2701 | 2703 | .dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper { |
| 2702 | - background-color: var(--wpds-color-bg-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 2703 | - color: var(--wpds-color-fg-interactive-neutral, #1e1e1e); | |
| 2704 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 2705 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 2704 | 2706 | } |
| 2705 | 2707 | |
| 2706 | 2708 | .dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field, |
| 2707 | 2709 | .dataviews-view-list div[role=row].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field, |
| @@ -2710,9 +2712,9 @@ | ||
| 2710 | 2712 | .dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-title-field, |
| 2711 | 2713 | .dataviews-view-list div[role=article].is-selected .dataviews-view-list__item-wrapper .dataviews-view-list__field, |
| 2712 | 2714 | .dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-title-field, |
| 2713 | 2715 | .dataviews-view-list div[role=article].is-selected:focus-within .dataviews-view-list__item-wrapper .dataviews-view-list__field { |
| 2714 | - color: var(--wpds-color-fg-interactive-neutral-active, #1e1e1e); | |
| 2716 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 2715 | 2717 | } |
| 2716 | 2718 | |
| 2717 | 2719 | .dataviews-view-list .dataviews-view-list__item { |
| 2718 | 2720 | position: absolute; |
| @@ -2733,9 +2735,9 @@ | ||
| 2733 | 2735 | .dataviews-view-list .dataviews-view-list__item:focus-visible::before { |
| 2734 | 2736 | position: absolute; |
| 2735 | 2737 | content: ""; |
| 2736 | 2738 | inset: var(--wp-admin-border-width-focus); |
| 2737 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 2739 | + box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 2738 | 2740 | border-radius: var(--wpds-border-radius-sm, 2px); |
| 2739 | 2741 | outline: 2px solid transparent; |
| 2740 | 2742 | } |
| 2741 | 2743 | |
| @@ -2740,9 +2742,9 @@ | ||
| 2740 | 2742 | } |
| 2741 | 2743 | |
| 2742 | 2744 | .dataviews-view-list .dataviews-view-list__title-field { |
| 2743 | 2745 | flex: 1; |
| 2744 | - min-height: calc(var(--wpds-dimension-base, 4px) * 6); | |
| 2746 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2745 | 2747 | line-height: var(--wpds-typography-line-height-md, 24px); |
| 2746 | 2748 | overflow: hidden; |
| 2747 | 2749 | } |
| 2748 | 2750 | |
| @@ -2750,14 +2752,14 @@ | ||
| 2750 | 2752 | z-index: 1; |
| 2751 | 2753 | } |
| 2752 | 2754 | |
| 2753 | 2755 | .dataviews-view-list .dataviews-view-list__media-wrapper { |
| 2754 | - width: calc(var(--wpds-dimension-base, 4px) * 13); | |
| 2755 | - height: calc(var(--wpds-dimension-base, 4px) * 13); | |
| 2756 | + width: 48px; | |
| 2757 | + height: 48px; | |
| 2756 | 2758 | overflow: hidden; |
| 2757 | 2759 | position: relative; |
| 2758 | 2760 | flex-shrink: 0; |
| 2759 | - background-color: var(--wpds-color-bg-surface-neutral-strong, #fff); | |
| 2761 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 2760 | 2762 | border-radius: var(--wpds-border-radius-md, 4px); |
| 2761 | 2763 | } |
| 2762 | 2764 | |
| 2763 | 2765 | .dataviews-view-list .dataviews-view-list__media-wrapper img { |
| @@ -2777,15 +2779,15 @@ | ||
| 2777 | 2779 | border-radius: var(--wpds-border-radius-md, 4px); |
| 2778 | 2780 | } |
| 2779 | 2781 | |
| 2780 | 2782 | .dataviews-view-list .dataviews-view-list__field-wrapper { |
| 2781 | - min-height: calc(var(--wpds-dimension-base, 4px) * 13); | |
| 2783 | + min-height: 48px; | |
| 2782 | 2784 | flex-grow: 1; |
| 2783 | 2785 | min-width: 0; |
| 2784 | 2786 | } |
| 2785 | 2787 | |
| 2786 | 2788 | .dataviews-view-list .dataviews-view-list__field { |
| 2787 | - color: var(--wpds-color-fg-interactive-neutral-weak, #707070); | |
| 2789 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 2788 | 2790 | } |
| 2789 | 2791 | |
| 2790 | 2792 | .dataviews-view-list .dataviews-view-list__fields { |
| 2791 | 2793 | display: flex; |
| @@ -2803,9 +2805,9 @@ | ||
| 2803 | 2805 | display: none; |
| 2804 | 2806 | } |
| 2805 | 2807 | |
| 2806 | 2808 | .dataviews-view-list .dataviews-view-list__fields .dataviews-view-list__field-value { |
| 2807 | - min-height: calc(var(--wpds-dimension-base, 4px) * 6); | |
| 2809 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 2808 | 2810 | line-height: var(--wpds-typography-line-height-sm, 20px); |
| 2809 | 2811 | display: flex; |
| 2810 | 2812 | align-items: center; |
| 2811 | 2813 | } |
| @@ -2818,19 +2820,19 @@ | ||
| 2818 | 2820 | padding: var(--wpds-dimension-padding-sm, 8px) var(--wpds-dimension-padding-2xl, 24px); |
| 2819 | 2821 | } |
| 2820 | 2822 | |
| 2821 | 2823 | .dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__title-field { |
| 2822 | - min-height: calc(var(--wpds-dimension-base, 4px) * 4); | |
| 2824 | + min-height: var(--wpds-dimension-size-2xs, 16px); | |
| 2823 | 2825 | line-height: var(--wpds-typography-line-height-xs, 16px); |
| 2824 | 2826 | } |
| 2825 | 2827 | |
| 2826 | 2828 | .dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__media-wrapper { |
| 2827 | - width: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 2828 | - height: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 2829 | + width: var(--wpds-dimension-size-md, 32px); | |
| 2830 | + height: var(--wpds-dimension-size-md, 32px); | |
| 2829 | 2831 | } |
| 2830 | 2832 | |
| 2831 | 2833 | .dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__field-wrapper { |
| 2832 | - min-height: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 2834 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 2833 | 2835 | } |
| 2834 | 2836 | |
| 2835 | 2837 | .dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields { |
| 2836 | 2838 | gap: var(--wpds-dimension-gap-sm, 8px); |
| @@ -2837,9 +2839,9 @@ | ||
| 2837 | 2839 | row-gap: var(--wpds-dimension-gap-xs, 4px); |
| 2838 | 2840 | } |
| 2839 | 2841 | |
| 2840 | 2842 | .dataviews-view-list.has-compact-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value { |
| 2841 | - min-height: calc(var(--wpds-dimension-base, 4px) * 4); | |
| 2843 | + min-height: var(--wpds-dimension-size-2xs, 16px); | |
| 2842 | 2844 | line-height: var(--wpds-typography-line-height-xs, 16px); |
| 2843 | 2845 | } |
| 2844 | 2846 | |
| 2845 | 2847 | .dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__item-wrapper { |
| @@ -2846,19 +2848,19 @@ | ||
| 2846 | 2848 | padding: var(--wpds-dimension-padding-2xl, 24px) var(--wpds-dimension-padding-2xl, 24px); |
| 2847 | 2849 | } |
| 2848 | 2850 | |
| 2849 | 2851 | .dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__title-field { |
| 2850 | - min-height: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 2852 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 2851 | 2853 | line-height: var(--wpds-typography-line-height-xl, 32px); |
| 2852 | 2854 | } |
| 2853 | 2855 | |
| 2854 | 2856 | .dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__media-wrapper { |
| 2855 | - width: calc(var(--wpds-dimension-base, 4px) * 16); | |
| 2856 | - height: calc(var(--wpds-dimension-base, 4px) * 16); | |
| 2857 | + width: 64px; | |
| 2858 | + height: 64px; | |
| 2857 | 2859 | } |
| 2858 | 2860 | |
| 2859 | 2861 | .dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__field-wrapper { |
| 2860 | - min-height: calc(var(--wpds-dimension-base, 4px) * 16); | |
| 2862 | + min-height: 64px; | |
| 2861 | 2863 | } |
| 2862 | 2864 | |
| 2863 | 2865 | .dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields { |
| 2864 | 2866 | gap: var(--wpds-dimension-gap-lg, 16px); |
| @@ -2865,9 +2867,9 @@ | ||
| 2865 | 2867 | row-gap: var(--wpds-dimension-gap-sm, 8px); |
| 2866 | 2868 | } |
| 2867 | 2869 | |
| 2868 | 2870 | .dataviews-view-list.has-comfortable-density div[role=row] .dataviews-view-list__fields .dataviews-view-list__field-value { |
| 2869 | - min-height: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 2871 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 2870 | 2872 | line-height: var(--wpds-typography-line-height-md, 24px); |
| 2871 | 2873 | } |
| 2872 | 2874 | |
| 2873 | 2875 | .dataviews-view-list.is-refreshing { |
| @@ -2882,11 +2884,11 @@ | ||
| 2882 | 2884 | } |
| 2883 | 2885 | } |
| 2884 | 2886 | .dataviews-view-list__group-header { |
| 2885 | 2887 | font-size: var(--wpds-typography-font-size-lg, 15px); |
| 2886 | - font-weight: var(--wpds-typography-font-weight-medium, 499); | |
| 2887 | - color: var(--wpds-color-fg-content-neutral, #1e1e1e); | |
| 2888 | - margin: 0 0 var(--wpds-dimension-gap-sm, 8px) 0; | |
| 2888 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 2889 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 2890 | + margin: 0 0 var(--wpds-dimension-gap-lg, 16px) 0; | |
| 2889 | 2891 | padding: 0 var(--wpds-dimension-padding-2xl, 24px); |
| 2890 | 2892 | } |
| 2891 | 2893 | |
| 2892 | 2894 | .dataviews-view-table { |
| @@ -2894,9 +2896,9 @@ | ||
| 2894 | 2896 | text-indent: 0; |
| 2895 | 2897 | border-color: inherit; |
| 2896 | 2898 | border-collapse: collapse; |
| 2897 | 2899 | position: relative; |
| 2898 | - color: var(--wpds-color-fg-content-neutral-weak, #707070); | |
| 2900 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 2899 | 2901 | margin-bottom: auto; |
| 2900 | 2902 | background-color: inherit; |
| 2901 | 2903 | } |
| 2902 | 2904 | |
| @@ -2901,10 +2903,10 @@ | ||
| 2901 | 2903 | } |
| 2902 | 2904 | |
| 2903 | 2905 | .dataviews-view-table th { |
| 2904 | 2906 | text-align: right; |
| 2905 | - color: var(--wpds-color-fg-content-neutral, #1e1e1e); | |
| 2906 | - font-weight: normal; | |
| 2907 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 2908 | + font-weight: 400; | |
| 2907 | 2909 | font-size: var(--wpds-typography-font-size-md, 13px); |
| 2908 | 2910 | } |
| 2909 | 2911 | |
| 2910 | 2912 | .dataviews-view-table td, |
| @@ -2920,9 +2922,9 @@ | ||
| 2920 | 2922 | .dataviews-view-table td.dataviews-view-table__actions-column--sticky, |
| 2921 | 2923 | .dataviews-view-table th.dataviews-view-table__actions-column--sticky { |
| 2922 | 2924 | position: sticky; |
| 2923 | 2925 | left: 0; |
| 2924 | - background-color: var(--wp-dataviews-color-background, var(--wpds-color-bg-surface-neutral-strong, #fff)); | |
| 2926 | + background-color: var(--wp-dataviews-color-background, var(--wpds-color-background-surface-neutral-strong, #fff)); | |
| 2925 | 2927 | } |
| 2926 | 2928 | |
| 2927 | 2929 | .dataviews-view-table td.dataviews-view-table__actions-column--stuck::after, |
| 2928 | 2930 | .dataviews-view-table th.dataviews-view-table__actions-column--stuck::after { |
| @@ -2932,9 +2934,9 @@ | ||
| 2932 | 2934 | top: 0; |
| 2933 | 2935 | bottom: 0; |
| 2934 | 2936 | right: 0; |
| 2935 | 2937 | width: 1px; |
| 2936 | - background-color: var(--wpds-color-bg-surface-neutral, #fcfcfc); | |
| 2938 | + background-color: var(--wpds-color-stroke-surface-neutral-weak, #f0f0f0); | |
| 2937 | 2939 | } |
| 2938 | 2940 | |
| 2939 | 2941 | .dataviews-view-table td.dataviews-view-table__checkbox-column, |
| 2940 | 2942 | .dataviews-view-table th.dataviews-view-table__checkbox-column { |
| @@ -2947,9 +2949,9 @@ | ||
| 2947 | 2949 | min-width: auto; |
| 2948 | 2950 | } |
| 2949 | 2951 | |
| 2950 | 2952 | .dataviews-view-table tr { |
| 2951 | - border-top: 1px solid var(--wpds-color-stroke-surface-neutral-weak, #e4e4e4); | |
| 2953 | + border-top: 1px solid var(--wpds-color-stroke-surface-neutral-weak, #f0f0f0); | |
| 2952 | 2954 | background-color: inherit; |
| 2953 | 2955 | } |
| 2954 | 2956 | |
| 2955 | 2957 | .dataviews-view-table tr td:first-child, |
| @@ -2975,18 +2977,18 @@ | ||
| 2975 | 2977 | opacity: 1; |
| 2976 | 2978 | } |
| 2977 | 2979 | } |
| 2978 | 2980 | .dataviews-view-table tr.is-selected { |
| 2979 | - background-color: var(--wpds-color-bg-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 2980 | - color: var(--wpds-color-fg-content-neutral, #1e1e1e); | |
| 2981 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 2982 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 2981 | 2983 | } |
| 2982 | 2984 | |
| 2983 | 2985 | .dataviews-view-table tr.is-selected, .dataviews-view-table tr.is-selected + tr { |
| 2984 | - border-top: 1px solid var(--wpds-color-stroke-surface-brand, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 46%, white)); | |
| 2986 | + border-top: 1px solid var(--wpds-color-stroke-surface-brand, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 40%, white)); | |
| 2985 | 2987 | } |
| 2986 | 2988 | |
| 2987 | 2989 | .dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky { |
| 2988 | - background-color: var(--wpds-color-bg-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 2990 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 2989 | 2991 | } |
| 2990 | 2992 | |
| 2991 | 2993 | .dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) { |
| 2992 | 2994 | opacity: 1; |
| @@ -2992,13 +2994,13 @@ | ||
| 2992 | 2994 | opacity: 1; |
| 2993 | 2995 | } |
| 2994 | 2996 | |
| 2995 | 2997 | .dataviews-view-table.has-bulk-actions tr:focus-within .dataviews-view-table__actions-column--sticky, .dataviews-view-table.has-bulk-actions tr:hover .dataviews-view-table__actions-column--sticky { |
| 2996 | - background-color: var(--wp-dataviews-color-background, var(--wpds-color-bg-surface-neutral-strong, #fff)); | |
| 2998 | + background-color: var(--wp-dataviews-color-background, var(--wpds-color-background-surface-neutral-strong, #fff)); | |
| 2997 | 2999 | } |
| 2998 | 3000 | |
| 2999 | 3001 | .dataviews-view-table.has-bulk-actions tr.is-selected .dataviews-view-table__actions-column--sticky, .dataviews-view-table.has-bulk-actions tr.is-selected:hover .dataviews-view-table__actions-column--sticky { |
| 3000 | - background-color: var(--wpds-color-bg-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 3002 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 3001 | 3003 | } |
| 3002 | 3004 | |
| 3003 | 3005 | .dataviews-view-table thead { |
| 3004 | 3006 | position: sticky; |
| @@ -3014,9 +3016,9 @@ | ||
| 3014 | 3016 | bottom: 0; |
| 3015 | 3017 | right: 0; |
| 3016 | 3018 | left: 0; |
| 3017 | 3019 | height: 1px; |
| 3018 | - background-color: var(--wpds-color-stroke-surface-neutral-weak, #e4e4e4); | |
| 3020 | + background-color: var(--wpds-color-stroke-surface-neutral-weak, #f0f0f0); | |
| 3019 | 3021 | } |
| 3020 | 3022 | |
| 3021 | 3023 | .dataviews-view-table thead tr { |
| 3022 | 3024 | border: 0; |
| @@ -3027,9 +3029,9 @@ | ||
| 3027 | 3029 | padding-top: var(--wpds-dimension-padding-sm, 8px); |
| 3028 | 3030 | padding-bottom: var(--wpds-dimension-padding-sm, 8px); |
| 3029 | 3031 | font-size: 11px; |
| 3030 | 3032 | text-transform: uppercase; |
| 3031 | - font-weight: var(--wpds-typography-font-weight-medium, 499); | |
| 3033 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3032 | 3034 | } |
| 3033 | 3035 | |
| 3034 | 3036 | .dataviews-view-table thead th:has(.dataviews-view-table-header-button) { |
| 3035 | 3037 | padding-right: var(--wpds-dimension-padding-xs, 4px); |
| @@ -3052,9 +3054,9 @@ | ||
| 3052 | 3054 | vertical-align: top; |
| 3053 | 3055 | } |
| 3054 | 3056 | |
| 3055 | 3057 | .dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper { |
| 3056 | - min-height: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 3058 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 3057 | 3059 | display: flex; |
| 3058 | 3060 | align-items: center; |
| 3059 | 3061 | white-space: nowrap; |
| 3060 | 3062 | } |
| @@ -3075,13 +3077,13 @@ | ||
| 3075 | 3077 | .dataviews-view-table .dataviews-view-table-header-button { |
| 3076 | 3078 | padding: var(--wpds-dimension-padding-xs, 4px) var(--wpds-dimension-padding-sm, 8px); |
| 3077 | 3079 | font-size: 11px; |
| 3078 | 3080 | text-transform: uppercase; |
| 3079 | - font-weight: var(--wpds-typography-font-weight-medium, 499); | |
| 3081 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3080 | 3082 | } |
| 3081 | 3083 | |
| 3082 | 3084 | .dataviews-view-table .dataviews-view-table-header-button:not(:hover) { |
| 3083 | - color: var(--wpds-color-fg-interactive-neutral, #1e1e1e); | |
| 3085 | + color: var(--wpds-color-foreground-interactive-neutral, #1e1e1e); | |
| 3084 | 3086 | } |
| 3085 | 3087 | |
| 3086 | 3088 | .dataviews-view-table .dataviews-view-table-header-button span { |
| 3087 | 3089 | speak: none; |
| @@ -3134,20 +3136,20 @@ | ||
| 3134 | 3136 | } |
| 3135 | 3137 | } |
| 3136 | 3138 | .dataviews-column-primary__media { |
| 3137 | 3139 | max-width: 60px; |
| 3138 | - min-width: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 3139 | - min-height: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 3140 | + min-width: var(--wpds-dimension-size-md, 32px); | |
| 3141 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 3140 | 3142 | overflow: hidden; |
| 3141 | 3143 | position: relative; |
| 3142 | 3144 | flex-shrink: 0; |
| 3143 | - background-color: var(--wpds-color-bg-surface-neutral-strong, #fff); | |
| 3145 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 3144 | 3146 | border-radius: var(--wpds-border-radius-md, 4px); |
| 3145 | 3147 | } |
| 3146 | 3148 | |
| 3147 | 3149 | .dataviews-column-primary__media img { |
| 3148 | - width: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 3149 | - height: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 3150 | + width: var(--wpds-dimension-size-md, 32px); | |
| 3151 | + height: var(--wpds-dimension-size-md, 32px); | |
| 3150 | 3152 | object-fit: cover; |
| 3151 | 3153 | } |
| 3152 | 3154 | |
| 3153 | 3155 | .dataviews-column-primary__media::after { |
| @@ -3160,8 +3162,19 @@ | ||
| 3160 | 3162 | box-shadow: inset 0 0 0 var(--wpds-border-width-xs, 1px) rgba(0, 0, 0, 0.1); |
| 3161 | 3163 | border-radius: var(--wpds-border-radius-md, 4px); |
| 3162 | 3164 | } |
| 3163 | 3165 | |
| 3166 | +.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media { | |
| 3167 | + height: var(--wpds-dimension-size-md, 32px); | |
| 3168 | + aspect-ratio: var(--wp-dataviews-media-aspect-ratio, 1/1); | |
| 3169 | + min-width: 0; | |
| 3170 | +} | |
| 3171 | + | |
| 3172 | +.dataviews-view-table.has-media-aspect-ratio .dataviews-column-primary__media img { | |
| 3173 | + width: 100%; | |
| 3174 | + height: 100%; | |
| 3175 | +} | |
| 3176 | + | |
| 3164 | 3177 | .dataviews-view-table__cell-content-wrapper:not(.dataviews-column-primary__media), |
| 3165 | 3178 | .dataviews-view-table__primary-column-content:not(.dataviews-column-primary__media) { |
| 3166 | 3179 | min-width: 15ch; |
| 3167 | 3180 | max-width: 80ch; |
| @@ -3167,11 +3180,11 @@ | ||
| 3167 | 3180 | max-width: 80ch; |
| 3168 | 3181 | } |
| 3169 | 3182 | |
| 3170 | 3183 | .dataviews-view-table__group-header-row .dataviews-view-table__group-header-cell { |
| 3171 | - font-weight: var(--wpds-typography-font-weight-medium, 499); | |
| 3184 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3172 | 3185 | padding: var(--wpds-dimension-padding-md, 12px) var(--wpds-dimension-padding-2xl, 24px); |
| 3173 | - color: var(--wpds-color-fg-content-neutral, #1e1e1e); | |
| 3186 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 3174 | 3187 | } |
| 3175 | 3188 | |
| 3176 | 3189 | /* Column width intents via colgroup: make non-primary columns shrink-to-fit */ |
| 3177 | 3190 | .dataviews-view-table col[class^=dataviews-view-table__col-]:not(.dataviews-view-table__col-first-data):not(.dataviews-view-table__col-expand) { |
| @@ -3208,9 +3221,9 @@ | ||
| 3208 | 3221 | padding: var(--wpds-dimension-padding-sm, 8px) 0 var(--wpds-dimension-padding-xs, 4px); |
| 3209 | 3222 | } |
| 3210 | 3223 | |
| 3211 | 3224 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__title-field { |
| 3212 | - min-height: calc(var(--wpds-dimension-base, 4px) * 6); | |
| 3225 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 3213 | 3226 | overflow: hidden; |
| 3214 | 3227 | align-content: center; |
| 3215 | 3228 | text-align: start; |
| 3216 | 3229 | } |
| @@ -3219,17 +3232,17 @@ | ||
| 3219 | 3232 | width: fit-content; |
| 3220 | 3233 | } |
| 3221 | 3234 | |
| 3222 | 3235 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-value { |
| 3223 | - color: var(--wpds-color-fg-content-neutral, #1e1e1e); | |
| 3236 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 3224 | 3237 | } |
| 3225 | 3238 | |
| 3226 | 3239 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card.is-selected .dataviews-view-picker-grid__media::after { |
| 3227 | - box-shadow: inset 0 0 0 var(--wpds-border-width-xs, 1px) var(--wpds-color-stroke-interactive-brand, var(--wp-admin-theme-color, #3858e9)), inset 0 0 0 var(--wpds-border-width-sm, 2px) var(--wpds-color-bg-surface-neutral-strong, #fff); | |
| 3240 | + box-shadow: inset 0 0 0 var(--wpds-border-width-xs, 1px) var(--wpds-color-stroke-interactive-brand, var(--wp-admin-theme-color, #3858e9)), inset 0 0 0 var(--wpds-border-width-sm, 2px) var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 3228 | 3241 | } |
| 3229 | 3242 | |
| 3230 | 3243 | .dataviews-view-picker-grid .dataviews-view-picker-grid__card .dataviews-view-picker-grid__media:focus::after { |
| 3231 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 3244 | + box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 3232 | 3245 | } |
| 3233 | 3246 | |
| 3234 | 3247 | .dataviews-view-picker-grid:focus-visible[aria-activedescendant] { |
| 3235 | 3248 | outline: none; |
| @@ -3235,9 +3248,9 @@ | ||
| 3235 | 3248 | outline: none; |
| 3236 | 3249 | } |
| 3237 | 3250 | |
| 3238 | 3251 | .dataviews-view-picker-grid:focus-visible [data-active-item=true] { |
| 3239 | - outline: 2px solid var(--wpds-color-stroke-focus-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 3252 | + outline: 2px solid var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 3240 | 3253 | } |
| 3241 | 3254 | |
| 3242 | 3255 | .dataviews-view-picker-grid .dataviews-selection-checkbox { |
| 3243 | 3256 | top: var(--wpds-dimension-padding-sm, 8px) !important; |
| @@ -3250,10 +3263,11 @@ | ||
| 3250 | 3263 | .dataviews-view-picker-grid .dataviews-view-picker-grid__media { |
| 3251 | 3264 | width: 100%; |
| 3252 | 3265 | aspect-ratio: 1/1; |
| 3253 | 3266 | min-height: 0; |
| 3254 | - background-color: var(--wpds-color-bg-surface-neutral-strong, #fff); | |
| 3267 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 3255 | 3268 | border-radius: var(--wpds-border-radius-md, 4px); |
| 3269 | + overflow: hidden; | |
| 3256 | 3270 | position: relative; |
| 3257 | 3271 | } |
| 3258 | 3272 | |
| 3259 | 3273 | .dataviews-view-picker-grid .dataviews-view-picker-grid__media img { |
| @@ -3273,8 +3287,16 @@ | ||
| 3273 | 3287 | border-radius: var(--wpds-border-radius-md, 4px); |
| 3274 | 3288 | pointer-events: none; |
| 3275 | 3289 | } |
| 3276 | 3290 | |
| 3291 | +.dataviews-view-picker-grid.has-media-fit-contain .dataviews-view-picker-grid__media { | |
| 3292 | + background-color: var(--wpds-color-background-surface-neutral, #fcfcfc); | |
| 3293 | +} | |
| 3294 | + | |
| 3295 | +.dataviews-view-picker-grid.has-media-fit-contain .dataviews-view-picker-grid__media img { | |
| 3296 | + object-fit: contain; | |
| 3297 | +} | |
| 3298 | + | |
| 3277 | 3299 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields { |
| 3278 | 3300 | position: relative; |
| 3279 | 3301 | font-size: 12px; |
| 3280 | 3302 | line-height: 16px; |
| @@ -3284,21 +3306,21 @@ | ||
| 3284 | 3306 | padding: 0 0 var(--wpds-dimension-padding-md, 12px); |
| 3285 | 3307 | } |
| 3286 | 3308 | |
| 3287 | 3309 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field-value:not(:empty) { |
| 3288 | - min-height: calc(var(--wpds-dimension-base, 4px) * 6); | |
| 3310 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 3289 | 3311 | line-height: var(--wpds-typography-line-height-sm, 20px); |
| 3290 | - padding-top: calc(var(--wpds-dimension-base, 4px) / 2); | |
| 3312 | + padding-top: calc((var(--wpds-dimension-size-sm, 24px) - var(--wpds-typography-line-height-sm, 20px)) / 2); | |
| 3291 | 3313 | } |
| 3292 | 3314 | |
| 3293 | 3315 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field { |
| 3294 | - min-height: calc(var(--wpds-dimension-base, 4px) * 6); | |
| 3316 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 3295 | 3317 | align-items: center; |
| 3296 | 3318 | } |
| 3297 | 3319 | |
| 3298 | 3320 | .dataviews-view-picker-grid .dataviews-view-picker-grid__fields .dataviews-view-picker-grid__field .dataviews-view-picker-grid__field-name { |
| 3299 | 3321 | width: 35%; |
| 3300 | - color: var(--wpds-color-fg-content-neutral-weak, #707070); | |
| 3322 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 3301 | 3323 | overflow: hidden; |
| 3302 | 3324 | text-overflow: ellipsis; |
| 3303 | 3325 | white-space: nowrap; |
| 3304 | 3326 | } |
| @@ -3346,12 +3368,12 @@ | ||
| 3346 | 3368 | } |
| 3347 | 3369 | |
| 3348 | 3370 | .dataviews-view-picker-grid-group__header { |
| 3349 | 3371 | font-size: var(--wpds-typography-font-size-lg, 15px); |
| 3350 | - font-weight: var(--wpds-typography-font-weight-medium, 499); | |
| 3351 | - color: var(--wpds-color-fg-content-neutral, #1e1e1e); | |
| 3372 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3373 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 3352 | 3374 | margin: 0 0 var(--wpds-dimension-gap-sm, 8px) 0; |
| 3353 | - padding: 0 calc(var(--wpds-dimension-base, 4px) * 12); | |
| 3375 | + padding: 0 48px; | |
| 3354 | 3376 | } |
| 3355 | 3377 | |
| 3356 | 3378 | .dataviews-view-picker-table { |
| 3357 | 3379 | background-color: inherit; |
| @@ -3357,9 +3379,9 @@ | ||
| 3357 | 3379 | background-color: inherit; |
| 3358 | 3380 | } |
| 3359 | 3381 | |
| 3360 | 3382 | .dataviews-view-picker-table .dataviews-view-table__checkbox-column { |
| 3361 | - width: calc(var(--wpds-dimension-base, 4px) * 12); | |
| 3383 | + width: 48px; | |
| 3362 | 3384 | } |
| 3363 | 3385 | |
| 3364 | 3386 | .dataviews-view-picker-table tbody:focus-visible[aria-activedescendant] { |
| 3365 | 3387 | outline: none; |
| @@ -3365,9 +3387,9 @@ | ||
| 3365 | 3387 | outline: none; |
| 3366 | 3388 | } |
| 3367 | 3389 | |
| 3368 | 3390 | .dataviews-view-picker-table tbody:focus-visible [data-active-item=true] { |
| 3369 | - outline: 2px solid var(--wpds-color-stroke-focus-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 3391 | + outline: 2px solid var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 3370 | 3392 | } |
| 3371 | 3393 | |
| 3372 | 3394 | .dataviews-view-picker-table .dataviews-selection-checkbox .components-checkbox-control__input.components-checkbox-control__input { |
| 3373 | 3395 | pointer-events: none; |
| @@ -3378,17 +3400,17 @@ | ||
| 3378 | 3400 | cursor: var(--wpds-cursor-control, pointer); |
| 3379 | 3401 | } |
| 3380 | 3402 | |
| 3381 | 3403 | .dataviews-view-picker-table .dataviews-view-table__row.is-selected { |
| 3382 | - background-color: var(--wpds-color-bg-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 3404 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 3383 | 3405 | } |
| 3384 | 3406 | |
| 3385 | 3407 | .dataviews-view-picker-table .dataviews-view-table__row.is-hovered { |
| 3386 | - background-color: var(--wpds-color-bg-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 3408 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 3387 | 3409 | } |
| 3388 | 3410 | |
| 3389 | 3411 | .dataviews-view-picker-table .dataviews-view-table__row.is-selected.is-hovered { |
| 3390 | - background-color: var(--wpds-color-bg-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 3412 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 3391 | 3413 | } |
| 3392 | 3414 | |
| 3393 | 3415 | .dataviews-view-activity { |
| 3394 | 3416 | margin: 0 0 auto; |
| @@ -3396,16 +3418,16 @@ | ||
| 3396 | 3418 | } |
| 3397 | 3419 | |
| 3398 | 3420 | .dataviews-view-activity .dataviews-view-activity__group-header { |
| 3399 | 3421 | font-size: var(--wpds-typography-font-size-lg, 15px); |
| 3400 | - font-weight: var(--wpds-typography-font-weight-medium, 499); | |
| 3401 | - color: var(--wpds-color-fg-content-neutral-weak, #707070); | |
| 3422 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3423 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 3402 | 3424 | margin: 0 0 var(--wpds-dimension-gap-sm, 8px) 0; |
| 3403 | 3425 | padding: 0; |
| 3404 | 3426 | } |
| 3405 | 3427 | |
| 3406 | 3428 | .dataviews-view-activity .dataviews-view-activity__item-actions { |
| 3407 | - min-width: calc(var(--wpds-dimension-base, 4px) * 6); | |
| 3429 | + min-width: var(--wpds-dimension-size-sm, 24px); | |
| 3408 | 3430 | } |
| 3409 | 3431 | |
| 3410 | 3432 | .dataviews-view-activity .dataviews-view-activity__item-content { |
| 3411 | 3433 | flex-grow: 1; |
| @@ -3413,9 +3435,9 @@ | ||
| 3413 | 3435 | |
| 3414 | 3436 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title, |
| 3415 | 3437 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-description, |
| 3416 | 3438 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields { |
| 3417 | - min-height: calc(var(--wpds-dimension-base, 4px) * 4); | |
| 3439 | + min-height: var(--wpds-dimension-size-2xs, 16px); | |
| 3418 | 3440 | } |
| 3419 | 3441 | |
| 3420 | 3442 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title { |
| 3421 | 3443 | position: relative; |
| @@ -3429,9 +3451,9 @@ | ||
| 3429 | 3451 | cursor: var(--wpds-cursor-control, pointer); |
| 3430 | 3452 | } |
| 3431 | 3453 | |
| 3432 | 3454 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-title--clickable:focus-visible { |
| 3433 | - outline: var(--wp-admin-border-width-focus) solid var(--wpds-color-stroke-focus-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 3455 | + outline: var(--wp-admin-border-width-focus) solid var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 3434 | 3456 | outline-offset: var(--wp-admin-border-width-focus); |
| 3435 | 3457 | border-radius: var(--wpds-border-radius-sm, 2px); |
| 3436 | 3458 | } |
| 3437 | 3459 | |
| @@ -3446,9 +3468,9 @@ | ||
| 3446 | 3468 | z-index: 1; |
| 3447 | 3469 | } |
| 3448 | 3470 | |
| 3449 | 3471 | .dataviews-view-activity .dataviews-view-activity__item-content .dataviews-view-activity__item-fields { |
| 3450 | - color: var(--wpds-color-fg-content-neutral-weak, #707070); | |
| 3472 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 3451 | 3473 | display: flex; |
| 3452 | 3474 | gap: var(--wpds-dimension-gap-md, 12px); |
| 3453 | 3475 | row-gap: var(--wpds-dimension-gap-xs, 4px); |
| 3454 | 3476 | flex-wrap: wrap; |
| @@ -3492,14 +3514,14 @@ | ||
| 3492 | 3514 | width: var(--wpds-dimension-padding-md, 12px); |
| 3493 | 3515 | } |
| 3494 | 3516 | |
| 3495 | 3517 | .dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type::before { |
| 3496 | - height: calc(var(--wpds-dimension-base, 4px) * 3); | |
| 3518 | + height: var(--wpds-dimension-size-3xs, 12px); | |
| 3497 | 3519 | } |
| 3498 | 3520 | |
| 3499 | 3521 | .dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-type-icon { |
| 3500 | - width: calc(var(--wpds-dimension-base, 4px) * 3 - 1px); | |
| 3501 | - height: calc(var(--wpds-dimension-base, 4px) * 3 - 1px); | |
| 3522 | + width: calc(var(--wpds-dimension-size-3xs, 12px) - 1px); | |
| 3523 | + height: calc(var(--wpds-dimension-size-3xs, 12px) - 1px); | |
| 3502 | 3524 | } |
| 3503 | 3525 | |
| 3504 | 3526 | .dataviews-view-activity .dataviews-view-activity__item.is-compact .dataviews-view-activity__item-content { |
| 3505 | 3527 | margin: var(--wpds-dimension-gap-md, 12px) 0; |
| @@ -3505,18 +3527,18 @@ | ||
| 3505 | 3527 | margin: var(--wpds-dimension-gap-md, 12px) 0; |
| 3506 | 3528 | } |
| 3507 | 3529 | |
| 3508 | 3530 | .dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type { |
| 3509 | - width: calc(var(--wpds-dimension-base, 4px) * 6); | |
| 3531 | + width: var(--wpds-dimension-size-sm, 24px); | |
| 3510 | 3532 | } |
| 3511 | 3533 | |
| 3512 | 3534 | .dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type::before { |
| 3513 | - height: calc(var(--wpds-dimension-base, 4px) * 3); | |
| 3535 | + height: var(--wpds-dimension-size-3xs, 12px); | |
| 3514 | 3536 | } |
| 3515 | 3537 | |
| 3516 | 3538 | .dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-type-icon { |
| 3517 | - width: calc(var(--wpds-dimension-base, 4px) * 6 + 1px); | |
| 3518 | - height: calc(var(--wpds-dimension-base, 4px) * 6 + 1px); | |
| 3539 | + width: calc(var(--wpds-dimension-size-sm, 24px) + 1px); | |
| 3540 | + height: calc(var(--wpds-dimension-size-sm, 24px) + 1px); | |
| 3519 | 3541 | } |
| 3520 | 3542 | |
| 3521 | 3543 | .dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-content { |
| 3522 | 3544 | margin: var(--wpds-dimension-gap-md, 12px) 0; |
| @@ -3523,18 +3545,18 @@ | ||
| 3523 | 3545 | padding-top: var(--wpds-dimension-padding-sm, 8px); |
| 3524 | 3546 | } |
| 3525 | 3547 | |
| 3526 | 3548 | .dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type { |
| 3527 | - width: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 3549 | + width: var(--wpds-dimension-size-md, 32px); | |
| 3528 | 3550 | } |
| 3529 | 3551 | |
| 3530 | 3552 | .dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type::before { |
| 3531 | - height: calc(var(--wpds-dimension-base, 4px) * 2); | |
| 3553 | + height: var(--wpds-dimension-size-4xs, 8px); | |
| 3532 | 3554 | } |
| 3533 | 3555 | |
| 3534 | 3556 | .dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-type-icon { |
| 3535 | - width: calc(var(--wpds-dimension-base, 4px) * 8 + 1px); | |
| 3536 | - height: calc(var(--wpds-dimension-base, 4px) * 8 + 1px); | |
| 3557 | + width: calc(var(--wpds-dimension-size-md, 32px) + 1px); | |
| 3558 | + height: calc(var(--wpds-dimension-size-md, 32px) + 1px); | |
| 3537 | 3559 | } |
| 3538 | 3560 | |
| 3539 | 3561 | .dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-content { |
| 3540 | 3562 | margin: var(--wpds-dimension-gap-sm, 8px) 0 var(--wpds-dimension-gap-lg, 16px); |
| @@ -3541,10 +3563,10 @@ | ||
| 3541 | 3563 | padding-top: var(--wpds-dimension-padding-md, 12px); |
| 3542 | 3564 | } |
| 3543 | 3565 | |
| 3544 | 3566 | .dataviews-view-activity .dataviews-view-activity__item.is-comfortable .dataviews-view-activity__item-bullet, .dataviews-view-activity .dataviews-view-activity__item.is-balanced .dataviews-view-activity__item-bullet { |
| 3545 | - width: calc(var(--wpds-dimension-base, 4px) * 2 + 1px); | |
| 3546 | - height: calc(var(--wpds-dimension-base, 4px) * 2 + 1px); | |
| 3567 | + width: calc(var(--wpds-dimension-size-4xs, 8px) + 1px); | |
| 3568 | + height: calc(var(--wpds-dimension-size-4xs, 8px) + 1px); | |
| 3547 | 3569 | position: relative; |
| 3548 | 3570 | top: 50%; |
| 3549 | 3571 | transform: translateY(-50%); |
| 3550 | 3572 | } |
| @@ -3559,9 +3581,9 @@ | ||
| 3559 | 3581 | |
| 3560 | 3582 | .dataviews-view-activity .dataviews-view-activity__item-type-icon { |
| 3561 | 3583 | overflow: hidden; |
| 3562 | 3584 | flex-shrink: 0; |
| 3563 | - background-color: var(--wpds-color-bg-surface-neutral-strong, #fff); | |
| 3585 | + background-color: var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 3564 | 3586 | } |
| 3565 | 3587 | |
| 3566 | 3588 | .dataviews-view-activity .dataviews-view-activity__item-type-icon img, |
| 3567 | 3589 | .dataviews-view-activity .dataviews-view-activity__item-type-icon svg, |
| @@ -3599,11 +3621,211 @@ | ||
| 3599 | 3621 | .dataviews-view-activity + .dataviews-pagination { |
| 3600 | 3622 | justify-content: space-between; |
| 3601 | 3623 | } |
| 3602 | 3624 | |
| 3625 | +.dataviews-view-picker-activity { | |
| 3626 | + margin: 0; | |
| 3627 | + padding: 0; | |
| 3628 | + flex-grow: 1; | |
| 3629 | +} | |
| 3630 | + | |
| 3631 | +.dataviews-view-picker-activity:focus-visible[aria-activedescendant] { | |
| 3632 | + outline: none; | |
| 3633 | +} | |
| 3634 | + | |
| 3635 | +.dataviews-view-picker-activity:focus-visible .dataviews-view-picker-activity__item[data-active-item=true] { | |
| 3636 | + outline: 2px solid var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 3637 | + outline-offset: -2px; | |
| 3638 | +} | |
| 3639 | + | |
| 3640 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item { | |
| 3641 | + cursor: var(--wpds-cursor-control, pointer); | |
| 3642 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 3643 | + padding-inline: var(--wpds-dimension-padding-2xl, 24px); | |
| 3644 | + transition: background-color 0.1s ease; | |
| 3645 | +} | |
| 3646 | + | |
| 3647 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected, .dataviews-view-picker-activity .dataviews-view-picker-activity__item:hover { | |
| 3648 | + background-color: var(--wpds-color-background-interactive-brand-weak-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)); | |
| 3649 | +} | |
| 3650 | + | |
| 3651 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-selected { | |
| 3652 | + outline: 3px solid transparent; | |
| 3653 | + outline-offset: -2px; | |
| 3654 | +} | |
| 3655 | + | |
| 3656 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type { | |
| 3657 | + width: var(--wpds-dimension-padding-md, 12px); | |
| 3658 | +} | |
| 3659 | + | |
| 3660 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type::before { | |
| 3661 | + height: var(--wpds-dimension-size-3xs, 12px); | |
| 3662 | +} | |
| 3663 | + | |
| 3664 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-type-icon { | |
| 3665 | + width: calc(var(--wpds-dimension-size-3xs, 12px) - 1px); | |
| 3666 | + height: calc(var(--wpds-dimension-size-3xs, 12px) - 1px); | |
| 3667 | +} | |
| 3668 | + | |
| 3669 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-compact .dataviews-view-picker-activity__item-content { | |
| 3670 | + margin: var(--wpds-dimension-gap-md, 12px) 0; | |
| 3671 | +} | |
| 3672 | + | |
| 3673 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type { | |
| 3674 | + width: var(--wpds-dimension-size-sm, 24px); | |
| 3675 | +} | |
| 3676 | + | |
| 3677 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type::before { | |
| 3678 | + height: var(--wpds-dimension-size-3xs, 12px); | |
| 3679 | +} | |
| 3680 | + | |
| 3681 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-type-icon { | |
| 3682 | + width: calc(var(--wpds-dimension-size-sm, 24px) + 1px); | |
| 3683 | + height: calc(var(--wpds-dimension-size-sm, 24px) + 1px); | |
| 3684 | +} | |
| 3685 | + | |
| 3686 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-content { | |
| 3687 | + margin: var(--wpds-dimension-gap-md, 12px) 0; | |
| 3688 | + padding-top: var(--wpds-dimension-padding-sm, 8px); | |
| 3689 | +} | |
| 3690 | + | |
| 3691 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type { | |
| 3692 | + width: var(--wpds-dimension-size-md, 32px); | |
| 3693 | +} | |
| 3694 | + | |
| 3695 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type::before { | |
| 3696 | + height: var(--wpds-dimension-size-4xs, 8px); | |
| 3697 | +} | |
| 3698 | + | |
| 3699 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-type-icon { | |
| 3700 | + width: calc(var(--wpds-dimension-size-md, 32px) + 1px); | |
| 3701 | + height: calc(var(--wpds-dimension-size-md, 32px) + 1px); | |
| 3702 | +} | |
| 3703 | + | |
| 3704 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-content { | |
| 3705 | + margin: var(--wpds-dimension-gap-sm, 8px) 0 var(--wpds-dimension-gap-lg, 16px); | |
| 3706 | + padding-top: var(--wpds-dimension-padding-md, 12px); | |
| 3707 | +} | |
| 3708 | + | |
| 3709 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-comfortable .dataviews-view-picker-activity__item-bullet, .dataviews-view-picker-activity .dataviews-view-picker-activity__item.is-balanced .dataviews-view-picker-activity__item-bullet { | |
| 3710 | + width: calc(var(--wpds-dimension-size-4xs, 8px) + 1px); | |
| 3711 | + height: calc(var(--wpds-dimension-size-4xs, 8px) + 1px); | |
| 3712 | + position: relative; | |
| 3713 | + top: 50%; | |
| 3714 | + transform: translateY(-50%); | |
| 3715 | +} | |
| 3716 | + | |
| 3717 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content { | |
| 3718 | + flex-grow: 1; | |
| 3719 | +} | |
| 3720 | + | |
| 3721 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title, | |
| 3722 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description, | |
| 3723 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields { | |
| 3724 | + min-height: var(--wpds-dimension-size-2xs, 16px); | |
| 3725 | +} | |
| 3726 | + | |
| 3727 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-title { | |
| 3728 | + position: relative; | |
| 3729 | + display: flex; | |
| 3730 | + align-items: center; | |
| 3731 | + flex: 1; | |
| 3732 | + overflow: hidden; | |
| 3733 | +} | |
| 3734 | + | |
| 3735 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-description:empty { | |
| 3736 | + display: none; | |
| 3737 | +} | |
| 3738 | + | |
| 3739 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields { | |
| 3740 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 3741 | + display: flex; | |
| 3742 | + gap: var(--wpds-dimension-gap-md, 12px); | |
| 3743 | + row-gap: var(--wpds-dimension-gap-xs, 4px); | |
| 3744 | + flex-wrap: wrap; | |
| 3745 | +} | |
| 3746 | + | |
| 3747 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields:empty { | |
| 3748 | + display: none; | |
| 3749 | +} | |
| 3750 | + | |
| 3751 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field:has(.dataviews-view-picker-activity__item-field-value:empty) { | |
| 3752 | + display: none; | |
| 3753 | +} | |
| 3754 | + | |
| 3755 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-content .dataviews-view-picker-activity__item-fields .dataviews-view-picker-activity__item-field-value { | |
| 3756 | + display: flex; | |
| 3757 | + align-items: center; | |
| 3758 | +} | |
| 3759 | + | |
| 3760 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type { | |
| 3761 | + align-self: stretch; | |
| 3762 | + flex-shrink: 0; | |
| 3763 | +} | |
| 3764 | + | |
| 3765 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type::after { | |
| 3766 | + content: ""; | |
| 3767 | + flex: 1 1 auto; | |
| 3768 | + width: 1px; | |
| 3769 | + margin: 0 auto; | |
| 3770 | + background-color: var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 3771 | +} | |
| 3772 | + | |
| 3773 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type::before { | |
| 3774 | + content: ""; | |
| 3775 | + flex: 0 0 auto; | |
| 3776 | + width: 1px; | |
| 3777 | + margin: 0 auto; | |
| 3778 | + background-color: var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 3779 | +} | |
| 3780 | + | |
| 3781 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item:first-child .dataviews-view-picker-activity__item-type::before { | |
| 3782 | + visibility: hidden; | |
| 3783 | +} | |
| 3784 | + | |
| 3785 | +.dataviews-view-picker-activity .dataviews-view-picker-activity-group:last-of-type > .dataviews-view-picker-activity__item:last-of-type .dataviews-view-picker-activity__item-type::after, .dataviews-view-picker-activity > .dataviews-view-picker-activity__item:last-child .dataviews-view-picker-activity__item-type::after { | |
| 3786 | + background: linear-gradient(to bottom, var(--wpds-color-stroke-surface-neutral, #dbdbdb) 0%, color-mix(in srgb, var(--wpds-color-stroke-surface-neutral, #dbdbdb) 20%, transparent) 60%, transparent 100%); | |
| 3787 | +} | |
| 3788 | + | |
| 3789 | +.dataviews-view-picker-activity .dataviews-view-picker-activity-group__header { | |
| 3790 | + font-size: var(--wpds-typography-font-size-lg, 15px); | |
| 3791 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3792 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 3793 | + margin: 0 0 var(--wpds-dimension-gap-sm, 8px) 0; | |
| 3794 | + padding: 0; | |
| 3795 | + padding-inline-start: var(--wpds-dimension-padding-2xl, 24px); | |
| 3796 | +} | |
| 3797 | + | |
| 3798 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon { | |
| 3799 | + overflow: hidden; | |
| 3800 | + flex-shrink: 0; | |
| 3801 | + background-color: transparent; | |
| 3802 | +} | |
| 3803 | + | |
| 3804 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon img, | |
| 3805 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg, | |
| 3806 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet { | |
| 3807 | + display: block; | |
| 3808 | + width: 100%; | |
| 3809 | + height: 100%; | |
| 3810 | + margin: 0 auto; | |
| 3811 | + object-fit: cover; | |
| 3812 | + border-radius: 50%; | |
| 3813 | + box-sizing: border-box; | |
| 3814 | + box-shadow: inset 0 0 0 var(--wpds-border-width-xs, 1px) var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 3815 | +} | |
| 3816 | + | |
| 3817 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon svg { | |
| 3818 | + padding: var(--wpds-dimension-padding-xs, 4px); | |
| 3819 | +} | |
| 3820 | + | |
| 3821 | +.dataviews-view-picker-activity .dataviews-view-picker-activity__item-type-icon .dataviews-view-picker-activity__item-bullet { | |
| 3822 | + background-color: var(--wpds-color-stroke-surface-neutral, #dbdbdb); | |
| 3823 | +} | |
| 3824 | + | |
| 3603 | 3825 | .dataviews-picker-footer__bulk-selection { |
| 3604 | 3826 | align-self: flex-start; |
| 3605 | - height: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 3827 | + height: var(--wpds-dimension-size-md, 32px); | |
| 3606 | 3828 | } |
| 3607 | 3829 | |
| 3608 | 3830 | .dataviews-picker-footer__actions { |
| 3609 | 3831 | align-self: flex-end; |
| @@ -3637,17 +3859,38 @@ | ||
| 3637 | 3859 | border: 1px solid var(--wpds-color-stroke-surface-neutral, #dbdbdb); |
| 3638 | 3860 | } |
| 3639 | 3861 | |
| 3640 | 3862 | .dataviews-controls__date-preset:active { |
| 3641 | - background-color: var(--wpds-color-bg-interactive-neutral-strong-active, #1e1e1e); | |
| 3863 | + background-color: var(--wpds-color-background-interactive-neutral-strong-active, #1e1e1e); | |
| 3642 | 3864 | } |
| 3643 | 3865 | |
| 3866 | +.dataviews-validated-control__wrapper-with-error-delegate:has(input[type=radio]:invalid[data-validity-visible]), .dataviews-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-form-token-field__input-container:not(:has([aria-expanded=true])), .dataviews-validated-control .components-combobox-control__suggestions-container:has(input:invalid[data-validity-visible]):not(:has([aria-expanded=true])), .dataviews-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop { | |
| 3867 | + --focus-color: var(--wpds-color-stroke-interactive-error, #cc1818); | |
| 3868 | +} | |
| 3869 | + | |
| 3870 | +.dataviews-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-form-token-field__input-container:not(:has([aria-expanded=true])), .dataviews-validated-control .components-combobox-control__suggestions-container:has(input:invalid[data-validity-visible]):not(:has([aria-expanded=true])), .dataviews-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop { | |
| 3871 | + border-color: var(--wpds-color-stroke-interactive-error, #cc1818); | |
| 3872 | +} | |
| 3873 | + | |
| 3874 | +.dataviews-validated-control__wrapper-with-error-delegate { | |
| 3875 | + position: relative; | |
| 3876 | +} | |
| 3877 | + | |
| 3878 | +.dataviews-validated-control__error-delegate { | |
| 3879 | + position: absolute; | |
| 3880 | + top: 0; | |
| 3881 | + height: 100%; | |
| 3882 | + width: 100%; | |
| 3883 | + opacity: 0; | |
| 3884 | + pointer-events: none; | |
| 3885 | +} | |
| 3886 | + | |
| 3644 | 3887 | .dataforms-layouts-panel__field-trigger { |
| 3645 | 3888 | position: relative; |
| 3646 | 3889 | color: inherit; |
| 3647 | 3890 | display: flex; |
| 3648 | 3891 | width: 100%; |
| 3649 | - min-height: calc(var(--wpds-dimension-base, 4px) * 6); | |
| 3892 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 3650 | 3893 | cursor: var(--wpds-cursor-control, pointer); |
| 3651 | 3894 | align-items: flex-start; |
| 3652 | 3895 | border-radius: var(--wpds-border-radius-sm, 2px); |
| 3653 | 3896 | isolation: isolate; |
| @@ -3654,9 +3897,9 @@ | ||
| 3654 | 3897 | } |
| 3655 | 3898 | |
| 3656 | 3899 | .dataforms-layouts-panel__field-trigger--label-side { |
| 3657 | 3900 | flex-direction: row; |
| 3658 | - gap: var(--wpds-dimension-gap-md, 12px); | |
| 3901 | + gap: var(--wpds-dimension-gap-sm, 8px); | |
| 3659 | 3902 | } |
| 3660 | 3903 | |
| 3661 | 3904 | .dataforms-layouts-panel__field-trigger--label-top { |
| 3662 | 3905 | display: grid; |
| @@ -3667,9 +3910,9 @@ | ||
| 3667 | 3910 | align-items: center; |
| 3668 | 3911 | } |
| 3669 | 3912 | |
| 3670 | 3913 | .dataforms-layouts-panel__field-trigger:not(.is-disabled):hover { |
| 3671 | - color: var(--wpds-color-fg-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 3914 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 3672 | 3915 | } |
| 3673 | 3916 | |
| 3674 | 3917 | .dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-trigger-icon { |
| 3675 | 3918 | opacity: 1; |
| @@ -3675,9 +3918,9 @@ | ||
| 3675 | 3918 | opacity: 1; |
| 3676 | 3919 | } |
| 3677 | 3920 | |
| 3678 | 3921 | .dataforms-layouts-panel__field-trigger:not(.is-disabled):hover .dataforms-layouts-panel__field-label { |
| 3679 | - color: var(--wpds-color-fg-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 3922 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 3680 | 3923 | } |
| 3681 | 3924 | |
| 3682 | 3925 | .dataforms-layouts-panel__field-trigger.is-disabled { |
| 3683 | 3926 | cursor: default; |
| @@ -3683,10 +3926,10 @@ | ||
| 3683 | 3926 | cursor: default; |
| 3684 | 3927 | } |
| 3685 | 3928 | |
| 3686 | 3929 | .dataforms-layouts-panel__field-trigger.is-disabled .dataforms-layouts-panel__field-control { |
| 3687 | - color: var(--wpds-color-fg-content-neutral-weak, #707070); | |
| 3688 | - font-weight: var(--wpds-typography-font-weight-regular, 400); | |
| 3930 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 3931 | + font-weight: var(--wpds-typography-font-weight-default, 400); | |
| 3689 | 3932 | } |
| 3690 | 3933 | |
| 3691 | 3934 | .dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon { |
| 3692 | 3935 | opacity: 1; |
| @@ -3693,22 +3936,28 @@ | ||
| 3693 | 3936 | fill: currentColor; |
| 3694 | 3937 | } |
| 3695 | 3938 | |
| 3696 | 3939 | .dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:hover, .dataforms-layouts-panel__field-trigger--edit-always .dataforms-layouts-panel__field-trigger-icon:focus-visible { |
| 3697 | - fill: var(--wpds-color-fg-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 3940 | + fill: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 3698 | 3941 | } |
| 3699 | 3942 | |
| 3700 | 3943 | .dataforms-layouts-panel__field-trigger-icon { |
| 3701 | 3944 | padding: 0; |
| 3702 | - color: var(--wpds-color-fg-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 3945 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 3703 | 3946 | flex: 0 0 auto; |
| 3704 | 3947 | opacity: 0; |
| 3705 | 3948 | border-radius: var(--wpds-border-radius-xs, 1px); |
| 3706 | 3949 | } |
| 3707 | 3950 | |
| 3951 | +.dataforms-layouts-panel__field-trigger-icon::after { | |
| 3952 | + content: ""; | |
| 3953 | + position: absolute; | |
| 3954 | + inset: 0; | |
| 3955 | +} | |
| 3956 | + | |
| 3708 | 3957 | .dataforms-layouts-panel__field-trigger-icon:focus-visible { |
| 3709 | 3958 | opacity: 1; |
| 3710 | - outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--wpds-color-stroke-focus-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 3959 | + outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 3711 | 3960 | } |
| 3712 | 3961 | |
| 3713 | 3962 | .dataforms-layouts-panel__field-dropdown-anchor { |
| 3714 | 3963 | width: 100%; |
| @@ -3720,14 +3969,14 @@ | ||
| 3720 | 3969 | |
| 3721 | 3970 | .dataforms-layouts-panel__field-label { |
| 3722 | 3971 | width: 38%; |
| 3723 | 3972 | flex-shrink: 0; |
| 3724 | - min-height: calc(var(--wpds-dimension-base, 4px) * 6); | |
| 3973 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 3725 | 3974 | display: flex; |
| 3726 | 3975 | align-items: center; |
| 3727 | 3976 | line-height: var(--wpds-typography-line-height-sm, 20px); |
| 3728 | 3977 | hyphens: auto; |
| 3729 | - color: var(--wpds-color-fg-content-neutral-weak, #707070); | |
| 3978 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 3730 | 3979 | } |
| 3731 | 3980 | |
| 3732 | 3981 | .dataforms-layouts-panel__field-label .components-base-control__label { |
| 3733 | 3982 | display: inline; |
| @@ -3735,16 +3984,14 @@ | ||
| 3735 | 3984 | line-height: inherit; |
| 3736 | 3985 | } |
| 3737 | 3986 | |
| 3738 | 3987 | .dataforms-layouts-panel__field-label.has-error { |
| 3739 | - color: var(--wpds-color-fg-content-error-weak, #cc1818); | |
| 3988 | + color: var(--wpds-color-foreground-content-error-weak, #cc1818); | |
| 3740 | 3989 | } |
| 3741 | 3990 | |
| 3742 | 3991 | .dataforms-layouts-panel__field-label-error-content { |
| 3743 | - position: relative; | |
| 3744 | - z-index: 1; | |
| 3745 | - cursor: help; | |
| 3746 | - fill: var(--wpds-color-fg-content-error-weak, #cc1818); | |
| 3992 | + pointer-events: none; | |
| 3993 | + color: var(--wpds-color-foreground-content-error-weak, #cc1818); | |
| 3747 | 3994 | display: inline-flex; |
| 3748 | 3995 | flex-direction: row; |
| 3749 | 3996 | align-items: center; |
| 3750 | 3997 | gap: var(--wpds-dimension-gap-xs, 4px); |
| @@ -3749,45 +3996,31 @@ | ||
| 3749 | 3996 | align-items: center; |
| 3750 | 3997 | gap: var(--wpds-dimension-gap-xs, 4px); |
| 3751 | 3998 | } |
| 3752 | 3999 | |
| 3753 | -.dataforms-layouts-panel__field-label-error-content svg { | |
| 3754 | - fill: currentColor; | |
| 3755 | -} | |
| 3756 | - | |
| 3757 | 4000 | .dataforms-layouts-panel__field-control { |
| 3758 | 4001 | flex-grow: 1; |
| 3759 | 4002 | min-width: 0; |
| 3760 | - min-height: calc(var(--wpds-dimension-base, 4px) * 6); | |
| 4003 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 3761 | 4004 | line-height: var(--wpds-typography-line-height-md, 24px); |
| 3762 | 4005 | display: flex; |
| 3763 | 4006 | align-items: center; |
| 3764 | - overflow: hidden; | |
| 3765 | - word-break: break-word; | |
| 3766 | - font-weight: var(--wpds-typography-font-weight-medium, 499); | |
| 4007 | + overflow: clip; | |
| 4008 | + padding-inline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 4009 | + margin-inline: calc(-1 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))); | |
| 4010 | + word-break: normal; | |
| 4011 | + overflow-wrap: anywhere; | |
| 4012 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 3767 | 4013 | } |
| 3768 | 4014 | |
| 4015 | +.dataforms-layouts-panel__field-control:has(a, button) { | |
| 4016 | + z-index: 1; | |
| 4017 | +} | |
| 4018 | + | |
| 3769 | 4019 | .dataforms-layouts-panel__field-control > * { |
| 3770 | 4020 | min-width: 0; |
| 3771 | 4021 | } |
| 3772 | 4022 | |
| 3773 | -.dataforms-layouts-panel__field-control .components-button { | |
| 3774 | - max-width: 100%; | |
| 3775 | - text-align: right; | |
| 3776 | - white-space: normal; | |
| 3777 | - text-wrap: balance; | |
| 3778 | - text-wrap: pretty; | |
| 3779 | - min-height: 32px; | |
| 3780 | -} | |
| 3781 | - | |
| 3782 | -.dataforms-layouts-panel__field-control.components-button.is-link[aria-disabled=true] { | |
| 3783 | - text-decoration: none; | |
| 3784 | -} | |
| 3785 | - | |
| 3786 | -.dataforms-layouts-panel__field-control .components-dropdown { | |
| 3787 | - max-width: 100%; | |
| 3788 | -} | |
| 3789 | - | |
| 3790 | 4023 | .dataforms-layouts-panel__field-trigger--label-top .dataforms-layouts-panel__field-label { |
| 3791 | 4024 | width: 100%; |
| 3792 | 4025 | } |
| 3793 | 4026 | |
| @@ -3816,15 +4049,11 @@ | ||
| 3816 | 4049 | .components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown { |
| 3817 | 4050 | z-index: 159990; |
| 3818 | 4051 | } |
| 3819 | 4052 | |
| 3820 | -.dataforms-layouts-panel__summary-button:empty { | |
| 3821 | - min-width: 160px; | |
| 3822 | -} | |
| 3823 | - | |
| 3824 | 4053 | .dataforms-layouts-regular__field { |
| 3825 | 4054 | width: 100%; |
| 3826 | - min-height: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 4055 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 3827 | 4056 | justify-content: flex-start !important; |
| 3828 | 4057 | align-items: flex-start !important; |
| 3829 | 4058 | } |
| 3830 | 4059 | |
| @@ -3830,15 +4059,15 @@ | ||
| 3830 | 4059 | |
| 3831 | 4060 | .dataforms-layouts-regular__field .components-base-control__label, |
| 3832 | 4061 | .dataforms-layouts-regular__field .components-input-control__label, |
| 3833 | 4062 | .dataforms-layouts-regular__field .components-form-token-field__label { |
| 3834 | - color: var(--wpds-color-fg-content-neutral, #1e1e1e); | |
| 4063 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 3835 | 4064 | } |
| 3836 | 4065 | |
| 3837 | 4066 | .dataforms-layouts-regular__field-label { |
| 3838 | 4067 | width: 38%; |
| 3839 | 4068 | flex-shrink: 0; |
| 3840 | - min-height: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 4069 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 3841 | 4070 | display: flex; |
| 3842 | 4071 | align-items: center; |
| 3843 | 4072 | line-height: var(--wpds-typography-line-height-sm, 20px); |
| 3844 | 4073 | hyphens: auto; |
| @@ -3853,9 +4082,9 @@ | ||
| 3853 | 4082 | } |
| 3854 | 4083 | |
| 3855 | 4084 | .dataforms-layouts-regular__field-control { |
| 3856 | 4085 | flex-grow: 1; |
| 3857 | - min-height: calc(var(--wpds-dimension-base, 4px) * 8); | |
| 4086 | + min-height: var(--wpds-dimension-size-md, 32px); | |
| 3858 | 4087 | display: flex; |
| 3859 | 4088 | align-items: center; |
| 3860 | 4089 | } |
| 3861 | 4090 | |
| @@ -3871,9 +4100,9 @@ | ||
| 3871 | 4100 | display: contents; |
| 3872 | 4101 | } |
| 3873 | 4102 | |
| 3874 | 4103 | .dataforms-layouts-card__field-description { |
| 3875 | - color: var(--wpds-color-fg-content-neutral-weak, #707070); | |
| 4104 | + color: var(--wpds-color-foreground-content-neutral-weak, #707070); | |
| 3876 | 4105 | display: block; |
| 3877 | 4106 | font-size: var(--wpds-typography-font-size-md, 13px); |
| 3878 | 4107 | margin-bottom: var(--wpds-dimension-gap-lg, 16px); |
| 3879 | 4108 | } |
| @@ -3886,9 +4115,9 @@ | ||
| 3886 | 4115 | } |
| 3887 | 4116 | |
| 3888 | 4117 | .dataforms-layouts-details__summary-content { |
| 3889 | 4118 | display: inline-flex; |
| 3890 | - min-height: calc(var(--wpds-dimension-base, 4px) * 6); | |
| 4119 | + min-height: var(--wpds-dimension-size-sm, 24px); | |
| 3891 | 4120 | } |
| 3892 | 4121 | |
| 3893 | 4122 | .dataforms-layouts-details__content { |
| 3894 | 4123 | padding-top: var(--wpds-dimension-padding-md, 12px); |
| @@ -3898,10 +4127,10 @@ | ||
| 3898 | 4127 | width: 100%; |
| 3899 | 4128 | } |
| 3900 | 4129 | |
| 3901 | 4130 | .dataforms-layouts__wrapper { |
| 3902 | - font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 3903 | - font-weight: 400; | |
| 4131 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 4132 | + font-weight: var(--wpds-typography-font-weight-default, 400); | |
| 3904 | 4133 | font-size: 13px; |
| 3905 | 4134 | line-height: 20px; |
| 3906 | 4135 | } |
| 3907 | 4136 | |
| @@ -3974,8 +4203,14 @@ | ||
| 3974 | 4203 | /** |
| 3975 | 4204 | * Focus styles. |
| 3976 | 4205 | */ |
| 3977 | 4206 | /** |
| 4207 | + * Standard focus rings for the WordPress Design System. | |
| 4208 | + * | |
| 4209 | + * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site, | |
| 4210 | + * e.g. `&:focus { @include outset-ring__focus(); }`. | |
| 4211 | + */ | |
| 4212 | +/** | |
| 3978 | 4213 | * Applies editor left position to the selector passed as argument |
| 3979 | 4214 | */ |
| 3980 | 4215 | /** |
| 3981 | 4216 | * Styles that are reused verbatim in a few places |
| @@ -4033,9 +4268,9 @@ | ||
| 4033 | 4268 | padding: 12px; |
| 4034 | 4269 | display: grid; |
| 4035 | 4270 | align-items: center; |
| 4036 | 4271 | grid-template-columns: min-content 1fr min-content; |
| 4037 | - grid-gap: 4px 8px; | |
| 4272 | + gap: 4px 8px; | |
| 4038 | 4273 | color: #1e1e1e; |
| 4039 | 4274 | } |
| 4040 | 4275 | |
| 4041 | 4276 | .fields-create-template-part-modal__area-radio-wrapper + .fields-create-template-part-modal__area-radio-wrapper { |
| @@ -4112,9 +4347,8 @@ | ||
| 4112 | 4347 | line-height: 1.5; |
| 4113 | 4348 | } |
| 4114 | 4349 | |
| 4115 | 4350 | fieldset.fields__media-edit { |
| 4116 | - /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */ | |
| 4117 | 4351 | container-type: inline-size; |
| 4118 | 4352 | } |
| 4119 | 4353 | |
| 4120 | 4354 | fieldset.fields__media-edit .fields__media-edit-compact-group { |
| @@ -4350,9 +4584,8 @@ | ||
| 4350 | 4584 | } |
| 4351 | 4585 | |
| 4352 | 4586 | fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) { |
| 4353 | 4587 | grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); |
| 4354 | - /* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */ | |
| 4355 | 4588 | } |
| 4356 | 4589 | |
| 4357 | 4590 | @container (max-width: 500px) { |
| 4358 | 4591 | fieldset.fields__media-edit .fields__media-edit-expanded.is-multiple:not(.is-empty) { |
| @@ -4419,18 +4652,15 @@ | ||
| 4419 | 4652 | padding: 0; |
| 4420 | 4653 | margin: 0; |
| 4421 | 4654 | } |
| 4422 | 4655 | |
| 4423 | -.fields-controls__slug .fields-controls__slug-external-icon { | |
| 4424 | - margin-right: 5ch; | |
| 4425 | -} | |
| 4426 | - | |
| 4427 | 4656 | .fields-controls__slug .fields-controls__slug-input input.components-input-control__input { |
| 4428 | 4657 | padding-inline-start: 0 !important; |
| 4429 | 4658 | } |
| 4430 | 4659 | |
| 4431 | 4660 | .fields-controls__slug .fields-controls__slug-help-link { |
| 4432 | - word-break: break-word; | |
| 4661 | + word-break: normal; | |
| 4662 | + overflow-wrap: anywhere; | |
| 4433 | 4663 | } |
| 4434 | 4664 | |
| 4435 | 4665 | .fields-controls__slug .fields-controls__slug-help { |
| 4436 | 4666 | display: flex; |
| @@ -4437,9 +4667,9 @@ | ||
| 4437 | 4667 | flex-direction: column; |
| 4438 | 4668 | } |
| 4439 | 4669 | |
| 4440 | 4670 | .fields-controls__slug .fields-controls__slug-help .fields-controls__slug-help-slug { |
| 4441 | - font-weight: 600; | |
| 4671 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 4442 | 4672 | } |
| 4443 | 4673 | |
| 4444 | 4674 | .fields-controls__featured-image-image, |
| 4445 | 4675 | .fields-controls__featured-image-placeholder { |
| @@ -4601,9 +4831,9 @@ | ||
| 4601 | 4831 | border-radius: 2px; |
| 4602 | 4832 | } |
| 4603 | 4833 | |
| 4604 | 4834 | .media-editor-preview__file-name { |
| 4605 | - font-weight: 600; | |
| 4835 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 4606 | 4836 | margin-bottom: 8px; |
| 4607 | 4837 | } |
| 4608 | 4838 | |
| 4609 | 4839 | .media-editor-preview__mime-type { |
| @@ -4627,9 +4857,8 @@ | ||
| 4627 | 4857 | color: #949494; |
| 4628 | 4858 | word-break: break-all; |
| 4629 | 4859 | margin-top: 8px; |
| 4630 | 4860 | } |
| 4631 | - | |
| 4632 | 4861 | .wp-media-editor-image-editor { |
| 4633 | 4862 | position: relative; |
| 4634 | 4863 | overflow: hidden; |
| 4635 | 4864 | width: 100%; |
| @@ -4641,9 +4870,11 @@ | ||
| 4641 | 4870 | } |
| 4642 | 4871 | |
| 4643 | 4872 | .wp-media-editor-image-editor__canvas { |
| 4644 | 4873 | position: absolute; |
| 4645 | - inset: 22px; | |
| 4874 | + inset: 24px; | |
| 4875 | + min-height: 100px; | |
| 4876 | + min-width: 100px; | |
| 4646 | 4877 | } |
| 4647 | 4878 | |
| 4648 | 4879 | .wp-media-editor-image-editor__canvas:focus { |
| 4649 | 4880 | outline: none; |
| @@ -4660,9 +4891,9 @@ | ||
| 4660 | 4891 | |
| 4661 | 4892 | .wp-media-editor-image-editor__image { |
| 4662 | 4893 | position: absolute; |
| 4663 | 4894 | top: 0; |
| 4664 | - right: 0; | |
| 4895 | + left: 0; | |
| 4665 | 4896 | will-change: transform; |
| 4666 | 4897 | transform-origin: center center; |
| 4667 | 4898 | } |
| 4668 | 4899 | |
| @@ -4673,17 +4904,18 @@ | ||
| 4673 | 4904 | |
| 4674 | 4905 | .wp-media-editor-image-editor__dimming { |
| 4675 | 4906 | position: absolute; |
| 4676 | 4907 | pointer-events: none; |
| 4677 | - /* Large shadow spread dims everything outside the crop area. | |
| 4678 | - Darker at rest for clear crop framing, lighter during drag | |
| 4679 | - so the user can see where they're panning. */ | |
| 4680 | - box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7); | |
| 4908 | + /* Large shadow spread washes everything outside the crop area | |
| 4909 | + toward the canvas grey ($gray-200). Slightly stronger at rest | |
| 4910 | + for clear crop framing, lighter during drag so the user can see | |
| 4911 | + where they're panning. */ | |
| 4912 | + box-shadow: 0 0 0 9999px rgba(224, 224, 224, 0.6); | |
| 4681 | 4913 | transition: box-shadow 0.15s ease; |
| 4682 | 4914 | } |
| 4683 | 4915 | |
| 4684 | 4916 | .wp-media-editor-image-editor--dragging .wp-media-editor-image-editor__dimming { |
| 4685 | - box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5); | |
| 4917 | + box-shadow: 0 0 0 9999px rgba(224, 224, 224, 0.4); | |
| 4686 | 4918 | } |
| 4687 | 4919 | |
| 4688 | 4920 | .wp-media-editor-image-editor__grid { |
| 4689 | 4921 | position: absolute; |
| @@ -4712,9 +4944,9 @@ | ||
| 4712 | 4944 | background: rgba(255, 255, 255, 0.4); |
| 4713 | 4945 | } |
| 4714 | 4946 | |
| 4715 | 4947 | .wp-media-editor-image-editor__grid-line--horizontal { |
| 4716 | - right: 0; | |
| 4948 | + left: 0; | |
| 4717 | 4949 | width: 100%; |
| 4718 | 4950 | height: 1px; |
| 4719 | 4951 | } |
| 4720 | 4952 | |
| @@ -4739,9 +4971,9 @@ | ||
| 4739 | 4971 | } |
| 4740 | 4972 | |
| 4741 | 4973 | .wp-media-editor-image-editor__stencil-rect { |
| 4742 | 4974 | position: absolute; |
| 4743 | - border: 1px solid rgba(255, 255, 255, 0.7); | |
| 4975 | + border: 1px solid #1e1e1e; | |
| 4744 | 4976 | box-sizing: border-box; |
| 4745 | 4977 | pointer-events: none; |
| 4746 | 4978 | transition: border-color 0.15s ease, box-shadow 0.15s ease; |
| 4747 | 4979 | } |
| @@ -4759,10 +4991,10 @@ | ||
| 4759 | 4991 | cursor: default; |
| 4760 | 4992 | position: absolute; |
| 4761 | 4993 | width: 12px; |
| 4762 | 4994 | height: 12px; |
| 4763 | - background: rgba(255, 255, 255, 0.6); | |
| 4764 | - border: 1px solid rgba(255, 255, 255, 0.9); | |
| 4995 | + background: #fff; | |
| 4996 | + border: 1px solid var(--wp-admin-theme-color, #007cba); | |
| 4765 | 4997 | border-radius: 50%; |
| 4766 | 4998 | box-sizing: border-box; |
| 4767 | 4999 | pointer-events: auto; |
| 4768 | 5000 | transition: background-color 0.15s ease, box-shadow 0.15s ease; |
| @@ -4781,12 +5013,12 @@ | ||
| 4781 | 5013 | .wp-media-editor-image-editor__handle::before { |
| 4782 | 5014 | content: ""; |
| 4783 | 5015 | position: absolute; |
| 4784 | 5016 | top: 50%; |
| 4785 | - right: 50%; | |
| 5017 | + left: 50%; | |
| 4786 | 5018 | width: 44px; |
| 4787 | 5019 | height: 44px; |
| 4788 | - transform: translate(50%, -50%); | |
| 5020 | + transform: translate(-50%, -50%); | |
| 4789 | 5021 | } |
| 4790 | 5022 | |
| 4791 | 5023 | .wp-media-editor-image-editor__handle { |
| 4792 | 5024 | /* Offset by half the handle width (12px / 2 = 6px) to center on crop edge */ |
| @@ -4793,23 +5025,23 @@ | ||
| 4793 | 5025 | } |
| 4794 | 5026 | |
| 4795 | 5027 | .wp-media-editor-image-editor__handle--n { |
| 4796 | 5028 | top: -6px; |
| 4797 | - right: 50%; | |
| 4798 | - margin-right: -6px; | |
| 5029 | + left: 50%; | |
| 5030 | + margin-left: -6px; | |
| 4799 | 5031 | cursor: ns-resize; |
| 4800 | 5032 | } |
| 4801 | 5033 | |
| 4802 | 5034 | .wp-media-editor-image-editor__handle--s { |
| 4803 | 5035 | bottom: -6px; |
| 4804 | - right: 50%; | |
| 4805 | - margin-right: -6px; | |
| 5036 | + left: 50%; | |
| 5037 | + margin-left: -6px; | |
| 4806 | 5038 | cursor: ns-resize; |
| 4807 | 5039 | } |
| 4808 | 5040 | |
| 4809 | 5041 | .wp-media-editor-image-editor__handle--e { |
| 4810 | 5042 | top: 50%; |
| 4811 | - left: -6px; | |
| 5043 | + right: -6px; | |
| 4812 | 5044 | margin-top: -6px; |
| 4813 | 5045 | cursor: ew-resize; |
| 4814 | 5046 | } |
| 4815 | 5047 | |
| @@ -4814,9 +5046,9 @@ | ||
| 4814 | 5046 | } |
| 4815 | 5047 | |
| 4816 | 5048 | .wp-media-editor-image-editor__handle--w { |
| 4817 | 5049 | top: 50%; |
| 4818 | - right: -6px; | |
| 5050 | + left: -6px; | |
| 4819 | 5051 | margin-top: -6px; |
| 4820 | 5052 | cursor: ew-resize; |
| 4821 | 5053 | } |
| 4822 | 5054 | |
| @@ -4821,35 +5053,34 @@ | ||
| 4821 | 5053 | } |
| 4822 | 5054 | |
| 4823 | 5055 | .wp-media-editor-image-editor__handle--nw { |
| 4824 | 5056 | top: -6px; |
| 4825 | - right: -6px; | |
| 4826 | - cursor: nesw-resize; | |
| 5057 | + left: -6px; | |
| 5058 | + cursor: nwse-resize; | |
| 4827 | 5059 | } |
| 4828 | 5060 | |
| 4829 | 5061 | .wp-media-editor-image-editor__handle--ne { |
| 4830 | 5062 | top: -6px; |
| 4831 | - left: -6px; | |
| 4832 | - cursor: nwse-resize; | |
| 5063 | + right: -6px; | |
| 5064 | + cursor: nesw-resize; | |
| 4833 | 5065 | } |
| 4834 | 5066 | |
| 4835 | 5067 | .wp-media-editor-image-editor__handle--sw { |
| 4836 | 5068 | bottom: -6px; |
| 4837 | - right: -6px; | |
| 4838 | - cursor: nwse-resize; | |
| 5069 | + left: -6px; | |
| 5070 | + cursor: nesw-resize; | |
| 4839 | 5071 | } |
| 4840 | 5072 | |
| 4841 | 5073 | .wp-media-editor-image-editor__handle--se { |
| 4842 | 5074 | bottom: -6px; |
| 4843 | - left: -6px; | |
| 4844 | - cursor: nesw-resize; | |
| 5075 | + right: -6px; | |
| 5076 | + cursor: nwse-resize; | |
| 4845 | 5077 | } |
| 4846 | - | |
| 4847 | 5078 | /** |
| 4848 | - * Typography | |
| 5079 | + * Breakpoints & Media Queries | |
| 4849 | 5080 | */ |
| 4850 | 5081 | /** |
| 4851 | - * Breakpoints & Media Queries | |
| 5082 | + * Typography | |
| 4852 | 5083 | */ |
| 4853 | 5084 | /** |
| 4854 | 5085 | * Converts a hex value into the rgb equivalent. |
| 4855 | 5086 | * |
| @@ -4868,8 +5099,14 @@ | ||
| 4868 | 5099 | /** |
| 4869 | 5100 | * Focus styles. |
| 4870 | 5101 | */ |
| 4871 | 5102 | /** |
| 5103 | + * Standard focus rings for the WordPress Design System. | |
| 5104 | + * | |
| 5105 | + * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site, | |
| 5106 | + * e.g. `&:focus { @include outset-ring__focus(); }`. | |
| 5107 | + */ | |
| 5108 | +/** | |
| 4872 | 5109 | * Applies editor left position to the selector passed as argument |
| 4873 | 5110 | */ |
| 4874 | 5111 | /** |
| 4875 | 5112 | * Styles that are reused verbatim in a few places |
| @@ -4902,40 +5139,74 @@ | ||
| 4902 | 5139 | align-items: center; |
| 4903 | 5140 | justify-content: center; |
| 4904 | 5141 | } |
| 4905 | 5142 | |
| 4906 | -.media-editor .interface-interface-skeleton { | |
| 4907 | - position: relative; | |
| 4908 | - top: auto; | |
| 4909 | - left: auto; | |
| 4910 | - bottom: auto; | |
| 4911 | - right: auto; | |
| 4912 | - height: 100%; | |
| 4913 | - max-height: none; | |
| 5143 | +.media-editor .media-editor__body { | |
| 5144 | + container-type: inline-size; | |
| 5145 | + container-name: media-editor-body; | |
| 5146 | + display: flex; | |
| 4914 | 5147 | flex: 1; |
| 5148 | + min-height: 0; | |
| 5149 | +} | |
| 5150 | + | |
| 5151 | +.media-editor .media-editor__content { | |
| 5152 | + display: flex; | |
| 5153 | + flex: 1; | |
| 4915 | 5154 | flex-direction: column; |
| 5155 | + min-width: 0; | |
| 5156 | + min-height: 0; | |
| 5157 | + margin: 24px 24px 8px 24px; | |
| 4916 | 5158 | } |
| 4917 | 5159 | |
| 4918 | -.media-editor .interface-interface-skeleton__editor { | |
| 5160 | +@media (min-width: 600px) { | |
| 5161 | + .media-editor .media-editor__content { | |
| 5162 | + margin: 0 24px; | |
| 5163 | + } | |
| 5164 | +} | |
| 5165 | +@container media-editor-body (min-width: 864px) { | |
| 5166 | + .media-editor .media-editor__content { | |
| 5167 | + min-width: 520px; | |
| 5168 | + } | |
| 5169 | +} | |
| 5170 | +.media-editor .media-editor__canvas-toolbar { | |
| 5171 | + display: flex; | |
| 5172 | + flex: 0 0 auto; | |
| 5173 | + flex-direction: column; | |
| 5174 | + align-items: center; | |
| 5175 | + gap: 12px; | |
| 5176 | +} | |
| 5177 | + | |
| 5178 | +.media-editor .media-editor__canvas-toolbar .media-editor-fine-rotation { | |
| 5179 | + display: flex; | |
| 5180 | + justify-content: center; | |
| 5181 | + align-self: stretch; | |
| 5182 | + background: #e0e0e0; | |
| 5183 | + border-radius: 0 0 8px 8px; | |
| 5184 | + padding: 8px 16px; | |
| 5185 | +} | |
| 5186 | + | |
| 5187 | +.media-editor .media-editor__canvas-toolbar .media-editor-fine-rotation .rotation-ruler { | |
| 5188 | + flex: 0 1 360px; | |
| 4919 | 5189 | min-width: 0; |
| 4920 | - flex: 1; | |
| 4921 | 5190 | } |
| 4922 | 5191 | |
| 4923 | -.media-editor .media-editor__canvas { | |
| 5192 | +.media-editor .media-editor__canvas-area { | |
| 4924 | 5193 | display: flex; |
| 4925 | 5194 | align-items: center; |
| 4926 | 5195 | justify-content: center; |
| 4927 | - background: #f0f0f0; | |
| 5196 | + background: #e0e0e0; | |
| 5197 | + border-radius: 8px; | |
| 4928 | 5198 | overflow: auto; |
| 4929 | - height: 100%; | |
| 5199 | + flex: 1; | |
| 5200 | + min-height: 0; | |
| 4930 | 5201 | } |
| 4931 | 5202 | |
| 4932 | -.media-editor .media-editor__canvas .media-editor-preview { | |
| 5203 | +.media-editor .media-editor__canvas-area .media-editor-preview { | |
| 4933 | 5204 | height: 100%; |
| 4934 | 5205 | } |
| 4935 | 5206 | |
| 4936 | -.media-editor .media-editor__canvas img, | |
| 4937 | -.media-editor .media-editor__canvas video { | |
| 5207 | +.media-editor .media-editor__canvas-area img, | |
| 5208 | +.media-editor .media-editor__canvas-area video { | |
| 4938 | 5209 | max-width: 100%; |
| 4939 | 5210 | max-height: 100%; |
| 4940 | 5211 | object-fit: contain; |
| 4941 | 5212 | } |
| @@ -4940,38 +5211,62 @@ | ||
| 4940 | 5211 | object-fit: contain; |
| 4941 | 5212 | } |
| 4942 | 5213 | |
| 4943 | 5214 | .media-editor .media-editor__sidebar { |
| 4944 | - box-sizing: border-box; | |
| 5215 | + display: flex; | |
| 5216 | + flex: 1; | |
| 5217 | + flex-direction: column; | |
| 5218 | + min-width: 0; | |
| 5219 | + min-height: 0; | |
| 5220 | + overflow: hidden; | |
| 4945 | 5221 | } |
| 4946 | 5222 | |
| 4947 | -.media-editor .media-editor__sidebar *, | |
| 4948 | -.media-editor .media-editor__sidebar *::before, | |
| 4949 | -.media-editor .media-editor__sidebar *::after { | |
| 4950 | - box-sizing: inherit; | |
| 5223 | +@media (min-width: 600px) { | |
| 5224 | + .media-editor .media-editor__sidebar { | |
| 5225 | + flex: none; | |
| 5226 | + width: var(--wpds-dimension-surface-width-sm, 320px); | |
| 5227 | + } | |
| 4951 | 5228 | } |
| 5229 | +.media-editor .media-editor__tabs { | |
| 5230 | + display: flex; | |
| 5231 | + flex: 1; | |
| 5232 | + flex-direction: column; | |
| 5233 | + min-height: 0; | |
| 5234 | +} | |
| 4952 | 5235 | |
| 5236 | +.media-editor .media-editor__tablist { | |
| 5237 | + flex-shrink: 0; | |
| 5238 | + margin-inline: 24px; | |
| 5239 | + background: #fff; | |
| 5240 | + border-bottom: 1px solid #ddd; | |
| 5241 | +} | |
| 5242 | + | |
| 4953 | 5243 | .media-editor .media-editor__panel { |
| 4954 | - padding: 16px; | |
| 5244 | + flex: 1; | |
| 5245 | + min-height: 0; | |
| 5246 | + overflow-y: auto; | |
| 5247 | + padding-block: 24px; | |
| 5248 | + padding-inline: 24px; | |
| 4955 | 5249 | } |
| 4956 | 5250 | |
| 4957 | -.media-editor .components-panel__header.media-editor__sidebar-header { | |
| 4958 | - padding-right: 0; | |
| 4959 | - padding-left: 8px; | |
| 5251 | +.media-editor .media-editor__content:has(.media-editor-fine-rotation) .media-editor__canvas-area { | |
| 5252 | + border-end-start-radius: 0; | |
| 5253 | + border-end-end-radius: 0; | |
| 4960 | 5254 | } |
| 4961 | 5255 | |
| 4962 | -.media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon { | |
| 4963 | - padding: 0; | |
| 5256 | +.media-editor .media-editor__body.has-panel-open .media-editor__content { | |
| 5257 | + display: none; | |
| 4964 | 5258 | } |
| 4965 | 5259 | |
| 4966 | -@media (min-width: 782px) { | |
| 4967 | - .media-editor .components-panel__header.media-editor__sidebar-header .components-button.has-icon { | |
| 5260 | +@media (min-width: 600px) { | |
| 5261 | + .media-editor .media-editor__body.has-panel-open .media-editor__content { | |
| 4968 | 5262 | display: flex; |
| 5263 | + margin: 0 24px 0 0; | |
| 4969 | 5264 | } |
| 4970 | 5265 | } |
| 4971 | 5266 | .media-editor__snackbar { |
| 4972 | 5267 | position: fixed; |
| 4973 | - bottom: 24px; | |
| 5268 | + bottom: var(--wpds-dimension-size-md, 32px); | |
| 4974 | 5269 | right: 0; |
| 4975 | 5270 | left: 0; |
| 4976 | 5271 | padding-inline: 16px; |
| 4977 | 5272 | box-sizing: border-box; |
| @@ -4983,8 +5278,12 @@ | ||
| 4983 | 5278 | .media-editor__snackbar .components-snackbar { |
| 4984 | 5279 | margin-inline: auto; |
| 4985 | 5280 | } |
| 4986 | 5281 | |
| 5282 | +.media-editor-form .dataforms-layouts-panel__field-control { | |
| 5283 | + text-wrap: pretty; | |
| 5284 | +} | |
| 5285 | + | |
| 4987 | 5286 | .media-editor-modal.components-modal__frame .components-modal__content { |
| 4988 | 5287 | padding: 0; |
| 4989 | 5288 | margin-bottom: 0; |
| 4990 | 5289 | display: flex; |
| @@ -5001,63 +5300,23 @@ | ||
| 5001 | 5300 | |
| 5002 | 5301 | .media-editor-modal.components-modal__frame .media-editor-modal__footer { |
| 5003 | 5302 | flex-shrink: 0; |
| 5004 | 5303 | display: flex; |
| 5304 | + flex-direction: row; | |
| 5305 | + align-items: center; | |
| 5005 | 5306 | gap: 16px; |
| 5006 | - padding: 8px 24px; | |
| 5007 | - border-top: 1px solid #ddd; | |
| 5307 | + padding: 24px; | |
| 5008 | 5308 | background: #fff; |
| 5009 | 5309 | } |
| 5010 | 5310 | |
| 5011 | -.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide { | |
| 5012 | - flex-direction: row; | |
| 5013 | - align-items: center; | |
| 5014 | -} | |
| 5015 | - | |
| 5016 | -.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor-modal__footer-toolbar { | |
| 5017 | - flex: 1 1 0; | |
| 5018 | - min-width: 0; | |
| 5019 | - display: flex; | |
| 5020 | - align-items: center; | |
| 5021 | - justify-content: center; | |
| 5022 | - gap: 8px; | |
| 5023 | -} | |
| 5024 | - | |
| 5025 | -.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor-fine-rotation { | |
| 5026 | - flex: 1 1 280px; | |
| 5027 | - min-width: 0; | |
| 5028 | - max-width: 360px; | |
| 5029 | -} | |
| 5030 | - | |
| 5031 | -.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor-transform-controls { | |
| 5032 | - border-right: 1px solid #ddd; | |
| 5033 | - padding-right: 12px; | |
| 5034 | -} | |
| 5035 | - | |
| 5036 | -.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-wide .media-editor__footer-actions { | |
| 5311 | +.media-editor-modal.components-modal__frame .media-editor-modal__footer .media-editor__save-actions { | |
| 5037 | 5312 | margin-right: auto; |
| 5038 | 5313 | } |
| 5039 | 5314 | |
| 5040 | -.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-medium, .media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow { | |
| 5041 | - flex-direction: column; | |
| 5315 | +.media-editor-modal .media-editor__history-actions .components-button.has-icon:not([aria-disabled=true]) { | |
| 5316 | + color: var(--wp-admin-theme-color); | |
| 5042 | 5317 | } |
| 5043 | 5318 | |
| 5044 | -.media-editor-modal.components-modal__frame .media-editor-modal__footer.is-narrow > .media-editor-transform-controls { | |
| 5045 | - align-self: center; | |
| 5046 | -} | |
| 5047 | - | |
| 5048 | -.media-editor-modal__footer-row { | |
| 5049 | - display: flex; | |
| 5050 | - flex-wrap: wrap; | |
| 5051 | - align-items: center; | |
| 5052 | - gap: 16px; | |
| 5053 | -} | |
| 5054 | - | |
| 5055 | -.media-editor-modal__footer-row .media-editor-transform-controls, | |
| 5056 | -.media-editor-modal__footer-row .media-editor__footer-actions { | |
| 5057 | - margin-right: auto; | |
| 5058 | -} | |
| 5059 | - | |
| 5060 | 5319 | .media-editor-modal { |
| 5061 | 5320 | display: flex; |
| 5062 | 5321 | flex-direction: column; |
| 5063 | 5322 | } |
| @@ -5063,9 +5322,9 @@ | ||
| 5063 | 5322 | } |
| 5064 | 5323 | |
| 5065 | 5324 | .media-editor-modal__snackbar { |
| 5066 | 5325 | position: fixed; |
| 5067 | - bottom: 24px; | |
| 5326 | + bottom: var(--wpds-dimension-size-md, 32px); | |
| 5068 | 5327 | right: 0; |
| 5069 | 5328 | left: 0; |
| 5070 | 5329 | padding-inline: 16px; |
| 5071 | 5330 | box-sizing: border-box; |
| @@ -5087,15 +5346,88 @@ | ||
| 5087 | 5346 | width: 100%; |
| 5088 | 5347 | height: 100%; |
| 5089 | 5348 | } |
| 5090 | 5349 | |
| 5091 | -.media-editor-transform-controls { | |
| 5350 | +.media-editor-canvas__cropper { | |
| 5351 | + width: 100%; | |
| 5352 | + height: 100%; | |
| 5353 | + opacity: 0; | |
| 5354 | + pointer-events: none; | |
| 5355 | +} | |
| 5356 | + | |
| 5357 | +.media-editor-canvas__cropper.is-loaded { | |
| 5358 | + opacity: 1; | |
| 5359 | + pointer-events: auto; | |
| 5360 | +} | |
| 5361 | + | |
| 5362 | +@keyframes __wp-base-styles-fade-in { | |
| 5363 | + from { | |
| 5364 | + opacity: 0; | |
| 5365 | + } | |
| 5366 | + to { | |
| 5367 | + opacity: 1; | |
| 5368 | + } | |
| 5369 | +} | |
| 5370 | +@media not (prefers-reduced-motion) { | |
| 5371 | + .media-editor-canvas__cropper.is-loaded { | |
| 5372 | + animation: __wp-base-styles-fade-in 0.2s linear 0s; | |
| 5373 | + animation-fill-mode: forwards; | |
| 5374 | + } | |
| 5375 | +} | |
| 5376 | +.media-editor-canvas__spinner { | |
| 5377 | + position: absolute; | |
| 5378 | + top: 50%; | |
| 5379 | + right: 50%; | |
| 5380 | + transform: translate(50%, -50%); | |
| 5381 | +} | |
| 5382 | + | |
| 5383 | +.media-editor-canvas__error { | |
| 5092 | 5384 | display: flex; |
| 5385 | + align-items: center; | |
| 5386 | + justify-content: center; | |
| 5387 | + width: 100%; | |
| 5388 | + height: 100%; | |
| 5389 | + color: #757575; | |
| 5390 | + text-align: center; | |
| 5391 | +} | |
| 5392 | + | |
| 5393 | +.media-editor-image-controls { | |
| 5394 | + display: flex; | |
| 5093 | 5395 | flex-wrap: nowrap; |
| 5094 | 5396 | align-items: center; |
| 5095 | 5397 | gap: 8px; |
| 5096 | 5398 | } |
| 5097 | 5399 | |
| 5400 | +.media-editor-image-controls.is-stacked { | |
| 5401 | + flex-direction: column; | |
| 5402 | + align-items: flex-start; | |
| 5403 | + gap: 24px; | |
| 5404 | +} | |
| 5405 | + | |
| 5406 | +.media-editor-image-controls__transforms { | |
| 5407 | + display: flex; | |
| 5408 | + gap: 48px; | |
| 5409 | +} | |
| 5410 | + | |
| 5411 | +.media-editor-image-controls__group { | |
| 5412 | + display: flex; | |
| 5413 | + flex-direction: column; | |
| 5414 | + gap: 4px; | |
| 5415 | +} | |
| 5416 | + | |
| 5417 | +.media-editor-image-controls__label { | |
| 5418 | + font-size: 11px; | |
| 5419 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 5420 | + line-height: 1.4; | |
| 5421 | + text-transform: uppercase; | |
| 5422 | +} | |
| 5423 | + | |
| 5424 | +.media-editor-image-controls__buttons { | |
| 5425 | + display: flex; | |
| 5426 | + gap: 8px; | |
| 5427 | + padding-inline: 2px 0; | |
| 5428 | +} | |
| 5429 | + | |
| 5098 | 5430 | .media-editor-keyboard-shortcuts-modal { |
| 5099 | 5431 | min-width: 280px; |
| 5100 | 5432 | } |
| 5101 | 5433 | |
| @@ -5129,9 +5461,9 @@ | ||
| 5129 | 5461 | } |
| 5130 | 5462 | |
| 5131 | 5463 | .media-editor-keyboard-shortcuts-modal .media-editor-keyboard-shortcuts-modal__shortcut-term { |
| 5132 | 5464 | background: none; |
| 5133 | - font-weight: 600; | |
| 5465 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 5134 | 5466 | margin: 0 1rem 0 0; |
| 5135 | 5467 | padding: 0; |
| 5136 | 5468 | text-align: left; |
| 5137 | 5469 | } |
| @@ -5152,13 +5484,14 @@ | ||
| 5152 | 5484 | height: 32px; |
| 5153 | 5485 | padding: 0 8px; |
| 5154 | 5486 | box-sizing: border-box; |
| 5155 | 5487 | color: #1e1e1e; |
| 5156 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 5488 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 5157 | 5489 | -webkit-user-select: none; |
| 5158 | 5490 | user-select: none; |
| 5159 | 5491 | touch-action: none; |
| 5160 | 5492 | cursor: ew-resize; |
| 5493 | + direction: ltr; | |
| 5161 | 5494 | container-type: inline-size; |
| 5162 | 5495 | } |
| 5163 | 5496 | |
| 5164 | 5497 | .rotation-ruler[data-disabled] { |
| @@ -5179,9 +5512,9 @@ | ||
| 5179 | 5512 | height: 1px; |
| 5180 | 5513 | margin: -1px; |
| 5181 | 5514 | padding: 0; |
| 5182 | 5515 | border: 0; |
| 5183 | - clip: rect(0 0 0 0); | |
| 5516 | + clip-path: inset(50%); | |
| 5184 | 5517 | overflow: hidden; |
| 5185 | 5518 | white-space: nowrap; |
| 5186 | 5519 | } |
| 5187 | 5520 | |
| @@ -5206,9 +5539,9 @@ | ||
| 5206 | 5539 | } |
| 5207 | 5540 | |
| 5208 | 5541 | .rotation-ruler__ticks { |
| 5209 | 5542 | position: absolute; |
| 5210 | - right: 50%; | |
| 5543 | + left: 50%; | |
| 5211 | 5544 | top: 0; |
| 5212 | 5545 | display: block; |
| 5213 | 5546 | overflow: visible; |
| 5214 | 5547 | } |
| @@ -5243,9 +5576,9 @@ | ||
| 5243 | 5576 | right: 50%; |
| 5244 | 5577 | height: 14px; |
| 5245 | 5578 | transform: translateX(50%); |
| 5246 | 5579 | font-size: 12px; |
| 5247 | - font-weight: 600; | |
| 5580 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 5248 | 5581 | line-height: 14px; |
| 5249 | 5582 | color: #1e1e1e; |
| 5250 | 5583 | pointer-events: none; |
| 5251 | 5584 | } |
| @@ -5257,9 +5590,9 @@ | ||
| 5257 | 5590 | right: 50%; |
| 5258 | 5591 | width: 60px; |
| 5259 | 5592 | height: 100%; |
| 5260 | 5593 | transform: translateX(50%); |
| 5261 | - background: linear-gradient(to left, transparent 0, #fff 12px, #fff calc(100% - 12px), transparent 100%); | |
| 5594 | + background: linear-gradient(to left, transparent 0, #e0e0e0 12px, #e0e0e0 calc(100% - 12px), transparent 100%); | |
| 5262 | 5595 | } |
| 5263 | 5596 | |
| 5264 | 5597 | .rotation-ruler__active-label-number { |
| 5265 | 5598 | position: relative; |
| @@ -5268,15 +5601,15 @@ | ||
| 5268 | 5601 | |
| 5269 | 5602 | .rotation-ruler__active-label-sign { |
| 5270 | 5603 | position: absolute; |
| 5271 | 5604 | top: 0; |
| 5272 | - left: 100%; | |
| 5605 | + right: 100%; | |
| 5273 | 5606 | } |
| 5274 | 5607 | |
| 5275 | 5608 | .rotation-ruler__active-label-unit { |
| 5276 | 5609 | position: absolute; |
| 5277 | 5610 | top: 0; |
| 5278 | - right: 100%; | |
| 5611 | + left: 100%; | |
| 5279 | 5612 | } |
| 5280 | 5613 | |
| 5281 | 5614 | @container (max-width: 220px) { |
| 5282 | 5615 | .rotation-ruler__tick--minor { |
| @@ -5294,9 +5627,9 @@ | ||
| 5294 | 5627 | } |
| 5295 | 5628 | |
| 5296 | 5629 | .editor-autocompleters__user .editor-autocompleters__no-avatar::before { |
| 5297 | 5630 | /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- dashicons don't need a generic family keyword. */ |
| 5298 | - font: normal 20px/1 dashicons; | |
| 5631 | + font: 400 20px/1 dashicons; | |
| 5299 | 5632 | content: "\f110"; |
| 5300 | 5633 | margin-left: 5px; |
| 5301 | 5634 | vertical-align: middle; |
| 5302 | 5635 | } |
| @@ -5319,9 +5652,9 @@ | ||
| 5319 | 5652 | .editor-autocompleters__user .editor-autocompleters__user-slug { |
| 5320 | 5653 | margin-right: 8px; |
| 5321 | 5654 | white-space: nowrap; |
| 5322 | 5655 | text-overflow: ellipsis; |
| 5323 | - overflow: none; | |
| 5656 | + overflow: hidden; | |
| 5324 | 5657 | max-width: 100px; |
| 5325 | 5658 | flex-grow: 0; |
| 5326 | 5659 | flex-shrink: 0; |
| 5327 | 5660 | } |
| @@ -5331,9 +5664,10 @@ | ||
| 5331 | 5664 | |
| 5332 | 5665 | .interface-interface-skeleton__sidebar:has(.editor-collab-sidebar) { |
| 5333 | 5666 | box-shadow: none; |
| 5334 | 5667 | } |
| 5335 | -.interface-interface-skeleton__sidebar:has(.editor-collab-sidebar) .interface-complementary-area-header { | |
| 5668 | + | |
| 5669 | +.editor-collab-sidebar__header { | |
| 5336 | 5670 | display: none; |
| 5337 | 5671 | } |
| 5338 | 5672 | |
| 5339 | 5673 | .editor-collab-sidebar { |
| @@ -5345,11 +5679,13 @@ | ||
| 5345 | 5679 | position: relative; |
| 5346 | 5680 | padding: 16px 16px 24px; |
| 5347 | 5681 | height: 100%; |
| 5348 | 5682 | overflow: hidden; |
| 5683 | + border-right: 1px solid color-mix(in srgb, currentColor 10%, transparent); | |
| 5349 | 5684 | } |
| 5350 | 5685 | |
| 5351 | -.editor-collab-sidebar-panel__thread { | |
| 5686 | +.editor-collab-sidebar-panel__thread, | |
| 5687 | +.editor-collab-sidebar-panel__add-note { | |
| 5352 | 5688 | position: relative; |
| 5353 | 5689 | padding: 16px; |
| 5354 | 5690 | border-radius: 8px; |
| 5355 | 5691 | border: 1px solid #ddd; |
| @@ -5356,18 +5692,21 @@ | ||
| 5356 | 5692 | background-color: #f0f0f0; |
| 5357 | 5693 | overflow: hidden; |
| 5358 | 5694 | width: auto; |
| 5359 | 5695 | } |
| 5360 | -.editor-collab-sidebar-panel__thread.is-selected { | |
| 5696 | +.editor-collab-sidebar-panel__thread.is-selected, | |
| 5697 | +.editor-collab-sidebar-panel__add-note.is-selected { | |
| 5361 | 5698 | background-color: #fff; |
| 5362 | 5699 | box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.04), 0 12px 12px rgba(0, 0, 0, 0.03), 0 16px 16px rgba(0, 0, 0, 0.02); |
| 5363 | 5700 | z-index: 1; |
| 5364 | 5701 | } |
| 5365 | -.editor-collab-sidebar-panel__thread:focus { | |
| 5702 | +.editor-collab-sidebar-panel__thread:focus, | |
| 5703 | +.editor-collab-sidebar-panel__add-note:focus { | |
| 5366 | 5704 | outline: var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color); |
| 5367 | 5705 | outline-offset: calc(-1 * var(--wp-admin-border-width-focus)); |
| 5368 | 5706 | } |
| 5369 | -.editor-collab-sidebar-panel__thread.is-floating { | |
| 5707 | +.editor-collab-sidebar-panel__thread.is-floating, | |
| 5708 | +.editor-collab-sidebar-panel__add-note.is-floating { | |
| 5370 | 5709 | right: 16px; |
| 5371 | 5710 | left: 16px; |
| 5372 | 5711 | position: absolute; |
| 5373 | 5712 | margin-top: 16px; |
| @@ -5376,8 +5715,12 @@ | ||
| 5376 | 5715 | max-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - 128px); |
| 5377 | 5716 | overflow-y: auto; |
| 5378 | 5717 | } |
| 5379 | 5718 | |
| 5719 | +.editor-collab-sidebar-panel__user-info { | |
| 5720 | + flex: 1; | |
| 5721 | +} | |
| 5722 | + | |
| 5380 | 5723 | .editor-collab-sidebar-panel__user-name { |
| 5381 | 5724 | font-size: 12px; |
| 5382 | 5725 | font-weight: 400; |
| 5383 | 5726 | line-height: 16px; |
| @@ -5382,9 +5725,9 @@ | ||
| 5382 | 5725 | font-weight: 400; |
| 5383 | 5726 | line-height: 16px; |
| 5384 | 5727 | text-align: right; |
| 5385 | 5728 | color: #757575; |
| 5386 | - text-transform: capitalize; | |
| 5729 | + overflow-wrap: anywhere; | |
| 5387 | 5730 | } |
| 5388 | 5731 | |
| 5389 | 5732 | .editor-collab-sidebar-panel__user-time { |
| 5390 | 5733 | font-size: 12px; |
| @@ -5393,11 +5736,30 @@ | ||
| 5393 | 5736 | text-align: right; |
| 5394 | 5737 | color: #757575; |
| 5395 | 5738 | } |
| 5396 | 5739 | |
| 5740 | +.editor-collab-sidebar-panel__show-more-button { | |
| 5741 | + width: fit-content; | |
| 5742 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 5743 | + cursor: var(--wpds-cursor-control, pointer); | |
| 5744 | +} | |
| 5745 | +.editor-collab-sidebar-panel__show-more-button:hover, .editor-collab-sidebar-panel__show-more-button:focus, .editor-collab-sidebar-panel__show-more-button:active { | |
| 5746 | + color: var(--wpds-color-foreground-interactive-brand-active, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 52%, black)); | |
| 5747 | +} | |
| 5748 | + | |
| 5749 | +.editor-collab-sidebar-panel__note-content { | |
| 5750 | + overflow-wrap: break-word; | |
| 5751 | +} | |
| 5397 | 5752 | .editor-collab-sidebar-panel__note-content p:last-child { |
| 5398 | 5753 | margin-bottom: 0; |
| 5399 | 5754 | } |
| 5755 | +.editor-collab-sidebar-panel__note-content.is-collapsed { | |
| 5756 | + -webkit-line-clamp: 3; | |
| 5757 | + line-clamp: 3; | |
| 5758 | + display: -webkit-box; | |
| 5759 | + -webkit-box-orient: vertical; | |
| 5760 | + overflow: hidden; | |
| 5761 | +} | |
| 5400 | 5762 | |
| 5401 | 5763 | .editor-collab-sidebar-panel__user-avatar { |
| 5402 | 5764 | border-radius: 50%; |
| 5403 | 5765 | flex-shrink: 0; |
| @@ -5417,23 +5779,23 @@ | ||
| 5417 | 5779 | height: 24px; |
| 5418 | 5780 | flex-shrink: 0; |
| 5419 | 5781 | } |
| 5420 | 5782 | |
| 5421 | -.editor-collab-sidebar-panel__more-reply-separator::before, .editor-collab-sidebar-panel__more-reply-separator::after { | |
| 5783 | +.editor-collab-sidebar-panel__more-reply-separator::before, .editor-collab-sidebar-panel__more-reply-separator::after, | |
| 5784 | +.editor-collab-sidebar-panel__status-separator::before, | |
| 5785 | +.editor-collab-sidebar-panel__status-separator::after { | |
| 5422 | 5786 | content: ""; |
| 5423 | - display: block; | |
| 5424 | - width: 100%; | |
| 5787 | + flex: 1; | |
| 5425 | 5788 | height: 1px; |
| 5426 | 5789 | background-color: #ddd; |
| 5427 | - flex: 1; | |
| 5428 | 5790 | } |
| 5429 | 5791 | |
| 5430 | 5792 | .editor-collab-sidebar-panel__more-reply-button { |
| 5431 | - font-weight: 499; | |
| 5793 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 5432 | 5794 | } |
| 5433 | 5795 | |
| 5434 | 5796 | .editor-collab-sidebar-panel__deleted-block-notice { |
| 5435 | - font-weight: 499; | |
| 5797 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 5436 | 5798 | color: #757575; |
| 5437 | 5799 | } |
| 5438 | 5800 | |
| 5439 | 5801 | .editor-collab-sidebar-panel__resolution-text { |
| @@ -5439,44 +5801,26 @@ | ||
| 5439 | 5801 | .editor-collab-sidebar-panel__resolution-text { |
| 5440 | 5802 | font-style: italic; |
| 5441 | 5803 | } |
| 5442 | 5804 | |
| 5443 | -.editor-collab-sidebar-panel__note-form textarea { | |
| 5444 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 5445 | - padding: 6px 8px; | |
| 5446 | - /* Fonts smaller than 16px causes mobile safari to zoom. */ | |
| 5447 | - font-size: 16px; | |
| 5448 | - /* Override core line-height. To be reviewed. */ | |
| 5449 | - line-height: normal; | |
| 5450 | - box-shadow: 0 0 0 transparent; | |
| 5805 | +.editor-collab-sidebar-panel__note-form [role=textbox] { | |
| 5806 | + line-height: 20px; | |
| 5807 | + max-height: 418px; | |
| 5808 | + overflow-y: auto; | |
| 5809 | + white-space: pre-wrap; | |
| 5810 | + overflow-wrap: break-word; | |
| 5811 | +} | |
| 5812 | +.editor-collab-sidebar-panel__note-form [role=textbox] code { | |
| 5813 | + font-family: Menlo, Consolas, monaco, monospace; | |
| 5814 | + font-size: 0.9em; | |
| 5815 | + padding: 0 2px; | |
| 5816 | + background: #f0f0f0; | |
| 5451 | 5817 | border-radius: 2px; |
| 5452 | - border: 1px solid #949494; | |
| 5453 | 5818 | } |
| 5454 | -@media not (prefers-reduced-motion) { | |
| 5455 | - .editor-collab-sidebar-panel__note-form textarea { | |
| 5456 | - transition: box-shadow 0.1s linear; | |
| 5457 | - } | |
| 5819 | +.editor-collab-sidebar-panel__note-form [role=textbox] a { | |
| 5820 | + color: var(--wp-admin-theme-color); | |
| 5821 | + text-decoration: underline; | |
| 5458 | 5822 | } |
| 5459 | -@media (min-width: 600px) { | |
| 5460 | - .editor-collab-sidebar-panel__note-form textarea { | |
| 5461 | - font-size: 13px; | |
| 5462 | - /* Override core line-height. To be reviewed. */ | |
| 5463 | - line-height: normal; | |
| 5464 | - } | |
| 5465 | -} | |
| 5466 | -.editor-collab-sidebar-panel__note-form textarea:focus { | |
| 5467 | - border-color: var(--wp-admin-theme-color); | |
| 5468 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 5469 | - outline: 2px solid transparent; | |
| 5470 | -} | |
| 5471 | -.editor-collab-sidebar-panel__note-form textarea::placeholder { | |
| 5472 | - color: rgba(30, 30, 30, 0.62); | |
| 5473 | -} | |
| 5474 | -.editor-collab-sidebar-panel__note-form textarea { | |
| 5475 | - padding: 9px 11px; | |
| 5476 | - line-height: 20px !important; | |
| 5477 | - display: block; | |
| 5478 | -} | |
| 5479 | 5823 | |
| 5480 | 5824 | .editor-collab-sidebar-panel__skip-to-note, |
| 5481 | 5825 | .editor-collab-sidebar-panel__skip-to-block { |
| 5482 | 5826 | position: absolute; |
| @@ -5518,9 +5862,9 @@ | ||
| 5518 | 5862 | margin-right: 0; |
| 5519 | 5863 | } |
| 5520 | 5864 | |
| 5521 | 5865 | .editor-note-indicator__overflow { |
| 5522 | - font-weight: 499; | |
| 5866 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 5523 | 5867 | } |
| 5524 | 5868 | |
| 5525 | 5869 | .show-icon-labels .editor-note-indicator { |
| 5526 | 5870 | width: auto; |
| @@ -5532,8 +5876,36 @@ | ||
| 5532 | 5876 | content: attr(aria-label); |
| 5533 | 5877 | font-size: 12px; |
| 5534 | 5878 | } |
| 5535 | 5879 | |
| 5880 | +mark.wp-note { | |
| 5881 | + border-radius: 1px; | |
| 5882 | + transition: background-color 0.1s ease-in-out; | |
| 5883 | +} | |
| 5884 | + | |
| 5885 | +.wp-note-mention { | |
| 5886 | + display: inline; | |
| 5887 | + padding: 0 var(--wpds-dimension-padding-xs, 4px); | |
| 5888 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 5889 | + background: var(--wpds-color-background-surface-brand, color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 9%, white)); | |
| 5890 | + color: var(--wpds-color-foreground-interactive-brand, var(--wp-admin-theme-color, #3858e9)); | |
| 5891 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 5892 | +} | |
| 5893 | +@media (forced-colors: active) { | |
| 5894 | + .wp-note-mention { | |
| 5895 | + border: 1px solid; | |
| 5896 | + } | |
| 5897 | +} | |
| 5898 | + | |
| 5899 | +.editor-collab-sidebar-panel__mention-suggestion .editor-autocompleters__user-avatar { | |
| 5900 | + border-radius: 50%; | |
| 5901 | +} | |
| 5902 | + | |
| 5903 | +.editor-rich-text-control [data-rich-text-placeholder]::after { | |
| 5904 | + content: attr(data-rich-text-placeholder); | |
| 5905 | + color: color-mix(in srgb, currentColor, transparent 38%); | |
| 5906 | +} | |
| 5907 | + | |
| 5536 | 5908 | .editor-avatar { |
| 5537 | 5909 | position: relative; |
| 5538 | 5910 | display: inline-flex; |
| 5539 | 5911 | align-items: center; |
| @@ -5591,9 +5963,9 @@ | ||
| 5591 | 5963 | display: flex; |
| 5592 | 5964 | align-items: center; |
| 5593 | 5965 | justify-content: center; |
| 5594 | 5966 | font-size: 11px; |
| 5595 | - font-weight: 499; | |
| 5967 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 5596 | 5968 | border: 0; |
| 5597 | 5969 | background-clip: border-box; |
| 5598 | 5970 | } |
| 5599 | 5971 | .editor-avatar:not(.has-src) > .editor-avatar__image::after { |
| @@ -5605,9 +5977,9 @@ | ||
| 5605 | 5977 | } |
| 5606 | 5978 | |
| 5607 | 5979 | .editor-avatar__name { |
| 5608 | 5980 | font-size: 13px; |
| 5609 | - font-weight: 499; | |
| 5981 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 5610 | 5982 | line-height: 20px; |
| 5611 | 5983 | color: var(--editor-avatar-name-color, #fff); |
| 5612 | 5984 | min-width: 0; |
| 5613 | 5985 | padding-bottom: 2px; |
| @@ -5748,9 +6120,9 @@ | ||
| 5748 | 6120 | padding: 8px 16px; |
| 5749 | 6121 | } |
| 5750 | 6122 | .editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-header-title { |
| 5751 | 6123 | font-size: 13px; |
| 5752 | - font-weight: 499; | |
| 6124 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 5753 | 6125 | line-height: 20px; |
| 5754 | 6126 | display: flex; |
| 5755 | 6127 | gap: 4px; |
| 5756 | 6128 | } |
| @@ -5802,9 +6174,9 @@ | ||
| 5802 | 6174 | min-width: 0; |
| 5803 | 6175 | } |
| 5804 | 6176 | .editor-collaborators-presence__list.components-popover .editor-collaborators-presence__list-item-name { |
| 5805 | 6177 | font-size: 13px; |
| 5806 | - font-weight: 499; | |
| 6178 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 5807 | 6179 | line-height: 20px; |
| 5808 | 6180 | color: #1e1e1e; |
| 5809 | 6181 | overflow: hidden; |
| 5810 | 6182 | text-overflow: ellipsis; |
| @@ -5818,43 +6190,24 @@ | ||
| 5818 | 6190 | height: 32px; |
| 5819 | 6191 | background: #f0f0f0; |
| 5820 | 6192 | border-radius: 4px; |
| 5821 | 6193 | } |
| 5822 | -.editor-collaborators-presence:hover { | |
| 6194 | +.editor-collaborators-presence:hover, .editor-collaborators-presence:has(.is-pressed) { | |
| 5823 | 6195 | background-color: #e0e0e0; |
| 5824 | 6196 | } |
| 5825 | -.editor-collaborators-presence:has(.is-pressed) { | |
| 5826 | - background-color: #e0e0e0; | |
| 5827 | -} | |
| 5828 | 6197 | |
| 5829 | 6198 | .editor-header__center .editor-collaborators-presence { |
| 5830 | 6199 | margin-left: 8px; |
| 5831 | 6200 | } |
| 5832 | 6201 | |
| 5833 | -.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button { | |
| 5834 | - display: flex; | |
| 5835 | - align-items: center; | |
| 5836 | - cursor: var(--wpds-cursor-control, pointer); | |
| 6202 | +.editor-collaborators-presence__button.editor-collaborators-presence__button { | |
| 5837 | 6203 | position: relative; |
| 5838 | 6204 | padding: 4px; |
| 5839 | - border-radius: 4px; | |
| 5840 | - height: 100%; | |
| 5841 | - box-sizing: border-box; | |
| 5842 | - color: #2f2f2f; | |
| 5843 | - background: transparent; | |
| 5844 | 6205 | } |
| 5845 | -.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button:hover { | |
| 6206 | +.editor-collaborators-presence__button.editor-collaborators-presence__button, .editor-collaborators-presence__button.editor-collaborators-presence__button:hover, .editor-collaborators-presence__button.editor-collaborators-presence__button.is-pressed, .editor-collaborators-presence__button.editor-collaborators-presence__button.is-pressed:hover { | |
| 5846 | 6207 | background: transparent; |
| 5847 | 6208 | color: #2f2f2f; |
| 5848 | 6209 | } |
| 5849 | -.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button.is-pressed, .editor-collaborators-presence__button.editor-collaborators-presence__button.components-button.is-pressed:hover { | |
| 5850 | - background: transparent; | |
| 5851 | - color: #2f2f2f; | |
| 5852 | -} | |
| 5853 | -.editor-collaborators-presence__button.editor-collaborators-presence__button.components-button:focus:not(:active) { | |
| 5854 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus, 2px) var(--wp-admin-theme-color, #007cba); | |
| 5855 | - outline: none; | |
| 5856 | -} | |
| 5857 | 6210 | |
| 5858 | 6211 | .editor-collapsible-block-toolbar { |
| 5859 | 6212 | overflow: hidden; |
| 5860 | 6213 | display: flex; |
| @@ -5949,11 +6302,8 @@ | ||
| 5949 | 6302 | } |
| 5950 | 6303 | .editor-document-bar:hover { |
| 5951 | 6304 | background-color: #e0e0e0; |
| 5952 | 6305 | } |
| 5953 | -.editor-document-bar .components-button { | |
| 5954 | - border-radius: 4px; | |
| 5955 | -} | |
| 5956 | 6306 | @media not (prefers-reduced-motion) { |
| 5957 | 6307 | .editor-document-bar .components-button { |
| 5958 | 6308 | transition: background-color 0.1s ease-out; |
| 5959 | 6309 | } |
| @@ -5978,13 +6328,8 @@ | ||
| 5978 | 6328 | color: #1e1e1e; |
| 5979 | 6329 | margin: 0 auto; |
| 5980 | 6330 | max-width: 70%; |
| 5981 | 6331 | } |
| 5982 | -@media (min-width: 782px) { | |
| 5983 | - .editor-document-bar__title { | |
| 5984 | - padding-right: 24px; | |
| 5985 | - } | |
| 5986 | -} | |
| 5987 | 6332 | .editor-document-bar__title h1 { |
| 5988 | 6333 | display: flex; |
| 5989 | 6334 | align-items: center; |
| 5990 | 6335 | justify-content: center; |
| @@ -6010,19 +6355,8 @@ | ||
| 6010 | 6355 | display: none; |
| 6011 | 6356 | } |
| 6012 | 6357 | } |
| 6013 | 6358 | |
| 6014 | -.editor-document-bar__shortcut { | |
| 6015 | - color: #2f2f2f; | |
| 6016 | - min-width: 24px; | |
| 6017 | - display: none; | |
| 6018 | -} | |
| 6019 | -@media (min-width: 782px) { | |
| 6020 | - .editor-document-bar__shortcut { | |
| 6021 | - display: initial; | |
| 6022 | - } | |
| 6023 | -} | |
| 6024 | - | |
| 6025 | 6359 | .editor-document-bar__back.components-button.has-icon.has-text { |
| 6026 | 6360 | min-width: 36px; |
| 6027 | 6361 | flex-shrink: 0; |
| 6028 | 6362 | color: #757575; |
| @@ -6041,9 +6375,9 @@ | ||
| 6041 | 6375 | display: none; |
| 6042 | 6376 | pointer-events: none; |
| 6043 | 6377 | } |
| 6044 | 6378 | .editor-document-bar__icon-layout.editor-document-bar__icon-layout svg { |
| 6045 | - fill: #949494; | |
| 6379 | + color: #949494; | |
| 6046 | 6380 | } |
| 6047 | 6381 | @media (min-width: 600px) { |
| 6048 | 6382 | .editor-document-bar__icon-layout.editor-document-bar__icon-layout { |
| 6049 | 6383 | display: flex; |
| @@ -6173,12 +6507,12 @@ | ||
| 6173 | 6507 | .editor-document-tools .editor-document-tools__left > .components-button.has-icon.is-pressed, |
| 6174 | 6508 | .editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon.is-pressed { |
| 6175 | 6509 | background: #1e1e1e; |
| 6176 | 6510 | } |
| 6177 | -.editor-document-tools .editor-document-tools__left > .components-button.has-icon:focus:not(:disabled), | |
| 6178 | -.editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon:focus:not(:disabled) { | |
| 6179 | - box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 0 0 1px #fff; | |
| 6180 | - outline: 1px solid transparent; | |
| 6511 | +.editor-document-tools .editor-document-tools__left > .components-button.has-icon:focus:not(:active), | |
| 6512 | +.editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon:focus:not(:active) { | |
| 6513 | + 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))); | |
| 6514 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 6181 | 6515 | } |
| 6182 | 6516 | .editor-document-tools .editor-document-tools__left > .components-button.has-icon::before, |
| 6183 | 6517 | .editor-document-tools .editor-document-tools__left > .components-dropdown > .components-button.has-icon::before { |
| 6184 | 6518 | display: none; |
| @@ -6209,12 +6543,18 @@ | ||
| 6209 | 6543 | .editor-editor-interface .interface-interface-skeleton__content { |
| 6210 | 6544 | isolation: isolate; |
| 6211 | 6545 | } |
| 6212 | 6546 | |
| 6213 | -.editor-editor-interface .editor-notices { | |
| 6214 | - padding: var(--wpds-dimension-padding-md, 12px); | |
| 6547 | +.editor-notices.notices-inline-notices-wrapper, | |
| 6548 | +.editor-notices .components-notice-list { | |
| 6549 | + gap: 0; | |
| 6215 | 6550 | } |
| 6216 | 6551 | |
| 6552 | +.editor-notices .components-notice { | |
| 6553 | + border-top-width: 0; | |
| 6554 | + border-inline-width: 0; | |
| 6555 | +} | |
| 6556 | + | |
| 6217 | 6557 | .editor-visual-editor { |
| 6218 | 6558 | flex: 1 0 auto; |
| 6219 | 6559 | } |
| 6220 | 6560 | |
| @@ -6225,79 +6565,29 @@ | ||
| 6225 | 6565 | top: 0; |
| 6226 | 6566 | left: 0; |
| 6227 | 6567 | } |
| 6228 | 6568 | |
| 6229 | -.entities-saved-states__panel-header { | |
| 6230 | - box-sizing: border-box; | |
| 6231 | - background: #fff; | |
| 6232 | - padding-right: 16px; | |
| 6233 | - padding-left: 16px; | |
| 6234 | - height: 64px; | |
| 6235 | - border-bottom: 1px solid #ddd; | |
| 6569 | +.editor-error-boundary { | |
| 6570 | + font-family: var(--wpds-typography-font-family-body, -apple-system, system-ui, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif); | |
| 6571 | + margin: auto; | |
| 6572 | + width: 100%; | |
| 6573 | + max-width: var(--wpds-dimension-surface-width-lg, 560px); | |
| 6574 | + padding: var(--wpds-dimension-padding-xl, 20px); | |
| 6575 | + margin-top: 64px; | |
| 6236 | 6576 | } |
| 6237 | 6577 | |
| 6238 | -.entities-saved-states__text-prompt { | |
| 6239 | - padding: 16px; | |
| 6240 | - padding-bottom: 4px; | |
| 6578 | +.editor-error-boundary__report { | |
| 6579 | + max-height: 420px; | |
| 6580 | + overflow: auto; | |
| 6581 | + overflow-anchor: none; | |
| 6241 | 6582 | } |
| 6242 | -.entities-saved-states__text-prompt .entities-saved-states__text-prompt--header { | |
| 6243 | - display: block; | |
| 6244 | - margin-bottom: 12px; | |
| 6245 | -} | |
| 6246 | 6583 | |
| 6247 | -.entities-saved-states__panel.is-inline .entities-saved-states__text-prompt { | |
| 6248 | - padding: 0; | |
| 6584 | +.editor-error-boundary__report-section { | |
| 6585 | + margin: 0; | |
| 6586 | + white-space: pre-wrap; | |
| 6587 | + overflow-wrap: break-word; | |
| 6249 | 6588 | } |
| 6250 | -.entities-saved-states__panel.is-inline .entities-saved-states__panel-body { | |
| 6251 | - padding-right: 0; | |
| 6252 | - padding-left: 0; | |
| 6253 | - border: 0; | |
| 6254 | -} | |
| 6255 | -.entities-saved-states__panel.is-inline .entities-saved-states__panel-body > h2 { | |
| 6256 | - margin-right: -16px; | |
| 6257 | - margin-left: -16px; | |
| 6258 | - margin-bottom: 0; | |
| 6259 | -} | |
| 6260 | -.entities-saved-states__panel.is-inline .entities-saved-states__panel-body > h2 button { | |
| 6261 | - font-size: 11px; | |
| 6262 | - text-transform: uppercase; | |
| 6263 | -} | |
| 6264 | -.entities-saved-states__panel.is-inline .entities-saved-states__text-prompt--header-wrapper { | |
| 6265 | - display: none; | |
| 6266 | -} | |
| 6267 | -.entities-saved-states__panel.is-inline .entities-saved-states__text-prompt--changes-count { | |
| 6268 | - margin-top: 0; | |
| 6269 | - margin-bottom: 8px; | |
| 6270 | -} | |
| 6271 | -.entities-saved-states__panel.is-inline .entities-saved-states__panel-footer { | |
| 6272 | - margin-top: 16px; | |
| 6273 | -} | |
| 6274 | 6589 | |
| 6275 | -.entities-saved-states__change-control { | |
| 6276 | - flex: 1; | |
| 6277 | -} | |
| 6278 | - | |
| 6279 | -.entities-saved-states__changes { | |
| 6280 | - font-size: 13px; | |
| 6281 | - margin: 4px 24px 0 16px; | |
| 6282 | - list-style: disc; | |
| 6283 | -} | |
| 6284 | -.entities-saved-states__changes li { | |
| 6285 | - margin-bottom: 4px; | |
| 6286 | -} | |
| 6287 | - | |
| 6288 | -.editor-error-boundary { | |
| 6289 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 6290 | - margin: auto; | |
| 6291 | - max-width: 780px; | |
| 6292 | - padding: 1em; | |
| 6293 | - margin-top: 64px; | |
| 6294 | - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02); | |
| 6295 | - border: 1px solid #1e1e1e; | |
| 6296 | - border-radius: 2px; | |
| 6297 | - background-color: #fff; | |
| 6298 | -} | |
| 6299 | - | |
| 6300 | 6590 | .editor-global-styles-header__description { |
| 6301 | 6591 | padding: 0 16px; |
| 6302 | 6592 | } |
| 6303 | 6593 | |
| @@ -6313,8 +6603,27 @@ | ||
| 6313 | 6603 | .editor-global-styles-sidebar__panel { |
| 6314 | 6604 | flex: 1; |
| 6315 | 6605 | } |
| 6316 | 6606 | |
| 6607 | +.editor-global-styles-sidebar .editor-global-styles-sidebar__header { | |
| 6608 | + flex-grow: 1; | |
| 6609 | +} | |
| 6610 | + | |
| 6611 | +.editor-global-styles-sidebar:has(.global-styles-ui-screen-revisions) { | |
| 6612 | + overflow: hidden; | |
| 6613 | +} | |
| 6614 | + | |
| 6615 | +.editor-global-styles-sidebar__panel:has(.global-styles-ui-screen-revisions) { | |
| 6616 | + display: flex; | |
| 6617 | + flex-direction: column; | |
| 6618 | + min-height: 0; | |
| 6619 | +} | |
| 6620 | + | |
| 6621 | +.editor-global-styles-sidebar .global-styles-ui-sidebar__navigator-provider:has(.global-styles-ui-screen-revisions) { | |
| 6622 | + flex: 1; | |
| 6623 | + min-height: 0; | |
| 6624 | +} | |
| 6625 | + | |
| 6317 | 6626 | .editor-global-styles-sidebar .editor-global-styles-sidebar__header-title { |
| 6318 | 6627 | margin: 0; |
| 6319 | 6628 | } |
| 6320 | 6629 | |
| @@ -6377,9 +6686,9 @@ | ||
| 6377 | 6686 | max-width: 100%; |
| 6378 | 6687 | object-fit: cover; |
| 6379 | 6688 | } |
| 6380 | 6689 | .editor-welcome-guide__heading { |
| 6381 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 6690 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 6382 | 6691 | font-size: 24px; |
| 6383 | 6692 | line-height: 1.4; |
| 6384 | 6693 | margin: 16px 0 16px 0; |
| 6385 | 6694 | padding: 0 32px; |
| @@ -6393,9 +6702,9 @@ | ||
| 6393 | 6702 | .editor-welcome-guide__text img { |
| 6394 | 6703 | vertical-align: bottom; |
| 6395 | 6704 | } |
| 6396 | 6705 | .editor-welcome-guide .components-button:hover svg { |
| 6397 | - fill: #fff; | |
| 6706 | + color: #fff; | |
| 6398 | 6707 | } |
| 6399 | 6708 | |
| 6400 | 6709 | .editor-header { |
| 6401 | 6710 | box-sizing: border-box; |
| @@ -6409,16 +6718,16 @@ | ||
| 6409 | 6718 | height: 64px; |
| 6410 | 6719 | background: #fff; |
| 6411 | 6720 | display: grid; |
| 6412 | 6721 | grid-auto-flow: row; |
| 6413 | - grid-template: auto/64px minmax(0, max-content) minmax(min-content, 1fr) 64px; | |
| 6722 | + grid-template: auto/auto minmax(0, max-content) minmax(min-content, 1fr) 64px; | |
| 6414 | 6723 | } |
| 6415 | 6724 | .editor-header:has(> .editor-header__center) { |
| 6416 | - grid-template: auto/64px min-content 1fr min-content 64px; | |
| 6725 | + grid-template: auto/auto min-content 1fr min-content 64px; | |
| 6417 | 6726 | } |
| 6418 | 6727 | @media (min-width: 782px) { |
| 6419 | 6728 | .editor-header:has(> .editor-header__center) { |
| 6420 | - grid-template: auto/64px minmax(min-content, 2fr) 2.5fr minmax(min-content, 2fr) 64px; | |
| 6729 | + grid-template: auto/auto minmax(min-content, 2fr) 2.5fr minmax(min-content, 2fr) 64px; | |
| 6421 | 6730 | } |
| 6422 | 6731 | } |
| 6423 | 6732 | @media (min-width: 480px) { |
| 6424 | 6733 | .editor-header { |
| @@ -6435,8 +6744,15 @@ | ||
| 6435 | 6744 | flex-wrap: nowrap; |
| 6436 | 6745 | } |
| 6437 | 6746 | } |
| 6438 | 6747 | |
| 6748 | +.editor-header__back-button { | |
| 6749 | + margin: 0 8px 0 -8px; | |
| 6750 | +} | |
| 6751 | +.show-icon-labels .editor-header__back-button { | |
| 6752 | + margin-left: 0; | |
| 6753 | +} | |
| 6754 | + | |
| 6439 | 6755 | .editor-header__toolbar { |
| 6440 | 6756 | grid-column: 1/3; |
| 6441 | 6757 | } |
| 6442 | 6758 | .editor-header__toolbar > :first-child { |
| @@ -6481,9 +6797,8 @@ | ||
| 6481 | 6797 | display: flex; |
| 6482 | 6798 | justify-content: center; |
| 6483 | 6799 | align-items: center; |
| 6484 | 6800 | min-width: 0; |
| 6485 | - clip-path: inset(-2px); | |
| 6486 | 6801 | } |
| 6487 | 6802 | @media (max-width: 479px) { |
| 6488 | 6803 | .editor-header__center > :first-child { |
| 6489 | 6804 | margin-inline-start: 8px; |
| @@ -6491,11 +6806,8 @@ | ||
| 6491 | 6806 | .editor-header__center > :last-child { |
| 6492 | 6807 | margin-inline-end: 8px; |
| 6493 | 6808 | } |
| 6494 | 6809 | } |
| 6495 | -.editor-revisions-header .editor-header__center { | |
| 6496 | - clip-path: none; | |
| 6497 | -} | |
| 6498 | 6810 | |
| 6499 | 6811 | /** |
| 6500 | 6812 | * Buttons on the right side |
| 6501 | 6813 | */ |
| @@ -6645,9 +6957,9 @@ | ||
| 6645 | 6957 | } |
| 6646 | 6958 | .editor-editor-interface.is-distraction-free .editor-header > .edit-post-header__settings > .edit-post-header__post-preview-button { |
| 6647 | 6959 | visibility: hidden; |
| 6648 | 6960 | } |
| 6649 | -.editor-editor-interface.is-distraction-free .editor-header > .editor-header__toolbar .editor-document-tools__document-overview-toggle, .editor-editor-interface.is-distraction-free .editor-header > .editor-header__settings > .editor-preview-dropdown, .editor-editor-interface.is-distraction-free .editor-header > .editor-header__settings > .interface-pinned-items, .editor-editor-interface.is-distraction-free .editor-header > .editor-header__settings > .editor-zoom-out-toggle { | |
| 6961 | +.editor-editor-interface.is-distraction-free .editor-header > .editor-header__toolbar .editor-document-tools__document-overview-toggle, .editor-editor-interface.is-distraction-free .editor-header > .editor-header__settings > .editor-preview-dropdown__toggle, .editor-editor-interface.is-distraction-free .editor-header > .editor-header__settings > .interface-pinned-items, .editor-editor-interface.is-distraction-free .editor-header > .editor-header__settings > .editor-zoom-out-toggle { | |
| 6650 | 6962 | display: none; |
| 6651 | 6963 | } |
| 6652 | 6964 | .editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within { |
| 6653 | 6965 | opacity: 1 !important; |
| @@ -6654,15 +6966,15 @@ | ||
| 6654 | 6966 | } |
| 6655 | 6967 | .editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within div { |
| 6656 | 6968 | transform: translateX(0) translateZ(0) !important; |
| 6657 | 6969 | } |
| 6658 | -.editor-editor-interface.is-distraction-free .components-editor-notices__dismissible { | |
| 6970 | +.editor-editor-interface.is-distraction-free .editor-notices__dismissible { | |
| 6659 | 6971 | position: absolute; |
| 6660 | 6972 | z-index: 35; |
| 6661 | 6973 | } |
| 6662 | - | |
| 6663 | -.components-popover.more-menu-dropdown__content { | |
| 6664 | - z-index: 99998; | |
| 6974 | +.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:hover, | |
| 6975 | +.editor-editor-interface.is-distraction-free .interface-interface-skeleton__header:focus-within { | |
| 6976 | + z-index: 36; | |
| 6665 | 6977 | } |
| 6666 | 6978 | |
| 6667 | 6979 | .editor-inserter-sidebar { |
| 6668 | 6980 | box-sizing: border-box; |
| @@ -6686,9 +6998,9 @@ | ||
| 6686 | 6998 | margin: 0 0 2rem 0; |
| 6687 | 6999 | } |
| 6688 | 7000 | .editor-keyboard-shortcut-help-modal__section-title { |
| 6689 | 7001 | font-size: 0.9rem; |
| 6690 | - font-weight: 600; | |
| 7002 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 6691 | 7003 | } |
| 6692 | 7004 | .editor-keyboard-shortcut-help-modal__shortcut { |
| 6693 | 7005 | display: flex; |
| 6694 | 7006 | align-items: baseline; |
| @@ -6702,9 +7014,9 @@ | ||
| 6702 | 7014 | .editor-keyboard-shortcut-help-modal__shortcut:empty { |
| 6703 | 7015 | display: none; |
| 6704 | 7016 | } |
| 6705 | 7017 | .editor-keyboard-shortcut-help-modal__shortcut-term { |
| 6706 | - font-weight: 600; | |
| 7018 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 6707 | 7019 | margin: 0 1rem 0 0; |
| 6708 | 7020 | text-align: left; |
| 6709 | 7021 | } |
| 6710 | 7022 | .editor-keyboard-shortcut-help-modal__shortcut-description { |
| @@ -6792,9 +7104,9 @@ | ||
| 6792 | 7104 | scrollbar-gutter: auto; |
| 6793 | 7105 | } |
| 6794 | 7106 | |
| 6795 | 7107 | .editor-list-view-sidebar__list-view-panel-content { |
| 6796 | - padding: 4px; | |
| 7108 | + padding: 8px; | |
| 6797 | 7109 | } |
| 6798 | 7110 | |
| 6799 | 7111 | .editor-list-view-sidebar__list-view-container { |
| 6800 | 7112 | display: flex; |
| @@ -6825,8 +7137,13 @@ | ||
| 6825 | 7137 | line-height: 1.4; |
| 6826 | 7138 | color: #757575; |
| 6827 | 7139 | } |
| 6828 | 7140 | |
| 7141 | +.editor-more-menu__popup { | |
| 7142 | + max-height: var(--available-height); | |
| 7143 | + max-width: var(--wpds-dimension-surface-width-sm, 320px); | |
| 7144 | +} | |
| 7145 | + | |
| 6829 | 7146 | .editor-post-parent__panel, |
| 6830 | 7147 | .editor-post-order__panel { |
| 6831 | 7148 | padding-top: 8px; |
| 6832 | 7149 | } |
| @@ -6869,10 +7186,10 @@ | ||
| 6869 | 7186 | .editor-post-card-panel__title { |
| 6870 | 7187 | width: 100%; |
| 6871 | 7188 | } |
| 6872 | 7189 | .editor-post-card-panel__title.editor-post-card-panel__title { |
| 6873 | - font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 6874 | - font-weight: 499; | |
| 7190 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 7191 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 6875 | 7192 | font-size: 13px; |
| 6876 | 7193 | line-height: 20px; |
| 6877 | 7194 | margin: 0; |
| 6878 | 7195 | display: flex; |
| @@ -6879,9 +7196,10 @@ | ||
| 6879 | 7196 | align-items: center; |
| 6880 | 7197 | flex-wrap: wrap; |
| 6881 | 7198 | column-gap: 8px; |
| 6882 | 7199 | row-gap: 4px; |
| 6883 | - word-break: break-word; | |
| 7200 | + word-break: normal; | |
| 7201 | + overflow-wrap: anywhere; | |
| 6884 | 7202 | } |
| 6885 | 7203 | .editor-post-card-panel__icon { |
| 6886 | 7204 | flex: 0 0 24px; |
| 6887 | 7205 | width: 24px; |
| @@ -6970,9 +7288,9 @@ | ||
| 6970 | 7288 | .editor-post-featured-image__toggle, |
| 6971 | 7289 | .editor-post-featured-image__preview { |
| 6972 | 7290 | width: 100%; |
| 6973 | 7291 | padding: 0; |
| 6974 | - box-shadow: 0 0 0 0 var(--wp-admin-theme-color); | |
| 7292 | + border-color: #ccc; | |
| 6975 | 7293 | overflow: hidden; |
| 6976 | 7294 | outline-offset: -1px; |
| 6977 | 7295 | min-height: 40px; |
| 6978 | 7296 | display: flex; |
| @@ -6992,15 +7310,8 @@ | ||
| 6992 | 7310 | object-position: 50% 50%; |
| 6993 | 7311 | aspect-ratio: 2/1; |
| 6994 | 7312 | } |
| 6995 | 7313 | |
| 6996 | -.editor-post-featured-image__toggle { | |
| 6997 | - box-shadow: inset 0 0 0 1px #ccc; | |
| 6998 | -} | |
| 6999 | -.editor-post-featured-image__toggle:focus:not(:disabled) { | |
| 7000 | - box-shadow: 0 0 0 currentColor inset, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 7001 | -} | |
| 7002 | - | |
| 7003 | 7314 | .editor-post-featured-image__actions:not(.editor-post-featured-image__actions-missing-image) { |
| 7004 | 7315 | bottom: 0; |
| 7005 | 7316 | opacity: 0; |
| 7006 | 7317 | padding: 8px; |
| @@ -7037,9 +7348,9 @@ | ||
| 7037 | 7348 | } |
| 7038 | 7349 | |
| 7039 | 7350 | .editor-post-last-revision__title { |
| 7040 | 7351 | width: 100%; |
| 7041 | - font-weight: 499; | |
| 7352 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 7042 | 7353 | } |
| 7043 | 7354 | |
| 7044 | 7355 | .editor-post-last-revision__title.components-button.has-icon { |
| 7045 | 7356 | height: 100%; |
| @@ -7048,9 +7359,9 @@ | ||
| 7048 | 7359 | .editor-post-last-revision__title.components-button.has-icon:hover, .editor-post-last-revision__title.components-button.has-icon:active { |
| 7049 | 7360 | background: #f0f0f0; |
| 7050 | 7361 | } |
| 7051 | 7362 | .editor-post-last-revision__title.components-button.has-icon:focus { |
| 7052 | - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 7363 | + outline-offset: calc(-1 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))); | |
| 7053 | 7364 | border-radius: 0; |
| 7054 | 7365 | } |
| 7055 | 7366 | |
| 7056 | 7367 | .components-panel__body.is-opened.editor-post-last-revision__panel { |
| @@ -7086,9 +7397,10 @@ | ||
| 7086 | 7397 | align-items: center; |
| 7087 | 7398 | padding: 6px 0; |
| 7088 | 7399 | line-height: 20px; |
| 7089 | 7400 | hyphens: auto; |
| 7090 | - word-break: break-word; | |
| 7401 | + word-break: normal; | |
| 7402 | + overflow-wrap: anywhere; | |
| 7091 | 7403 | } |
| 7092 | 7404 | |
| 7093 | 7405 | .editor-post-panel__row-control { |
| 7094 | 7406 | flex-grow: 1; |
| @@ -7103,9 +7415,9 @@ | ||
| 7103 | 7415 | text-wrap: balance; |
| 7104 | 7416 | text-wrap: pretty; |
| 7105 | 7417 | height: auto; |
| 7106 | 7418 | min-height: 32px; |
| 7107 | - font-weight: 400; | |
| 7419 | + font-weight: var(--wpds-typography-font-weight-default, 400); | |
| 7108 | 7420 | } |
| 7109 | 7421 | .editor-post-panel__row-control .components-dropdown { |
| 7110 | 7422 | max-width: 100%; |
| 7111 | 7423 | } |
| @@ -7164,9 +7476,10 @@ | ||
| 7164 | 7476 | .components-site-home { |
| 7165 | 7477 | display: block; |
| 7166 | 7478 | color: #757575; |
| 7167 | 7479 | font-size: 12px; |
| 7168 | - word-break: break-word; | |
| 7480 | + word-break: normal; | |
| 7481 | + overflow-wrap: anywhere; | |
| 7169 | 7482 | } |
| 7170 | 7483 | |
| 7171 | 7484 | .editor-post-publish-panel__header-publish-button, |
| 7172 | 7485 | .editor-post-publish-panel__header-cancel-button { |
| @@ -7187,12 +7500,8 @@ | ||
| 7187 | 7500 | .editor-post-publish-panel__header-cancel-button { |
| 7188 | 7501 | padding-left: 4px; |
| 7189 | 7502 | } |
| 7190 | 7503 | |
| 7191 | -.editor-post-publish-panel__header-published { | |
| 7192 | - flex-grow: 1; | |
| 7193 | -} | |
| 7194 | - | |
| 7195 | 7504 | .editor-post-publish-panel__footer { |
| 7196 | 7505 | padding: 16px; |
| 7197 | 7506 | } |
| 7198 | 7507 | |
| @@ -7222,11 +7531,8 @@ | ||
| 7222 | 7531 | background: #fff; |
| 7223 | 7532 | margin-right: -16px; |
| 7224 | 7533 | margin-left: -16px; |
| 7225 | 7534 | } |
| 7226 | -.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend { | |
| 7227 | - display: none; | |
| 7228 | -} | |
| 7229 | 7535 | .editor-post-publish-panel__prepublish .components-panel__body-title .components-button { |
| 7230 | 7536 | align-items: flex-start; |
| 7231 | 7537 | text-wrap: balance; |
| 7232 | 7538 | text-wrap: pretty; |
| @@ -7234,9 +7540,10 @@ | ||
| 7234 | 7540 | |
| 7235 | 7541 | .post-publish-panel__postpublish .components-panel__body { |
| 7236 | 7542 | border-bottom: 1px solid #e0e0e0; |
| 7237 | 7543 | border-top: none; |
| 7238 | - word-break: break-word; | |
| 7544 | + word-break: normal; | |
| 7545 | + overflow-wrap: anywhere; | |
| 7239 | 7546 | } |
| 7240 | 7547 | |
| 7241 | 7548 | .post-publish-panel__postpublish-buttons { |
| 7242 | 7549 | display: flex; |
| @@ -7276,9 +7583,9 @@ | ||
| 7276 | 7583 | margin-right: 16px; |
| 7277 | 7584 | } |
| 7278 | 7585 | |
| 7279 | 7586 | .post-publish-panel__postpublish-header { |
| 7280 | - font-weight: 499; | |
| 7587 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 7281 | 7588 | } |
| 7282 | 7589 | |
| 7283 | 7590 | .post-publish-panel__postpublish-subheader { |
| 7284 | 7591 | margin: 0 0 8px; |
| @@ -7283,17 +7590,8 @@ | ||
| 7283 | 7590 | .post-publish-panel__postpublish-subheader { |
| 7284 | 7591 | margin: 0 0 8px; |
| 7285 | 7592 | } |
| 7286 | 7593 | |
| 7287 | -.post-publish-panel__tip { | |
| 7288 | - color: #f0b849; | |
| 7289 | -} | |
| 7290 | - | |
| 7291 | -@media screen and (max-width: 782px) { | |
| 7292 | - .post-publish-panel__postpublish-post-address__button-wrap .components-button { | |
| 7293 | - height: 40px; | |
| 7294 | - } | |
| 7295 | -} | |
| 7296 | 7594 | .editor-post-publish-panel { |
| 7297 | 7595 | box-sizing: border-box; |
| 7298 | 7596 | } |
| 7299 | 7597 | .editor-post-publish-panel *, |
| @@ -7327,9 +7625,9 @@ | ||
| 7327 | 7625 | } |
| 7328 | 7626 | } |
| 7329 | 7627 | @media (min-width: 782px) { |
| 7330 | 7628 | body.is-fullscreen-mode .editor-post-publish-panel { |
| 7331 | - top: 0; | |
| 7629 | + top: var(--wp-admin--admin-bar--height, 0); | |
| 7332 | 7630 | } |
| 7333 | 7631 | [role=region]:focus .editor-post-publish-panel { |
| 7334 | 7632 | transform: translateX(0%); |
| 7335 | 7633 | } |
| @@ -7339,22 +7637,8 @@ | ||
| 7339 | 7637 | 100% { |
| 7340 | 7638 | transform: translateX(0%); |
| 7341 | 7639 | } |
| 7342 | 7640 | } |
| 7343 | -.editor-post-revisions-panel .editor-post-revisions-panel__view-all { | |
| 7344 | - justify-content: center; | |
| 7345 | -} | |
| 7346 | -.editor-post-revisions-panel .editor-post-revisions-panel__revision-date { | |
| 7347 | - text-transform: uppercase; | |
| 7348 | - font-weight: 600; | |
| 7349 | - font-size: 12px; | |
| 7350 | -} | |
| 7351 | - | |
| 7352 | -.editor-post-revisions-panel__revisions-count { | |
| 7353 | - margin-top: -4.5px; | |
| 7354 | - margin-bottom: -4.5px; | |
| 7355 | -} | |
| 7356 | - | |
| 7357 | 7641 | .editor-revisions-header__slider { |
| 7358 | 7642 | width: 100%; |
| 7359 | 7643 | } |
| 7360 | 7644 | .editor-revisions-header__slider .components-range-control__tooltip { |
| @@ -7381,8 +7665,103 @@ | ||
| 7381 | 7665 | flex: 1; |
| 7382 | 7666 | min-width: 0; |
| 7383 | 7667 | } |
| 7384 | 7668 | |
| 7669 | +.editor-revisions-code-diff { | |
| 7670 | + height: 100%; | |
| 7671 | + overflow: auto; | |
| 7672 | + background: #fff; | |
| 7673 | + color: #1e1e1e; | |
| 7674 | +} | |
| 7675 | +.editor-revisions-code-diff:focus-visible { | |
| 7676 | + box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 7677 | + outline: none; | |
| 7678 | +} | |
| 7679 | + | |
| 7680 | +.editor-revisions-code-diff__table { | |
| 7681 | + width: 100%; | |
| 7682 | + min-width: max-content; | |
| 7683 | + border: 0; | |
| 7684 | + border-collapse: separate; | |
| 7685 | + border-spacing: 0; | |
| 7686 | + font-family: Menlo, Consolas, monaco, monospace; | |
| 7687 | + font-size: 15px; | |
| 7688 | + line-height: 1.6; | |
| 7689 | +} | |
| 7690 | + | |
| 7691 | +.editor-revisions-code-diff__line.is-added { | |
| 7692 | + background: rgba(0, 163, 42, 0.12); | |
| 7693 | +} | |
| 7694 | +.editor-revisions-code-diff__line.is-added > .editor-revisions-code-diff__line-number, | |
| 7695 | +.editor-revisions-code-diff__line.is-added > .editor-revisions-code-diff__marker { | |
| 7696 | + background: color-mix(in srgb, #00a32a 12%, #fff); | |
| 7697 | +} | |
| 7698 | +.editor-revisions-code-diff__line.is-removed { | |
| 7699 | + background: rgba(214, 54, 56, 0.12); | |
| 7700 | +} | |
| 7701 | +.editor-revisions-code-diff__line.is-removed > .editor-revisions-code-diff__line-number, | |
| 7702 | +.editor-revisions-code-diff__line.is-removed > .editor-revisions-code-diff__marker { | |
| 7703 | + background: color-mix(in srgb, #d63638 12%, #fff); | |
| 7704 | +} | |
| 7705 | + | |
| 7706 | +.editor-revisions-code-diff__line-number, | |
| 7707 | +.editor-revisions-code-diff__marker { | |
| 7708 | + position: sticky; | |
| 7709 | + z-index: 1; | |
| 7710 | + box-sizing: border-box; | |
| 7711 | + padding: 0 8px; | |
| 7712 | + background: #fff; | |
| 7713 | + color: #757575; | |
| 7714 | + text-align: left; | |
| 7715 | + white-space: nowrap; | |
| 7716 | + -webkit-user-select: none; | |
| 7717 | + user-select: none; | |
| 7718 | +} | |
| 7719 | + | |
| 7720 | +.editor-revisions-code-diff__line-number { | |
| 7721 | + right: 0; | |
| 7722 | + width: 6ch; | |
| 7723 | + min-width: 6ch; | |
| 7724 | + max-width: 6ch; | |
| 7725 | + border-left: 1px solid #e0e0e0; | |
| 7726 | + background: #f0f0f0; | |
| 7727 | +} | |
| 7728 | +.editor-revisions-code-diff__line-number.is-previous + .editor-revisions-code-diff__line-number.is-current { | |
| 7729 | + right: 6ch; | |
| 7730 | +} | |
| 7731 | + | |
| 7732 | +.editor-revisions-code-diff__marker { | |
| 7733 | + right: 12ch; | |
| 7734 | + width: 3ch; | |
| 7735 | + min-width: 3ch; | |
| 7736 | + max-width: 3ch; | |
| 7737 | + border-left: 1px solid #e0e0e0; | |
| 7738 | + padding: 0; | |
| 7739 | + font-weight: 600; | |
| 7740 | + text-align: center; | |
| 7741 | +} | |
| 7742 | + | |
| 7743 | +.editor-revisions-code-diff__code { | |
| 7744 | + width: 100%; | |
| 7745 | + padding: 0 8px 0 16px; | |
| 7746 | + direction: ltr; | |
| 7747 | + unicode-bidi: isolate; | |
| 7748 | + white-space: pre; | |
| 7749 | +} | |
| 7750 | +.editor-revisions-code-diff__code code { | |
| 7751 | + margin: 0; | |
| 7752 | + padding: 0; | |
| 7753 | + background: none; | |
| 7754 | + color: inherit; | |
| 7755 | + font: inherit; | |
| 7756 | +} | |
| 7757 | + | |
| 7758 | +.editor-revisions-code-diff__empty { | |
| 7759 | + margin: 0; | |
| 7760 | + padding: 24px; | |
| 7761 | + color: #757575; | |
| 7762 | +} | |
| 7763 | + | |
| 7385 | 7764 | .revision-diff-markers { |
| 7386 | 7765 | position: relative; |
| 7387 | 7766 | flex-shrink: 0; |
| 7388 | 7767 | width: max(16px, 1rem); |
| @@ -7413,10 +7792,45 @@ | ||
| 7413 | 7792 | outline: 2px solid #1e1e1e; |
| 7414 | 7793 | outline-offset: -2px; |
| 7415 | 7794 | } |
| 7416 | 7795 | |
| 7796 | +.interface-complementary-area:has(.editor-post-revisions-timeline) { | |
| 7797 | + display: flex; | |
| 7798 | + flex-direction: column; | |
| 7799 | + overflow: hidden; | |
| 7800 | +} | |
| 7801 | + | |
| 7802 | +.interface-complementary-area > .editor-sidebar__panel-tabs { | |
| 7803 | + flex-shrink: 0; | |
| 7804 | +} | |
| 7805 | + | |
| 7806 | +.editor-sidebar__panel:has(.editor-post-revisions-timeline) { | |
| 7807 | + display: flex; | |
| 7808 | + flex-direction: column; | |
| 7809 | + flex: 1; | |
| 7810 | + min-height: 0; | |
| 7811 | +} | |
| 7812 | + | |
| 7813 | +.editor-sidebar__panel [role=tabpanel]:has(.editor-post-revisions-timeline) { | |
| 7814 | + display: flex; | |
| 7815 | + flex-direction: column; | |
| 7816 | + flex: 1; | |
| 7817 | + min-height: 0; | |
| 7818 | +} | |
| 7819 | + | |
| 7820 | +.editor-sidebar__panel .editor-revision-meta-diff__content { | |
| 7821 | + max-height: 80px; | |
| 7822 | + overflow-y: auto; | |
| 7823 | +} | |
| 7824 | + | |
| 7825 | +.editor-sidebar__panel .editor-post-revisions-timeline { | |
| 7826 | + flex: 1; | |
| 7827 | + min-height: 0; | |
| 7828 | +} | |
| 7829 | + | |
| 7417 | 7830 | .editor-revision-fields-diff__value { |
| 7418 | - word-break: break-word; | |
| 7831 | + word-break: normal; | |
| 7832 | + overflow-wrap: anywhere; | |
| 7419 | 7833 | } |
| 7420 | 7834 | |
| 7421 | 7835 | .editor-revision-fields-diff__added { |
| 7422 | 7836 | background-color: color-mix(in srgb, currentColor 5%, #00a32a 15%); |
| @@ -7470,8 +7884,14 @@ | ||
| 7470 | 7884 | min-width: 320px; |
| 7471 | 7885 | padding: 16px; |
| 7472 | 7886 | } |
| 7473 | 7887 | |
| 7888 | +.editor-post-schedule__reset { | |
| 7889 | + justify-content: center; | |
| 7890 | + margin-top: 16px; | |
| 7891 | + width: 100%; | |
| 7892 | +} | |
| 7893 | + | |
| 7474 | 7894 | .editor-post-status { |
| 7475 | 7895 | max-width: 100%; |
| 7476 | 7896 | } |
| 7477 | 7897 | .editor-post-status.is-read-only { |
| @@ -7524,8 +7944,13 @@ | ||
| 7524 | 7944 | .editor-post-taxonomies__hierarchical-terms-choice:last-child { |
| 7525 | 7945 | margin-bottom: 4px; |
| 7526 | 7946 | } |
| 7527 | 7947 | |
| 7948 | +.editor-post-taxonomies__hierarchical-terms-add, | |
| 7949 | +.editor-post-taxonomies__hierarchical-terms-submit { | |
| 7950 | + align-self: flex-start; | |
| 7951 | +} | |
| 7952 | + | |
| 7528 | 7953 | .editor-post-taxonomies__hierarchical-terms-subchoices { |
| 7529 | 7954 | margin-top: 8px; |
| 7530 | 7955 | margin-right: 16px; |
| 7531 | 7956 | } |
| @@ -7643,9 +8068,10 @@ | ||
| 7643 | 8068 | margin: 0; |
| 7644 | 8069 | width: 100%; |
| 7645 | 8070 | box-shadow: none; |
| 7646 | 8071 | resize: none; |
| 7647 | - overflow: hidden; | |
| 8072 | + field-sizing: content; | |
| 8073 | + overflow: auto; | |
| 7648 | 8074 | font-family: Menlo, Consolas, monaco, monospace; |
| 7649 | 8075 | line-height: 2.4; |
| 7650 | 8076 | min-height: 200px; |
| 7651 | 8077 | } |
| @@ -7696,9 +8122,10 @@ | ||
| 7696 | 8122 | } |
| 7697 | 8123 | .editor-post-url__link, |
| 7698 | 8124 | .editor-post-url__front-page-link { |
| 7699 | 8125 | direction: ltr; |
| 7700 | - word-break: break-word; | |
| 8126 | + word-break: normal; | |
| 8127 | + overflow-wrap: anywhere; | |
| 7701 | 8128 | } |
| 7702 | 8129 | .editor-post-url__front-page-link { |
| 7703 | 8130 | padding: 6px 12px; |
| 7704 | 8131 | border-radius: 2px; |
| @@ -7714,9 +8141,9 @@ | ||
| 7714 | 8141 | outline: 3px solid rgba(0, 0, 0, 0); |
| 7715 | 8142 | } |
| 7716 | 8143 | |
| 7717 | 8144 | .editor-post-url__link-slug { |
| 7718 | - font-weight: 600; | |
| 8145 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 7719 | 8146 | } |
| 7720 | 8147 | |
| 7721 | 8148 | .editor-post-url__input input.components-input-control__input { |
| 7722 | 8149 | padding-inline-start: 0 !important; |
| @@ -7723,9 +8150,10 @@ | ||
| 7723 | 8150 | } |
| 7724 | 8151 | |
| 7725 | 8152 | .editor-post-url__panel-toggle, |
| 7726 | 8153 | .editor-post-parent__panel-toggle { |
| 7727 | - word-break: break-word; | |
| 8154 | + word-break: normal; | |
| 8155 | + overflow-wrap: anywhere; | |
| 7728 | 8156 | } |
| 7729 | 8157 | |
| 7730 | 8158 | .editor-post-url__intro { |
| 7731 | 8159 | margin: 0; |
| @@ -7748,19 +8176,27 @@ | ||
| 7748 | 8176 | flex-grow: 1; |
| 7749 | 8177 | justify-content: center; |
| 7750 | 8178 | } |
| 7751 | 8179 | |
| 7752 | -.editor-preview-dropdown .editor-preview-dropdown__toggle.has-icon.has-text { | |
| 8180 | +.editor-preview-dropdown__popup { | |
| 8181 | + max-width: var(--wpds-dimension-surface-width-xs, 240px); | |
| 8182 | +} | |
| 8183 | + | |
| 8184 | +.editor-preview-dropdown__toggle.has-icon.has-text { | |
| 7753 | 8185 | padding-left: 4px; |
| 7754 | 8186 | padding-right: 6px; |
| 7755 | 8187 | } |
| 7756 | 8188 | |
| 7757 | -.editor-preview-dropdown__button-external { | |
| 7758 | - width: 100%; | |
| 7759 | - display: flex; | |
| 7760 | - justify-content: space-between; | |
| 8189 | +.editor-preview-dropdown__toggle.is-responsive-editing { | |
| 8190 | + color: var(--wp-block-synced-color); | |
| 7761 | 8191 | } |
| 7762 | 8192 | |
| 8193 | +@media (prefers-reduced-motion: no-preference) { | |
| 8194 | + .editor-resizable-editor:not(.is-resizing) { | |
| 8195 | + transition: width 0.2s ease-out; | |
| 8196 | + } | |
| 8197 | +} | |
| 8198 | + | |
| 7763 | 8199 | .editor-resizable-editor.is-resizable { |
| 7764 | 8200 | overflow: visible; |
| 7765 | 8201 | margin: 0 auto; |
| 7766 | 8202 | } |
| @@ -7803,8 +8239,22 @@ | ||
| 7803 | 8239 | .editor-resizable-editor__resize-handle:hover::after, .editor-resizable-editor__resize-handle:focus::after, .editor-resizable-editor__resize-handle:active::after { |
| 7804 | 8240 | background-color: var(--wp-admin-theme-color); |
| 7805 | 8241 | } |
| 7806 | 8242 | |
| 8243 | +.editor-save-error-details { | |
| 8244 | + display: inline; | |
| 8245 | +} | |
| 8246 | + | |
| 8247 | +.editor-save-error-details summary { | |
| 8248 | + display: inline; | |
| 8249 | + cursor: var(--wpds-cursor-control, pointer); | |
| 8250 | + margin-right: 0.35em; | |
| 8251 | +} | |
| 8252 | + | |
| 8253 | +.editor-save-error-details__message { | |
| 8254 | + white-space: break-spaces; | |
| 8255 | +} | |
| 8256 | + | |
| 7807 | 8257 | .editor-layout__toggle-publish-panel, |
| 7808 | 8258 | .editor-layout__toggle-sidebar-panel, |
| 7809 | 8259 | .editor-layout__toggle-entities-saved-states-panel { |
| 7810 | 8260 | z-index: 100000; |
| @@ -7835,12 +8285,12 @@ | ||
| 7835 | 8285 | bottom: 0; |
| 7836 | 8286 | width: 100%; |
| 7837 | 8287 | height: 72px; |
| 7838 | 8288 | background-color: #fff; |
| 7839 | - margin-right: -32px; | |
| 7840 | - margin-left: -32px; | |
| 7841 | - padding-right: 32px; | |
| 7842 | - padding-left: 32px; | |
| 8289 | + margin-right: -24px; | |
| 8290 | + margin-left: -24px; | |
| 8291 | + padding-right: 24px; | |
| 8292 | + padding-left: 24px; | |
| 7843 | 8293 | border-top: 1px solid #ddd; |
| 7844 | 8294 | z-index: 1; |
| 7845 | 8295 | } |
| 7846 | 8296 | .editor-start-page-options__modal .block-editor-block-patterns-list { |
| @@ -7845,23 +8295,49 @@ | ||
| 7845 | 8295 | } |
| 7846 | 8296 | .editor-start-page-options__modal .block-editor-block-patterns-list { |
| 7847 | 8297 | padding-bottom: 72px; |
| 7848 | 8298 | } |
| 8299 | +.editor-start-page-options__modal .editor-start-page-options__sidebar { | |
| 8300 | + display: none; | |
| 8301 | +} | |
| 8302 | +@media (min-width: 782px) { | |
| 8303 | + .editor-start-page-options__modal .editor-start-page-options__sidebar { | |
| 8304 | + display: flex; | |
| 8305 | + position: absolute; | |
| 8306 | + top: 72px; | |
| 8307 | + right: 0; | |
| 8308 | + bottom: 72px; | |
| 8309 | + width: 280px; | |
| 8310 | + padding: 24px; | |
| 8311 | + overflow-x: visible; | |
| 8312 | + overflow-y: auto; | |
| 8313 | + } | |
| 8314 | +} | |
| 7849 | 8315 | |
| 8316 | +.editor-start-page-options__modal-content { | |
| 8317 | + container-type: inline-size; | |
| 8318 | +} | |
| 8319 | + | |
| 8320 | +@media (min-width: 782px) { | |
| 8321 | + .editor-start-page-options__modal-content.has-pattern-categories { | |
| 8322 | + margin-right: 280px; | |
| 8323 | + } | |
| 8324 | +} | |
| 8325 | + | |
| 8326 | +.editor-start-page-options__no-results { | |
| 8327 | + padding: 32px; | |
| 8328 | + text-align: center; | |
| 8329 | +} | |
| 8330 | + | |
| 7850 | 8331 | .editor-start-page-options__modal-content .block-editor-block-patterns-list { |
| 7851 | 8332 | column-count: 2; |
| 7852 | 8333 | column-gap: 24px; |
| 7853 | 8334 | } |
| 7854 | -@media (min-width: 782px) { | |
| 8335 | +@container (min-width: 464px) { | |
| 7855 | 8336 | .editor-start-page-options__modal-content .block-editor-block-patterns-list { |
| 7856 | - column-count: 3; | |
| 8337 | + columns: 4 220px; | |
| 7857 | 8338 | } |
| 7858 | 8339 | } |
| 7859 | -@media (min-width: 1280px) { | |
| 7860 | - .editor-start-page-options__modal-content .block-editor-block-patterns-list { | |
| 7861 | - column-count: 4; | |
| 7862 | - } | |
| 7863 | -} | |
| 7864 | 8340 | .editor-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item { |
| 7865 | 8341 | break-inside: avoid-column; |
| 7866 | 8342 | margin-bottom: 24px; |
| 7867 | 8343 | } |
| @@ -7877,12 +8353,12 @@ | ||
| 7877 | 8353 | bottom: 0; |
| 7878 | 8354 | width: 100%; |
| 7879 | 8355 | height: 92px; |
| 7880 | 8356 | background-color: #fff; |
| 7881 | - margin-right: -32px; | |
| 7882 | - margin-left: -32px; | |
| 7883 | - padding-right: 32px; | |
| 7884 | - padding-left: 32px; | |
| 8357 | + margin-right: -24px; | |
| 8358 | + margin-left: -24px; | |
| 8359 | + padding-right: 24px; | |
| 8360 | + padding-left: 24px; | |
| 7885 | 8361 | border-top: 1px solid #ddd; |
| 7886 | 8362 | z-index: 1; |
| 7887 | 8363 | } |
| 7888 | 8364 | .editor-start-template-options__modal .block-editor-block-patterns-list { |
| @@ -7894,16 +8370,11 @@ | ||
| 7894 | 8370 | column-gap: 24px; |
| 7895 | 8371 | } |
| 7896 | 8372 | @media (min-width: 782px) { |
| 7897 | 8373 | .editor-start-template-options__modal-content .block-editor-block-patterns-list { |
| 7898 | - column-count: 3; | |
| 8374 | + columns: 4 220px; | |
| 7899 | 8375 | } |
| 7900 | 8376 | } |
| 7901 | -@media (min-width: 1280px) { | |
| 7902 | - .editor-start-template-options__modal-content .block-editor-block-patterns-list { | |
| 7903 | - column-count: 4; | |
| 7904 | - } | |
| 7905 | -} | |
| 7906 | 8377 | .editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item { |
| 7907 | 8378 | break-inside: avoid-column; |
| 7908 | 8379 | } |
| 7909 | 8380 | .editor-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title { |
| @@ -7956,13 +8427,8 @@ | ||
| 7956 | 8427 | } |
| 7957 | 8428 | .editor-style-book.is-button { |
| 7958 | 8429 | border-radius: 8px; |
| 7959 | 8430 | } |
| 7960 | -.editor-style-book { | |
| 7961 | - display: flex; | |
| 7962 | - flex-direction: column; | |
| 7963 | - align-items: stretch; | |
| 7964 | -} | |
| 7965 | 8431 | |
| 7966 | 8432 | .editor-style-book__iframe { |
| 7967 | 8433 | display: block; |
| 7968 | 8434 | height: 100%; |
| @@ -7975,8 +8441,14 @@ | ||
| 7975 | 8441 | outline: calc(2 * var(--wp-admin-border-width-focus)) solid var(--wp-admin-theme-color); |
| 7976 | 8442 | outline-offset: calc(-2 * var(--wp-admin-border-width-focus)); |
| 7977 | 8443 | } |
| 7978 | 8444 | |
| 8445 | +.editor-style-book__tabs { | |
| 8446 | + height: 100%; | |
| 8447 | + display: flex; | |
| 8448 | + flex-direction: column; | |
| 8449 | +} | |
| 8450 | + | |
| 7979 | 8451 | .editor-style-book__tablist-container { |
| 7980 | 8452 | flex: none; |
| 7981 | 8453 | display: flex; |
| 7982 | 8454 | width: 100%; |
| @@ -7990,9 +8462,9 @@ | ||
| 7990 | 8462 | } |
| 7991 | 8463 | |
| 7992 | 8464 | .editor-styles-canvas { |
| 7993 | 8465 | height: 100%; |
| 7994 | - padding: 16px; | |
| 8466 | + padding: 24px; | |
| 7995 | 8467 | background-color: var(--wp-editor-canvas-background); |
| 7996 | 8468 | } |
| 7997 | 8469 | .editor-styles-canvas iframe { |
| 7998 | 8470 | display: block; |
| @@ -7998,12 +8470,14 @@ | ||
| 7998 | 8470 | display: block; |
| 7999 | 8471 | width: 100%; |
| 8000 | 8472 | height: 100%; |
| 8001 | 8473 | } |
| 8474 | +.editor-styles-canvas.is-preview-mode { | |
| 8475 | + padding: 0; | |
| 8476 | +} | |
| 8002 | 8477 | |
| 8003 | 8478 | .editor-styles-canvas__section { |
| 8004 | 8479 | background: #fff; |
| 8005 | - border-radius: 8px; | |
| 8006 | 8480 | bottom: 0; |
| 8007 | 8481 | right: 0; |
| 8008 | 8482 | overflow: hidden; |
| 8009 | 8483 | position: absolute; |
| @@ -8089,9 +8563,9 @@ | ||
| 8089 | 8563 | .table-of-contents__title { |
| 8090 | 8564 | display: block; |
| 8091 | 8565 | margin-top: 20px; |
| 8092 | 8566 | font-size: 15px; |
| 8093 | - font-weight: 600; | |
| 8567 | + font-weight: var(--wpds-typography-font-weight-emphasis, 600); | |
| 8094 | 8568 | } |
| 8095 | 8569 | |
| 8096 | 8570 | .editor-text-editor { |
| 8097 | 8571 | box-sizing: border-box; |
| @@ -8113,9 +8587,9 @@ | ||
| 8113 | 8587 | max-width: none; |
| 8114 | 8588 | line-height: 1.4; |
| 8115 | 8589 | font-family: Menlo, Consolas, monaco, monospace; |
| 8116 | 8590 | font-size: 2.5em; |
| 8117 | - font-weight: normal; | |
| 8591 | + font-weight: 400; | |
| 8118 | 8592 | border: 1px solid #949494; |
| 8119 | 8593 | border-radius: 0; |
| 8120 | 8594 | padding: 16px; |
| 8121 | 8595 | } |
| @@ -8170,11 +8644,31 @@ | ||
| 8170 | 8644 | font-size: 13px; |
| 8171 | 8645 | color: #1e1e1e; |
| 8172 | 8646 | } |
| 8173 | 8647 | |
| 8648 | +.editor-upload-progress-snackbar__spinner, | |
| 8649 | +.editor-upload-progress-snackbar__check { | |
| 8650 | + display: inline-flex; | |
| 8651 | + align-items: center; | |
| 8652 | + justify-content: center; | |
| 8653 | + width: 24px; | |
| 8654 | + height: 24px; | |
| 8655 | +} | |
| 8656 | + | |
| 8657 | +.editor-upload-progress-snackbar__spinner .components-spinner { | |
| 8658 | + margin: 0; | |
| 8659 | +} | |
| 8660 | + | |
| 8661 | +.editor-upload-progress-snackbar__check svg { | |
| 8662 | + width: 24px; | |
| 8663 | + height: 24px; | |
| 8664 | + fill: currentColor; | |
| 8665 | +} | |
| 8666 | + | |
| 8174 | 8667 | .editor-visual-editor { |
| 8175 | 8668 | position: relative; |
| 8176 | 8669 | display: flex; |
| 8670 | + max-height: 100%; | |
| 8177 | 8671 | background-color: var(--wp-editor-canvas-background); |
| 8178 | 8672 | } |
| 8179 | 8673 | .editor-visual-editor iframe[name=editor-canvas] { |
| 8180 | 8674 | background-color: transparent; |
| @@ -8179,21 +8673,30 @@ | ||
| 8179 | 8673 | .editor-visual-editor iframe[name=editor-canvas] { |
| 8180 | 8674 | background-color: transparent; |
| 8181 | 8675 | } |
| 8182 | 8676 | .editor-visual-editor { |
| 8677 | + flex-direction: column; | |
| 8183 | 8678 | align-items: center; |
| 8679 | + justify-content: center; | |
| 8184 | 8680 | } |
| 8185 | -.editor-visual-editor.is-resizable { | |
| 8186 | - max-height: 100%; | |
| 8681 | +@media (prefers-reduced-motion: no-preference) { | |
| 8682 | + .editor-visual-editor { | |
| 8683 | + transition: padding 0.2s ease-out; | |
| 8684 | + } | |
| 8187 | 8685 | } |
| 8188 | -.editor-visual-editor.has-padding { | |
| 8189 | - padding: 24px 24px 0; | |
| 8686 | +.editor-visual-editor.has-vertical-padding { | |
| 8687 | + padding-top: 24px; | |
| 8688 | + padding-bottom: 24px; | |
| 8190 | 8689 | } |
| 8191 | -.editor-visual-editor.is-iframed { | |
| 8690 | +.editor-visual-editor.has-horizontal-padding { | |
| 8691 | + padding-right: 24px; | |
| 8692 | + padding-left: 24px; | |
| 8693 | +} | |
| 8694 | +.editor-visual-editor { | |
| 8192 | 8695 | overflow: hidden; |
| 8193 | 8696 | } |
| 8194 | 8697 | .editor-visual-editor .components-button { |
| 8195 | - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 8698 | + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 8196 | 8699 | font-size: 13px; |
| 8197 | 8700 | padding: 6px 12px; |
| 8198 | 8701 | } |
| 8199 | 8702 | .editor-visual-editor .components-button.is-tertiary, .editor-visual-editor .components-button.has-icon { |
| @@ -8222,5 +8725,29 @@ | ||
| 8222 | 8725 | |
| 8223 | 8726 | .editor-push-changes-to-global-styles-control .components-button { |
| 8224 | 8727 | justify-content: center; |
| 8225 | 8728 | width: 100%; |
| 8729 | +} | |
| 8730 | + | |
| 8731 | +.editor-push-changes-to-global-styles-modal p { | |
| 8732 | + margin-top: 0; | |
| 8733 | +} | |
| 8734 | + | |
| 8735 | +.editor-push-changes-to-global-styles-modal .dataviews-layout__container { | |
| 8736 | + overflow-x: hidden; | |
| 8737 | +} | |
| 8738 | +@media (max-width: 600px) { | |
| 8739 | + .editor-push-changes-to-global-styles-modal .dataviews-layout__container { | |
| 8740 | + overflow-x: auto; | |
| 8741 | + } | |
| 8742 | +} | |
| 8743 | +.editor-push-changes-to-global-styles-modal .components-modal__content { | |
| 8744 | + padding-bottom: 0; | |
| 8745 | +} | |
| 8746 | +.editor-push-changes-to-global-styles-modal .dataviews-footer { | |
| 8747 | + padding-bottom: 24px; | |
| 8748 | +} | |
| 8749 | + | |
| 8750 | +.editor-push-changes-to-global-styles-modal__value { | |
| 8751 | + color: #1e1e1e; | |
| 8752 | + overflow-wrap: anywhere; | |
| 8226 | 8753 | } |