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 +149 -35 3.9.6 → trunk View file →
@@ -1,13 +1,40 @@
1 +@use 'common/buttons';
2 +@use 'common/theme';
3 +@use 'common/checkbox';
1 4 @use 'common/codemirror';
5 +@use 'common/subnav';
6 +@use 'common/toolbar';
7 +@use 'common/wp-admin';
8 +@use 'common/page-header';
2 9
3 -$sections: general, editor, debug, version-switch;
10 +.wrap.code-snippets-settings {
11 + margin-block-start: 0;
12 +}
4 13
14 +.settings-section input[type='checkbox']:not(.switch) {
15 + @include checkbox.canonical;
16 +
17 + margin-inline-end: 8px;
18 +}
19 +
5 20 p.submit {
6 21 display: flex;
7 - justify-content: space-between;
22 + justify-content: flex-start;
23 + gap: 14px;
24 +
25 + .button-secondary {
26 + background: transparent;
27 + }
8 28 }
9 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 +
10 37 .settings-section,
11 38 p.submit {
12 39 max-inline-size: 1020px;
13 40 }
@@ -15,9 +42,9 @@
15 42 .nav-tab-wrapper {
16 43 margin-block-end: 1em;
17 44 }
18 45
19 -input[type="number"] {
46 +input[type='number'] {
20 47 inline-size: 4em;
21 48 }
22 49
23 50 .CodeMirror {
@@ -61,12 +88,19 @@
61 88 .settings-section {
62 89 display: none;
63 90 }
64 91
65 - @each $section in $sections {
66 - .wrap[data-active-tab=#{$section}] .#{$section}-settings {
67 - display: block;
68 - }
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;
69 103 }
70 104 }
71 105
72 106 .license-status {
@@ -72,26 +106,27 @@
72 106 .license-status {
73 107 display: inline-block;
74 108 padding-inline-end: 2em;
75 109 line-height: 2;
76 - color: #aaa;
110 + color: var(--cs-color-text-muted);
77 111 }
78 112
79 113 .license-status-valid {
80 - color: #2ecc40;
114 + color: var(--cs-color-success);
81 115 }
82 116
83 117 .license-status-expired {
84 - color: #dc3232;
118 + color: var(--cs-color-error);
85 119 }
86 120
87 -.wrap[data-active-tab="license"] .submit {
121 +.wrap[data-active-tab='license'] .submit,
122 +.wrap[data-active-tab='account'] .submit {
88 123 display: none;
89 124 }
90 125
91 126 #code_snippets_remove_license {
92 - color: #b32d2e;
93 - border-color: #b32d2e;
127 + color: var(--cs-color-error);
128 + border-color: var(--cs-color-error);
94 129 }
95 130
96 131 #code_snippets_license_key {
97 132 font-family: Consolas, Monaco, monospace;
@@ -109,20 +144,20 @@
109 144 font-weight: 600;
110 145 }
111 146
112 147 .cloud-error {
113 - background: #e53935;
148 + background: var(--cs-color-error);
114 149 color: #ffebee;
115 150 }
116 151
117 152 .cloud-success {
118 - background: #43a047;
153 + background: var(--cs-color-success);
119 154 color: #e8f5e9;
120 155 }
121 156
122 157 .refresh-success {
123 - background: #2271b1;
124 - color: #ffeb3b;
158 + background: #2e7d4f;
159 + color: #fff;
125 160 }
126 161
127 162 .cloud-settings tbody tr:nth-child(n+5) {
128 163 display: none;
@@ -134,12 +169,12 @@
134 169 font-family: monospace;
135 170 font-size: 1.1em;
136 171 font-weight: bold;
137 172 color: #0073aa;
138 - background: #f0f6fc;
173 + background: var(--cs-color-surface-info);
139 174 padding: 2px 8px;
140 - border-radius: 3px;
141 - border: 1px solid #c3c4c7;
175 + border-radius: 5px;
176 + border: 1px solid var(--cs-color-border);
142 177 }
143 178
144 179 #target_version {
145 180 min-inline-size: 200px;
@@ -149,26 +184,25 @@
149 184 #switch-version-btn {
150 185 &[disabled] {
151 186 opacity: 0.6;
152 187 cursor: not-allowed;
153 - background-color: #f0f0f1 !important;
154 - color: #a7aaad !important;
155 - 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;
156 191 }
157 192 }
158 -
193 +
159 194 // Warning box styling
160 195 #version-switch-warning {
161 196 margin-block-start: 20px !important;
162 197 padding: 12px 16px;
163 - border-inline-start: 4px solid #dba617;
164 - background: #fff8e5;
165 - border-radius: 4px;
166 -
198 + border-inline-start: 4px solid var(--cs-color-warning);
199 + background: var(--cs-color-surface-subtle);
200 +
167 201 p {
168 202 margin: 0;
169 203 color: #8f6914;
170 -
204 +
171 205 strong {
172 206 color: #8f6914;
173 207 }
174 208 }
@@ -175,12 +209,11 @@
175 209 }
176 210
177 211 #version-switch-result {
178 212 margin-block-start: 12px;
179 -
213 +
180 214 &.notice {
181 215 padding: 8px 12px;
182 - border-radius: 4px;
183 216 }
184 217 }
185 218
186 219 .notice {
@@ -185,21 +218,21 @@
185 218
186 219 .notice {
187 220 &.notice {
188 221 &-success {
189 - border-inline-start-color: #00a32a;
222 + border-inline-start-color: var(--cs-color-success);
190 223 }
191 224
192 225 &-error {
193 - border-inline-start-color: #d63638;
226 + border-inline-start-color: var(--cs-color-error);
194 227 }
195 228
196 229 &-warning {
197 - border-inline-start-color: #dba617;
230 + border-inline-start-color: var(--cs-color-warning);
198 231 }
199 232
200 233 &-info {
201 - border-inline-start-color: #72aee6;
234 + border-inline-start-color: var(--cs-color-info);
202 235 }
203 236 }
204 237 }
205 238 }
@@ -209,5 +242,86 @@
209 242 th {
210 243 inline-size: 180px;
211 244 }
212 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;
213 327 }