PluginProbe
Code Snippets / 4.0.0-beta.1
Code Snippets v4.0.0-beta.1
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
code-snippets / css / menu.scss

menu.scss in Code Snippets 4.0.0-beta.1, at css/menu.scss

56 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @use 'common/theme';
2
3 #adminmenu {
4 .toplevel_page_snippets div.wp-menu-image::before {
5 content: '';
6 mask-image: url('../assets/menu-icon.svg');
7 mask-repeat: no-repeat;
8 mask-position: center;
9 background-color: currentcolor;
10 }
11
12 .code-snippets-upgrade-button {
13 color: #fff;
14 background-color: #d46f4d;
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 so the menu pill keeps its classic dimensions and stays
19 // aligned with the surrounding submenu items across WP versions.
20 border-radius: 3px;
21 padding-block: 0;
22 padding-inline: 10px;
23 min-block-size: theme.$control-height;
24 block-size: auto;
25 text-align: center;
26 font-weight: bold;
27 transition: background-color .1s linear;
28 white-space: break-spaces;
29 line-height: inherit;
30 display: flex;
31 justify-content: center;
32 align-items: center;
33
34 @media (prefers-reduced-motion: reduce) {
35 transition-duration: 0.01s;
36 }
37
38 &:hover {
39 background-color: #08c5d1;
40 }
41
42 .dashicons {
43 vertical-align: text-bottom;
44 color: inherit;
45
46 // WP 7.0's taller button line-height (≈38px) leaks onto the icon and pushes it out
47 // of alignment; reset it so the glyph stays centred within the flex pill.
48 line-height: 1;
49 }
50 }
51
52 .wp-submenu a[href='admin.php?page=code_snippets_upgrade']='admin.php?page=code_snippets_upgrade']:hover {
53 box-shadow: none;
54 }
55 }
56