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 +116 -35 3.10.0-beta.1 → trunk View file →
@@ -1,13 +1,16 @@
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 +.wrap.code-snippets-settings {
11 + margin-block-start: 0;
12 +}
10 13
11 14 .settings-section input[type='checkbox']:not(.switch) {
12 15 @include checkbox.canonical;
13 16
@@ -13,12 +16,8 @@
13 16
14 17 margin-inline-end: 8px;
15 18 }
16 19
17 -.snippets-page-header h1 {
18 - color: #2c3337;
19 -}
20 -
21 20 p.submit {
22 21 display: flex;
23 22 justify-content: flex-start;
24 23 gap: 14px;
@@ -31,9 +30,9 @@
31 30 .settings-section .form-table th {
32 31 inline-size: 261px;
33 32 font-size: 14px;
34 33 font-weight: 700;
35 - color: #2c3337;
34 + color: var(--cs-color-text);
36 35 }
37 36
38 37 .settings-section,
39 38 p.submit {
@@ -89,12 +88,19 @@
89 88 .settings-section {
90 89 display: none;
91 90 }
92 91
93 - @each $section in $sections {
94 - .wrap[data-active-tab=#{$section}] .#{$section}-settings {
95 - display: block;
96 - }
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;
97 103 }
98 104 }
99 105
100 106 .license-status {
@@ -100,26 +106,27 @@
100 106 .license-status {
101 107 display: inline-block;
102 108 padding-inline-end: 2em;
103 109 line-height: 2;
104 - color: #646970;
110 + color: var(--cs-color-text-muted);
105 111 }
106 112
107 113 .license-status-valid {
108 - color: #2ecc40;
114 + color: var(--cs-color-success);
109 115 }
110 116
111 117 .license-status-expired {
112 - color: #dc3232;
118 + color: var(--cs-color-error);
113 119 }
114 120
115 -.wrap[data-active-tab='license'] .submit {
121 +.wrap[data-active-tab='license'] .submit,
122 +.wrap[data-active-tab='account'] .submit {
116 123 display: none;
117 124 }
118 125
119 126 #code_snippets_remove_license {
120 - color: #b32d2e;
121 - border-color: #b32d2e;
127 + color: var(--cs-color-error);
128 + border-color: var(--cs-color-error);
122 129 }
123 130
124 131 #code_snippets_license_key {
125 132 font-family: Consolas, Monaco, monospace;
@@ -137,14 +144,14 @@
137 144 font-weight: 600;
138 145 }
139 146
140 147 .cloud-error {
141 - background: #e53935;
148 + background: var(--cs-color-error);
142 149 color: #ffebee;
143 150 }
144 151
145 152 .cloud-success {
146 - background: #43a047;
153 + background: var(--cs-color-success);
147 154 color: #e8f5e9;
148 155 }
149 156
150 157 .refresh-success {
@@ -162,12 +169,12 @@
162 169 font-family: monospace;
163 170 font-size: 1.1em;
164 171 font-weight: bold;
165 172 color: #0073aa;
166 - background: #f0f6fc;
173 + background: var(--cs-color-surface-info);
167 174 padding: 2px 8px;
168 - border-radius: 3px;
169 - border: 1px solid theme.$control-border;
175 + border-radius: 5px;
176 + border: 1px solid var(--cs-color-border);
170 177 }
171 178
172 179 #target_version {
173 180 min-inline-size: 200px;
@@ -177,22 +184,20 @@
177 184 #switch-version-btn {
178 185 &[disabled] {
179 186 opacity: 0.6;
180 187 cursor: not-allowed;
181 - background-color: #f0f0f1 !important;
182 - color: #a7aaad !important;
183 - 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;
184 191 }
185 192 }
186 193
187 194 // Warning box styling
188 195 #version-switch-warning {
189 - display: none;
190 196 margin-block-start: 20px !important;
191 197 padding: 12px 16px;
192 - border-inline-start: 4px solid #dba617;
193 - background: #fff8e5;
194 - border-radius: 4px;
198 + border-inline-start: 4px solid var(--cs-color-warning);
199 + background: var(--cs-color-surface-subtle);
195 200
196 201 p {
197 202 margin: 0;
198 203 color: #8f6914;
@@ -207,9 +212,8 @@
207 212 margin-block-start: 12px;
208 213
209 214 &.notice {
210 215 padding: 8px 12px;
211 - border-radius: 4px;
212 216 }
213 217 }
214 218
215 219 .notice {
@@ -214,21 +218,21 @@
214 218
215 219 .notice {
216 220 &.notice {
217 221 &-success {
218 - border-inline-start-color: #00a32a;
222 + border-inline-start-color: var(--cs-color-success);
219 223 }
220 224
221 225 &-error {
222 - border-inline-start-color: #d63638;
226 + border-inline-start-color: var(--cs-color-error);
223 227 }
224 228
225 229 &-warning {
226 - border-inline-start-color: #dba617;
230 + border-inline-start-color: var(--cs-color-warning);
227 231 }
228 232
229 233 &-info {
230 - border-inline-start-color: #72aee6;
234 + border-inline-start-color: var(--cs-color-info);
231 235 }
232 236 }
233 237 }
234 238 }
@@ -241,6 +245,83 @@
241 245 }
242 246 }
243 247
244 248 #settings-sections-tabs {
245 - margin-block-end: 15px;
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;
246 327 }