|
| 1 | +.button { |
| 2 | + --wp-ui-button-height: 36px; |
| 3 | + --wp-ui-button-background-color: transparent; |
| 4 | + --wp-ui-button-background-color-active: rgba( 15, 23, 42, 0.07 ); |
| 5 | + --wp-ui-button-border-color: transparent; |
| 6 | + --wp-ui-button-border-color-active: transparent; |
| 7 | + --wp-ui-button-foreground-color: #14171a; |
| 8 | + --wp-ui-button-foreground-color-active: #14171a; |
| 9 | + |
| 10 | + width: 36px; |
| 11 | + min-width: 36px; |
| 12 | + border-radius: 12px; |
| 13 | +} |
| 14 | + |
| 15 | +.button[aria-pressed='true'] { |
| 16 | + --wp-ui-button-background-color: rgba( 15, 23, 42, 0.07 ); |
| 17 | + --wp-ui-button-background-color-active: rgba( 15, 23, 42, 0.07 ); |
| 18 | + --wp-ui-button-foreground-color: #14171a; |
| 19 | + --wp-ui-button-foreground-color-active: #14171a; |
| 20 | +} |
| 21 | + |
| 22 | +.swatchMenu { |
| 23 | + min-width: auto; |
| 24 | + flex-direction: row; |
| 25 | + gap: 6px; |
| 26 | + padding: 6px; |
| 27 | + border-radius: 18px; |
| 28 | +} |
| 29 | + |
| 30 | +.swatch, |
| 31 | +.swatch[data-highlighted], |
| 32 | +.swatch:hover { |
| 33 | + width: 30px; |
| 34 | + height: 30px; |
| 35 | + padding: 0; |
| 36 | + border: 1px solid rgba( 15, 23, 42, 0.12 ); |
| 37 | + border-radius: 10px; |
| 38 | + background: var( --control-swatch-color ); |
| 39 | + box-shadow: 0 6px 18px rgba( 15, 23, 42, 0.1 ); |
| 40 | + color: transparent; |
| 41 | + transition: |
| 42 | + box-shadow 160ms ease, |
| 43 | + transform 160ms ease; |
| 44 | +} |
| 45 | + |
| 46 | +.swatch[data-highlighted], |
| 47 | +.swatch:hover { |
| 48 | + box-shadow: 0 8px 22px rgba( 15, 23, 42, 0.14 ); |
| 49 | + transform: translateY( -1px ); |
| 50 | +} |
| 51 | + |
| 52 | +.swatch[data-active='true'] { |
| 53 | + outline: 2px solid #3858e9; |
| 54 | + outline-offset: 2px; |
| 55 | +} |
0 commit comments