| @@ -1,4 +1,5 @@ | ||
| 1 | +@use 'common/theme'; | |
| 1 | 2 | |
| 2 | 3 | #adminmenu { |
| 3 | 4 | .toplevel_page_snippets div.wp-menu-image::before { |
| 4 | 5 | content: ''; |
| @@ -9,9 +10,9 @@ | ||
| 9 | 10 | } |
| 10 | 11 | |
| 11 | 12 | .code-snippets-upgrade-button { |
| 12 | 13 | color: #fff; |
| 13 | - background-color: #d46f4d; | |
| 14 | + background-color: var(--cs-color-secondary); | |
| 14 | 15 | border: none; |
| 15 | 16 | |
| 16 | 17 | // WP 7.0 restyles `.button`/`.button-primary` with wider padding, a 2px radius and a |
| 17 | 18 | // 40px min-height; pin these (independent of the plugin control tokens, which are |
| @@ -16,9 +17,9 @@ | ||
| 16 | 17 | // WP 7.0 restyles `.button`/`.button-primary` with wider padding, a 2px radius and a |
| 17 | 18 | // 40px min-height; pin these (independent of the plugin control tokens, which are |
| 18 | 19 | // sized for page content rather than the admin menu) so the pill keeps its compact |
| 19 | 20 | // dimensions and stays aligned with the surrounding submenu items across WP versions. |
| 20 | - border-radius: 3px; | |
| 21 | + border-radius: 5px; | |
| 21 | 22 | padding-block: 0; |
| 22 | 23 | padding-inline: 10px; |
| 23 | 24 | min-block-size: 30px; |
| 24 | 25 | block-size: auto; |
| @@ -34,10 +35,11 @@ | ||
| 34 | 35 | @media (prefers-reduced-motion: reduce) { |
| 35 | 36 | transition-duration: 0.01s; |
| 36 | 37 | } |
| 37 | 38 | |
| 38 | - &:hover { | |
| 39 | - background-color: #0ca0a9; | |
| 39 | + &:hover, | |
| 40 | + &:focus { | |
| 41 | + background-color: var(--cs-color-primary-hover); | |
| 40 | 42 | } |
| 41 | 43 | |
| 42 | 44 | .dashicons { |
| 43 | 45 | vertical-align: text-bottom; |