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/settings.scss +142 -38 4.0.0-beta.1 → trunk View file →
@@ -1,23 +1,40 @@
1 +@use 'common/buttons';
2 +@use 'common/theme';
3 +@use 'common/checkbox';
1 4 @use 'common/codemirror';
5 +@use 'common/subnav';
2 6 @use 'common/toolbar';
3 7 @use 'common/wp-admin';
8 +@use 'common/page-header';
4 9
5 -$sections: general, editor, debug, version-switch;
10 +.wrap.code-snippets-settings {
11 + margin-block-start: 0;
12 +}
6 13
7 -.wrap > h2:first-of-type {
8 - font-size: 1.5rem;
9 - font-weight: 400;
10 - line-height: 1.3;
11 - padding: 0;
12 - margin-block: 50px 1rem;
14 +.settings-section input[type='checkbox']:not(.switch) {
15 + @include checkbox.canonical;
16 +
17 + margin-inline-end: 8px;
13 18 }
14 19
15 20 p.submit {
16 21 display: flex;
17 - justify-content: space-between;
22 + justify-content: flex-start;
23 + gap: 14px;
24 +
25 + .button-secondary {
26 + background: transparent;
27 + }
18 28 }
19 29
30 +.settings-section .form-table th {
31 + inline-size: 261px;
32 + font-size: 14px;
33 + font-weight: 700;
34 + color: var(--cs-color-text);
35 +}
36 +
20 37 .settings-section,
21 38 p.submit {
22 39 max-inline-size: 1020px;
23 40 }
@@ -71,12 +88,19 @@
71 88 .settings-section {
72 89 display: none;
73 90 }
74 91
75 - @each $section in $sections {
76 - .wrap[data-active-tab=#{$section}] .#{$section}-settings {
77 - display: block;
78 - }
92 + .wrap[data-active-tab='general'] .general-settings,
93 + .wrap[data-active-tab='editor'] .editor-settings,
94 + .wrap[data-active-tab='debug'] .debug-settings,
95 + .wrap[data-active-tab='version-switch'] .version-switch-settings,
96 + .wrap[data-active-tab='editing'] .editing-settings,
97 + .wrap[data-active-tab='running'] .running-settings,
98 + .wrap[data-active-tab='insights'] .insights-settings,
99 + .wrap[data-active-tab='library'] .library-settings,
100 + .wrap[data-active-tab='interface'] .interface-settings,
101 + .wrap[data-active-tab='advanced'] .advanced-settings {
102 + display: block;
79 103 }
80 104 }
81 105
82 106 .license-status {
@@ -82,26 +106,27 @@
82 106 .license-status {
83 107 display: inline-block;
84 108 padding-inline-end: 2em;
85 109 line-height: 2;
86 - color: #646970;
110 + color: var(--cs-color-text-muted);
87 111 }
88 112
89 113 .license-status-valid {
90 - color: #2ecc40;
114 + color: var(--cs-color-success);
91 115 }
92 116
93 117 .license-status-expired {
94 - color: #dc3232;
118 + color: var(--cs-color-error);
95 119 }
96 120
97 -.wrap[data-active-tab='license'] .submit {
121 +.wrap[data-active-tab='license'] .submit,
122 +.wrap[data-active-tab='account'] .submit {
98 123 display: none;
99 124 }
100 125
101 126 #code_snippets_remove_license {
102 - color: #b32d2e;
103 - border-color: #b32d2e;
127 + color: var(--cs-color-error);
128 + border-color: var(--cs-color-error);
104 129 }
105 130
106 131 #code_snippets_license_key {
107 132 font-family: Consolas, Monaco, monospace;
@@ -119,14 +144,14 @@
119 144 font-weight: 600;
120 145 }
121 146
122 147 .cloud-error {
123 - background: #e53935;
148 + background: var(--cs-color-error);
124 149 color: #ffebee;
125 150 }
126 151
127 152 .cloud-success {
128 - background: #43a047;
153 + background: var(--cs-color-success);
129 154 color: #e8f5e9;
130 155 }
131 156
132 157 .refresh-success {
@@ -144,12 +169,12 @@
144 169 font-family: monospace;
145 170 font-size: 1.1em;
146 171 font-weight: bold;
147 172 color: #0073aa;
148 - background: #f0f6fc;
173 + background: var(--cs-color-surface-info);
149 174 padding: 2px 8px;
150 - border-radius: 3px;
151 - border: 1px solid #c3c4c7;
175 + border-radius: 5px;
176 + border: 1px solid var(--cs-color-border);
152 177 }
153 178
154 179 #target_version {
155 180 min-inline-size: 200px;
@@ -159,26 +184,25 @@
159 184 #switch-version-btn {
160 185 &[disabled] {
161 186 opacity: 0.6;
162 187 cursor: not-allowed;
163 - background-color: #f0f0f1 !important;
164 - color: #a7aaad !important;
165 - border-color: #dcdcde !important;
188 + background-color: var(--cs-color-surface-muted) !important;
189 + color: var(--cs-color-text-disabled) !important;
190 + border-color: var(--cs-color-border-subtle) !important;
166 191 }
167 192 }
168 -
193 +
169 194 // Warning box styling
170 195 #version-switch-warning {
171 196 margin-block-start: 20px !important;
172 197 padding: 12px 16px;
173 - border-inline-start: 4px solid #dba617;
174 - background: #fff8e5;
175 - border-radius: 4px;
176 -
198 + border-inline-start: 4px solid var(--cs-color-warning);
199 + background: var(--cs-color-surface-subtle);
200 +
177 201 p {
178 202 margin: 0;
179 203 color: #8f6914;
180 -
204 +
181 205 strong {
182 206 color: #8f6914;
183 207 }
184 208 }
@@ -185,12 +209,11 @@
185 209 }
186 210
187 211 #version-switch-result {
188 212 margin-block-start: 12px;
189 -
213 +
190 214 &.notice {
191 215 padding: 8px 12px;
192 - border-radius: 4px;
193 216 }
194 217 }
195 218
196 219 .notice {
@@ -195,21 +218,21 @@
195 218
196 219 .notice {
197 220 &.notice {
198 221 &-success {
199 - border-inline-start-color: #00a32a;
222 + border-inline-start-color: var(--cs-color-success);
200 223 }
201 224
202 225 &-error {
203 - border-inline-start-color: #d63638;
226 + border-inline-start-color: var(--cs-color-error);
204 227 }
205 228
206 229 &-warning {
207 - border-inline-start-color: #dba617;
230 + border-inline-start-color: var(--cs-color-warning);
208 231 }
209 232
210 233 &-info {
211 - border-inline-start-color: #72aee6;
234 + border-inline-start-color: var(--cs-color-info);
212 235 }
213 236 }
214 237 }
215 238 }
@@ -219,5 +242,86 @@
219 242 th {
220 243 inline-size: 180px;
221 244 }
222 245 }
246 +}
247 +
248 +#settings-sections-tabs {
249 + margin: 0;
250 + padding: 0;
251 +
252 + ul {
253 + display: flex;
254 + align-items: stretch;
255 + margin: 0;
256 + padding: 0;
257 + list-style: none;
258 + }
259 +
260 + .snippet-type-link {
261 + display: flex;
262 + align-items: center;
263 + min-block-size: 52px;
264 + margin: 0;
265 + padding-inline: 24px;
266 + color: var(--cs-color-text-muted);
267 + font-size: 14px;
268 + font-weight: 600;
269 + line-height: 1.5;
270 + border: 0;
271 + border-inline-end: 1px solid var(--cs-color-border-subtle);
272 + background: transparent;
273 +
274 + &:hover,
275 + &:focus,
276 + &:active {
277 + color: var(--cs-color-accent);
278 + }
279 +
280 + &.active-type,
281 + &.active-type:hover,
282 + &.active-type:focus {
283 + color: var(--cs-color-accent);
284 + background: var(--cs-color-surface-muted);
285 + }
286 + }
287 +}
288 +
289 +@media (width <= 782px) {
290 + body.js {
291 + .settings-section-title {
292 + position: static;
293 + inline-size: auto;
294 + block-size: auto;
295 + margin: 0 0 16px;
296 + overflow: visible;
297 + clip: auto;
298 + clip-path: none;
299 + font-size: 20px;
300 + line-height: 1.3;
301 + }
302 +
303 + .settings-section {
304 + display: block !important;
305 + margin-block-end: 40px;
306 + }
307 +
308 + .wrap[data-active-tab='license'] .submit {
309 + display: flex;
310 + }
311 + }
312 +}
313 +
314 +// Group headings inside a settings tab. Tabs are long enough that unbroken
315 +// rows are hard to scan, so related fields sit under a label.
316 +.settings-section .form-table .settings-group-heading th {
317 + inline-size: auto;
318 + padding-block: 26px 8px;
319 + border-block-end: 1px solid var(--cs-color-border-subtle);
320 + font-size: 15px;
321 + font-weight: 600;
322 + color: var(--cs-color-text);
323 +}
324 +
325 +.settings-section .form-table .settings-group-heading:first-child th {
326 + padding-block-start: 4px;
223 327 }