PluginProbe
Code Snippets / 3.10.1
Code Snippets v3.10.1
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 3.0.1 All 64 releases
code-snippets / css / settings.scss

settings.scss in Code Snippets 3.10.1, at css/settings.scss

316 lines 4.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @use 'common/checkbox';
2 @use 'common/codemirror';
3 @use 'common/subnav';
4 @use 'common/theme';
5 @use 'common/toolbar';
6 @use 'common/wp-admin';
7 @use 'common/page-header';
8
9 $sections: general, editor, debug, version-switch;
10
11 .wrap.code-snippets-settings {
12 margin-block-start: 0;
13 }
14
15 .settings-section input[type='checkbox']='checkbox']:not(.switch) {
16 @include checkbox.canonical;
17
18 margin-inline-end: 8px;
19 }
20
21 .snippets-page-header h1 {
22 color: #2c3337;
23 }
24
25 p.submit {
26 display: flex;
27 justify-content: flex-start;
28 gap: 14px;
29
30 .button-secondary {
31 background: transparent;
32 }
33 }
34
35 .settings-section .form-table th {
36 inline-size: 261px;
37 font-size: 14px;
38 font-weight: 700;
39 color: #2c3337;
40 }
41
42 .settings-section,
43 p.submit {
44 max-inline-size: 1020px;
45 }
46
47 .nav-tab-wrapper {
48 margin-block-end: 1em;
49 }
50
51 input[type='number']='number'] {
52 inline-size: 4em;
53 }
54
55 .CodeMirror {
56 max-inline-size: 800px;
57 inline-size: 100%;
58 padding-inline-end: 1em;
59 }
60
61 .CodeMirror-sizer::before {
62 content: '<?php';
63 }
64
65 body.no-js {
66 .nav-tab-wrapper {
67 display: none;
68 }
69
70 .settings-section {
71 display: block !important;
72 }
73 }
74
75 body.js {
76 .settings-section-title {
77 border: 0;
78 clip: rect(1px, 1px, 1px, 1px);
79 clip-path: inset(50%);
80 block-size: 1px;
81 margin: -1px;
82 overflow: hidden;
83 padding: 0;
84 position: absolute;
85 inline-size: 1px;
86 word-wrap: normal !important;
87 }
88
89 .nav-tab:not(.nav-tab-active) {
90 cursor: pointer;
91 }
92
93 .settings-section {
94 display: none;
95 }
96
97 @each $section in $sections {
98 .wrap[data-active-tab=#{$section}]=#{$section}] .#{$section}-settings {
99 display: block;
100 }
101 }
102 }
103
104 .license-status {
105 display: inline-block;
106 padding-inline-end: 2em;
107 line-height: 2;
108 color: #646970;
109 }
110
111 .license-status-valid {
112 color: #2ecc40;
113 }
114
115 .license-status-expired {
116 color: #dc3232;
117 }
118
119 .wrap[data-active-tab='license']='license'] .submit {
120 display: none;
121 }
122
123 #code_snippets_remove_license {
124 color: #b32d2e;
125 border-color: #b32d2e;
126 }
127
128 #code_snippets_license_key {
129 font-family: Consolas, Monaco, monospace;
130 }
131
132 #cloud_token {
133 max-inline-size: 450px;
134 inline-size: 90vw;
135 }
136
137 .cloud-message {
138 inline-size: fit-content;
139 padding: 5px;
140 border-radius: 5px;
141 font-weight: 600;
142 }
143
144 .cloud-error {
145 background: #e53935;
146 color: #ffebee;
147 }
148
149 .cloud-success {
150 background: #43a047;
151 color: #e8f5e9;
152 }
153
154 .refresh-success {
155 background: #2e7d4f;
156 color: #fff;
157 }
158
159 .cloud-settings tbody tr:nth-child(n+5) {
160 display: none;
161 }
162
163 // Version Switch Styles
164 .code-snippets-version-switch {
165 .current-version {
166 font-family: monospace;
167 font-size: 1.1em;
168 font-weight: bold;
169 color: #0073aa;
170 background: #f0f6fc;
171 padding: 2px 8px;
172 border-radius: 3px;
173 border: 1px solid theme.$control-border;
174 }
175
176 #target_version {
177 min-inline-size: 200px;
178 margin-inline-start: 8px;
179 }
180
181 #switch-version-btn {
182 &[disabled]] {
183 opacity: 0.6;
184 cursor: not-allowed;
185 background-color: #f0f0f1 !important;
186 color: #a7aaad !important;
187 border-color: #dcdcde !important;
188 }
189 }
190
191 // Warning box styling
192 #version-switch-warning {
193 margin-block-start: 20px !important;
194 padding: 12px 16px;
195 border-inline-start: 4px solid #dba617;
196 background: #fff8e5;
197 border-radius: 4px;
198
199 p {
200 margin: 0;
201 color: #8f6914;
202
203 strong {
204 color: #8f6914;
205 }
206 }
207 }
208
209 #version-switch-result {
210 margin-block-start: 12px;
211
212 &.notice {
213 padding: 8px 12px;
214 border-radius: 4px;
215 }
216 }
217
218 .notice {
219 &.notice {
220 &-success {
221 border-inline-start-color: #00a32a;
222 }
223
224 &-error {
225 border-inline-start-color: #d63638;
226 }
227
228 &-warning {
229 border-inline-start-color: #dba617;
230 }
231
232 &-info {
233 border-inline-start-color: #72aee6;
234 }
235 }
236 }
237 }
238
239 .version-switch-settings {
240 .form-table {
241 th {
242 inline-size: 180px;
243 }
244 }
245 }
246
247 #settings-sections-tabs {
248 margin: 0;
249 padding: 0;
250
251 ul {
252 display: flex;
253 align-items: stretch;
254 margin: 0;
255 padding: 0;
256 list-style: none;
257 }
258
259 .snippet-type-link {
260 display: flex;
261 align-items: center;
262 min-block-size: 52px;
263 margin: 0;
264 padding-inline: 24px;
265 color: #646970;
266 font-size: 14px;
267 font-weight: 600;
268 line-height: 1.5;
269 border: 0;
270 border-inline-end: 1px solid #e2e2e4;
271 background: transparent;
272
273 &:hover,
274 &:focus,
275 &:active {
276 color: theme.$accent;
277 }
278
279 &.active-type,
280 &.active-type:hover,
281 &.active-type:focus {
282 color: theme.$accent;
283 background: #f0f0f1;
284 }
285 }
286 }
287
288 @media (width <= 782px) {
289 body.js {
290 .settings-type-nav-wrapper {
291 display: none;
292 }
293
294 .settings-section-title {
295 position: static;
296 inline-size: auto;
297 block-size: auto;
298 margin: 0 0 16px;
299 overflow: visible;
300 clip: auto;
301 clip-path: none;
302 font-size: 20px;
303 line-height: 1.3;
304 }
305
306 .settings-section {
307 display: block !important;
308 margin-block-end: 40px;
309 }
310
311 .wrap[data-active-tab='license']='license'] .submit {
312 display: flex;
313 }
314 }
315 }
316