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 / common / _toolbar.scss

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

128 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @use 'upsell';
2
3 $toolbar-block-size: 150px;
4 $wpcontent-inline-start-indent: 20px;
5
6 #wpbody {
7 padding-block-start: $toolbar-block-size;
8 }
9
10 .code-snippets-toolbar {
11 color: #2c3337;
12 background: #fff;
13 font-family: 'SF Pro', sans-serif;
14 margin-inline-start: -$wpcontent-inline-start-indent - 2;
15 position: absolute;
16 inline-size: calc(100% + $wpcontent-inline-start-indent);
17 block-size: $toolbar-block-size;
18 inset-block-start: 0;
19 display: flex;
20 flex-direction: column;
21
22 ul, li {
23 margin: 0;
24 padding: 0;
25 list-style: none;
26 }
27 }
28
29 .code-snippets-toolbar-upper {
30 justify-content: space-between;
31 block-size: 77px;
32 padding-inline: 24px;
33 display: flex;
34 align-items: center;
35
36 .logo {
37 display: flex;
38 align-items: center;
39 gap: 8px;
40
41 img {
42 block-size: 42px;
43 }
44 }
45
46 h1 {
47 font-size: 18px;
48 font-weight: 700;
49 line-height: 1.5;
50 }
51
52 ul {
53 display: flex;
54 gap: 22px;
55 align-items: center;
56 }
57
58 a {
59 color: inherit;
60 text-decoration: none;
61 }
62 }
63
64 .code-snippets-toolbar-lower {
65 border-block: 1px solid #c3c4c7;
66
67 ul {
68 display: flex;
69 align-items: end;
70 }
71
72 li a {
73 display: flex;
74 margin: 0;
75 padding: 24px 24px 20px;
76 color: inherit;
77 gap: 12px;
78 align-items: center;
79 font-size: 16px;
80 text-decoration: none;
81 font-weight: bold;
82 box-sizing: border-box;
83 transition: border unset;
84 border-block-end: 4px solid transparent;
85 cursor: pointer;
86
87 &.active-link, &:hover, &:focus, &:active {
88 color: #2271b1;
89 border-block-end-color: currentcolor;
90 }
91 }
92
93 li:last-of-type {
94 margin-inline-start: auto;
95 }
96 }
97
98 .code-snippets-toolbar-upper li a.active-link,
99 .code-snippets-toolbar-upper li a:hover,
100 .code-snippets-toolbar-upper li a:focus,
101 .code-snippets-toolbar-upper li a:active {
102 color: #2271b1;
103 }
104
105 .code-snippets-toolbar-lower .pro-chip,
106 .nav-tab .pro-chip {
107 color: #d46f4d;
108 text-transform: uppercase;
109 border: 2px solid currentcolor;
110 border-radius: 999px;
111 display: flex;
112 justify-content: center;
113 align-items: center;
114 box-sizing: border-box;
115 padding: 3px 9px;
116 font-weight: 600;
117 }
118
119
120 .code-snippets-toolbar-lower .pro-chip {
121 font-size: 12px;
122 }
123
124 .nav-tab .pro-chip {
125 font-size: 10px;
126 padding: 0 6px;
127 }
128