PluginProbe
Code Snippets / trunk
Code Snippets vtrunk
4.0.0-beta.2 3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 All 65 releases
← All changes | css/menu.scss +11 -7 4.0.0-beta.1 → trunk View file →
@@ -10,18 +10,19 @@
10 10 }
11 11
12 12 .code-snippets-upgrade-button {
13 13 color: #fff;
14 - background-color: #d46f4d;
14 + background-color: var(--cs-color-secondary);
15 15 border: none;
16 16
17 17 // WP 7.0 restyles `.button`/`.button-primary` with wider padding, a 2px radius and a
18 - // 40px min-height; pin these so the menu pill keeps its classic dimensions and stays
19 - // aligned with the surrounding submenu items across WP versions.
20 - border-radius: 3px;
18 + // 40px min-height; pin these (independent of the plugin control tokens, which are
19 + // sized for page content rather than the admin menu) so the pill keeps its compact
20 + // dimensions and stays aligned with the surrounding submenu items across WP versions.
21 + border-radius: 5px;
21 22 padding-block: 0;
22 23 padding-inline: 10px;
23 - min-block-size: theme.$control-height;
24 + min-block-size: 30px;
24 25 block-size: auto;
25 26 text-align: center;
26 27 font-weight: bold;
27 28 transition: background-color .1s linear;
@@ -34,15 +35,18 @@
34 35 @media (prefers-reduced-motion: reduce) {
35 36 transition-duration: 0.01s;
36 37 }
37 38
38 - &:hover {
39 - background-color: #08c5d1;
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;
44 46 color: inherit;
47 + font-size: 16px;
48 + padding-block-start: 2px;
45 49
46 50 // WP 7.0's taller button line-height (≈38px) leaks onto the icon and pushes it out
47 51 // of alignment; reset it so the glyph stays centred within the flex pill.
48 52 line-height: 1;