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 +27 -3 3.9.6 → trunk View file →
@@ -1,4 +1,6 @@
1 +@use 'common/theme';
2 +
1 3 #adminmenu {
2 4 .toplevel_page_snippets div.wp-menu-image::before {
3 5 content: '';
4 6 mask-image: url('../assets/menu-icon.svg');
@@ -8,10 +10,20 @@
8 10 }
9 11
10 12 .code-snippets-upgrade-button {
11 13 color: #fff;
12 - background-color: #d46f4d;
14 + background-color: var(--cs-color-secondary);
13 15 border: none;
16 +
17 + // WP 7.0 restyles `.button`/`.button-primary` with wider padding, a 2px radius and a
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;
22 + padding-block: 0;
23 + padding-inline: 10px;
24 + min-block-size: 30px;
25 + block-size: auto;
14 26 text-align: center;
15 27 font-weight: bold;
16 28 transition: background-color .1s linear;
17 29 white-space: break-spaces;
@@ -19,14 +31,26 @@
19 31 display: flex;
20 32 justify-content: center;
21 33 align-items: center;
22 34
23 - &:hover {
24 - background-color: #08c5d1;
35 + @media (prefers-reduced-motion: reduce) {
36 + transition-duration: 0.01s;
25 37 }
26 38
39 + &:hover,
40 + &:focus {
41 + background-color: var(--cs-color-primary-hover);
42 + }
43 +
27 44 .dashicons {
28 45 vertical-align: text-bottom;
46 + color: inherit;
47 + font-size: 16px;
48 + padding-block-start: 2px;
49 +
50 + // WP 7.0's taller button line-height (≈38px) leaks onto the icon and pushes it out
51 + // of alignment; reset it so the glyph stays centred within the flex pill.
52 + line-height: 1;
29 53 }
30 54 }
31 55
32 56 .wp-submenu a[href='admin.php?page=code_snippets_upgrade']:hover {