| @@ -167,12 +167,13 @@ | ||
| 167 | 167 | min-height: 36px; |
| 168 | 168 | text-align: left; |
| 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: 200px 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-right: 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 | left: 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 | - left: 1px; | |
| 782 | - bottom: 1px; | |
| 783 | - right: 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 | - left: -1px; | |
| 829 | - bottom: -1px; | |
| 830 | - right: -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 | - left: 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 | } |
| @@ -1067,14 +1016,19 @@ | ||
| 1067 | 1016 | width: inherit; |
| 1068 | 1017 | border-radius: 50%; |
| 1069 | 1018 | padding: 0; |
| 1070 | 1019 | box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) #fff, 0 0 2px 0 rgba(0, 0, 0, 0.25); |
| 1071 | - outline: 2px solid transparent; | |
| 1072 | 1020 | } |
| 1073 | -.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 { | |
| 1021 | +.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active { | |
| 1074 | 1022 | 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); |
| 1075 | - outline: 1.5px solid transparent; | |
| 1076 | 1023 | } |
| 1024 | +.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus:not(:active) { | |
| 1025 | + outline-offset: 1px; | |
| 1026 | + 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); | |
| 1027 | +} | |
| 1028 | +.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus:not(:active).is-active { | |
| 1029 | + 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); | |
| 1030 | +} | |
| 1077 | 1031 | |
| 1078 | 1032 | .components-custom-gradient-picker__remove-control-point-wrapper { |
| 1079 | 1033 | padding-bottom: 8px; |
| 1080 | 1034 | } |
| @@ -1302,10 +1256,9 @@ | ||
| 1302 | 1256 | box-shadow: none; |
| 1303 | 1257 | border-radius: 0; |
| 1304 | 1258 | } |
| 1305 | 1259 | .components-external-link:focus:not(:active) { |
| 1306 | - --focus-color: var(--wpds-color-stroke-focus, var(--wp-admin-theme-color, #3858e9)); | |
| 1307 | - outline: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) solid var(--focus-color); | |
| 1260 | + 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))); | |
| 1308 | 1261 | outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); |
| 1309 | 1262 | } |
| 1310 | 1263 | |
| 1311 | 1264 | .components-external-link__contents { |
| @@ -1398,39 +1351,39 @@ | ||
| 1398 | 1351 | background-color: #fff; |
| 1399 | 1352 | border-width: 0; |
| 1400 | 1353 | transform: translateX(16px); |
| 1401 | 1354 | } |
| 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 | background-color: var(--wp-components-color-gray-100, var(--wpds-color-background-surface-neutral, #fcfcfc)); |
| 1404 | 1357 | border-color: var(--wpds-color-stroke-interactive-neutral-disabled, #dbdbdb); |
| 1405 | 1358 | } |
| 1406 | 1359 | @media (forced-colors: active) { |
| 1407 | - .components-form-toggle.is-disabled .components-form-toggle__track, .components-disabled .components-form-toggle .components-form-toggle__track { | |
| 1360 | + .components-form-toggle.is-disabled .components-form-toggle__track, [inert] .components-form-toggle .components-form-toggle__track { | |
| 1408 | 1361 | border-color: GrayText; |
| 1409 | 1362 | } |
| 1410 | 1363 | } |
| 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 | background-color: var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d)); |
| 1413 | 1366 | box-shadow: none; |
| 1414 | 1367 | } |
| 1415 | 1368 | @media (forced-colors: active) { |
| 1416 | - .components-form-toggle.is-disabled .components-form-toggle__thumb, .components-disabled .components-form-toggle .components-form-toggle__thumb { | |
| 1369 | + .components-form-toggle.is-disabled .components-form-toggle__thumb, [inert] .components-form-toggle .components-form-toggle__thumb { | |
| 1417 | 1370 | border-color: GrayText; |
| 1418 | 1371 | } |
| 1419 | 1372 | } |
| 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 | background-color: var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d)); |
| 1422 | 1375 | border-color: var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d)); |
| 1423 | 1376 | } |
| 1424 | 1377 | @media (forced-colors: active) { |
| 1425 | - .components-form-toggle.is-disabled.is-checked .components-form-toggle__track, .components-disabled .components-form-toggle.is-checked .components-form-toggle__track { | |
| 1378 | + .components-form-toggle.is-disabled.is-checked .components-form-toggle__track, [inert] .components-form-toggle.is-checked .components-form-toggle__track { | |
| 1426 | 1379 | border-color: GrayText; |
| 1427 | 1380 | } |
| 1428 | - .components-form-toggle.is-disabled.is-checked .components-form-toggle__track::after, .components-disabled .components-form-toggle.is-checked .components-form-toggle__track::after { | |
| 1381 | + .components-form-toggle.is-disabled.is-checked .components-form-toggle__track::after, [inert] .components-form-toggle.is-checked .components-form-toggle__track::after { | |
| 1429 | 1382 | border-top-color: GrayText; |
| 1430 | 1383 | } |
| 1431 | 1384 | } |
| 1432 | -.components-form-toggle.is-disabled.is-checked .components-form-toggle__thumb, .components-disabled .components-form-toggle.is-checked .components-form-toggle__thumb { | |
| 1385 | +.components-form-toggle.is-disabled.is-checked .components-form-toggle__thumb, [inert] .components-form-toggle.is-checked .components-form-toggle__thumb { | |
| 1433 | 1386 | background-color: #fff; |
| 1434 | 1387 | } |
| 1435 | 1388 | |
| 1436 | 1389 | .components-form-toggle input.components-form-toggle__input[type=checkbox] { |
| @@ -1461,17 +1414,11 @@ | ||
| 1461 | 1414 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 1462 | 1415 | font-size: 16px; |
| 1463 | 1416 | /* Override core line-height. To be reviewed. */ |
| 1464 | 1417 | line-height: normal; |
| 1465 | - box-shadow: 0 0 0 transparent; | |
| 1466 | - border-radius: 2px; | |
| 1467 | - border: 1px solid #949494; | |
| 1418 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 1419 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 1468 | 1420 | } |
| 1469 | -@media not (prefers-reduced-motion) { | |
| 1470 | - .components-form-token-field__input-container { | |
| 1471 | - transition: box-shadow 0.1s linear; | |
| 1472 | - } | |
| 1473 | -} | |
| 1474 | 1421 | @media (min-width: 600px) { |
| 1475 | 1422 | .components-form-token-field__input-container { |
| 1476 | 1423 | font-size: 13px; |
| 1477 | 1424 | /* Override core line-height. To be reviewed. */ |
| @@ -1477,16 +1424,17 @@ | ||
| 1477 | 1424 | /* Override core line-height. To be reviewed. */ |
| 1478 | 1425 | line-height: normal; |
| 1479 | 1426 | } |
| 1480 | 1427 | } |
| 1428 | +.components-form-token-field__input-container:hover:not(:disabled, [aria-disabled=true]) { | |
| 1429 | + border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e); | |
| 1430 | +} | |
| 1481 | 1431 | .components-form-token-field__input-container:focus { |
| 1482 | - border-color: var(--wp-admin-theme-color); | |
| 1483 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 1484 | - outline: 2px solid transparent; | |
| 1432 | + 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))); | |
| 1433 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 1434 | + border-color: var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 1435 | + box-shadow: none; | |
| 1485 | 1436 | } |
| 1486 | -.components-form-token-field__input-container::-moz-placeholder { | |
| 1487 | - color: rgba(30, 30, 30, 0.62); | |
| 1488 | -} | |
| 1489 | 1437 | .components-form-token-field__input-container::placeholder { |
| 1490 | 1438 | color: rgba(30, 30, 30, 0.62); |
| 1491 | 1439 | } |
| 1492 | 1440 | .components-form-token-field__input-container { |
| @@ -1498,12 +1446,14 @@ | ||
| 1498 | 1446 | background: var(--wp-components-color-gray-100, var(--wpds-color-background-surface-neutral, #fcfcfc)); |
| 1499 | 1447 | border-color: var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d)); |
| 1500 | 1448 | cursor: default; |
| 1501 | 1449 | } |
| 1450 | +.components-form-token-field__input-container.is-disabled:hover { | |
| 1451 | + border-color: var(--wp-components-color-gray-400, var(--wpds-color-stroke-interactive-neutral, #8d8d8d)); | |
| 1452 | +} | |
| 1502 | 1453 | .components-form-token-field__input-container.is-active { |
| 1503 | - border-color: var(--wp-admin-theme-color); | |
| 1504 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 1505 | - outline: 2px solid transparent; | |
| 1454 | + 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))); | |
| 1455 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 1506 | 1456 | } |
| 1507 | 1457 | .components-form-token-field__input-container input[type=text].components-form-token-field__input { |
| 1508 | 1458 | display: inline-block; |
| 1509 | 1459 | flex: 1; |
| @@ -1794,8 +1744,13 @@ | ||
| 1794 | 1744 | outline-offset: calc(2 * -1 * var(--wp-admin-border-width-focus) / var(--wp-block-editor-iframe-zoom-out-scale, 1)); |
| 1795 | 1745 | 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); |
| 1796 | 1746 | } |
| 1797 | 1747 | |
| 1748 | +.components-input-control__container:focus-within:not(:has(:is(.components-input-control__prefix, .components-input-control__suffix):focus-within)) .components-input-control__backdrop { | |
| 1749 | + 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))); | |
| 1750 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 1751 | +} | |
| 1752 | + | |
| 1798 | 1753 | .components-menu-group + .components-menu-group { |
| 1799 | 1754 | padding-top: 8px; |
| 1800 | 1755 | border-top: 1px solid #1e1e1e; |
| 1801 | 1756 | } |
| @@ -2160,9 +2115,9 @@ | ||
| 2160 | 2115 | } |
| 2161 | 2116 | |
| 2162 | 2117 | .components-notice { |
| 2163 | 2118 | --wp-components-notice-background-color: var(--wpds-color-background-surface-info-weak, #f3f9ff); |
| 2164 | - --wp-components-notice-border-color: var(--wpds-color-stroke-surface-info, #a9c6e7); | |
| 2119 | + --wp-components-notice-border-color: var(--wpds-color-stroke-surface-info, #adc6e2); | |
| 2165 | 2120 | --wp-components-notice-text-color: var(--wpds-color-foreground-content-info, #001b4f); |
| 2166 | 2121 | box-sizing: border-box; |
| 2167 | 2122 | display: grid; |
| 2168 | 2123 | grid-template-columns: 1fr auto; |
| @@ -2177,19 +2132,19 @@ | ||
| 2177 | 2132 | line-height: var(--wpds-typography-line-height-sm, 20px); |
| 2178 | 2133 | } |
| 2179 | 2134 | .components-notice.is-success { |
| 2180 | 2135 | --wp-components-notice-background-color: var(--wpds-color-background-surface-success-weak, #ebffed); |
| 2181 | - --wp-components-notice-border-color: var(--wpds-color-stroke-surface-success, #94d29e); | |
| 2136 | + --wp-components-notice-border-color: var(--wpds-color-stroke-surface-success, #92d39d); | |
| 2182 | 2137 | --wp-components-notice-text-color: var(--wpds-color-foreground-content-success, #002900); |
| 2183 | 2138 | } |
| 2184 | 2139 | .components-notice.is-warning { |
| 2185 | 2140 | --wp-components-notice-background-color: var(--wpds-color-background-surface-warning-weak, #fff7e1); |
| 2186 | - --wp-components-notice-border-color: var(--wpds-color-stroke-surface-warning, #e1bc7c); | |
| 2141 | + --wp-components-notice-border-color: var(--wpds-color-stroke-surface-warning, #e1bd7c); | |
| 2187 | 2142 | --wp-components-notice-text-color: var(--wpds-color-foreground-content-warning, #2e1900); |
| 2188 | 2143 | } |
| 2189 | 2144 | .components-notice.is-error { |
| 2190 | 2145 | --wp-components-notice-background-color: var(--wpds-color-background-surface-error-weak, #fff6f5); |
| 2191 | - --wp-components-notice-border-color: var(--wpds-color-stroke-surface-error, #dab1aa); | |
| 2146 | + --wp-components-notice-border-color: var(--wpds-color-stroke-surface-error, #e0afa7); | |
| 2192 | 2147 | --wp-components-notice-text-color: var(--wpds-color-foreground-content-error, #470000); |
| 2193 | 2148 | } |
| 2194 | 2149 | |
| 2195 | 2150 | .components-notice__content { |
| @@ -2215,13 +2170,9 @@ | ||
| 2215 | 2170 | margin-inline-start: var(--wpds-dimension-gap-xs, 4px); |
| 2216 | 2171 | } |
| 2217 | 2172 | .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 { |
| 2218 | 2173 | color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e); |
| 2219 | - background-color: transparent; | |
| 2220 | 2174 | } |
| 2221 | -.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover { | |
| 2222 | - box-shadow: none; | |
| 2223 | -} | |
| 2224 | 2175 | |
| 2225 | 2176 | .components-notice-list { |
| 2226 | 2177 | display: flex; |
| 2227 | 2178 | flex-direction: column; |
| @@ -2413,9 +2364,9 @@ | ||
| 2413 | 2364 | font-size: 13px; |
| 2414 | 2365 | letter-spacing: initial; |
| 2415 | 2366 | line-height: initial; |
| 2416 | 2367 | text-transform: none; |
| 2417 | - font-weight: normal; | |
| 2368 | + font-weight: 400; | |
| 2418 | 2369 | } |
| 2419 | 2370 | |
| 2420 | 2371 | .components-placeholder__label { |
| 2421 | 2372 | font-weight: var(--wpds-typography-font-weight-emphasis, 600); |
| @@ -2427,15 +2378,8 @@ | ||
| 2427 | 2378 | .components-placeholder__label .block-editor-block-icon { |
| 2428 | 2379 | margin-right: 4px; |
| 2429 | 2380 | fill: currentColor; |
| 2430 | 2381 | } |
| 2431 | -@media (forced-colors: active) { | |
| 2432 | - .components-placeholder__label > svg, | |
| 2433 | - .components-placeholder__label .dashicon, | |
| 2434 | - .components-placeholder__label .block-editor-block-icon { | |
| 2435 | - fill: CanvasText; | |
| 2436 | - } | |
| 2437 | -} | |
| 2438 | 2382 | .components-placeholder__label:empty { |
| 2439 | 2383 | display: none; |
| 2440 | 2384 | } |
| 2441 | 2385 | |
| @@ -2465,17 +2409,11 @@ | ||
| 2465 | 2409 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 2466 | 2410 | font-size: 16px; |
| 2467 | 2411 | /* Override core line-height. To be reviewed. */ |
| 2468 | 2412 | line-height: normal; |
| 2469 | - box-shadow: 0 0 0 transparent; | |
| 2470 | - border-radius: 2px; | |
| 2471 | - border: 1px solid #949494; | |
| 2413 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 2414 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 2472 | 2415 | } |
| 2473 | -@media not (prefers-reduced-motion) { | |
| 2474 | - .components-placeholder__input[type=url] { | |
| 2475 | - transition: box-shadow 0.1s linear; | |
| 2476 | - } | |
| 2477 | -} | |
| 2478 | 2416 | @media (min-width: 600px) { |
| 2479 | 2417 | .components-placeholder__input[type=url] { |
| 2480 | 2418 | font-size: 13px; |
| 2481 | 2419 | /* Override core line-height. To be reviewed. */ |
| @@ -2481,16 +2419,17 @@ | ||
| 2481 | 2419 | /* Override core line-height. To be reviewed. */ |
| 2482 | 2420 | line-height: normal; |
| 2483 | 2421 | } |
| 2484 | 2422 | } |
| 2423 | +.components-placeholder__input[type=url]:hover:not(:disabled, [aria-disabled=true]) { | |
| 2424 | + border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e); | |
| 2425 | +} | |
| 2485 | 2426 | .components-placeholder__input[type=url]:focus { |
| 2486 | - border-color: var(--wp-admin-theme-color); | |
| 2487 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 2488 | - outline: 2px solid transparent; | |
| 2427 | + 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))); | |
| 2428 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 2429 | + border-color: var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 2430 | + box-shadow: none; | |
| 2489 | 2431 | } |
| 2490 | -.components-placeholder__input[type=url]::-moz-placeholder { | |
| 2491 | - color: rgba(30, 30, 30, 0.62); | |
| 2492 | -} | |
| 2493 | 2432 | .components-placeholder__input[type=url]::placeholder { |
| 2494 | 2433 | color: rgba(30, 30, 30, 0.62); |
| 2495 | 2434 | } |
| 2496 | 2435 | .components-placeholder__input[type=url] { |
| @@ -2626,9 +2565,8 @@ | ||
| 2626 | 2565 | background: #fff; |
| 2627 | 2566 | 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); |
| 2628 | 2567 | border-radius: 4px; |
| 2629 | 2568 | box-sizing: border-box; |
| 2630 | - width: -moz-min-content; | |
| 2631 | 2569 | width: min-content; |
| 2632 | 2570 | } |
| 2633 | 2571 | .is-alternate .components-popover__content { |
| 2634 | 2572 | box-shadow: 0 0 0 1px #1e1e1e; |
| @@ -2735,10 +2673,9 @@ | ||
| 2735 | 2673 | .components-radio-control__option { |
| 2736 | 2674 | display: grid; |
| 2737 | 2675 | grid-template-columns: auto 1fr; |
| 2738 | 2676 | grid-template-rows: auto minmax(0, max-content); |
| 2739 | - -moz-column-gap: 8px; | |
| 2740 | - column-gap: 8px; | |
| 2677 | + column-gap: 8px; | |
| 2741 | 2678 | align-items: center; |
| 2742 | 2679 | } |
| 2743 | 2680 | |
| 2744 | 2681 | .components-radio-control__input[type=radio] { |
| @@ -2796,11 +2733,9 @@ | ||
| 2796 | 2733 | .components-radio-control__input[type=radio] { |
| 2797 | 2734 | display: inline-flex; |
| 2798 | 2735 | margin: 0; |
| 2799 | 2736 | padding: 0; |
| 2800 | - -webkit-appearance: none; | |
| 2801 | - -moz-appearance: none; | |
| 2802 | - appearance: none; | |
| 2737 | + appearance: none; | |
| 2803 | 2738 | } |
| 2804 | 2739 | .components-radio-control__input[type=radio]:not(:disabled) { |
| 2805 | 2740 | cursor: var(--wpds-cursor-control, pointer); |
| 2806 | 2741 | } |
| @@ -2829,10 +2764,11 @@ | ||
| 2829 | 2764 | |
| 2830 | 2765 | .components-radio-control__label { |
| 2831 | 2766 | grid-column: 2; |
| 2832 | 2767 | grid-row: 1; |
| 2768 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 2833 | 2769 | } |
| 2834 | -.components-radio-control:not(:disabled) .components-radio-control__label { | |
| 2770 | +.components-radio-control__input:not(:disabled) + .components-radio-control__label { | |
| 2835 | 2771 | cursor: var(--wpds-cursor-control, pointer); |
| 2836 | 2772 | } |
| 2837 | 2773 | .components-radio-control__label { |
| 2838 | 2774 | line-height: 24px; |
| @@ -3062,9 +2998,8 @@ | ||
| 3062 | 2998 | pointer-events: auto; |
| 3063 | 2999 | } |
| 3064 | 3000 | @media (min-width: 600px) { |
| 3065 | 3001 | .components-snackbar { |
| 3066 | - width: -moz-fit-content; | |
| 3067 | 3002 | width: fit-content; |
| 3068 | 3003 | } |
| 3069 | 3004 | } |
| 3070 | 3005 | .components-snackbar:focus { |
| @@ -3091,14 +3026,10 @@ | ||
| 3091 | 3026 | .components-snackbar__action.components-external-link { |
| 3092 | 3027 | margin-left: 32px; |
| 3093 | 3028 | color: #fff; |
| 3094 | 3029 | flex-shrink: 0; |
| 3030 | + --focus-color: #fff; | |
| 3095 | 3031 | } |
| 3096 | -.components-snackbar__action.components-button:focus, | |
| 3097 | -.components-snackbar__action.components-external-link:focus { | |
| 3098 | - box-shadow: none; | |
| 3099 | - outline: 1px dotted #fff; | |
| 3100 | -} | |
| 3101 | 3032 | .components-snackbar__action.components-button:hover, |
| 3102 | 3033 | .components-snackbar__action.components-external-link:hover { |
| 3103 | 3034 | text-decoration: none; |
| 3104 | 3035 | color: currentColor; |
| @@ -3138,9 +3069,8 @@ | ||
| 3138 | 3069 | border-radius: 0; |
| 3139 | 3070 | height: 48px !important; |
| 3140 | 3071 | background: transparent; |
| 3141 | 3072 | border: none; |
| 3142 | - box-shadow: none; | |
| 3143 | 3073 | cursor: var(--wpds-cursor-control, pointer); |
| 3144 | 3074 | padding: 3px var(--wpds-dimension-padding-lg, 16px); |
| 3145 | 3075 | margin-left: 0; |
| 3146 | 3076 | font-weight: var(--wpds-typography-font-weight-default, 400); |
| @@ -3153,9 +3083,8 @@ | ||
| 3153 | 3083 | color: var(--wpds-color-foreground-interactive-neutral-active, #1e1e1e); |
| 3154 | 3084 | } |
| 3155 | 3085 | .components-tab-panel__tabs-item:focus:not(:disabled) { |
| 3156 | 3086 | position: relative; |
| 3157 | - box-shadow: none; | |
| 3158 | 3087 | outline: none; |
| 3159 | 3088 | } |
| 3160 | 3089 | .components-tab-panel__tabs-item::after { |
| 3161 | 3090 | content: ""; |
| @@ -3182,19 +3111,14 @@ | ||
| 3182 | 3111 | content: ""; |
| 3183 | 3112 | position: absolute; |
| 3184 | 3113 | inset: var(--wpds-dimension-padding-md, 12px); |
| 3185 | 3114 | pointer-events: none; |
| 3186 | - box-shadow: 0 0 0 0 transparent; | |
| 3187 | 3115 | border-radius: var(--wpds-border-radius-sm, 2px); |
| 3188 | 3116 | } |
| 3189 | -@media not (prefers-reduced-motion) { | |
| 3190 | - .components-tab-panel__tabs-item::before { | |
| 3191 | - transition: box-shadow 0.1s linear; | |
| 3192 | - } | |
| 3193 | -} | |
| 3194 | 3117 | .components-tab-panel__tabs-item:focus-visible::before { |
| 3195 | - 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)); | |
| 3196 | - outline: 2px solid transparent; | |
| 3118 | + 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))); | |
| 3119 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 3120 | + outline-offset: 0; | |
| 3197 | 3121 | } |
| 3198 | 3122 | .components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item { |
| 3199 | 3123 | border-radius: var(--wpds-border-radius-sm, 2px); |
| 3200 | 3124 | } |
| @@ -3205,14 +3129,13 @@ | ||
| 3205 | 3129 | background: var(--wpds-color-background-interactive-neutral-weak-active, #ededed); |
| 3206 | 3130 | } |
| 3207 | 3131 | |
| 3208 | 3132 | .components-tab-panel__tab-content:focus { |
| 3209 | - box-shadow: none; | |
| 3210 | 3133 | outline: none; |
| 3211 | 3134 | } |
| 3212 | 3135 | .components-tab-panel__tab-content:focus-visible { |
| 3213 | - 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)); | |
| 3214 | - outline: 2px solid transparent; | |
| 3136 | + 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))); | |
| 3137 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 3215 | 3138 | outline-offset: 0; |
| 3216 | 3139 | } |
| 3217 | 3140 | |
| 3218 | 3141 | .components-text-control__input, |
| @@ -3239,30 +3162,11 @@ | ||
| 3239 | 3162 | /* Fonts smaller than 16px causes mobile safari to zoom. */ |
| 3240 | 3163 | font-size: 16px; |
| 3241 | 3164 | /* Override core line-height. To be reviewed. */ |
| 3242 | 3165 | line-height: normal; |
| 3243 | - box-shadow: 0 0 0 transparent; | |
| 3244 | - border-radius: 2px; | |
| 3245 | - border: 1px solid #949494; | |
| 3166 | + border: var(--wpds-border-width-xs, 1px) solid var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 3167 | + border-radius: var(--wpds-border-radius-sm, 2px); | |
| 3246 | 3168 | } |
| 3247 | -@media not (prefers-reduced-motion) { | |
| 3248 | - .components-text-control__input, | |
| 3249 | - .components-text-control__input[type=text], | |
| 3250 | - .components-text-control__input[type=tel], | |
| 3251 | - .components-text-control__input[type=time], | |
| 3252 | - .components-text-control__input[type=url], | |
| 3253 | - .components-text-control__input[type=week], | |
| 3254 | - .components-text-control__input[type=password], | |
| 3255 | - .components-text-control__input[type=color], | |
| 3256 | - .components-text-control__input[type=date], | |
| 3257 | - .components-text-control__input[type=datetime], | |
| 3258 | - .components-text-control__input[type=datetime-local], | |
| 3259 | - .components-text-control__input[type=email], | |
| 3260 | - .components-text-control__input[type=month], | |
| 3261 | - .components-text-control__input[type=number] { | |
| 3262 | - transition: box-shadow 0.1s linear; | |
| 3263 | - } | |
| 3264 | -} | |
| 3265 | 3169 | @media (min-width: 600px) { |
| 3266 | 3170 | .components-text-control__input, |
| 3267 | 3171 | .components-text-control__input[type=text], |
| 3268 | 3172 | .components-text-control__input[type=tel], |
| @@ -3281,8 +3185,24 @@ | ||
| 3281 | 3185 | /* Override core line-height. To be reviewed. */ |
| 3282 | 3186 | line-height: normal; |
| 3283 | 3187 | } |
| 3284 | 3188 | } |
| 3189 | +.components-text-control__input:hover:not(:disabled, [aria-disabled=true]), | |
| 3190 | +.components-text-control__input[type=text]:hover:not(:disabled, [aria-disabled=true]), | |
| 3191 | +.components-text-control__input[type=tel]:hover:not(:disabled, [aria-disabled=true]), | |
| 3192 | +.components-text-control__input[type=time]:hover:not(:disabled, [aria-disabled=true]), | |
| 3193 | +.components-text-control__input[type=url]:hover:not(:disabled, [aria-disabled=true]), | |
| 3194 | +.components-text-control__input[type=week]:hover:not(:disabled, [aria-disabled=true]), | |
| 3195 | +.components-text-control__input[type=password]:hover:not(:disabled, [aria-disabled=true]), | |
| 3196 | +.components-text-control__input[type=color]:hover:not(:disabled, [aria-disabled=true]), | |
| 3197 | +.components-text-control__input[type=date]:hover:not(:disabled, [aria-disabled=true]), | |
| 3198 | +.components-text-control__input[type=datetime]:hover:not(:disabled, [aria-disabled=true]), | |
| 3199 | +.components-text-control__input[type=datetime-local]:hover:not(:disabled, [aria-disabled=true]), | |
| 3200 | +.components-text-control__input[type=email]:hover:not(:disabled, [aria-disabled=true]), | |
| 3201 | +.components-text-control__input[type=month]:hover:not(:disabled, [aria-disabled=true]), | |
| 3202 | +.components-text-control__input[type=number]:hover:not(:disabled, [aria-disabled=true]) { | |
| 3203 | + border-color: var(--wpds-color-stroke-interactive-neutral-active, #6e6e6e); | |
| 3204 | +} | |
| 3285 | 3205 | .components-text-control__input:focus, |
| 3286 | 3206 | .components-text-control__input[type=text]:focus, |
| 3287 | 3207 | .components-text-control__input[type=tel]:focus, |
| 3288 | 3208 | .components-text-control__input[type=time]:focus, |
| @@ -3295,15 +3215,13 @@ | ||
| 3295 | 3215 | .components-text-control__input[type=datetime-local]:focus, |
| 3296 | 3216 | .components-text-control__input[type=email]:focus, |
| 3297 | 3217 | .components-text-control__input[type=month]:focus, |
| 3298 | 3218 | .components-text-control__input[type=number]:focus { |
| 3299 | - border-color: var(--wp-admin-theme-color); | |
| 3300 | - box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); | |
| 3301 | - outline: 2px solid transparent; | |
| 3219 | + 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))); | |
| 3220 | + outline-offset: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)); | |
| 3221 | + border-color: var(--wpds-color-stroke-interactive-neutral, #8d8d8d); | |
| 3222 | + box-shadow: none; | |
| 3302 | 3223 | } |
| 3303 | -.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 { | |
| 3304 | - color: rgba(30, 30, 30, 0.62); | |
| 3305 | -} | |
| 3306 | 3224 | .components-text-control__input::placeholder, |
| 3307 | 3225 | .components-text-control__input[type=text]::placeholder, |
| 3308 | 3226 | .components-text-control__input[type=tel]::placeholder, |
| 3309 | 3227 | .components-text-control__input[type=time]::placeholder, |
| @@ -3332,15 +3250,11 @@ | ||
| 3332 | 3250 | .components-text-control__input[type=datetime-local], |
| 3333 | 3251 | .components-text-control__input[type=email], |
| 3334 | 3252 | .components-text-control__input[type=month], |
| 3335 | 3253 | .components-text-control__input[type=number] { |
| 3336 | - border-color: var(--wp-components-color-gray-600, var(--wpds-color-stroke-interactive-neutral, #8d8d8d)); | |
| 3337 | 3254 | padding-left: 12px; |
| 3338 | 3255 | padding-right: 12px; |
| 3339 | 3256 | } |
| 3340 | -.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 { | |
| 3341 | - color: color-mix(in srgb, var(--wp-components-color-foreground, var(--wpds-color-foreground-content-neutral, #1e1e1e)), transparent 38%); | |
| 3342 | -} | |
| 3343 | 3257 | .components-text-control__input::placeholder, |
| 3344 | 3258 | .components-text-control__input[type=text]::placeholder, |
| 3345 | 3259 | .components-text-control__input[type=tel]::placeholder, |
| 3346 | 3260 | .components-text-control__input[type=time]::placeholder, |
| @@ -3368,9 +3282,9 @@ | ||
| 3368 | 3282 | color: #757575; |
| 3369 | 3283 | } |
| 3370 | 3284 | .components-tip svg { |
| 3371 | 3285 | align-self: center; |
| 3372 | - fill: #f0b849; | |
| 3286 | + color: #f0b849; | |
| 3373 | 3287 | flex-shrink: 0; |
| 3374 | 3288 | margin-right: 16px; |
| 3375 | 3289 | } |
| 3376 | 3290 | .components-tip p { |
| @@ -3378,8 +3292,9 @@ | ||
| 3378 | 3292 | } |
| 3379 | 3293 | |
| 3380 | 3294 | .components-toggle-control__label { |
| 3381 | 3295 | line-height: 16px; |
| 3296 | + color: var(--wpds-color-foreground-content-neutral, #1e1e1e); | |
| 3382 | 3297 | } |
| 3383 | 3298 | .components-toggle-control__label:not(.is-disabled) { |
| 3384 | 3299 | cursor: var(--wpds-cursor-control, pointer); |
| 3385 | 3300 | } |
| @@ -3585,40 +3500,19 @@ | ||
| 3585 | 3500 | .components-tooltip__shortcut { |
| 3586 | 3501 | margin-left: 8px; |
| 3587 | 3502 | } |
| 3588 | 3503 | |
| 3589 | -.components-validated-control:has(:is(input, select):invalid[data-validity-visible]) .components-input-control__backdrop { | |
| 3590 | - --wp-components-color-accent: #cc1818; | |
| 3591 | - border-color: #cc1818; | |
| 3504 | +.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 { | |
| 3505 | + --focus-color: var(--wpds-color-stroke-interactive-error, #cc1818); | |
| 3592 | 3506 | } |
| 3593 | -.components-validated-control textarea:invalid[data-validity-visible] { | |
| 3594 | - --wp-admin-theme-color: #cc1818; | |
| 3595 | - --wp-components-color-accent: #cc1818; | |
| 3596 | - border-color: #cc1818; | |
| 3507 | + | |
| 3508 | +.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 { | |
| 3509 | + border-color: var(--wpds-color-stroke-interactive-error, #cc1818); | |
| 3597 | 3510 | } |
| 3598 | -.components-validated-control .components-combobox-control__suggestions-container:has(input:invalid[data-validity-visible]):not(:has([aria-expanded=true])) { | |
| 3599 | - --wp-admin-theme-color: #cc1818; | |
| 3600 | -} | |
| 3601 | 3511 | |
| 3602 | 3512 | .components-validated-control__wrapper-with-error-delegate { |
| 3603 | 3513 | position: relative; |
| 3604 | 3514 | } |
| 3605 | -.components-validated-control__wrapper-with-error-delegate:has(select:invalid[data-validity-visible]) .components-input-control__backdrop { | |
| 3606 | - --wp-components-color-accent: #cc1818; | |
| 3607 | - border-color: #cc1818; | |
| 3608 | -} | |
| 3609 | -.components-validated-control__wrapper-with-error-delegate:has(input[type=radio]:invalid[data-validity-visible]) { | |
| 3610 | - --wp-components-color-accent: #cc1818; | |
| 3611 | -} | |
| 3612 | -.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-form-token-field__input-container:not(:has([aria-expanded=true])) { | |
| 3613 | - --wp-admin-theme-color: #cc1818; | |
| 3614 | - border-color: #cc1818; | |
| 3615 | -} | |
| 3616 | -.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-validated-control__content-editable [role=textbox] { | |
| 3617 | - --wp-admin-theme-color: #cc1818; | |
| 3618 | - border-color: #cc1818; | |
| 3619 | -} | |
| 3620 | - | |
| 3621 | 3515 | .components-validated-control__error-delegate { |
| 3622 | 3516 | position: absolute; |
| 3623 | 3517 | top: 0; |
| 3624 | 3518 | height: 100%; |
| @@ -3626,46 +3520,8 @@ | ||
| 3626 | 3520 | opacity: 0; |
| 3627 | 3521 | pointer-events: none; |
| 3628 | 3522 | } |
| 3629 | 3523 | |
| 3630 | -.components-validated-control__indicator { | |
| 3631 | - display: flex; | |
| 3632 | - align-items: flex-start; | |
| 3633 | - gap: 4px; | |
| 3634 | - margin: 8px 0 0; | |
| 3635 | - font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; | |
| 3636 | - font-size: 12px; | |
| 3637 | - line-height: 16px; | |
| 3638 | - color: var(--wp-components-color-gray-700, var(--wpds-color-foreground-content-neutral-weak, #707070)); | |
| 3639 | - animation: components-validated-control__indicator-jump 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55); | |
| 3640 | -} | |
| 3641 | -.components-validated-control__indicator.is-invalid { | |
| 3642 | - color: #cc1818; | |
| 3643 | -} | |
| 3644 | -.components-validated-control__indicator.is-valid { | |
| 3645 | - color: color-mix(in srgb, #000 30%, #4ab866); | |
| 3646 | -} | |
| 3647 | - | |
| 3648 | -.components-validated-control__indicator-icon { | |
| 3649 | - flex-shrink: 0; | |
| 3650 | -} | |
| 3651 | - | |
| 3652 | -.components-validated-control__indicator-spinner { | |
| 3653 | - margin: 2px; | |
| 3654 | - width: 12px; | |
| 3655 | - height: 12px; | |
| 3656 | -} | |
| 3657 | - | |
| 3658 | -@keyframes components-validated-control__indicator-jump { | |
| 3659 | - 0% { | |
| 3660 | - transform: translateY(-4px); | |
| 3661 | - opacity: 0; | |
| 3662 | - } | |
| 3663 | - 100% { | |
| 3664 | - transform: translateY(0); | |
| 3665 | - opacity: 1; | |
| 3666 | - } | |
| 3667 | -} | |
| 3668 | 3524 | :root { |
| 3669 | 3525 | --wp-admin-theme-color: #3858e9; |
| 3670 | 3526 | --wp-admin-theme-color--rgb: 56, 88, 233; |
| 3671 | 3527 | --wp-admin-theme-color-darker-10: rgb(33.0384615385, 68.7307692308, 230.4615384615); |