PluginProbe
Code Snippets / 4.0.0-beta.2
Code Snippets v4.0.0-beta.2
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 +55 -43 3.10.04.0.0-beta.2 View file →
@@ -1,14 +1,13 @@
1 +@use 'common/buttons';
2 +@use 'common/theme';
1 3 @use 'common/checkbox';
2 4 @use 'common/codemirror';
3 5 @use 'common/subnav';
4 -@use 'common/theme';
5 6 @use 'common/toolbar';
6 7 @use 'common/wp-admin';
7 8 @use 'common/page-header';
8 9
9 -$sections: general, editor, debug, version-switch;
10 -
11 10 .wrap.code-snippets-settings {
12 11 margin-block-start: 0;
13 12 }
14 13
@@ -17,12 +16,8 @@
17 16
18 17 margin-inline-end: 8px;
19 18 }
20 19
21 -.snippets-page-header h1 {
22 - color: #2c3337;
23 -}
24 -
25 20 p.submit {
26 21 display: flex;
27 22 justify-content: flex-start;
28 23 gap: 14px;
@@ -35,9 +30,9 @@
35 30 .settings-section .form-table th {
36 31 inline-size: 261px;
37 32 font-size: 14px;
38 33 font-weight: 700;
39 - color: #2c3337;
34 + color: var(--cs-color-text);
40 35 }
41 36
42 37 .settings-section,
43 38 p.submit {
@@ -93,12 +88,19 @@
93 88 .settings-section {
94 89 display: none;
95 90 }
96 91
97 - @each $section in $sections {
98 - .wrap[data-active-tab=#{$section}] .#{$section}-settings {
99 - display: block;
100 - }
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;
101 103 }
102 104 }
103 105
104 106 .license-status {
@@ -104,26 +106,27 @@
104 106 .license-status {
105 107 display: inline-block;
106 108 padding-inline-end: 2em;
107 109 line-height: 2;
108 - color: #646970;
110 + color: var(--cs-color-text-muted);
109 111 }
110 112
111 113 .license-status-valid {
112 - color: #2ecc40;
114 + color: var(--cs-color-success);
113 115 }
114 116
115 117 .license-status-expired {
116 - color: #dc3232;
118 + color: var(--cs-color-error);
117 119 }
118 120
119 -.wrap[data-active-tab='license'] .submit {
121 +.wrap[data-active-tab='license'] .submit,
122 +.wrap[data-active-tab='account'] .submit {
120 123 display: none;
121 124 }
122 125
123 126 #code_snippets_remove_license {
124 - color: #b32d2e;
125 - border-color: #b32d2e;
127 + color: var(--cs-color-error);
128 + border-color: var(--cs-color-error);
126 129 }
127 130
128 131 #code_snippets_license_key {
129 132 font-family: Consolas, Monaco, monospace;
@@ -141,14 +144,14 @@
141 144 font-weight: 600;
142 145 }
143 146
144 147 .cloud-error {
145 - background: #e53935;
148 + background: var(--cs-color-error);
146 149 color: #ffebee;
147 150 }
148 151
149 152 .cloud-success {
150 - background: #43a047;
153 + background: var(--cs-color-success);
151 154 color: #e8f5e9;
152 155 }
153 156
154 157 .refresh-success {
@@ -166,12 +169,12 @@
166 169 font-family: monospace;
167 170 font-size: 1.1em;
168 171 font-weight: bold;
169 172 color: #0073aa;
170 - background: #f0f6fc;
173 + background: var(--cs-color-surface-info);
171 174 padding: 2px 8px;
172 - border-radius: 3px;
173 - border: 1px solid theme.$control-border;
175 + border-radius: 5px;
176 + border: 1px solid var(--cs-color-border);
174 177 }
175 178
176 179 #target_version {
177 180 min-inline-size: 200px;
@@ -181,11 +184,11 @@
181 184 #switch-version-btn {
182 185 &[disabled] {
183 186 opacity: 0.6;
184 187 cursor: not-allowed;
185 - background-color: #f0f0f1 !important;
186 - color: #a7aaad !important;
187 - 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;
188 191 }
189 192 }
190 193
191 194 // Warning box styling
@@ -191,11 +194,10 @@
191 194 // Warning box styling
192 195 #version-switch-warning {
193 196 margin-block-start: 20px !important;
194 197 padding: 12px 16px;
195 - border-inline-start: 4px solid #dba617;
196 - background: #fff8e5;
197 - border-radius: 4px;
198 + border-inline-start: 4px solid var(--cs-color-warning);
199 + background: var(--cs-color-surface-subtle);
198 200
199 201 p {
200 202 margin: 0;
201 203 color: #8f6914;
@@ -210,9 +212,8 @@
210 212 margin-block-start: 12px;
211 213
212 214 &.notice {
213 215 padding: 8px 12px;
214 - border-radius: 4px;
215 216 }
216 217 }
217 218
218 219 .notice {
@@ -217,21 +218,21 @@
217 218
218 219 .notice {
219 220 &.notice {
220 221 &-success {
221 - border-inline-start-color: #00a32a;
222 + border-inline-start-color: var(--cs-color-success);
222 223 }
223 224
224 225 &-error {
225 - border-inline-start-color: #d63638;
226 + border-inline-start-color: var(--cs-color-error);
226 227 }
227 228
228 229 &-warning {
229 - border-inline-start-color: #dba617;
230 + border-inline-start-color: var(--cs-color-warning);
230 231 }
231 232
232 233 &-info {
233 - border-inline-start-color: #72aee6;
234 + border-inline-start-color: var(--cs-color-info);
234 235 }
235 236 }
236 237 }
237 238 }
@@ -261,27 +262,27 @@
261 262 align-items: center;
262 263 min-block-size: 52px;
263 264 margin: 0;
264 265 padding-inline: 24px;
265 - color: #646970;
266 + color: var(--cs-color-text-muted);
266 267 font-size: 14px;
267 268 font-weight: 600;
268 269 line-height: 1.5;
269 270 border: 0;
270 - border-inline-end: 1px solid #e2e2e4;
271 + border-inline-end: 1px solid var(--cs-color-border-subtle);
271 272 background: transparent;
272 273
273 274 &:hover,
274 275 &:focus,
275 276 &:active {
276 - color: theme.$accent;
277 + color: var(--cs-color-accent);
277 278 }
278 279
279 280 &.active-type,
280 281 &.active-type:hover,
281 282 &.active-type:focus {
282 - color: theme.$accent;
283 - background: #f0f0f1;
283 + color: var(--cs-color-accent);
284 + background: var(--cs-color-surface-muted);
284 285 }
285 286 }
286 287 }
287 288
@@ -286,12 +287,8 @@
286 287 }
287 288
288 289 @media (width <= 782px) {
289 290 body.js {
290 - .settings-type-nav-wrapper {
291 - display: none;
292 - }
293 -
294 291 .settings-section-title {
295 292 position: static;
296 293 inline-size: auto;
297 294 block-size: auto;
@@ -311,5 +308,20 @@
311 308 .wrap[data-active-tab='license'] .submit {
312 309 display: flex;
313 310 }
314 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;
315 327 }