| @@ -167,12 +167,13 @@ | ||
| 167 | 167 | min-height: 36px; |
| 168 | 168 | text-align: right; |
| 169 | 169 | width: 100%; |
| 170 | 170 | font-weight: var(--wpds-typography-font-weight-default, 400); |
| 171 | + position: relative; | |
| 171 | 172 | } |
| 172 | -.components-autocomplete__result.components-button:focus:not(:disabled) { | |
| 173 | - box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
| 174 | - outline: 2px solid transparent; | |
| 173 | +.components-autocomplete__result.components-button:focus:not(:disabled):not(:active) { | |
| 174 | + box-shadow: 0 0 0 calc(2 * var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) + 2px) var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 175 | + z-index: 1; | |
| 175 | 176 | } |
| 176 | 177 | |
| 177 | 178 | .components-badge { |
| 178 | 179 | box-sizing: border-box; |
| @@ -267,10 +268,9 @@ | ||
| 267 | 268 | .components-button:focus { |
| 268 | 269 | outline: none; |
| 269 | 270 | } |
| 270 | 271 | .components-button:focus:not(:active) { |
| 271 | - --focus-color: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 272 | - outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color); | |
| 272 | + 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))); | |
| 273 | 273 | outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); |
| 274 | 274 | } |
| 275 | 275 | .components-button { |
| 276 | 276 | display: inline-flex; |
| @@ -279,11 +279,9 @@ | ||
| 279 | 279 | font-size: 13px; |
| 280 | 280 | font-weight: var(--wpds-typography-font-weight-emphasis, 600); |
| 281 | 281 | margin: 0; |
| 282 | 282 | cursor: var(--wpds-cursor-control, pointer); |
| 283 | - -webkit-appearance: none; | |
| 284 | - -moz-appearance: none; | |
| 285 | - appearance: none; | |
| 283 | + appearance: none; | |
| 286 | 284 | background: none; |
| 287 | 285 | height: 36px; |
| 288 | 286 | align-items: center; |
| 289 | 287 | box-sizing: border-box; |
| @@ -534,13 +532,8 @@ | ||
| 534 | 532 | fill: currentColor; |
| 535 | 533 | outline: none; |
| 536 | 534 | flex-shrink: 0; |
| 537 | 535 | } |
| 538 | -@media (forced-colors: active) { | |
| 539 | - .components-button svg { | |
| 540 | - fill: CanvasText; | |
| 541 | - } | |
| 542 | -} | |
| 543 | 536 | |
| 544 | 537 | @keyframes components-button__busy-animation { |
| 545 | 538 | 0% { |
| 546 | 539 | background-position: right 200px top 0; |
| @@ -559,8 +552,9 @@ | ||
| 559 | 552 | } |
| 560 | 553 | |
| 561 | 554 | .components-checkbox-control__label { |
| 562 | 555 | line-height: var(--checkbox-input-size); |
| 556 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 563 | 557 | } |
| 564 | 558 | .components-checkbox-control:not(:has(:disabled)) .components-checkbox-control__label { |
| 565 | 559 | cursor: var(--wpds-cursor-control, pointer); |
| 566 | 560 | } |
| @@ -565,9 +559,9 @@ | ||
| 565 | 559 | cursor: var(--wpds-cursor-control, pointer); |
| 566 | 560 | } |
| 567 | 561 | |
| 568 | 562 | .components-checkbox-control__input[type=checkbox] { |
| 569 | - border: 1px solid #1e1e1e; | |
| 563 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 570 | 564 | margin-left: 12px; |
| 571 | 565 | transition: none; |
| 572 | 566 | border-radius: 2px; |
| 573 | 567 | font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; |
| @@ -575,17 +569,11 @@ | ||
| 575 | 569 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 576 | 570 | font-size: 16px; |
| 577 | 571 | /* Override core line-height. To be reviewed. */ |
| 578 | 572 | line-height: normal; |
| 579 | - box-shadow: 0 0 0 transparent; | |
| 580 | - border-radius: 2px; | |
| 581 | - border: 1px solid #949494; | |
| 573 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 574 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 582 | 575 | } |
| 583 | -@media not (prefers-reduced-motion) { | |
| 584 | - .components-checkbox-control__input[type=checkbox] { | |
| 585 | - transition: box-shadow 0.1s linear; | |
| 586 | - } | |
| 587 | -} | |
| 588 | 576 | @media (min-width: 600px) { |
| 589 | 577 | .components-checkbox-control__input[type=checkbox] { |
| 590 | 578 | font-size: 13px; |
| 591 | 579 | /* Override core line-height. To be reviewed. */ |
| @@ -591,18 +579,22 @@ | ||
| 591 | 579 | /* Override core line-height. To be reviewed. */ |
| 592 | 580 | line-height: normal; |
| 593 | 581 | } |
| 594 | 582 | } |
| 583 | +.components-checkbox-control__input[type=checkbox]:hover:not(:disabled, [aria-disabled=true]) { | |
| 584 | + border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e); | |
| 585 | +} | |
| 595 | 586 | .components-checkbox-control__input[type=checkbox]:focus { |
| 596 | - border-color: var(--wp-admin-theme-color); | |
| 597 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 598 | - outline: 2px solid transparent; | |
| 587 | + 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))); | |
| 588 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 589 | + border-color: var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 590 | + box-shadow: none; | |
| 599 | 591 | } |
| 600 | -.components-checkbox-control__input[type=checkbox]::-moz-placeholder { | |
| 592 | +.components-checkbox-control__input[type=checkbox]::placeholder { | |
| 601 | 593 | color: rgba(30, 30, 30, 0.62); |
| 602 | 594 | } |
| 603 | -.components-checkbox-control__input[type=checkbox]::placeholder { | |
| 604 | - color: rgba(30, 30, 30, 0.62); | |
| 595 | +.components-checkbox-control__input[type=checkbox]:hover:not(:disabled, [aria-disabled=true]) { | |
| 596 | + background: var(--wpds-color-background-interactive-neutral-active, #fff); | |
| 605 | 597 | } |
| 606 | 598 | .components-checkbox-control__input[type=checkbox]:focus { |
| 607 | 599 | box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color); |
| 608 | 600 | outline: 2px solid transparent; |
| @@ -630,9 +622,9 @@ | ||
| 630 | 622 | display: inline-block; |
| 631 | 623 | vertical-align: middle; |
| 632 | 624 | width: 16px; |
| 633 | 625 | /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- dashicons don't need a generic family keyword. */ |
| 634 | - font: normal 30px/1 dashicons; | |
| 626 | + font: 400 30px/1 dashicons; | |
| 635 | 627 | speak: none; |
| 636 | 628 | -webkit-font-smoothing: antialiased; |
| 637 | 629 | -moz-osx-font-smoothing: grayscale; |
| 638 | 630 | } |
| @@ -642,13 +634,17 @@ | ||
| 642 | 634 | font-size: 21px; |
| 643 | 635 | } |
| 644 | 636 | } |
| 645 | 637 | .components-checkbox-control__input[type=checkbox][aria-disabled=true], .components-checkbox-control__input[type=checkbox]:disabled { |
| 646 | - background: #f0f0f0; | |
| 647 | - border-color: #ddd; | |
| 638 | + background: var(--wpds-color-background-interactive-neutral-disabled, #fff); | |
| 639 | + border-color: var(--wpds-color-stroke-interactive-neutral-disabled, #dbdbdb); | |
| 640 | + color: var(--wpds-color-foreground-interactive-neutral-disabled, #8d8d8d); | |
| 648 | 641 | cursor: default; |
| 649 | 642 | opacity: 1; |
| 650 | 643 | } |
| 644 | +.components-checkbox-control__input[type=checkbox][aria-disabled=true]:checked::before, .components-checkbox-control__input[type=checkbox][aria-disabled=true][aria-checked=mixed]::before, .components-checkbox-control__input[type=checkbox]:disabled:checked::before, .components-checkbox-control__input[type=checkbox]:disabled[aria-checked=mixed]::before { | |
| 645 | + color: var(--wpds-color-foreground-interactive-neutral-disabled, #8d8d8d); | |
| 646 | +} | |
| 651 | 647 | .components-checkbox-control__input[type=checkbox] { |
| 652 | 648 | background: #fff; |
| 653 | 649 | color: #1e1e1e; |
| 654 | 650 | clear: none; |
| @@ -660,11 +656,9 @@ | ||
| 660 | 656 | text-align: center; |
| 661 | 657 | vertical-align: top; |
| 662 | 658 | width: var(--checkbox-input-size); |
| 663 | 659 | height: var(--checkbox-input-size); |
| 664 | - -webkit-appearance: none; | |
| 665 | - -moz-appearance: none; | |
| 666 | - appearance: none; | |
| 660 | + appearance: none; | |
| 667 | 661 | } |
| 668 | 662 | @media not (prefers-reduced-motion) { |
| 669 | 663 | .components-checkbox-control__input[type=checkbox] { |
| 670 | 664 | transition: 0.1s border-color ease-in-out; |
| @@ -698,32 +692,24 @@ | ||
| 698 | 692 | } |
| 699 | 693 | |
| 700 | 694 | svg.components-checkbox-control__checked, |
| 701 | 695 | svg.components-checkbox-control__indeterminate { |
| 702 | - --checkmark-size: var(--checkbox-input-size); | |
| 703 | - fill: #fff; | |
| 696 | + color: #fff; | |
| 704 | 697 | cursor: var(--wpds-cursor-control, pointer); |
| 705 | 698 | position: absolute; |
| 706 | 699 | right: 50%; |
| 707 | 700 | top: 50%; |
| 708 | 701 | transform: translate(50%, -50%); |
| 709 | - width: var(--checkmark-size); | |
| 710 | - height: var(--checkmark-size); | |
| 702 | + width: var(--checkbox-input-size); | |
| 703 | + height: var(--checkbox-input-size); | |
| 711 | 704 | -webkit-user-select: none; |
| 712 | - -moz-user-select: none; | |
| 713 | 705 | user-select: none; |
| 714 | 706 | pointer-events: none; |
| 715 | 707 | } |
| 716 | -@media (min-width: 600px) { | |
| 717 | - svg.components-checkbox-control__checked, | |
| 718 | - svg.components-checkbox-control__indeterminate { | |
| 719 | - --checkmark-size: calc(var(--checkbox-input-size) + 4px); | |
| 720 | - } | |
| 721 | -} | |
| 722 | 708 | |
| 723 | 709 | .components-checkbox-control:has(:disabled) svg.components-checkbox-control__checked, |
| 724 | 710 | .components-checkbox-control:has(:disabled) svg.components-checkbox-control__indeterminate { |
| 725 | - fill: var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d)); | |
| 711 | + color: var(--wpds-color-foreground-interactive-neutral-disabled, #8d8d8d); | |
| 726 | 712 | } |
| 727 | 713 | |
| 728 | 714 | .components-checkbox-control__help { |
| 729 | 715 | display: inline-block; |
| @@ -761,14 +747,14 @@ | ||
| 761 | 747 | transform: scale(1); |
| 762 | 748 | } |
| 763 | 749 | @media not (prefers-reduced-motion) { |
| 764 | 750 | .components-circular-option-picker__option-wrapper { |
| 765 | - transition: 100ms transform ease; | |
| 751 | + transition: 100ms transform ease-out; | |
| 766 | 752 | will-change: transform; |
| 767 | 753 | } |
| 768 | 754 | } |
| 769 | 755 | .components-circular-option-picker__option-wrapper:hover { |
| 770 | - transform: scale(1.2); | |
| 756 | + transform: scale(1.1); | |
| 771 | 757 | } |
| 772 | 758 | .components-circular-option-picker__option-wrapper > div { |
| 773 | 759 | height: 100%; |
| 774 | 760 | width: 100%; |
| @@ -776,12 +762,9 @@ | ||
| 776 | 762 | |
| 777 | 763 | .components-circular-option-picker__option-wrapper::before { |
| 778 | 764 | content: ""; |
| 779 | 765 | position: absolute; |
| 780 | - top: 1px; | |
| 781 | - right: 1px; | |
| 782 | - bottom: 1px; | |
| 783 | - left: 1px; | |
| 766 | + inset: 1px; | |
| 784 | 767 | border-radius: 50%; |
| 785 | 768 | z-index: -1; |
| 786 | 769 | background: url('data:image/svg+xml,%3Csvg width="28" height="28" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M6 8V6H4v2h2zM8 8V6h2v2H8zM10 16H8v-2h2v2zM12 16v-2h2v2h-2zM12 18v-2h-2v2H8v2h2v-2h2zM14 18v2h-2v-2h2zM16 18h-2v-2h2v2z" fill="%23555D65"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z" fill="%23555D65"/%3E%3Cpath d="M18 18v2h-2v-2h2z" fill="%23555D65"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z" fill="%23555D65"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z" fill="%23555D65"/%3E%3C/svg%3E'); |
| 787 | 770 | } |
| @@ -803,13 +786,9 @@ | ||
| 803 | 786 | } |
| 804 | 787 | .components-circular-option-picker__option { |
| 805 | 788 | cursor: var(--wpds-cursor-control, pointer); |
| 806 | 789 | } |
| 807 | -.components-circular-option-picker__option:hover { | |
| 808 | - box-shadow: inset 0 0 0 14px !important; | |
| 809 | -} | |
| 810 | 790 | .components-circular-option-picker__option[aria-pressed=true], .components-circular-option-picker__option[aria-selected=true] { |
| 811 | - box-shadow: inset 0 0 0 4px; | |
| 812 | 791 | position: relative; |
| 813 | 792 | z-index: 1; |
| 814 | 793 | overflow: visible; |
| 815 | 794 | } |
| @@ -823,34 +802,13 @@ | ||
| 823 | 802 | } |
| 824 | 803 | .components-circular-option-picker__option::after { |
| 825 | 804 | content: ""; |
| 826 | 805 | position: absolute; |
| 827 | - top: -1px; | |
| 828 | - right: -1px; | |
| 829 | - bottom: -1px; | |
| 830 | - left: -1px; | |
| 806 | + inset: -1px; | |
| 807 | + border: 1px solid transparent; | |
| 831 | 808 | border-radius: 50%; |
| 832 | 809 | box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); |
| 833 | - border: 1px solid transparent; | |
| 834 | - box-sizing: inherit; | |
| 835 | 810 | } |
| 836 | -.components-circular-option-picker__option:focus::after { | |
| 837 | - content: ""; | |
| 838 | - border-radius: 50%; | |
| 839 | - box-shadow: inset 0 0 0 2px #fff; | |
| 840 | - position: absolute; | |
| 841 | - top: 50%; | |
| 842 | - right: 50%; | |
| 843 | - transform: translate(50%, -50%); | |
| 844 | - border: 2px solid #757575; | |
| 845 | - width: calc(100% + 4px); | |
| 846 | - height: calc(100% + 4px); | |
| 847 | -} | |
| 848 | -.components-circular-option-picker__option.components-button:focus { | |
| 849 | - background-color: transparent; | |
| 850 | - box-shadow: inset 0 0 0 14px; | |
| 851 | - outline: none; | |
| 852 | -} | |
| 853 | 811 | |
| 854 | 812 | .components-circular-option-picker__button-action .components-circular-option-picker__option { |
| 855 | 813 | color: #fff; |
| 856 | 814 | background: #fff; |
| @@ -862,17 +820,14 @@ | ||
| 862 | 820 | .components-circular-option-picker__dropdown-link-action .components-button { |
| 863 | 821 | line-height: 22px; |
| 864 | 822 | } |
| 865 | 823 | |
| 866 | -.components-palette-edit__popover-gradient-picker { | |
| 824 | +.components-palette-edit__popover-gradient-picker, | |
| 825 | +.components-palette-edit__popover-duotone-picker { | |
| 867 | 826 | width: 260px; |
| 868 | 827 | padding: 8px; |
| 869 | 828 | } |
| 870 | 829 | |
| 871 | -.components-dropdown-menu__menu .components-palette-edit__menu-button { | |
| 872 | - width: 100%; | |
| 873 | -} | |
| 874 | - | |
| 875 | 830 | .component-color-indicator { |
| 876 | 831 | width: 20px; |
| 877 | 832 | height: 20px; |
| 878 | 833 | box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); |
| @@ -915,17 +870,11 @@ | ||
| 915 | 870 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 916 | 871 | font-size: 16px; |
| 917 | 872 | /* Override core line-height. To be reviewed. */ |
| 918 | 873 | line-height: normal; |
| 919 | - box-shadow: 0 0 0 transparent; | |
| 920 | - border-radius: 2px; | |
| 921 | - border: 1px solid #949494; | |
| 874 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 875 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 922 | 876 | } |
| 923 | -@media not (prefers-reduced-motion) { | |
| 924 | - .components-combobox-control__suggestions-container { | |
| 925 | - transition: box-shadow 0.1s linear; | |
| 926 | - } | |
| 927 | -} | |
| 928 | 877 | @media (min-width: 600px) { |
| 929 | 878 | .components-combobox-control__suggestions-container { |
| 930 | 879 | font-size: 13px; |
| 931 | 880 | /* Override core line-height. To be reviewed. */ |
| @@ -931,16 +880,17 @@ | ||
| 931 | 880 | /* Override core line-height. To be reviewed. */ |
| 932 | 881 | line-height: normal; |
| 933 | 882 | } |
| 934 | 883 | } |
| 884 | +.components-combobox-control__suggestions-container:hover:not(:disabled, [aria-disabled=true]) { | |
| 885 | + border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e); | |
| 886 | +} | |
| 935 | 887 | .components-combobox-control__suggestions-container:focus { |
| 936 | - border-color: var(--wp-admin-theme-color); | |
| 937 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 938 | - outline: 2px solid transparent; | |
| 888 | + 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))); | |
| 889 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 890 | + border-color: var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 891 | + box-shadow: none; | |
| 939 | 892 | } |
| 940 | -.components-combobox-control__suggestions-container::-moz-placeholder { | |
| 941 | - color: rgba(30, 30, 30, 0.62); | |
| 942 | -} | |
| 943 | 893 | .components-combobox-control__suggestions-container::placeholder { |
| 944 | 894 | color: rgba(30, 30, 30, 0.62); |
| 945 | 895 | } |
| 946 | 896 | .components-combobox-control__suggestions-container { |
| @@ -950,11 +900,10 @@ | ||
| 950 | 900 | width: 100%; |
| 951 | 901 | padding: 0; |
| 952 | 902 | } |
| 953 | 903 | .components-combobox-control__suggestions-container:focus-within { |
| 954 | - border-color: var(--wp-admin-theme-color); | |
| 955 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 956 | - outline: 2px solid transparent; | |
| 904 | + 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))); | |
| 905 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 957 | 906 | } |
| 958 | 907 | .components-combobox-control__suggestions-container .components-spinner { |
| 959 | 908 | margin: 0; |
| 960 | 909 | } |
| @@ -1063,14 +1012,19 @@ | ||
| 1063 | 1012 | width: inherit; |
| 1064 | 1013 | border-radius: 50%; |
| 1065 | 1014 | padding: 0; |
| 1066 | 1015 | box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) #fff, 0 0 2px 0 rgba(0, 0, 0, 0.25); |
| 1067 | - outline: 2px solid transparent; | |
| 1068 | 1016 | } |
| 1069 | -.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus, .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active { | |
| 1017 | +.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active { | |
| 1070 | 1018 | box-shadow: inset 0 0 0 calc(var(--wp-admin-border-width-focus) * 2) #fff, 0 0 2px 0 rgba(0, 0, 0, 0.25); |
| 1071 | - outline: 1.5px solid transparent; | |
| 1072 | 1019 | } |
| 1020 | +.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus:not(:active) { | |
| 1021 | + outline-offset: 1px; | |
| 1022 | + box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) #fff, 0 0 2px 0 rgba(0, 0, 0, 0.25), 0 0 0 calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) + 2px) var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 1023 | +} | |
| 1024 | +.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus:not(:active).is-active { | |
| 1025 | + box-shadow: inset 0 0 0 calc(var(--wp-admin-border-width-focus) * 2) #fff, 0 0 2px 0 rgba(0, 0, 0, 0.25), 0 0 0 calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) + 2px) var(--wpds-color-background-surface-neutral-strong, #fff); | |
| 1026 | +} | |
| 1073 | 1027 | |
| 1074 | 1028 | .components-custom-gradient-picker__remove-control-point-wrapper { |
| 1075 | 1029 | padding-bottom: 8px; |
| 1076 | 1030 | } |
| @@ -1297,10 +1251,9 @@ | ||
| 1297 | 1251 | box-shadow: none; |
| 1298 | 1252 | border-radius: 0; |
| 1299 | 1253 | } |
| 1300 | 1254 | .components-external-link:focus:not(:active) { |
| 1301 | - --focus-color: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 1302 | - outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color); | |
| 1255 | + 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))); | |
| 1303 | 1256 | outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); |
| 1304 | 1257 | } |
| 1305 | 1258 | |
| 1306 | 1259 | .components-external-link__contents { |
| @@ -1393,39 +1346,39 @@ | ||
| 1393 | 1346 | background-color: #fff; |
| 1394 | 1347 | border-width: 0; |
| 1395 | 1348 | transform: translateX(-16px); |
| 1396 | 1349 | } |
| 1397 | -.components-form-toggle.is-disabled .components-form-toggle__track, .components-disabled .components-form-toggle .components-form-toggle__track { | |
| 1350 | +.components-form-toggle.is-disabled .components-form-toggle__track, [inert] .components-form-toggle .components-form-toggle__track { | |
| 1398 | 1351 | background-color: var(--wp-components-color-gray-100, var(--wpds-color-background-surface-neutral, #fcfcfc)); |
| 1399 | 1352 | border-color: var(--wpds-color-stroke-interactive-neutral-disabled, #dbdbdb); |
| 1400 | 1353 | } |
| 1401 | 1354 | @media (forced-colors: active) { |
| 1402 | - .components-form-toggle.is-disabled .components-form-toggle__track, .components-disabled .components-form-toggle .components-form-toggle__track { | |
| 1355 | + .components-form-toggle.is-disabled .components-form-toggle__track, [inert] .components-form-toggle .components-form-toggle__track { | |
| 1403 | 1356 | border-color: GrayText; |
| 1404 | 1357 | } |
| 1405 | 1358 | } |
| 1406 | -.components-form-toggle.is-disabled .components-form-toggle__thumb, .components-disabled .components-form-toggle .components-form-toggle__thumb { | |
| 1359 | +.components-form-toggle.is-disabled .components-form-toggle__thumb, [inert] .components-form-toggle .components-form-toggle__thumb { | |
| 1407 | 1360 | background-color: var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d)); |
| 1408 | 1361 | box-shadow: none; |
| 1409 | 1362 | } |
| 1410 | 1363 | @media (forced-colors: active) { |
| 1411 | - .components-form-toggle.is-disabled .components-form-toggle__thumb, .components-disabled .components-form-toggle .components-form-toggle__thumb { | |
| 1364 | + .components-form-toggle.is-disabled .components-form-toggle__thumb, [inert] .components-form-toggle .components-form-toggle__thumb { | |
| 1412 | 1365 | border-color: GrayText; |
| 1413 | 1366 | } |
| 1414 | 1367 | } |
| 1415 | -.components-form-toggle.is-disabled.is-checked .components-form-toggle__track, .components-disabled .components-form-toggle.is-checked .components-form-toggle__track { | |
| 1368 | +.components-form-toggle.is-disabled.is-checked .components-form-toggle__track, [inert] .components-form-toggle.is-checked .components-form-toggle__track { | |
| 1416 | 1369 | background-color: var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d)); |
| 1417 | 1370 | border-color: var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d)); |
| 1418 | 1371 | } |
| 1419 | 1372 | @media (forced-colors: active) { |
| 1420 | - .components-form-toggle.is-disabled.is-checked .components-form-toggle__track, .components-disabled .components-form-toggle.is-checked .components-form-toggle__track { | |
| 1373 | + .components-form-toggle.is-disabled.is-checked .components-form-toggle__track, [inert] .components-form-toggle.is-checked .components-form-toggle__track { | |
| 1421 | 1374 | border-color: GrayText; |
| 1422 | 1375 | } |
| 1423 | - .components-form-toggle.is-disabled.is-checked .components-form-toggle__track::after, .components-disabled .components-form-toggle.is-checked .components-form-toggle__track::after { | |
| 1376 | + .components-form-toggle.is-disabled.is-checked .components-form-toggle__track::after, [inert] .components-form-toggle.is-checked .components-form-toggle__track::after { | |
| 1424 | 1377 | border-top-color: GrayText; |
| 1425 | 1378 | } |
| 1426 | 1379 | } |
| 1427 | -.components-form-toggle.is-disabled.is-checked .components-form-toggle__thumb, .components-disabled .components-form-toggle.is-checked .components-form-toggle__thumb { | |
| 1380 | +.components-form-toggle.is-disabled.is-checked .components-form-toggle__thumb, [inert] .components-form-toggle.is-checked .components-form-toggle__thumb { | |
| 1428 | 1381 | background-color: #fff; |
| 1429 | 1382 | } |
| 1430 | 1383 | |
| 1431 | 1384 | .components-form-toggle input.components-form-toggle__input[type=checkbox] { |
| @@ -1456,17 +1409,11 @@ | ||
| 1456 | 1409 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 1457 | 1410 | font-size: 16px; |
| 1458 | 1411 | /* Override core line-height. To be reviewed. */ |
| 1459 | 1412 | line-height: normal; |
| 1460 | - box-shadow: 0 0 0 transparent; | |
| 1461 | - border-radius: 2px; | |
| 1462 | - border: 1px solid #949494; | |
| 1413 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 1414 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 1463 | 1415 | } |
| 1464 | -@media not (prefers-reduced-motion) { | |
| 1465 | - .components-form-token-field__input-container { | |
| 1466 | - transition: box-shadow 0.1s linear; | |
| 1467 | - } | |
| 1468 | -} | |
| 1469 | 1416 | @media (min-width: 600px) { |
| 1470 | 1417 | .components-form-token-field__input-container { |
| 1471 | 1418 | font-size: 13px; |
| 1472 | 1419 | /* Override core line-height. To be reviewed. */ |
| @@ -1472,16 +1419,17 @@ | ||
| 1472 | 1419 | /* Override core line-height. To be reviewed. */ |
| 1473 | 1420 | line-height: normal; |
| 1474 | 1421 | } |
| 1475 | 1422 | } |
| 1423 | +.components-form-token-field__input-container:hover:not(:disabled, [aria-disabled=true]) { | |
| 1424 | + border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e); | |
| 1425 | +} | |
| 1476 | 1426 | .components-form-token-field__input-container:focus { |
| 1477 | - border-color: var(--wp-admin-theme-color); | |
| 1478 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 1479 | - outline: 2px solid transparent; | |
| 1427 | + 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))); | |
| 1428 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 1429 | + border-color: var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 1430 | + box-shadow: none; | |
| 1480 | 1431 | } |
| 1481 | -.components-form-token-field__input-container::-moz-placeholder { | |
| 1482 | - color: rgba(30, 30, 30, 0.62); | |
| 1483 | -} | |
| 1484 | 1432 | .components-form-token-field__input-container::placeholder { |
| 1485 | 1433 | color: rgba(30, 30, 30, 0.62); |
| 1486 | 1434 | } |
| 1487 | 1435 | .components-form-token-field__input-container { |
| @@ -1493,12 +1441,14 @@ | ||
| 1493 | 1441 | background: var(--wp-components-color-gray-100, var(--wpds-color-background-surface-neutral, #fcfcfc)); |
| 1494 | 1442 | border-color: var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d)); |
| 1495 | 1443 | cursor: default; |
| 1496 | 1444 | } |
| 1445 | +.components-form-token-field__input-container.is-disabled:hover { | |
| 1446 | + border-color: var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d)); | |
| 1447 | +} | |
| 1497 | 1448 | .components-form-token-field__input-container.is-active { |
| 1498 | - border-color: var(--wp-admin-theme-color); | |
| 1499 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 1500 | - outline: 2px solid transparent; | |
| 1449 | + 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))); | |
| 1450 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 1501 | 1451 | } |
| 1502 | 1452 | .components-form-token-field__input-container input[type=text].components-form-token-field__input { |
| 1503 | 1453 | display: inline-block; |
| 1504 | 1454 | flex: 1; |
| @@ -1789,8 +1739,13 @@ | ||
| 1789 | 1739 | outline-offset: calc(2 * -1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); |
| 1790 | 1740 | box-shadow: inset 0 0 0 calc(2 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1) + 0.5px) rgba(255, 255, 255, 0.7); |
| 1791 | 1741 | } |
| 1792 | 1742 | |
| 1743 | +.components-input-control__container:focus-within:not(:has(:is(.components-input-control__prefix, .components-input-control__suffix):focus-within)) .components-input-control__backdrop { | |
| 1744 | + 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))); | |
| 1745 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 1746 | +} | |
| 1747 | + | |
| 1793 | 1748 | .components-menu-group + .components-menu-group { |
| 1794 | 1749 | padding-top: 8px; |
| 1795 | 1750 | border-top: 1px solid #1e1e1e; |
| 1796 | 1751 | } |
| @@ -2155,9 +2110,9 @@ | ||
| 2155 | 2110 | } |
| 2156 | 2111 | |
| 2157 | 2112 | .components-notice { |
| 2158 | 2113 | --wp-components-notice-background-color: var(--wpds-color-background-surface-info-weak, #f3f9ff); |
| 2159 | - --wp-components-notice-border-color: var(--wpds-color-stroke-surface-info, #a9c6e7); | |
| 2114 | + --wp-components-notice-border-color: var(--wpds-color-stroke-surface-info, #adc6e2); | |
| 2160 | 2115 | --wp-components-notice-text-color: var(--wpds-color-foreground-content-info, #001b4f); |
| 2161 | 2116 | box-sizing: border-box; |
| 2162 | 2117 | display: grid; |
| 2163 | 2118 | grid-template-columns: 1fr auto; |
| @@ -2172,19 +2127,19 @@ | ||
| 2172 | 2127 | line-height: var(--wpds-typography-line-height-sm, 20px); |
| 2173 | 2128 | } |
| 2174 | 2129 | .components-notice.is-success { |
| 2175 | 2130 | --wp-components-notice-background-color: var(--wpds-color-background-surface-success-weak, #ebffed); |
| 2176 | - --wp-components-notice-border-color: var(--wpds-color-stroke-surface-success, #94d29e); | |
| 2131 | + --wp-components-notice-border-color: var(--wpds-color-stroke-surface-success, #92d39d); | |
| 2177 | 2132 | --wp-components-notice-text-color: var(--wpds-color-foreground-content-success, #002900); |
| 2178 | 2133 | } |
| 2179 | 2134 | .components-notice.is-warning { |
| 2180 | 2135 | --wp-components-notice-background-color: var(--wpds-color-background-surface-warning-weak, #fff7e1); |
| 2181 | - --wp-components-notice-border-color: var(--wpds-color-stroke-surface-warning, #e1bc7c); | |
| 2136 | + --wp-components-notice-border-color: var(--wpds-color-stroke-surface-warning, #e1bd7c); | |
| 2182 | 2137 | --wp-components-notice-text-color: var(--wpds-color-foreground-content-warning, #2e1900); |
| 2183 | 2138 | } |
| 2184 | 2139 | .components-notice.is-error { |
| 2185 | 2140 | --wp-components-notice-background-color: var(--wpds-color-background-surface-error-weak, #fff6f5); |
| 2186 | - --wp-components-notice-border-color: var(--wpds-color-stroke-surface-error, #dab1aa); | |
| 2141 | + --wp-components-notice-border-color: var(--wpds-color-stroke-surface-error, #e0afa7); | |
| 2187 | 2142 | --wp-components-notice-text-color: var(--wpds-color-foreground-content-error, #470000); |
| 2188 | 2143 | } |
| 2189 | 2144 | |
| 2190 | 2145 | .components-notice__content { |
| @@ -2210,13 +2165,9 @@ | ||
| 2210 | 2165 | margin-inline-start: var(--wpds-dimension-gap-xs, 4px); |
| 2211 | 2166 | } |
| 2212 | 2167 | .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover, .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active, .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus { |
| 2213 | 2168 | color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e); |
| 2214 | - background-color: transparent; | |
| 2215 | 2169 | } |
| 2216 | -.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover { | |
| 2217 | - box-shadow: none; | |
| 2218 | -} | |
| 2219 | 2170 | |
| 2220 | 2171 | .components-notice-list { |
| 2221 | 2172 | display: flex; |
| 2222 | 2173 | flex-direction: column; |
| @@ -2406,9 +2357,9 @@ | ||
| 2406 | 2357 | font-size: 13px; |
| 2407 | 2358 | letter-spacing: initial; |
| 2408 | 2359 | line-height: initial; |
| 2409 | 2360 | text-transform: none; |
| 2410 | - font-weight: normal; | |
| 2361 | + font-weight: 400; | |
| 2411 | 2362 | } |
| 2412 | 2363 | |
| 2413 | 2364 | .components-placeholder__label { |
| 2414 | 2365 | font-weight: var(--wpds-typography-font-weight-emphasis, 600); |
| @@ -2420,15 +2371,8 @@ | ||
| 2420 | 2371 | .components-placeholder__label .block-editor-block-icon { |
| 2421 | 2372 | margin-left: 4px; |
| 2422 | 2373 | fill: currentColor; |
| 2423 | 2374 | } |
| 2424 | -@media (forced-colors: active) { | |
| 2425 | - .components-placeholder__label > svg, | |
| 2426 | - .components-placeholder__label .dashicon, | |
| 2427 | - .components-placeholder__label .block-editor-block-icon { | |
| 2428 | - fill: CanvasText; | |
| 2429 | - } | |
| 2430 | -} | |
| 2431 | 2375 | .components-placeholder__label:empty { |
| 2432 | 2376 | display: none; |
| 2433 | 2377 | } |
| 2434 | 2378 | |
| @@ -2458,17 +2402,11 @@ | ||
| 2458 | 2402 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 2459 | 2403 | font-size: 16px; |
| 2460 | 2404 | /* Override core line-height. To be reviewed. */ |
| 2461 | 2405 | line-height: normal; |
| 2462 | - box-shadow: 0 0 0 transparent; | |
| 2463 | - border-radius: 2px; | |
| 2464 | - border: 1px solid #949494; | |
| 2406 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 2407 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 2465 | 2408 | } |
| 2466 | -@media not (prefers-reduced-motion) { | |
| 2467 | - .components-placeholder__input[type=url] { | |
| 2468 | - transition: box-shadow 0.1s linear; | |
| 2469 | - } | |
| 2470 | -} | |
| 2471 | 2409 | @media (min-width: 600px) { |
| 2472 | 2410 | .components-placeholder__input[type=url] { |
| 2473 | 2411 | font-size: 13px; |
| 2474 | 2412 | /* Override core line-height. To be reviewed. */ |
| @@ -2474,16 +2412,17 @@ | ||
| 2474 | 2412 | /* Override core line-height. To be reviewed. */ |
| 2475 | 2413 | line-height: normal; |
| 2476 | 2414 | } |
| 2477 | 2415 | } |
| 2416 | +.components-placeholder__input[type=url]:hover:not(:disabled, [aria-disabled=true]) { | |
| 2417 | + border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e); | |
| 2418 | +} | |
| 2478 | 2419 | .components-placeholder__input[type=url]:focus { |
| 2479 | - border-color: var(--wp-admin-theme-color); | |
| 2480 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 2481 | - outline: 2px solid transparent; | |
| 2420 | + 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))); | |
| 2421 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 2422 | + border-color: var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 2423 | + box-shadow: none; | |
| 2482 | 2424 | } |
| 2483 | -.components-placeholder__input[type=url]::-moz-placeholder { | |
| 2484 | - color: rgba(30, 30, 30, 0.62); | |
| 2485 | -} | |
| 2486 | 2425 | .components-placeholder__input[type=url]::placeholder { |
| 2487 | 2426 | color: rgba(30, 30, 30, 0.62); |
| 2488 | 2427 | } |
| 2489 | 2428 | .components-placeholder__input[type=url] { |
| @@ -2619,9 +2558,8 @@ | ||
| 2619 | 2558 | background: #fff; |
| 2620 | 2559 | box-shadow: 0 0 0 1px #ccc, 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); |
| 2621 | 2560 | border-radius: 4px; |
| 2622 | 2561 | box-sizing: border-box; |
| 2623 | - width: -moz-min-content; | |
| 2624 | 2562 | width: min-content; |
| 2625 | 2563 | } |
| 2626 | 2564 | .is-alternate .components-popover__content { |
| 2627 | 2565 | box-shadow: 0 0 0 1px #1e1e1e; |
| @@ -2726,10 +2664,9 @@ | ||
| 2726 | 2664 | .components-radio-control__option { |
| 2727 | 2665 | display: grid; |
| 2728 | 2666 | grid-template-columns: auto 1fr; |
| 2729 | 2667 | grid-template-rows: auto minmax(0, max-content); |
| 2730 | - -moz-column-gap: 8px; | |
| 2731 | - column-gap: 8px; | |
| 2668 | + column-gap: 8px; | |
| 2732 | 2669 | align-items: center; |
| 2733 | 2670 | } |
| 2734 | 2671 | |
| 2735 | 2672 | .components-radio-control__input[type=radio] { |
| @@ -2787,11 +2724,9 @@ | ||
| 2787 | 2724 | .components-radio-control__input[type=radio] { |
| 2788 | 2725 | display: inline-flex; |
| 2789 | 2726 | margin: 0; |
| 2790 | 2727 | padding: 0; |
| 2791 | - -webkit-appearance: none; | |
| 2792 | - -moz-appearance: none; | |
| 2793 | - appearance: none; | |
| 2728 | + appearance: none; | |
| 2794 | 2729 | } |
| 2795 | 2730 | .components-radio-control__input[type=radio]:not(:disabled) { |
| 2796 | 2731 | cursor: var(--wpds-cursor-control, pointer); |
| 2797 | 2732 | } |
| @@ -2820,10 +2755,11 @@ | ||
| 2820 | 2755 | |
| 2821 | 2756 | .components-radio-control__label { |
| 2822 | 2757 | grid-column: 2; |
| 2823 | 2758 | grid-row: 1; |
| 2759 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 2824 | 2760 | } |
| 2825 | -.components-radio-control:not(:disabled) .components-radio-control__label { | |
| 2761 | +.components-radio-control__input:not(:disabled) + .components-radio-control__label { | |
| 2826 | 2762 | cursor: var(--wpds-cursor-control, pointer); |
| 2827 | 2763 | } |
| 2828 | 2764 | .components-radio-control__label { |
| 2829 | 2765 | line-height: 24px; |
| @@ -3050,9 +2986,8 @@ | ||
| 3050 | 2986 | pointer-events: auto; |
| 3051 | 2987 | } |
| 3052 | 2988 | @media (min-width: 600px) { |
| 3053 | 2989 | .components-snackbar { |
| 3054 | - width: -moz-fit-content; | |
| 3055 | 2990 | width: fit-content; |
| 3056 | 2991 | } |
| 3057 | 2992 | } |
| 3058 | 2993 | .components-snackbar:focus { |
| @@ -3079,14 +3014,10 @@ | ||
| 3079 | 3014 | .components-snackbar__action.components-external-link { |
| 3080 | 3015 | margin-right: 32px; |
| 3081 | 3016 | color: #fff; |
| 3082 | 3017 | flex-shrink: 0; |
| 3018 | + --focus-color: #fff; | |
| 3083 | 3019 | } |
| 3084 | -.components-snackbar__action.components-button:focus, | |
| 3085 | -.components-snackbar__action.components-external-link:focus { | |
| 3086 | - box-shadow: none; | |
| 3087 | - outline: 1px dotted #fff; | |
| 3088 | -} | |
| 3089 | 3020 | .components-snackbar__action.components-button:hover, |
| 3090 | 3021 | .components-snackbar__action.components-external-link:hover { |
| 3091 | 3022 | text-decoration: none; |
| 3092 | 3023 | color: currentColor; |
| @@ -3126,9 +3057,8 @@ | ||
| 3126 | 3057 | border-radius: 0; |
| 3127 | 3058 | height: 48px !important; |
| 3128 | 3059 | background: transparent; |
| 3129 | 3060 | border: none; |
| 3130 | - box-shadow: none; | |
| 3131 | 3061 | cursor: var(--wpds-cursor-control, pointer); |
| 3132 | 3062 | padding: 3px var(--wpds-dimension-padding-lg, 16px); |
| 3133 | 3063 | margin-right: 0; |
| 3134 | 3064 | font-weight: var(--wpds-typography-font-weight-default, 400); |
| @@ -3141,9 +3071,8 @@ | ||
| 3141 | 3071 | color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e); |
| 3142 | 3072 | } |
| 3143 | 3073 | .components-tab-panel__tabs-item:focus:not(:disabled) { |
| 3144 | 3074 | position: relative; |
| 3145 | - box-shadow: none; | |
| 3146 | 3075 | outline: none; |
| 3147 | 3076 | } |
| 3148 | 3077 | .components-tab-panel__tabs-item::after { |
| 3149 | 3078 | content: ""; |
| @@ -3170,19 +3099,14 @@ | ||
| 3170 | 3099 | content: ""; |
| 3171 | 3100 | position: absolute; |
| 3172 | 3101 | inset: var(--wpds-dimension-padding-md, 12px); |
| 3173 | 3102 | pointer-events: none; |
| 3174 | - box-shadow: 0 0 0 0 transparent; | |
| 3175 | 3103 | border-radius: var(--wpds-border-radius-sm, 2px); |
| 3176 | 3104 | } |
| 3177 | -@media not (prefers-reduced-motion) { | |
| 3178 | - .components-tab-panel__tabs-item::before { | |
| 3179 | - transition: box-shadow 0.1s linear; | |
| 3180 | - } | |
| 3181 | -} | |
| 3182 | 3105 | .components-tab-panel__tabs-item:focus-visible::before { |
| 3183 | - 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)); | |
| 3184 | - outline: 2px solid transparent; | |
| 3106 | + 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))); | |
| 3107 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 3108 | + outline-offset: 0; | |
| 3185 | 3109 | } |
| 3186 | 3110 | .components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item { |
| 3187 | 3111 | border-radius: var(--wpds-border-radius-sm, 2px); |
| 3188 | 3112 | } |
| @@ -3193,14 +3117,13 @@ | ||
| 3193 | 3117 | background: var(--wpds-color-background-interactive-neutral-weak-active, #ededed); |
| 3194 | 3118 | } |
| 3195 | 3119 | |
| 3196 | 3120 | .components-tab-panel__tab-content:focus { |
| 3197 | - box-shadow: none; | |
| 3198 | 3121 | outline: none; |
| 3199 | 3122 | } |
| 3200 | 3123 | .components-tab-panel__tab-content:focus-visible { |
| 3201 | - 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)); | |
| 3202 | - outline: 2px solid transparent; | |
| 3124 | + 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))); | |
| 3125 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 3203 | 3126 | outline-offset: 0; |
| 3204 | 3127 | } |
| 3205 | 3128 | |
| 3206 | 3129 | .components-text-control__input, |
| @@ -3227,30 +3150,11 @@ | ||
| 3227 | 3150 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 3228 | 3151 | font-size: 16px; |
| 3229 | 3152 | /* Override core line-height. To be reviewed. */ |
| 3230 | 3153 | line-height: normal; |
| 3231 | - box-shadow: 0 0 0 transparent; | |
| 3232 | - border-radius: 2px; | |
| 3233 | - border: 1px solid #949494; | |
| 3154 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 3155 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 3234 | 3156 | } |
| 3235 | -@media not (prefers-reduced-motion) { | |
| 3236 | - .components-text-control__input, | |
| 3237 | - .components-text-control__input[type=text], | |
| 3238 | - .components-text-control__input[type=tel], | |
| 3239 | - .components-text-control__input[type=time], | |
| 3240 | - .components-text-control__input[type=url], | |
| 3241 | - .components-text-control__input[type=week], | |
| 3242 | - .components-text-control__input[type=password], | |
| 3243 | - .components-text-control__input[type=color], | |
| 3244 | - .components-text-control__input[type=date], | |
| 3245 | - .components-text-control__input[type=datetime], | |
| 3246 | - .components-text-control__input[type=datetime-local], | |
| 3247 | - .components-text-control__input[type=email], | |
| 3248 | - .components-text-control__input[type=month], | |
| 3249 | - .components-text-control__input[type=number] { | |
| 3250 | - transition: box-shadow 0.1s linear; | |
| 3251 | - } | |
| 3252 | -} | |
| 3253 | 3157 | @media (min-width: 600px) { |
| 3254 | 3158 | .components-text-control__input, |
| 3255 | 3159 | .components-text-control__input[type=text], |
| 3256 | 3160 | .components-text-control__input[type=tel], |
| @@ -3269,8 +3173,24 @@ | ||
| 3269 | 3173 | /* Override core line-height. To be reviewed. */ |
| 3270 | 3174 | line-height: normal; |
| 3271 | 3175 | } |
| 3272 | 3176 | } |
| 3177 | +.components-text-control__input:hover:not(:disabled, [aria-disabled=true]), | |
| 3178 | +.components-text-control__input[type=text]:hover:not(:disabled, [aria-disabled=true]), | |
| 3179 | +.components-text-control__input[type=tel]:hover:not(:disabled, [aria-disabled=true]), | |
| 3180 | +.components-text-control__input[type=time]:hover:not(:disabled, [aria-disabled=true]), | |
| 3181 | +.components-text-control__input[type=url]:hover:not(:disabled, [aria-disabled=true]), | |
| 3182 | +.components-text-control__input[type=week]:hover:not(:disabled, [aria-disabled=true]), | |
| 3183 | +.components-text-control__input[type=password]:hover:not(:disabled, [aria-disabled=true]), | |
| 3184 | +.components-text-control__input[type=color]:hover:not(:disabled, [aria-disabled=true]), | |
| 3185 | +.components-text-control__input[type=date]:hover:not(:disabled, [aria-disabled=true]), | |
| 3186 | +.components-text-control__input[type=datetime]:hover:not(:disabled, [aria-disabled=true]), | |
| 3187 | +.components-text-control__input[type=datetime-local]:hover:not(:disabled, [aria-disabled=true]), | |
| 3188 | +.components-text-control__input[type=email]:hover:not(:disabled, [aria-disabled=true]), | |
| 3189 | +.components-text-control__input[type=month]:hover:not(:disabled, [aria-disabled=true]), | |
| 3190 | +.components-text-control__input[type=number]:hover:not(:disabled, [aria-disabled=true]) { | |
| 3191 | + border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e); | |
| 3192 | +} | |
| 3273 | 3193 | .components-text-control__input:focus, |
| 3274 | 3194 | .components-text-control__input[type=text]:focus, |
| 3275 | 3195 | .components-text-control__input[type=tel]:focus, |
| 3276 | 3196 | .components-text-control__input[type=time]:focus, |
| @@ -3283,15 +3203,13 @@ | ||
| 3283 | 3203 | .components-text-control__input[type=datetime-local]:focus, |
| 3284 | 3204 | .components-text-control__input[type=email]:focus, |
| 3285 | 3205 | .components-text-control__input[type=month]:focus, |
| 3286 | 3206 | .components-text-control__input[type=number]:focus { |
| 3287 | - border-color: var(--wp-admin-theme-color); | |
| 3288 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 3289 | - outline: 2px solid transparent; | |
| 3207 | + 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))); | |
| 3208 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 3209 | + border-color: var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 3210 | + box-shadow: none; | |
| 3290 | 3211 | } |
| 3291 | -.components-text-control__input::-moz-placeholder, .components-text-control__input[type=text]::-moz-placeholder, .components-text-control__input[type=tel]::-moz-placeholder, .components-text-control__input[type=time]::-moz-placeholder, .components-text-control__input[type=url]::-moz-placeholder, .components-text-control__input[type=week]::-moz-placeholder, .components-text-control__input[type=password]::-moz-placeholder, .components-text-control__input[type=color]::-moz-placeholder, .components-text-control__input[type=date]::-moz-placeholder, .components-text-control__input[type=datetime]::-moz-placeholder, .components-text-control__input[type=datetime-local]::-moz-placeholder, .components-text-control__input[type=email]::-moz-placeholder, .components-text-control__input[type=month]::-moz-placeholder, .components-text-control__input[type=number]::-moz-placeholder { | |
| 3292 | - color: rgba(30, 30, 30, 0.62); | |
| 3293 | -} | |
| 3294 | 3212 | .components-text-control__input::placeholder, |
| 3295 | 3213 | .components-text-control__input[type=text]::placeholder, |
| 3296 | 3214 | .components-text-control__input[type=tel]::placeholder, |
| 3297 | 3215 | .components-text-control__input[type=time]::placeholder, |
| @@ -3320,15 +3238,11 @@ | ||
| 3320 | 3238 | .components-text-control__input[type=datetime-local], |
| 3321 | 3239 | .components-text-control__input[type=email], |
| 3322 | 3240 | .components-text-control__input[type=month], |
| 3323 | 3241 | .components-text-control__input[type=number] { |
| 3324 | - border-color: var(--wp-components-color-gray-600, var(--wpds-color-stroke-interactive-neutral, #8d8d8d)); | |
| 3325 | 3242 | padding-right: 12px; |
| 3326 | 3243 | padding-left: 12px; |
| 3327 | 3244 | } |
| 3328 | -.components-text-control__input::-moz-placeholder, .components-text-control__input[type=text]::-moz-placeholder, .components-text-control__input[type=tel]::-moz-placeholder, .components-text-control__input[type=time]::-moz-placeholder, .components-text-control__input[type=url]::-moz-placeholder, .components-text-control__input[type=week]::-moz-placeholder, .components-text-control__input[type=password]::-moz-placeholder, .components-text-control__input[type=color]::-moz-placeholder, .components-text-control__input[type=date]::-moz-placeholder, .components-text-control__input[type=datetime]::-moz-placeholder, .components-text-control__input[type=datetime-local]::-moz-placeholder, .components-text-control__input[type=email]::-moz-placeholder, .components-text-control__input[type=month]::-moz-placeholder, .components-text-control__input[type=number]::-moz-placeholder { | |
| 3329 | - color: color-mix(in srgb, var(--wp-components-color-foreground, var(--wpds-color-foreground-content-neutral, #1e1e1e)), transparent 38%); | |
| 3330 | -} | |
| 3331 | 3245 | .components-text-control__input::placeholder, |
| 3332 | 3246 | .components-text-control__input[type=text]::placeholder, |
| 3333 | 3247 | .components-text-control__input[type=tel]::placeholder, |
| 3334 | 3248 | .components-text-control__input[type=time]::placeholder, |
| @@ -3355,9 +3269,9 @@ | ||
| 3355 | 3269 | color: #757575; |
| 3356 | 3270 | } |
| 3357 | 3271 | .components-tip svg { |
| 3358 | 3272 | align-self: center; |
| 3359 | - fill: #f0b849; | |
| 3273 | + color: #f0b849; | |
| 3360 | 3274 | flex-shrink: 0; |
| 3361 | 3275 | margin-left: 16px; |
| 3362 | 3276 | } |
| 3363 | 3277 | .components-tip p { |
| @@ -3365,8 +3279,9 @@ | ||
| 3365 | 3279 | } |
| 3366 | 3280 | |
| 3367 | 3281 | .components-toggle-control__label { |
| 3368 | 3282 | line-height: 16px; |
| 3283 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 3369 | 3284 | } |
| 3370 | 3285 | .components-toggle-control__label:not(.is-disabled) { |
| 3371 | 3286 | cursor: var(--wpds-cursor-control, pointer); |
| 3372 | 3287 | } |
| @@ -3572,40 +3487,19 @@ | ||
| 3572 | 3487 | .components-tooltip__shortcut { |
| 3573 | 3488 | margin-right: 8px; |
| 3574 | 3489 | } |
| 3575 | 3490 | |
| 3576 | -.components-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop { | |
| 3577 | - --wp-components-color-accent: #cc1818; | |
| 3578 | - border-color: #cc1818; | |
| 3491 | +.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-validated-control__content-editable [role=textbox], .components-validated-control__wrapper-with-error-delegate:has(select:invalid[data-validity-visible]) .components-input-control__backdrop, .components-validated-control textarea:invalid[data-validity-visible], .components-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop { | |
| 3492 | + --focus-color: var(--wpds-color-stroke-interactive-error, #cc1818); | |
| 3579 | 3493 | } |
| 3580 | -.components-validated-control textarea:invalid[data-validity-visible] { | |
| 3581 | - --wp-admin-theme-color: #cc1818; | |
| 3582 | - --wp-components-color-accent: #cc1818; | |
| 3583 | - border-color: #cc1818; | |
| 3494 | + | |
| 3495 | +.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-validated-control__content-editable [role=textbox], .components-validated-control__wrapper-with-error-delegate:has(select:invalid[data-validity-visible]) .components-input-control__backdrop, .components-validated-control textarea:invalid[data-validity-visible], .components-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop { | |
| 3496 | + border-color: var(--wpds-color-stroke-interactive-error, #cc1818); | |
| 3584 | 3497 | } |
| 3585 | -.components-validated-control .components-combobox-control__suggestions-container:has(input:invalid[data-validity-visible]):not(:has([aria-expanded=true])) { | |
| 3586 | - --wp-admin-theme-color: #cc1818; | |
| 3587 | -} | |
| 3588 | 3498 | |
| 3589 | 3499 | .components-validated-control__wrapper-with-error-delegate { |
| 3590 | 3500 | position: relative; |
| 3591 | 3501 | } |
| 3592 | -.components-validated-control__wrapper-with-error-delegate:has(select:invalid[data-validity-visible]) .components-input-control__backdrop { | |
| 3593 | - --wp-components-color-accent: #cc1818; | |
| 3594 | - border-color: #cc1818; | |
| 3595 | -} | |
| 3596 | -.components-validated-control__wrapper-with-error-delegate:has(input[type=radio]:invalid[data-validity-visible]) { | |
| 3597 | - --wp-components-color-accent: #cc1818; | |
| 3598 | -} | |
| 3599 | -.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-form-token-field__input-container:not(:has([aria-expanded=true])) { | |
| 3600 | - --wp-admin-theme-color: #cc1818; | |
| 3601 | - border-color: #cc1818; | |
| 3602 | -} | |
| 3603 | -.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-validated-control__content-editable [role=textbox] { | |
| 3604 | - --wp-admin-theme-color: #cc1818; | |
| 3605 | - border-color: #cc1818; | |
| 3606 | -} | |
| 3607 | - | |
| 3608 | 3502 | .components-validated-control__error-delegate { |
| 3609 | 3503 | position: absolute; |
| 3610 | 3504 | top: 0; |
| 3611 | 3505 | height: 100%; |
| @@ -3613,46 +3507,8 @@ | ||
| 3613 | 3507 | opacity: 0; |
| 3614 | 3508 | pointer-events: none; |
| 3615 | 3509 | } |
| 3616 | 3510 | |
| 3617 | -.components-validated-control__indicator { | |
| 3618 | - display: flex; | |
| 3619 | - align-items: flex-start; | |
| 3620 | - gap: 4px; | |
| 3621 | - margin: 8px 0 0; | |
| 3622 | - font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 3623 | - font-size: 12px; | |
| 3624 | - line-height: 16px; | |
| 3625 | - color: var(--wp-components-color-gray-700, var(--wpds-color-foreground-content-neutral-weak, #707070)); | |
| 3626 | - animation: components-validated-control__indicator-jump 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55); | |
| 3627 | -} | |
| 3628 | -.components-validated-control__indicator.is-invalid { | |
| 3629 | - color: #cc1818; | |
| 3630 | -} | |
| 3631 | -.components-validated-control__indicator.is-valid { | |
| 3632 | - color: color-mix(in srgb, #000 30%, #4ab866); | |
| 3633 | -} | |
| 3634 | - | |
| 3635 | -.components-validated-control__indicator-icon { | |
| 3636 | - flex-shrink: 0; | |
| 3637 | -} | |
| 3638 | - | |
| 3639 | -.components-validated-control__indicator-spinner { | |
| 3640 | - margin: 2px; | |
| 3641 | - width: 12px; | |
| 3642 | - height: 12px; | |
| 3643 | -} | |
| 3644 | - | |
| 3645 | -@keyframes components-validated-control__indicator-jump { | |
| 3646 | - 0% { | |
| 3647 | - transform: translateY(-4px); | |
| 3648 | - opacity: 0; | |
| 3649 | - } | |
| 3650 | - 100% { | |
| 3651 | - transform: translateY(0); | |
| 3652 | - opacity: 1; | |
| 3653 | - } | |
| 3654 | -} | |
| 3655 | 3511 | :root { |
| 3656 | 3512 | --wp-admin-theme-color: #3858e9; |
| 3657 | 3513 | --wp-admin-theme-color--rgb: 56, 88, 233; |
| 3658 | 3514 | --wp-admin-theme-color-darker-10: rgb(33.0384615385, 68.7307692308, 230.4615384615); |