PluginProbe ʕ •ᴥ•ʔ
Secure Custom Fields / 6.4.1-beta5
Secure Custom Fields v6.4.1-beta5
6.9.5 6.9.4 6.9.3 6.9.2 6.9.1 6.9.0 6.8.9 6.8.7 6.8.8 6.8.6 6.8.4 6.8.5 trunk 6.4.0-beta1 6.4.0-beta2 6.4.1 6.4.1-beta3 6.4.1-beta4 6.4.1-beta5 6.4.1-beta6 6.4.1-beta7 6.4.2 6.5.0 6.5.1 6.5.2 6.5.3 6.5.4 6.5.5 6.5.6 6.5.7 6.6.0 6.7.0 6.7.1 6.8.0 6.8.1 6.8.2 6.8.3
secure-custom-fields / assets / src / sass / _acf-icon-picker.scss
secure-custom-fields / assets / src / sass Last commit date
pro 1 year ago _acf-headerbar.scss 1 year ago _acf-icon-picker.scss 1 year ago _admin-inputs.scss 1 year ago _admin-toolbar.scss 1 year ago _btn.scss 1 year ago _dark.scss 1 year ago _edit-field-group.scss 1 year ago _field-group.scss 1 year ago _field-picker.scss 1 year ago _field-type-icons.scss 1 year ago _fields.scss 1 year ago _forms.scss 1 year ago _global.scss 1 year ago _icons.scss 1 year ago _input.scss 1 year ago _list-table.scss 1 year ago _media.scss 1 year ago _mixins.scss 1 year ago _post-types-taxonomies.scss 1 year ago _postbox.scss 1 year ago _pro-upgrade.scss 1 year ago _sub-field-groups.scss 1 year ago _tools.scss 1 year ago _typography.scss 1 year ago _updates.scss 1 year ago _variables.scss 1 year ago acf-dark.scss 1 year ago acf-field-group.scss 1 year ago acf-global.scss 1 year ago acf-input.scss 1 year ago
_acf-icon-picker.scss
473 lines
1 // CSS for icon picker in blocks.
2 .acf-block-body .acf-field-icon-picker {
3 .acf-tab-group {
4 margin: 0;
5 padding-left: 0 !important;
6 }
7 }
8
9 // CSS for use outside ACF admin pages (like the post editor).
10 .acf-field-icon-picker {
11 max-width: 600px;
12
13 .acf-tab-group{
14 padding: 0;
15 border-bottom: 0;
16 overflow: hidden;
17 }
18
19 .active {
20
21 a {
22 background: $gray-500;
23 color: #fff;
24 }
25 }
26
27 .acf-dashicons-search-wrap {
28 position: relative;
29
30 &::after {
31 content: "";
32 display: block;
33 position: absolute;
34 top: 6px;
35 left: 10px;
36 $icon-size: 18px;
37 width: $icon-size;
38 height: $icon-size;
39 -webkit-mask-image: url(../../images/icons/icon-search.svg);
40 mask-image: url(../../images/icons/icon-search.svg);
41 background-color: $gray-400;
42 border: none;
43 border-radius: 0;
44 -webkit-mask-size: contain;
45 mask-size: contain;
46 -webkit-mask-repeat: no-repeat;
47 mask-repeat: no-repeat;
48 -webkit-mask-position: center;
49 mask-position: center;
50 text-indent: 500%;
51 white-space: nowrap;
52 overflow: hidden;
53 }
54
55 .acf-dashicons-search-input {
56 padding-left: 32px;
57 border-radius: 0;
58 }
59 }
60
61 .acf-dashicons-list {
62 margin-bottom: 0;
63 display: flex;
64 flex-wrap: wrap;
65 justify-content: space-between;
66 align-content: start;
67 height: 135px;
68 overflow: hidden;
69 overflow-y: auto;
70 background-color: #f9f9f9;
71 border: 1px solid #8c8f94;
72 border-top: none;
73 border-radius: 0 0 6px 6px;
74 gap: 8px;
75 padding: 8px;
76
77 .acf-icon-picker-dashicon {
78 background-color: transparent;
79 display: flex;
80 justify-content: center;
81 align-items: center;
82 width: 32px;
83 height: 32px;
84 border: solid 2px transparent;
85 color: #3c434a;
86
87 label {
88 display: none;
89 }
90
91 [type="radio"]="radio""],
92 [type="radio"]="radio""]:active,
93 [type="radio"]="radio""]:checked::before,
94 [type="radio"]="radio""]:focus {
95 all: initial;
96 appearance: none;
97 }
98 }
99
100 .acf-icon-picker-dashicon:hover {
101 border: solid 2px $blue-500;
102 border-radius: 6px;
103 cursor: pointer;
104 }
105
106 .active {
107 border: solid 2px $blue-500;
108 background-color: $blue-50;
109 border-radius: 6px;
110 }
111
112 .active.focus {
113 border: solid 2px $blue-500;
114 background-color: $blue-50;
115 border-radius: 6px;
116 box-shadow: 0 0 2px #0783be;
117 }
118 }
119
120 .acf-dashicons-list::after {
121 content: "";
122 flex: auto;
123 }
124
125 .acf-dashicons-list-empty {
126 position: relative;
127 display: none;
128 flex-direction: column;
129 justify-content: center;
130 align-items: center;
131 padding-top: 10px;
132 padding-left: 10px;
133 height: 135px;
134 overflow: scroll;
135 background-color: $gray-50;
136 border: 1px solid $gray-300;
137 border-top: none;
138 border-radius: 0 0 6px 6px;
139
140 img {
141 height: 30px;
142 width: 30px;
143 color: $gray-300;
144 }
145 }
146
147 .acf-icon-picker-media-library,
148 .acf-icon-picker-url-tabs {
149 box-sizing: border-box;
150 display: flex;
151 align-items: center;
152 justify-items: center;
153 gap: 12px;
154 background-color: #f9f9f9;
155 padding: 12px;
156 border: 1px solid #8c8f94;
157 border-radius: 0;
158
159 .acf-icon-picker-media-library-preview {
160 all: unset;
161 cursor: pointer;
162 }
163
164 .acf-icon-picker-media-library-preview:focus {
165 outline: 1px solid $blue-500;
166 border-radius: 6px;
167 }
168
169 .acf-icon-picker-media-library-preview-dashicon,
170 .acf-icon-picker-media-library-preview-img {
171 box-sizing: border-box;
172 width: 40px;
173 height: 40px;
174 border: solid 2px transparent;
175 color: #fff;
176 background-color: #191e23;
177 display: flex;
178 justify-content: center;
179 align-items: center;
180 border-radius: 6px;
181 }
182
183 .acf-icon-picker-media-library-preview-img > img {
184 width: 90%;
185 height: 90%;
186 object-fit: cover;
187 border-radius: 5px;
188 border: 1px solid $gray-500;
189 }
190
191 .acf-icon-picker-media-library-button {
192 height: 40px;
193 background-color: $blue-500;
194 border: none;
195 border-radius: 6px;
196 padding: 8px 12px;
197 color: #fff;
198 display: flex;
199 align-items: center;
200 justify-items: center;
201 gap: 4px;
202 cursor: pointer;
203 }
204
205 .acf-icon-picker-url {
206 width: 100%;
207 }
208 }
209 }
210
211 .-left .acf-field-icon-picker {
212 max-width: inherit;
213 }
214
215 // Admin page styles.
216 .acf-admin-page.acf-internal-post-type .acf-field-icon-picker {
217 max-width: 600px;
218
219 .active {
220
221 a {
222 background: $gray-500;
223 color: #fff;
224 }
225 }
226
227 .acf-tab-button {
228 border: none;
229 height: 25px;
230 padding: 5px 10px;
231 border-radius: 15px;
232 }
233
234 li {
235
236 a .acf-tab-button {
237 color: $gray-500;
238 }
239 }
240
241 .acf-icon-picker > *:not(.acf-tab-wrap) {
242 top: -32px;
243 position: relative;
244 }
245
246 .acf-tab-wrap .acf-tab-group {
247 margin-right: 48px;
248 display: flex;
249 gap: 10px;
250 justify-content: flex-end;
251 align-items: center;
252 background: none;
253 border: none;
254 max-width: 648px;
255 border-bottom-width: 0;
256
257 li {
258 all: initial;
259 box-sizing: border-box;
260 margin-bottom: -17px;
261 margin-right: 0;
262 border-radius: 10px;
263 }
264
265 li a {
266 all: initial;
267 outline: 1px solid transparent;
268 color: #667085;
269 box-sizing: border-box;
270 border-radius: 100px;
271 cursor: pointer;
272 padding: 7px;
273 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
274 font-size: 12.5px;
275 }
276
277 li.active a {
278 background-color: #667085;
279 color: #fff;
280 border-bottom-width: 1px !important;
281 }
282
283 li a:focus {
284 outline: 1px solid $blue-500;
285 }
286 }
287
288 .acf-tab-wrap {
289 background: none;
290 border: none;
291 overflow: visible;
292 }
293
294 .acf-dashicons-search-wrap {
295 position: relative;
296
297 &::after {
298 content: "";
299 display: block;
300 position: absolute;
301 top: 11px;
302 left: 10px;
303 $icon-size: 18px;
304 width: $icon-size;
305 height: $icon-size;
306 -webkit-mask-image: url(../../images/icons/icon-search.svg);
307 mask-image: url(../../images/icons/icon-search.svg);
308 background-color: $gray-400;
309 border: none;
310 border-radius: 0;
311 -webkit-mask-size: contain;
312 mask-size: contain;
313 -webkit-mask-repeat: no-repeat;
314 mask-repeat: no-repeat;
315 -webkit-mask-position: center;
316 mask-position: center;
317 text-indent: 500%;
318 white-space: nowrap;
319 overflow: hidden;
320 }
321
322 .acf-dashicons-search-input {
323 padding-left: 32px;
324 border-radius: 6px 6px 0 0;
325 }
326 }
327
328 .acf-dashicons-list {
329 margin-bottom: -32px;
330 display: flex;
331 flex-wrap: wrap;
332 justify-content: space-between;
333 align-content: start;
334 height: 135px;
335 overflow: hidden;
336 overflow-y: auto;
337 background-color: $gray-50;
338 border: 1px solid $gray-300;
339 border-top: none;
340 border-radius: 0 0 6px 6px;
341 gap: 8px;
342 padding: 8px;
343
344 .acf-icon-picker-dashicon {
345 background-color: transparent;
346 display: flex;
347 justify-content: center;
348 align-items: center;
349 width: 32px;
350 height: 32px;
351 border: solid 2px transparent;
352 color: #3c434a;
353
354 label {
355 display: none;
356 }
357
358 [type="radio"]="radio""],
359 [type="radio"]="radio""]:active,
360 [type="radio"]="radio""]:checked::before,
361 [type="radio"]="radio""]:focus {
362 all: initial;
363 appearance: none;
364 }
365 }
366
367 .acf-icon-picker-dashicon:hover {
368 border: solid 2px $blue-500;
369 border-radius: 6px;
370 cursor: pointer;
371 }
372
373 .active {
374 border: solid 2px $blue-500;
375 background-color: $blue-50;
376 border-radius: 6px;
377 }
378
379 .active.focus {
380 border: solid 2px $blue-500;
381 background-color: $blue-50;
382 border-radius: 6px;
383 box-shadow: 0 0 2px #0783be;
384 }
385 }
386
387 .acf-dashicons-list::after {
388 content: "";
389 flex: auto;
390 }
391
392 .acf-dashicons-list-empty {
393 position: relative;
394 display: none;
395 flex-direction: column;
396 justify-content: center;
397 align-items: center;
398 padding-top: 10px;
399 padding-left: 10px;
400 height: 135px;
401 overflow: scroll;
402 background-color: $gray-50;
403 border: 1px solid $gray-300;
404 border-top: none;
405 border-radius: 0 0 6px 6px;
406
407 img {
408 height: 30px;
409 width: 30px;
410 color: $gray-300;
411 }
412 }
413
414 .acf-icon-picker-media-library,
415 .acf-icon-picker-url-tabs {
416 box-sizing: border-box;
417 display: flex;
418 align-items: center;
419 justify-items: center;
420 gap: 12px;
421 background-color: $gray-50;
422 padding: 12px;
423 border: 1px solid $gray-300;
424 border-radius: 6px;
425
426 .acf-icon-picker-media-library-preview {
427 all: unset;
428 cursor: pointer;
429 }
430
431 .acf-icon-picker-media-library-preview:focus {
432 outline: 1px solid $blue-500;
433 border-radius: 6px;
434 }
435
436 .acf-icon-picker-media-library-preview-dashicon,
437 .acf-icon-picker-media-library-preview-img {
438 box-sizing: border-box;
439 width: 40px;
440 height: 40px;
441 border: solid 2px transparent;
442 color: #fff;
443 background-color: #191e23;
444 display: flex;
445 justify-content: center;
446 align-items: center;
447 border-radius: 6px;
448 }
449
450 .acf-icon-picker-media-library-preview-img > img {
451 width: 90%;
452 height: 90%;
453 object-fit: cover;
454 border-radius: 5px;
455 border: 1px solid $gray-500;
456 }
457
458 .acf-icon-picker-media-library-button {
459 height: 40px;
460 background-color: $blue-500;
461 border: none;
462 border-radius: 6px;
463 padding: 8px 12px;
464 color: #fff;
465 display: flex;
466 align-items: center;
467 justify-items: center;
468 gap: 4px;
469 cursor: pointer;
470 }
471 }
472 }
473