PluginProbe ʕ •ᴥ•ʔ
Secure Custom Fields / trunk
Secure Custom Fields vtrunk
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 / _admin-inputs.scss
secure-custom-fields / assets / src / sass Last commit date
pro 1 week 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 month ago _forms.scss 11 months 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 7 months ago acf-global.scss 2 months ago acf-input.scss 1 month ago
_admin-inputs.scss
1021 lines
1 .acf-admin-page {
2
3 /*---------------------------------------------------------------------------------------------
4 *
5 * All Inputs
6 *
7 *---------------------------------------------------------------------------------------------*/
8 input[type="text"]="text""],
9 input[type="search"]="search""],
10 input[type="number"]="number""],
11 textarea,
12 select {
13 box-sizing: border-box;
14 height: 40px;
15 padding: {
16 right: 12px;
17 left: 12px;
18 };
19 background-color: #fff;
20 border-color: $gray-300;
21 box-shadow: $elevation-01;
22 border-radius: $radius-md;
23 /* stylelint-disable-next-line scss/at-extend-no-missing-placeholder */
24 @extend .p4;
25 color: $gray-700;
26
27 &:focus {
28 outline: $outline;
29 border-color: $blue-400;
30 }
31
32 &:disabled {
33 background-color: $gray-50;
34 color: lighten($gray-500, 10%);
35 }
36
37 &::placeholder {
38 color: $gray-400;
39 }
40
41 }
42
43 /*---------------------------------------------------------------------------------------------
44 *
45 * Read only text inputs
46 *
47 *---------------------------------------------------------------------------------------------*/
48 input[type="text"]="text""] {
49
50 &:read-only {
51 background-color: $gray-50;
52 color: $gray-400;
53 }
54
55 }
56
57 /*---------------------------------------------------------------------------------------------
58 *
59 * Number fields
60 *
61 *---------------------------------------------------------------------------------------------*/
62 .acf-field.acf-field-number {
63
64 .acf-label,
65 .acf-input input[type="number"]="number""] {
66 max-width: 180px;
67 }
68
69 }
70
71 /*---------------------------------------------------------------------------------------------
72 *
73 * Textarea
74 *
75 *---------------------------------------------------------------------------------------------*/
76 textarea {
77 box-sizing: border-box;
78 padding: {
79 top: 10px;
80 bottom: 10px;
81 };
82 height: 80px;
83 min-height: 56px;
84 }
85
86 /*---------------------------------------------------------------------------------------------
87 *
88 * Select
89 *
90 *---------------------------------------------------------------------------------------------*/
91 select {
92 min-width: 160px;
93 max-width: 100%;
94 padding: {
95 right: 40px;
96 left: 12px;
97 };
98 background-image: url('../../images/icons/icon-chevron-down.svg');
99 background-position: right 10px top 50%;
100 background-size: 20px;
101 @extend .p4;
102
103 &:hover,
104 &:focus {
105 color: $blue-500;
106 }
107
108 &::before {
109 content: '';
110 display: block;
111 position: absolute;
112 top: 5px;
113 left: 5px;
114 width: 20px;
115 height: 20px;
116 }
117
118 }
119
120 &.rtl {
121
122 select {
123 padding: {
124 right: 12px;
125 left: 40px;
126 };
127 background-position: left 10px top 50%;
128 }
129 }
130
131 /*---------------------------------------------------------------------------------------------
132 *
133 * Radio Button & Checkbox base styling
134 *
135 *---------------------------------------------------------------------------------------------*/
136 input[type="radio"]="radio""],
137 input[type="checkbox"]="checkbox""] {
138 box-sizing: border-box;
139 width: 16px;
140 height: 16px;
141 padding: 0;
142 border: {
143 width: 1px;
144 style: solid;
145 color: $gray-400;
146 };
147 background: #fff;
148 box-shadow: none;
149
150 &:hover {
151 background-color: $blue-50;
152 border-color: $blue-500;
153 }
154
155 &:checked,
156 &:focus-visible {
157 background-color: $blue-50;
158 border-color: $blue-500;
159
160 &:before {
161 content: '';
162 position: relative;
163 top: -1px;
164 left: -1px;
165 width: 16px;
166 height: 16px;
167 margin: 0;
168 padding: 0;
169 background-color: transparent;
170 background-size: cover;
171 background-repeat: no-repeat;
172 background-position: center;
173 }
174
175 }
176
177 &:active {
178 box-shadow: 0px 0px 0px 3px $blue-50, 0px 0px 0px rgba(255, 54, 54, 0.25);
179 }
180
181 &:disabled {
182 background-color: $gray-50;
183 border-color: $gray-300;
184 }
185
186 }
187
188 &.rtl {
189
190 input[type="radio"]="radio""],
191 input[type="checkbox"]="checkbox""] {
192
193 &:checked,
194 &:focus-visible {
195
196 &:before {
197 left: 1px;
198 }
199 }
200 }
201 }
202
203
204 /*---------------------------------------------------------------------------------------------
205 *
206 * Radio Buttons
207 *
208 *---------------------------------------------------------------------------------------------*/
209 input[type="radio"]="radio""] {
210
211 &:checked,
212 &:focus {
213
214 &:before {
215 background-image: url('../../images/field-states/radio-active.svg');
216 }
217
218 }
219
220 }
221
222 /*---------------------------------------------------------------------------------------------
223 *
224 * Checkboxes
225 *
226 *---------------------------------------------------------------------------------------------*/
227 input[type="checkbox"]="checkbox""] {
228
229 &:checked,
230 &:focus {
231
232 &:before {
233 background-image: url('../../images/field-states/checkbox-active.svg');
234 }
235
236 }
237
238 }
239
240 /*---------------------------------------------------------------------------------------------
241 *
242 * Radio Buttons & Checkbox lists
243 *
244 *---------------------------------------------------------------------------------------------*/
245 .acf-radio-list,
246 .acf-checkbox-list {
247
248 li input[type="radio"]="radio""],
249 li input[type="checkbox"]="checkbox""] {
250 margin: {
251 right: 6px;
252 };
253 }
254
255 &.acf-bl li {
256 margin: {
257 bottom: 8px;
258 };
259
260 &:last-of-type {
261 margin: {
262 bottom: 0;
263 };
264 }
265
266
267 }
268
269 label {
270 display: flex;
271 align-items: center;
272 align-content: center;
273 }
274
275 }
276
277 /*---------------------------------------------------------------------------------------------
278 *
279 * ACF Switch
280 *
281 *---------------------------------------------------------------------------------------------*/
282 .acf-switch {
283 width: 42px;
284 height: 24px;
285 border: none;
286 background-color: $gray-300;
287 border-radius: 12px;
288
289 &:hover {
290 background-color: $gray-400;
291 }
292
293 &:active {
294 box-shadow: 0px 0px 0px 3px $blue-50, 0px 0px 0px rgba(255, 54, 54, 0.25);
295 }
296
297 &.-on {
298 background-color: $color-primary;
299
300 &:hover {
301 background-color: $color-primary-hover;
302 }
303
304 .acf-switch-slider {
305 left: 20px;
306 }
307
308 }
309
310 .acf-switch-off,
311 .acf-switch-on {
312 visibility: hidden;
313 }
314
315 .acf-switch-slider {
316 width: 20px;
317 height: 20px;
318 border: none;
319 border-radius: 100px;
320 box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.1), 0px 1px 2px rgba(16, 24, 40, 0.06);
321 }
322
323 }
324
325 .acf-field-true-false {
326 display: flex;
327 align-items: flex-start;
328
329 .acf-label {
330 order: 2;
331 display: block;
332 align-items: center;
333 max-width: 550px !important;
334 margin: {
335 top: 2px;
336 bottom: 0;
337 left: 12px;
338 };
339
340 label {
341 margin: {
342 bottom: 0;
343 };
344 }
345
346 .acf-tip {
347 margin: {
348 left: 12px;
349 };
350 }
351
352 .description {
353 display: block;
354 margin: {
355 top: 2px;
356 left: 0;
357 };
358 }
359 }
360
361 }
362
363 &.rtl {
364
365 .acf-field-true-false {
366
367 .acf-label {
368 margin: {
369 right: 12px;
370 left: 0;
371 };
372 }
373
374 .acf-tip {
375 margin: {
376 right: 12px;
377 left: 0;
378 };
379 }
380 }
381 }
382
383 /*---------------------------------------------------------------------------------------------
384 *
385 * File input button
386 *
387 *---------------------------------------------------------------------------------------------*/
388
389 input::file-selector-button {
390 box-sizing: border-box;
391 min-height: 40px;
392 margin: {
393 right: 16px;
394 };
395 padding: {
396 top: 8px;
397 right: 16px;
398 bottom: 8px;
399 left: 16px;
400 };
401 background-color: transparent;
402 color: $color-primary !important;
403 border-radius: $radius-md;
404 border: {
405 width: 1px;
406 style: solid;
407 color: $color-primary;
408 };
409 text-decoration: none;
410
411 &:hover {
412 border-color: $color-primary-hover;
413 cursor: pointer;
414 color: $color-primary-hover !important;
415 }
416
417 }
418
419
420 /*---------------------------------------------------------------------------------------------
421 *
422 * Action Buttons
423 *
424 *---------------------------------------------------------------------------------------------*/
425 .button {
426 display: inline-flex;
427 align-items: center;
428 height: 40px;
429 padding: {
430 right: 16px;
431 left: 16px;
432 };
433 background-color: transparent;
434 border-width: 1px;
435 border-style: solid;
436 border-color: $blue-500;
437 border-radius: $radius-md;
438 @extend .p4;
439 color: $blue-500;
440
441 &:hover {
442 background-color: lighten($blue-50, 2%);
443 border-color: $color-primary;
444 color: $color-primary;
445 }
446
447 &:focus {
448 background-color: lighten($blue-50, 2%);
449 outline: $outline;
450 color: $color-primary;
451 }
452
453 }
454
455 /*---------------------------------------------------------------------------------------------
456 *
457 * Edit field group header
458 *
459 *---------------------------------------------------------------------------------------------*/
460 .edit-field-group-header {
461 display: block !important;
462 }
463
464 /*---------------------------------------------------------------------------------------------
465 *
466 * Select2 inputs
467 *
468 *---------------------------------------------------------------------------------------------*/
469 .acf-input,
470 .rule-groups {
471
472 .select2-container.-acf .select2-selection {
473 border: none;
474 line-height: 1;
475 }
476
477 .select2-container.-acf .select2-selection__rendered {
478 box-sizing: border-box;
479 padding: {
480 right: 0;
481 left: 0;
482 };
483 background-color: #fff;
484 border: {
485 width: 1px;
486 style: solid;
487 color: $gray-300;
488 };
489 box-shadow: $elevation-01;
490 border-radius: $radius-md;
491 /* stylelint-disable-next-line scss/at-extend-no-missing-placeholder */
492 @extend .p4;
493 color: $gray-700;
494 }
495
496 .acf-conditional-select-name {
497 min-width: 180px;
498 white-space: nowrap;
499 overflow: hidden;
500 text-overflow: ellipsis;
501 }
502
503 .acf-conditional-select-id {
504 padding-right: 30px;
505 }
506
507 .value .select2-container--focus {
508 height: 40px;
509 }
510
511 .value .select2-container--open .select2-selection__rendered {
512 border-color: $blue-400;
513 }
514
515 .select2-container--focus {
516 outline: $outline;
517 border-color: $blue-400;
518 border-radius: $radius-md;
519
520 .select2-selection__rendered {
521 border-color: $blue-400 !important;
522 }
523
524 &.select2-container--below.select2-container--open {
525
526 .select2-selection__rendered {
527 border-bottom-right-radius: 0 !important;
528 border-bottom-left-radius: 0 !important;
529 }
530
531 }
532
533 &.select2-container--above.select2-container--open {
534
535 .select2-selection__rendered {
536 border-top-right-radius: 0 !important;
537 border-top-left-radius: 0 !important;
538 }
539
540 }
541
542 }
543
544 .select2-container .select2-search--inline .select2-search__field {
545 margin: 0;
546 padding: {
547 left: 6px;
548 };
549
550 &:focus {
551 outline: none;
552 border: none;
553 }
554
555 }
556
557 .select2-container--default .select2-selection--multiple .select2-selection__rendered {
558 padding: {
559 top: 0;
560 right: 6px;
561 bottom: 0;
562 left: 6px;
563 };
564 }
565
566 .select2-selection__clear {
567 width: 18px;
568 height: 18px;
569 margin: {
570 top: 12px;
571 right: 1px;
572 };
573 text-indent: 100%;
574 white-space: nowrap;
575 overflow: hidden;
576 color: #fff;
577
578 &:before {
579 content: '';
580 $icon-size: 16px;
581 display: block;
582 width: $icon-size;
583 height: $icon-size;
584 top: 0;
585 left: 0;
586 border: none;
587 border-radius: 0;
588 -webkit-mask-size: contain;
589 mask-size: contain;
590 -webkit-mask-repeat: no-repeat;
591 mask-repeat: no-repeat;
592 -webkit-mask-position: center;
593 mask-position: center;
594 -webkit-mask-image: url('../../images/icons/icon-close.svg');
595 mask-image: url('../../images/icons/icon-close.svg');
596 background-color: $gray-400;
597 }
598
599 &:hover::before {
600 background-color: $blue-500;
601 }
602 }
603 }
604
605 /*---------------------------------------------------------------------------------------------
606 *
607 * ACF label
608 *
609 *---------------------------------------------------------------------------------------------*/
610 .acf-label {
611 display: flex;
612 align-items: center;
613 justify-content: space-between;
614
615 .acf-icon-help {
616 $icon-size: 18px;
617 width: $icon-size;
618 height: $icon-size;
619 background-color: $gray-400;
620 }
621
622 label {
623 margin: {
624 bottom: 0;
625 };
626 }
627
628 .description {
629 margin: {
630 top: 2px;
631 };
632 }
633
634 }
635
636 /*---------------------------------------------------------------------------------------------
637 *
638 * Tooltip for field name field setting (result of a fix for keyboard navigation)
639 *
640 *---------------------------------------------------------------------------------------------*/
641 .acf-field-setting-name .acf-tip {
642 position: absolute;
643 top: 0;
644 left: 654px;
645 color: #98A2B3;
646
647 @at-root .rtl#{&} {
648 left: auto;
649 right: 654px;
650 }
651
652 .acf-icon-help {
653 width: 18px;
654 height: 18px;
655 }
656 }
657
658 /* Field Type Selection select2 */
659 .acf-field-setting-type,
660 .acf-field-permalink-rewrite,
661 .acf-field-query-var,
662 .acf-field-capability,
663 .acf-field-parent-slug,
664 .acf-field-data-storage,
665 .acf-field-manage-terms,
666 .acf-field-edit-terms,
667 .acf-field-delete-terms,
668 .acf-field-assign-terms,
669 .acf-field-meta-box,
670 .rule-groups {
671
672 .select2-container.-acf {
673 min-height: 40px;
674 }
675
676 .select2-container--default .select2-selection--single {
677
678 .select2-selection__rendered {
679 display: flex;
680 align-items: center;
681 position: relative;
682 z-index: 800;
683 min-height: 40px;
684 padding: {
685 top: 0;
686 right: 12px;
687 bottom: 0;
688 left: 12px;
689 };
690 }
691
692 .field-type-icon {
693 top: auto;
694 width: 18px;
695 height: 18px;
696 margin: {
697 right: 2px;
698 };
699
700 &:before {
701 width: 9px;
702 height: 9px;
703 }
704
705 }
706 }
707
708 .select2-container--open .select2-selection__rendered {
709 border-color: $blue-300 !important;
710 border-bottom-color: $gray-300 !important;
711 }
712
713 .select2-container--open.select2-container--below .select2-selection__rendered {
714 border-bottom-right-radius: 0 !important;
715 border-bottom-left-radius: 0 !important;
716 }
717
718 .select2-container--open.select2-container--above .select2-selection__rendered {
719 border-top-right-radius: 0 !important;
720 border-top-left-radius: 0 !important;
721 border-bottom-color: $blue-300 !important;
722 border-top-color: $gray-300 !important;
723 }
724
725 // icon margins
726 .acf-selection.has-icon {
727 margin-left: 6px;
728
729 @at-root .rtl#{&} {
730 margin-right: 6px;
731 }
732 }
733
734 // Dropdown icon
735 .select2-selection__arrow {
736 width: 20px;
737 height: 20px;
738 top: calc(50% - 10px);
739 right: 12px;
740 background-color: transparent;
741
742 &:after {
743 content: "";
744 $icon-size: 20px;
745 display: block;
746 position: absolute;
747 z-index: 850;
748 top: 1px;
749 left: 0;
750 width: $icon-size;
751 height: $icon-size;
752 -webkit-mask-image: url("../../images/icons/icon-chevron-down.svg");
753 mask-image: url("../../images/icons/icon-chevron-down.svg");
754 background-color: $gray-500;
755 border: none;
756 border-radius: 0;
757 -webkit-mask-size: contain;
758 mask-size: contain;
759 -webkit-mask-repeat: no-repeat;
760 mask-repeat: no-repeat;
761 -webkit-mask-position: center;
762 mask-position: center;
763 text-indent: 500%;
764 white-space: nowrap;
765 overflow: hidden;
766 }
767
768 b[role="presentation"]="presentation""] {
769 display: none;
770 }
771
772 }
773
774 // Open state
775 .select2-container--open {
776
777 // Swap chevron icon
778 .select2-selection__arrow:after {
779 -webkit-mask-image: url("../../images/icons/icon-chevron-up.svg");
780 mask-image: url("../../images/icons/icon-chevron-up.svg");
781 }
782
783 }
784
785 }
786
787 .acf-term-search-term-name {
788 background-color: $gray-50;
789 border-top: 1px solid $gray-200;
790 border-bottom: 1px solid $gray-200;
791 color: $gray-400;
792 padding: 5px 5px 5px 10px;
793 width: 100%;
794 margin: 0;
795 display: block;
796 font-weight: 300;
797 }
798
799 .field-type-select-results {
800 position: relative;
801 top: 4px;
802 z-index: 1002;
803 border-radius: 0 0 $radius-md $radius-md;
804 box-shadow: 0px 8px 24px 4px rgba(16, 24, 40, 0.12);
805
806 &.select2-dropdown--above {
807 display: flex;
808 flex-direction: column-reverse;
809 top: 0;
810 border-radius: $radius-md $radius-md 0 0;
811 z-index: 99999;
812 }
813
814 @at-root .select2-container.select2-container--open#{&} {
815 // outline: 3px solid $blue-50;
816 box-shadow: 0px 0px 0px 3px #EBF5FA, 0px 8px 24px 4px rgba(16, 24, 40, 0.12);
817 }
818
819 // icon margins
820 .acf-selection.has-icon {
821 margin-left: 6px;
822
823 @at-root .rtl#{&} {
824 margin-right: 6px;
825 }
826 }
827
828 // Search field
829 .select2-search {
830 position: relative;
831 margin: 0;
832 padding: 0;
833
834 &--dropdown {
835
836 &:after {
837 content: "";
838 $icon-size: 16px;
839 display: block;
840 position: absolute;
841 top: 12px;
842 left: 13px;
843 width: $icon-size;
844 height: $icon-size;
845 -webkit-mask-image: url("../../images/icons/icon-search.svg");
846 mask-image: url("../../images/icons/icon-search.svg");
847 background-color: $gray-400;
848 border: none;
849 border-radius: 0;
850 -webkit-mask-size: contain;
851 mask-size: contain;
852 -webkit-mask-repeat: no-repeat;
853 mask-repeat: no-repeat;
854 -webkit-mask-position: center;
855 mask-position: center;
856 text-indent: 500%;
857 white-space: nowrap;
858 overflow: hidden;
859
860 @at-root .rtl#{&} {
861 right: 12px;
862 left: auto;
863 }
864 }
865 }
866
867 .select2-search__field {
868 padding-left: 38px;
869
870 border-right: 0;
871 border-bottom: 0;
872 border-left: 0;
873 border-radius: 0;
874
875 @at-root .rtl#{&} {
876 padding-right: 38px;
877 padding-left: 0;
878 }
879
880 &:focus {
881 border-top-color: $gray-300;
882 outline: 0;
883 }
884 }
885
886 }
887
888 .select2-results__options {
889 max-height: 440px;
890 }
891
892 .select2-results__option {
893
894 .select2-results__option--highlighted {
895 background-color: $blue-500 !important;
896 color: $gray-50 !important;
897 }
898 }
899
900 // List items
901 .select2-results__option .select2-results__option {
902 display: inline-flex;
903 position: relative;
904 width: calc(100% - 24px);
905 min-height: 32px;
906 padding: {
907 top: 0;
908 right: 12px;
909 bottom: 0;
910 left: 12px;
911 }
912 align-items: center;
913
914 .field-type-icon {
915 top: auto;
916 width: 18px;
917 height: 18px;
918 margin: {
919 right: 2px;
920 };
921 box-shadow: 0 0 0 1px $gray-50;
922
923 &:before {
924 width: 9px;
925 height: 9px;
926 }
927 }
928
929 }
930
931 .select2-results__option[aria-selected="true"]="true""] {
932 background-color: $blue-50 !important;
933 color: $gray-700 !important;
934
935 &:after {
936 content: "";
937 $icon-size: 16px;
938 right: 13px;
939 position: absolute;
940 width: $icon-size;
941 height: $icon-size;
942 -webkit-mask-image: url("../../images/icons/icon-check.svg");
943 mask-image: url("../../images/icons/icon-check.svg");
944 background-color: $blue-500;
945 border: none;
946 border-radius: 0;
947 -webkit-mask-size: contain;
948 mask-size: contain;
949 -webkit-mask-repeat: no-repeat;
950 mask-repeat: no-repeat;
951 -webkit-mask-position: center;
952 mask-position: center;
953 text-indent: 500%;
954 white-space: nowrap;
955 overflow: hidden;
956
957 @at-root .rtl#{&} {
958 left: 13px;
959 right: auto;
960 }
961 }
962 }
963
964 .select2-results__group {
965 display: inline-flex;
966 align-items: center;
967 width: calc(100% - 24px);
968 min-height: 25px;
969 background-color: $gray-50;
970 border-top: {
971 width: 1px;
972 style: solid;
973 color: $gray-200;
974 };
975 border-bottom: {
976 width: 1px;
977 style: solid;
978 color: $gray-200;
979 };
980 color: $gray-400;
981 font-size: 11px;
982 margin: {
983 bottom: 0;
984 };
985 padding: {
986 top: 0;
987 right: 12px;
988 bottom: 0;
989 left: 12px;
990 };
991 font-weight: normal;
992 }
993 }
994
995 /*---------------------------------------------------------------------------------------------
996 *
997 * RTL arrow position
998 *
999 *---------------------------------------------------------------------------------------------*/
1000 &.rtl {
1001
1002 .acf-field-setting-type,
1003 .acf-field-permalink-rewrite,
1004 .acf-field-query-var {
1005
1006 .select2-selection__arrow:after {
1007 right: auto;
1008 left: 10px;
1009 }
1010 }
1011 }
1012 }
1013
1014 .rtl.post-type-acf-field-group,
1015 .rtl.acf-internal-post-type {
1016
1017 .acf-field-setting-name .acf-tip {
1018 left: auto;
1019 right: 654px;
1020 }
1021 }