PluginProbe ʕ •ᴥ•ʔ
Secure Custom Fields / 6.4.2
Secure Custom Fields v6.4.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 / _fields.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
_fields.scss
3008 lines
1 /*--------------------------------------------------------------------------------------------
2 *
3 * acf-field
4 *
5 *--------------------------------------------------------------------------------------------*/
6
7 .acf-field,
8 .acf-field .acf-label,
9 .acf-field .acf-input {
10 -webkit-box-sizing: border-box;
11 -moz-box-sizing: border-box;
12 box-sizing: border-box;
13 position: relative;
14 }
15
16 .acf-field {
17 margin: 15px 0;
18
19 // clear is important as it will avoid any layout issues with floating fields
20 // do not delete (you have tried this)
21 clear: both;
22
23 // description
24 p.description {
25 display: block;
26 margin: 0;
27 padding: 0;
28 }
29
30 // label
31 .acf-label {
32 vertical-align: top;
33 margin: 0 0 10px;
34
35 label {
36 display: block;
37 font-weight: 500;
38 margin: 0 0 3px;
39 padding: 0;
40 }
41
42 &:empty {
43 margin-bottom: 0;
44 }
45 }
46
47 // input
48 .acf-input {
49 vertical-align: top;
50 }
51
52 // description
53 p.description {
54 display: block;
55 margin: {
56 top: 6px;
57 }
58 @extend .p6;
59 color: $gray-500;
60 }
61
62 // notice
63 .acf-notice {
64 margin: 0 0 15px;
65 background: #edf2ff;
66 color: #0c6ca0;
67 border-color: #2183b9;
68
69 // error
70 &.-error {
71 background: #ffe6e6;
72 color: #cc2727;
73 border-color: #d12626;
74 }
75
76 // success
77 &.-success {
78 background: #eefbe8;
79 color: #0e7b17;
80 border-color: #32a23b;
81 }
82
83 // warning
84 &.-warning {
85 background: #fff3e6;
86 color: #bd4b0e;
87 border-color: #d16226;
88 }
89 }
90
91 // table
92 @at-root td#{&},
93 tr#{&} {
94 margin: 0;
95 }
96 }
97
98 // width
99 .acf-field[data-width]] {
100 float: left;
101 clear: none;
102
103 // next
104 + .acf-field[data-width]] {
105 border-left: 1px solid #eeeeee;
106 }
107
108 // rtl
109 html[dir="rtl"]="rtl""] & {
110 float: right;
111
112 + .acf-field[data-width]] {
113 border-left: none;
114 border-right: 1px solid #eeeeee;
115 }
116 }
117
118 // table
119 @at-root td#{&},
120 tr#{&} {
121 float: none;
122 }
123
124 // mobile
125 /*
126 @media screen and (max-width: $sm) {
127 float: none;
128 width: auto;
129 border-left-width: 0;
130 border-right-width: 0;
131 }
132 */
133 }
134
135 // float helpers
136 .acf-field.-c0 {
137 clear: both;
138 border-left-width: 0 !important;
139
140 // rtl
141 html[dir="rtl"]="rtl""] & {
142 border-left-width: 1px !important;
143 border-right-width: 0 !important;
144 }
145 }
146
147 .acf-field.-r0 {
148 border-top-width: 0 !important;
149 }
150
151 /*--------------------------------------------------------------------------------------------
152 *
153 * acf-fields
154 *
155 *--------------------------------------------------------------------------------------------*/
156
157 .acf-fields {
158 position: relative;
159
160 // clearifx
161 @include clearfix();
162
163 // border
164 &.-border {
165 border: $wp-card-border solid 1px;
166 background: #fff;
167 }
168
169 // field
170 > .acf-field {
171 position: relative;
172 margin: 0;
173 padding: 16px;
174 border-top: {
175 width: 1px;
176 style: solid;
177 color: $gray-200;
178 }
179
180 // first
181 &:first-child {
182 border-top: none;
183 margin-top: 0;
184 }
185 }
186
187 // table
188 @at-root td#{&} {
189 padding: 0 !important;
190 }
191 }
192
193 /*--------------------------------------------------------------------------------------------
194 *
195 * acf-fields (clear)
196 *
197 *--------------------------------------------------------------------------------------------*/
198
199 .acf-fields.-clear > .acf-field {
200 border: none;
201 padding: 0;
202 margin: 15px 0;
203
204 // width
205 &[data-width]] {
206 border: none !important;
207 }
208
209 // label
210 > .acf-label {
211 padding: 0;
212 }
213
214 // input
215 > .acf-input {
216 padding: 0;
217 }
218 }
219
220 /*--------------------------------------------------------------------------------------------
221 *
222 * acf-fields (left)
223 *
224 *--------------------------------------------------------------------------------------------*/
225
226 .acf-fields.-left > .acf-field {
227 padding: $fy 0;
228
229 // clearifx
230 @include clearfix();
231
232 // sidebar
233 &:before {
234 content: "";
235 display: block;
236 position: absolute;
237 z-index: 0;
238 background: #f9f9f9;
239 border-color: #e1e1e1;
240 border-style: solid;
241 border-width: 0 1px 0 0;
242 top: 0;
243 bottom: 0;
244 left: 0;
245 width: 20%;
246 }
247
248 // width
249 &[data-width]] {
250 float: none;
251 width: auto !important;
252 border-left-width: 0 !important;
253 border-right-width: 0 !important;
254 }
255
256 // label
257 > .acf-label {
258 float: left;
259 width: 20%;
260 margin: 0;
261 padding: 0 $fx;
262 }
263
264 // input
265 > .acf-input {
266 float: left;
267 width: 80%;
268 margin: 0;
269 padding: 0 $fx;
270 }
271
272 // rtl
273 html[dir="rtl"]="rtl""] & {
274 // sidebar
275 &:before {
276 border-width: 0 0 0 1px;
277 left: auto;
278 right: 0;
279 }
280
281 // label
282 > .acf-label {
283 float: right;
284 }
285
286 // input
287 > .acf-input {
288 float: right;
289 }
290 }
291
292 // In sidebar.
293 #side-sortables & {
294 &:before {
295 display: none;
296 }
297 > .acf-label {
298 width: 100%;
299 margin-bottom: 10px;
300 }
301 > .acf-input {
302 width: 100%;
303 }
304 }
305
306 // mobile
307 @media screen and (max-width: $sm) {
308 // sidebar
309 &:before {
310 display: none;
311 }
312
313 // label
314 > .acf-label {
315 width: 100%;
316 margin-bottom: 10px;
317 }
318
319 // input
320 > .acf-input {
321 width: 100%;
322 }
323 }
324 }
325
326 /* clear + left */
327 .acf-fields.-clear.-left > .acf-field {
328 padding: 0;
329 border: none;
330
331 // sidebar
332 &:before {
333 display: none;
334 }
335
336 // label
337 > .acf-label {
338 padding: 0;
339 }
340
341 // input
342 > .acf-input {
343 padding: 0;
344 }
345 }
346
347 /*--------------------------------------------------------------------------------------------
348 *
349 * acf-table
350 *
351 *--------------------------------------------------------------------------------------------*/
352
353 .acf-table tr.acf-field {
354 // label
355 > td.acf-label {
356 padding: $fp;
357 margin: 0;
358 background: #f9f9f9;
359 width: 20%;
360 }
361
362 // input
363 > td.acf-input {
364 padding: $fp;
365 margin: 0;
366 border-left-color: #e1e1e1;
367 }
368 }
369
370 .acf-sortable-tr-helper {
371 position: relative !important;
372 display: table-row !important;
373 }
374
375 /*--------------------------------------------------------------------------------------------
376 *
377 * acf-postbox
378 *
379 *--------------------------------------------------------------------------------------------*/
380
381 .acf-postbox {
382 position: relative;
383
384 // inside
385 > .inside {
386 margin: 0 !important; /* override WP style - do not delete - you have tried this before */
387 padding: 0 !important; /* override WP style - do not delete - you have tried this before */
388 }
389
390 // Edit cog.
391 .acf-hndle-cog {
392 color: #72777c;
393 font-size: 16px;
394 line-height: 36px;
395 height: 36px; // Mimic WP 5.5
396 width: 1.62rem; // Mimic WP 5.5
397 position: relative;
398 display: none;
399 &:hover {
400 color: #191e23;
401 }
402 }
403
404 // Show on hover.
405 > .hndle:hover,
406 > .postbox-header:hover {
407 .acf-hndle-cog {
408 display: inline-block;
409 }
410 }
411
412 // WP < 5.5 styling
413 > .hndle {
414 .acf-hndle-cog {
415 height: 20px;
416 line-height: 20px;
417 float: right;
418 width: auto;
419 &:hover {
420 color: #777777;
421 }
422 }
423 }
424
425 // replace
426 .acf-replace-with-fields {
427 padding: 15px;
428 text-align: center;
429 }
430 }
431
432 // Correct margin around #acf_after_title
433 #post-body-content #acf_after_title-sortables {
434 margin: 20px 0 -20px;
435 }
436
437 /* seamless */
438 .acf-postbox.seamless {
439 border: 0 none;
440 background: transparent;
441 box-shadow: none;
442
443 /* hide hndle */
444 > .postbox-header,
445 > .hndle,
446 > .handlediv {
447 display: none !important;
448 }
449
450 /* inside */
451 > .inside {
452 display: block !important; /* stop metabox from hiding when closed */
453 margin-left: -$field_padding_x !important;
454 margin-right: -$field_padding_x !important;
455
456 > .acf-field {
457 border-color: transparent;
458 }
459 }
460 }
461
462 /* seamless (left) */
463 .acf-postbox.seamless > .acf-fields.-left {
464 /* hide sidebar bg */
465 > .acf-field:before {
466 display: none;
467 }
468
469 /* mobile */
470 @media screen and (max-width: 782px) {
471 /* remove padding */
472 & > .acf-field > .acf-label,
473 & > .acf-field > .acf-input {
474 padding: 0;
475 }
476 }
477 }
478
479 /*-----------------------------------------------------------------------------
480 *
481 * Inputs
482 *
483 *-----------------------------------------------------------------------------*/
484
485 .acf-field {
486 input[type="text"]="text""],
487 input[type="password"]="password""],
488 input[type="date"]="date""],
489 input[type="datetime"]="datetime""],
490 input[type="datetime-local"]="datetime-local""],
491 input[type="email"]="email""],
492 input[type="month"]="month""],
493 input[type="number"]="number""],
494 input[type="search"]="search""],
495 input[type="tel"]="tel""],
496 input[type="time"]="time""],
497 input[type="url"]="url""],
498 input[type="week"]="week""],
499 textarea,
500 select {
501 width: 100%;
502 padding: 4px 8px;
503 margin: 0;
504 box-sizing: border-box;
505 font-size: 14px;
506 line-height: 1.4;
507
508 // WP Admin 3.8
509 @include wp-admin("3-8") {
510 padding: 3px 5px;
511 }
512 }
513 textarea {
514 resize: vertical;
515 }
516 }
517
518 // Fix extra padding in Firefox.
519 body.acf-browser-firefox .acf-field select {
520 padding: 4px 5px;
521 }
522
523 /*-----------------------------------------------------------------------------
524 *
525 * Text
526 *
527 *-----------------------------------------------------------------------------*/
528 .acf-input-prepend,
529 .acf-input-append,
530 .acf-input-wrap {
531 box-sizing: border-box;
532 }
533
534 .acf-input-prepend,
535 .acf-input-append {
536 font-size: 13px;
537 line-height: 1.4;
538 padding: 4px 8px;
539 background: #f5f5f5;
540 border: $wp-input-border solid 1px;
541 min-height: 30px;
542
543 // WP Admin 3.8
544 @include wp-admin("3-8") {
545 padding: 3px 5px;
546 border-color: $wp38-input-border;
547 min-height: 28px;
548 }
549 }
550
551 .acf-input-prepend {
552 float: left;
553 border-right-width: 0;
554 border-radius: 3px 0 0 3px;
555 }
556
557 .acf-input-append {
558 float: right;
559 border-left-width: 0;
560 border-radius: 0 3px 3px 0;
561 }
562
563 .acf-input-wrap {
564 position: relative;
565 overflow: hidden;
566 .acf-is-prepended {
567 border-radius: 0 $radius-md $radius-md 0 !important;
568 }
569 .acf-is-appended {
570 border-radius: $radius-md 0 0 $radius-md !important;
571 }
572 .acf-is-prepended.acf-is-appended {
573 border-radius: 0 !important;
574 }
575 }
576
577 /* rtl */
578 html[dir="rtl"]="rtl""] .acf-input-prepend {
579 border-left-width: 0;
580 border-right-width: 1px;
581 border-radius: 0 3px 3px 0;
582
583 float: right;
584 }
585
586 html[dir="rtl"]="rtl""] .acf-input-append {
587 border-left-width: 1px;
588 border-right-width: 0;
589 border-radius: 3px 0 0 3px;
590 float: left;
591 }
592
593 html[dir="rtl"]="rtl""] input.acf-is-prepended {
594 border-radius: 3px 0 0 3px !important;
595 }
596
597 html[dir="rtl"]="rtl""] input.acf-is-appended {
598 border-radius: 0 3px 3px 0 !important;
599 }
600
601 html[dir="rtl"]="rtl""] input.acf-is-prepended.acf-is-appended {
602 border-radius: 0 !important;
603 }
604
605 /*-----------------------------------------------------------------------------
606 *
607 * Color Picker
608 *
609 *-----------------------------------------------------------------------------*/
610
611 .acf-color-picker {
612 .wp-color-result {
613 border-color: $wp-input-border;
614 @include wp-admin("3-8") {
615 border-color: $wp-card-border;
616 }
617 }
618 .wp-picker-active {
619 position: relative;
620 z-index: 1;
621 }
622 }
623
624 /*-----------------------------------------------------------------------------
625 *
626 * Url
627 *
628 *-----------------------------------------------------------------------------*/
629
630 .acf-url {
631 i {
632 position: absolute;
633 top: 5px;
634 left: 5px;
635 opacity: 0.5;
636 color: #7e8993;
637 }
638
639 input[type="url"]="url""] {
640 padding-left: 27px !important;
641 }
642
643 &.-valid i {
644 opacity: 1;
645 }
646 }
647
648 /*-----------------------------------------------------------------------------
649 *
650 * Select2 (v3)
651 *
652 *-----------------------------------------------------------------------------*/
653
654 .select2-container.-acf {
655 z-index: 1001;
656
657 .select2-choices {
658 background: #fff;
659 border-color: #ddd;
660 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07) inset;
661 min-height: 31px;
662
663 .select2-search-choice {
664 margin: 5px 0 5px 5px;
665 padding: 3px 5px 3px 18px;
666 border-color: #bbb;
667 background: #f9f9f9;
668 box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
669
670 /* sortable item*/
671 &.ui-sortable-helper {
672 background: #5897fb;
673 border-color: darken(#5897fb, 5%);
674 color: #fff !important;
675 box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
676
677 a {
678 visibility: hidden;
679 }
680 }
681
682 /* sortable shadow */
683 &.ui-sortable-placeholder {
684 background-color: #f7f7f7;
685 border-color: #f7f7f7;
686 visibility: visible !important;
687 }
688 }
689
690 .select2-search-choice-focus {
691 border-color: #999;
692 }
693
694 .select2-search-field input {
695 height: 31px;
696 line-height: 22px;
697 margin: 0;
698 padding: 5px 5px 5px 7px;
699 }
700 }
701
702 .select2-choice {
703 border-color: #bbbbbb;
704
705 .select2-arrow {
706 background: transparent;
707 border-left-color: #dfdfdf;
708 padding-left: 1px;
709 }
710
711 .select2-result-description {
712 display: none;
713 }
714 }
715
716 /* open */
717 &.select2-container-active .select2-choices,
718 &.select2-dropdown-open .select2-choices {
719 border-color: #5b9dd9;
720 border-radius: 3px 3px 0 0;
721 }
722
723 /* single open */
724 &.select2-dropdown-open .select2-choice {
725 background: #fff;
726 border-color: #5b9dd9;
727 }
728 }
729
730 /* rtl */
731 html[dir="rtl"]="rtl""] .select2-container.-acf {
732 .select2-search-choice-close {
733 left: 24px;
734 }
735
736 .select2-choice > .select2-chosen {
737 margin-left: 42px;
738 }
739
740 .select2-choice .select2-arrow {
741 padding-left: 0;
742 padding-right: 1px;
743 }
744 }
745
746 /* description */
747 .select2-drop {
748 /* search*/
749 .select2-search {
750 padding: 4px 4px 0;
751 }
752
753 /* result */
754 .select2-result {
755 .select2-result-description {
756 color: #999;
757 font-size: 12px;
758 margin-left: 5px;
759 }
760
761 /* hover*/
762 &.select2-highlighted {
763 .select2-result-description {
764 color: #fff;
765 opacity: 0.75;
766 }
767 }
768 }
769 }
770
771 /*-----------------------------------------------------------------------------
772 *
773 * Select2 (v4)
774 *
775 *-----------------------------------------------------------------------------*/
776 .select2-container.-acf {
777 // Reset WP default style.
778 li {
779 margin-bottom: 0;
780 }
781
782 // select2 4.1 specific targeting for plugin conflict resolution.
783 &[data-select2-id^="select2-data"]^="select2-data""] {
784 .select2-selection--multiple {
785 overflow: hidden;
786 }
787 }
788
789 // Customize border color to match WP admin.
790 .select2-selection {
791 border-color: $wp-input-border;
792
793 // WP Admin 3.8
794 @include wp-admin("3-8") {
795 border-color: #aaa;
796 }
797 }
798
799 // Multiple wrap.
800 .select2-selection--multiple {
801 // If no value, increase hidden search input full width.
802 // Overrides calculated px width issues.
803 .select2-search--inline:first-child {
804 float: none;
805 input {
806 width: 100% !important;
807 }
808 }
809
810 // ul: Remove padding because li already has margin-right.
811 .select2-selection__rendered {
812 padding-right: 0;
813 }
814
815 // incredibly specific targeting of an ID that only gets applied in select2 4.1 to solve plugin conflicts
816 .select2-selection__rendered[id^="select2-acf-field"]^="select2-acf-field""] {
817 display: inline;
818 padding: 0;
819 margin: 0;
820
821 .select2-selection__choice {
822 margin-right: 0;
823 }
824 }
825
826 // li
827 .select2-selection__choice {
828 background-color: #f7f7f7;
829 border-color: #cccccc;
830
831 // Allow choice to wrap multiple lines.
832 max-width: 100%;
833 overflow: hidden;
834 word-wrap: normal !important;
835 white-space: normal;
836
837 // Sortable.
838 &.ui-sortable-helper {
839 background: $blue-500;
840 border-color: $blue-600;
841 color: #fff !important;
842 box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
843
844 span {
845 visibility: hidden;
846 }
847 }
848
849 // Fixed for select2's 4.1 css changes when loaded by another plugin.
850 .select2-selection__choice__remove {
851 position: static;
852 border-right: none;
853 padding: 0;
854 }
855
856 // Sortable shadow
857 &.ui-sortable-placeholder {
858 background-color: $gray-100;
859 border-color: $gray-100;
860 visibility: visible !important;
861 }
862 }
863
864 // search
865 .select2-search__field {
866 box-shadow: none !important;
867 min-height: 0;
868 }
869 }
870
871 // Fix single select pushing out repeater field table width.
872 .acf-row & .select2-selection--single {
873 overflow: hidden;
874 .select2-selection__rendered {
875 white-space: normal;
876 }
877 }
878 }
879
880 .acf-admin-single-field-group .select2-dropdown {
881 border-color: $blue-300 !important;
882 margin-top: -5px;
883 overflow: hidden;
884 box-shadow: $elevation-01;
885 }
886
887 .select2-dropdown.select2-dropdown--above {
888 margin-top: 0;
889 }
890
891 .acf-admin-single-field-group .select2-container--default .select2-results__option[aria-selected="true"]="true""] {
892 background-color: $gray-50 !important;
893 color: $gray-500;
894
895 &:hover {
896 color: $blue-400;
897 }
898 }
899
900 .acf-admin-single-field-group .select2-container--default
901 .select2-results__option--highlighted[aria-selected]] {
902 color: #fff !important;
903 background-color: $blue-500 !important;
904 }
905
906 // remove bottom margin on options
907 .select2-dropdown .select2-results__option {
908 margin-bottom: 0;
909 }
910
911 // z-index helper.
912 .select2-container {
913 .select2-dropdown {
914 z-index: 900000;
915
916 // Reset input height.
917 .select2-search__field {
918 line-height: 1.4;
919 min-height: 0;
920 }
921 }
922 }
923
924 /*-----------------------------------------------------------------------------
925 *
926 * Link
927 *
928 *-----------------------------------------------------------------------------*/
929
930 .acf-link {
931 .link-wrap {
932 display: none;
933 border: $wp-card-border solid 1px;
934 border-radius: 3px;
935 padding: 5px;
936 line-height: 26px;
937 background: #fff;
938
939 word-wrap: break-word;
940 word-break: break-all;
941
942 .link-title {
943 padding: 0 5px;
944 }
945 }
946
947 // Has value.
948 &.-value {
949 .button {
950 display: none;
951 }
952 .acf-icon.-link-ext {
953 display: none;
954 }
955 .link-wrap {
956 display: inline-block;
957 }
958 }
959
960 // Is external.
961 &.-external {
962 .acf-icon.-link-ext {
963 display: inline-block;
964 }
965 }
966 }
967
968 #wp-link-backdrop {
969 z-index: 900000 !important;
970 }
971 #wp-link-wrap {
972 z-index: 900001 !important;
973 }
974
975 /*-----------------------------------------------------------------------------
976 *
977 * Radio
978 *
979 *-----------------------------------------------------------------------------*/
980
981 ul.acf-radio-list,
982 ul.acf-checkbox-list {
983 background: transparent;
984 border: 1px solid transparent;
985 position: relative;
986 padding: 1px;
987 margin: 0;
988
989 &:focus-within {
990 border: 1px solid $blue-200;
991 border-radius: $radius-md;
992 }
993
994 li {
995 font-size: 13px;
996 line-height: 22px;
997 margin: 0;
998 position: relative;
999 word-wrap: break-word;
1000
1001 label {
1002 display: inline;
1003 }
1004
1005 input[type="checkbox"]="checkbox""],
1006 input[type="radio"]="radio""] {
1007 margin: -1px 4px 0 0;
1008 vertical-align: middle;
1009 }
1010
1011 input[type="text"]="text""] {
1012 width: auto;
1013 vertical-align: middle;
1014 margin: 2px 0;
1015 }
1016
1017 /* attachment sidebar fix*/
1018 span {
1019 float: none;
1020 }
1021
1022 i {
1023 vertical-align: middle;
1024 }
1025 }
1026
1027 /* hl */
1028 &.acf-hl {
1029 li {
1030 margin-right: 20px;
1031 clear: none;
1032 }
1033 }
1034
1035 /* rtl */
1036 html[dir="rtl"]="rtl""] & {
1037 input[type="checkbox"]="checkbox""],
1038 input[type="radio"]="radio""] {
1039 margin-left: 4px;
1040 margin-right: 0;
1041 }
1042 }
1043 }
1044
1045 /*-----------------------------------------------------------------------------
1046 *
1047 * Button Group
1048 *
1049 *-----------------------------------------------------------------------------*/
1050
1051 .acf-button-group {
1052 display: inline-block;
1053
1054 label {
1055 display: inline-block;
1056 border: $wp-input-border solid 1px;
1057 position: relative;
1058 z-index: 1;
1059 padding: 5px 10px;
1060 background: #fff;
1061
1062 &:hover {
1063 color: #016087;
1064 background: #f3f5f6;
1065 border-color: #0071a1;
1066 z-index: 2;
1067 }
1068
1069 &.selected {
1070 border-color: #007cba;
1071 background: lighten(#007cba, 5%);
1072 color: #fff;
1073 z-index: 2;
1074 }
1075 }
1076
1077 input {
1078 display: none !important;
1079 }
1080
1081 /* default (horizontal) */
1082 & {
1083 padding-left: 1px;
1084 display: inline-flex;
1085 flex-direction: row;
1086 flex-wrap: nowrap;
1087
1088 label {
1089 margin: 0 0 0 -1px;
1090 flex: 1;
1091 text-align: center;
1092 white-space: nowrap;
1093
1094 // corners
1095 &:first-child {
1096 border-radius: 3px 0 0 3px;
1097 html[dir="rtl"]="rtl""] & {
1098 border-radius: 0 3px 3px 0;
1099 }
1100 }
1101 &:last-child {
1102 border-radius: 0 3px 3px 0;
1103 html[dir="rtl"]="rtl""] & {
1104 border-radius: 3px 0 0 3px;
1105 }
1106 }
1107 &:only-child {
1108 border-radius: 3px;
1109 }
1110 }
1111 }
1112
1113 /* vertical */
1114 &.-vertical {
1115 padding-left: 0;
1116 padding-top: 1px;
1117 flex-direction: column;
1118
1119 label {
1120 margin: -1px 0 0 0;
1121
1122 // corners
1123 &:first-child {
1124 border-radius: 3px 3px 0 0;
1125 }
1126 &:last-child {
1127 border-radius: 0 0 3px 3px;
1128 }
1129 &:only-child {
1130 border-radius: 3px;
1131 }
1132 }
1133 }
1134
1135 // WP Admin 3.8
1136 @include wp-admin("3-8") {
1137 label {
1138 border-color: $wp-card-border;
1139 &:hover {
1140 border-color: #0071a1;
1141 }
1142 &.selected {
1143 border-color: #007cba;
1144 }
1145 }
1146 }
1147 }
1148
1149 .acf-admin-page {
1150 .acf-button-group {
1151 display: flex;
1152 align-items: stretch;
1153 align-content: center;
1154 height: 40px;
1155 border-radius: $radius-md;
1156 box-shadow: $elevation-01;
1157
1158 label {
1159 display: inline-flex;
1160 align-items: center;
1161 align-content: center;
1162 border: $gray-300 solid 1px;
1163 padding: 6px 16px;
1164 color: $gray-600;
1165 font-weight: 500;
1166
1167 &:hover {
1168 color: $color-primary;
1169 }
1170
1171 &.selected {
1172 background: $gray-50;
1173 color: $color-primary;
1174 }
1175 }
1176 }
1177
1178 .select2-container.-acf {
1179 .select2-selection--multiple {
1180 .select2-selection__choice {
1181 display: inline-flex;
1182 align-items: center;
1183 margin: {
1184 top: 8px;
1185 left: 2px;
1186 };
1187 position: relative;
1188 padding: {
1189 top: 4px;
1190 right: auto;
1191 bottom: 4px;
1192 left: 8px;
1193 }
1194 background-color: $blue-50;
1195 border-color: $blue-200;
1196 color: $blue-500;
1197
1198 .select2-selection__choice__remove {
1199 order: 2;
1200 width: 14px;
1201 height: 14px;
1202 margin: {
1203 right: 0;
1204 left: 4px;
1205 }
1206 color: $blue-300;
1207 text-indent: 100%;
1208 white-space: nowrap;
1209 overflow: hidden;
1210
1211 &:hover {
1212 color: $blue-500;
1213 }
1214
1215 &:before {
1216 content: "";
1217 $icon-size: 14px;
1218 display: block;
1219 width: $icon-size;
1220 height: $icon-size;
1221 top: 0;
1222 left: 0;
1223 background-color: currentColor;
1224 border: none;
1225 border-radius: 0;
1226 -webkit-mask-size: contain;
1227 mask-size: contain;
1228 -webkit-mask-repeat: no-repeat;
1229 mask-repeat: no-repeat;
1230 -webkit-mask-position: center;
1231 mask-position: center;
1232 -webkit-mask-image: url("../../images/icons/icon-close.svg");
1233 mask-image: url("../../images/icons/icon-close.svg");
1234 }
1235 }
1236 }
1237 }
1238 }
1239 }
1240
1241 /*-----------------------------------------------------------------------------
1242 *
1243 * Checkbox
1244 *
1245 *-----------------------------------------------------------------------------*/
1246
1247 .acf-checkbox-list {
1248 .button {
1249 margin: 10px 0 0;
1250 }
1251 }
1252
1253 /*-----------------------------------------------------------------------------
1254 *
1255 * True / False
1256 *
1257 *-----------------------------------------------------------------------------*/
1258 .acf-switch {
1259 display: grid;
1260 grid-template-columns: 1fr 1fr;
1261 width: fit-content;
1262 max-width: 100%;
1263 border-radius: 5px;
1264 cursor: pointer;
1265 position: relative;
1266 background: #f5f5f5;
1267 height: 30px;
1268 vertical-align: middle;
1269 border: $wp-input-border solid 1px;
1270
1271 -webkit-transition: background 0.25s ease;
1272 -moz-transition: background 0.25s ease;
1273 -o-transition: background 0.25s ease;
1274 transition: background 0.25s ease;
1275
1276 span {
1277 display: inline-block;
1278 float: left;
1279 text-align: center;
1280
1281 font-size: 13px;
1282 line-height: 22px;
1283
1284 padding: 4px 10px;
1285 min-width: 15px;
1286
1287 i {
1288 vertical-align: middle;
1289 }
1290 }
1291
1292 .acf-switch-on {
1293 color: #fff;
1294 text-shadow: #007cba 0 1px 0;
1295 overflow: hidden;
1296 }
1297
1298 .acf-switch-off {
1299 overflow: hidden;
1300 }
1301
1302 .acf-switch-slider {
1303 position: absolute;
1304 top: 2px;
1305 left: 2px;
1306 bottom: 2px;
1307 right: 50%;
1308 z-index: 1;
1309 background: #fff;
1310 border-radius: 3px;
1311 border: $wp-input-border solid 1px;
1312
1313 -webkit-transition: all 0.25s ease;
1314 -moz-transition: all 0.25s ease;
1315 -o-transition: all 0.25s ease;
1316 transition: all 0.25s ease;
1317
1318 transition-property: left, right;
1319 }
1320
1321 /* hover */
1322 &:hover,
1323 &.-focus {
1324 border-color: #0071a1;
1325 background: #f3f5f6;
1326 color: #016087;
1327 .acf-switch-slider {
1328 border-color: #0071a1;
1329 }
1330 }
1331
1332 /* active */
1333 &.-on {
1334 background: #0d99d5;
1335 border-color: #007cba;
1336
1337 .acf-switch-slider {
1338 left: 50%;
1339 right: 2px;
1340 border-color: #007cba;
1341 }
1342
1343 /* hover */
1344 &:hover {
1345 border-color: #007cba;
1346 }
1347 }
1348
1349 /* message */
1350 + span {
1351 margin-left: 6px;
1352 }
1353
1354 // WP Admin 3.8
1355 @include wp-admin("3-8") {
1356 border-color: $wp-card-border;
1357 .acf-switch-slider {
1358 border-color: $wp-card-border;
1359 }
1360
1361 &:hover,
1362 &.-focus {
1363 border-color: #0071a1;
1364 .acf-switch-slider {
1365 border-color: #0071a1;
1366 }
1367 }
1368
1369 &.-on {
1370 border-color: #007cba;
1371 .acf-switch-slider {
1372 border-color: #007cba;
1373 }
1374 &:hover {
1375 border-color: #007cba;
1376 }
1377 }
1378 }
1379 }
1380
1381 /* checkbox */
1382 .acf-switch-input {
1383 opacity: 0;
1384 position: absolute;
1385 margin: 0;
1386 }
1387
1388 .acf-admin-single-field-group .acf-true-false {
1389 border: 1px solid transparent;
1390
1391 &:focus-within {
1392 border: 1px solid $blue-400;
1393 border-radius: 120px;
1394 }
1395 }
1396
1397 .acf-true-false:has(.acf-switch) {
1398
1399 label {
1400 display: flex;
1401 align-items: center;
1402 justify-items: center;
1403 }
1404 }
1405
1406 /* in media modal */
1407 .compat-item .acf-true-false {
1408 .message {
1409 float: none;
1410 padding: 0;
1411 vertical-align: middle;
1412 }
1413 }
1414
1415 /*--------------------------------------------------------------------------
1416 *
1417 * Google Map
1418 *
1419 *-------------------------------------------------------------------------*/
1420
1421 .acf-google-map {
1422 position: relative;
1423 border: $wp-card-border solid 1px;
1424 background: #fff;
1425
1426 .title {
1427 position: relative;
1428 border-bottom: $wp-card-border solid 1px;
1429
1430 .search {
1431 margin: 0;
1432 font-size: 14px;
1433 line-height: 30px;
1434 height: 40px;
1435 padding: 5px 10px;
1436 border: 0 none;
1437 box-shadow: none;
1438 border-radius: 0;
1439 font-family: inherit;
1440 cursor: text;
1441 }
1442
1443 .acf-loading {
1444 position: absolute;
1445 top: 10px;
1446 right: 11px;
1447 display: none;
1448 }
1449
1450 // Avoid icons disapearing when click/blur events conflict.
1451 .acf-icon:active {
1452 display: inline-block !important;
1453 }
1454 }
1455
1456 .canvas {
1457 height: 400px;
1458 }
1459
1460 // Show actions on hover.
1461 &:hover .title .acf-actions {
1462 display: block;
1463 }
1464
1465 // Default state (show locate, hide search and cancel).
1466 .title {
1467 .acf-icon.-location {
1468 display: inline-block;
1469 }
1470 .acf-icon.-cancel,
1471 .acf-icon.-search {
1472 display: none;
1473 }
1474 }
1475
1476 // Has value (hide locate, show cancel).
1477 &.-value .title {
1478 .search {
1479 font-weight: bold;
1480 }
1481 .acf-icon.-location {
1482 display: none;
1483 }
1484 .acf-icon.-cancel {
1485 display: inline-block;
1486 }
1487 }
1488
1489 // Is searching (hide locate, show search and cancel).
1490 &.-searching .title {
1491 .acf-icon.-location {
1492 display: none;
1493 }
1494 .acf-icon.-cancel,
1495 .acf-icon.-search {
1496 display: inline-block;
1497 }
1498
1499 // Show actions.
1500 .acf-actions {
1501 display: block;
1502 }
1503
1504 // Change search font-weght.
1505 .search {
1506 font-weight: normal !important;
1507 }
1508 }
1509
1510 // Loading.
1511 &.-loading .title {
1512 a {
1513 display: none !important;
1514 }
1515 i {
1516 display: inline-block;
1517 }
1518 }
1519 }
1520
1521 /* autocomplete */
1522 .pac-container {
1523 border-width: 1px 0;
1524 box-shadow: none;
1525 }
1526
1527 .pac-container:after {
1528 display: none;
1529 }
1530
1531 .pac-container .pac-item:first-child {
1532 border-top: 0 none;
1533 }
1534 .pac-container .pac-item {
1535 padding: 5px 10px;
1536 cursor: pointer;
1537 }
1538
1539 html[dir="rtl"]="rtl""] .pac-container .pac-item {
1540 text-align: right;
1541 }
1542
1543 /*--------------------------------------------------------------------------
1544 *
1545 * Relationship
1546 *
1547 *-------------------------------------------------------------------------*/
1548
1549 .acf-relationship {
1550 background: #fff;
1551 border: $wp-card-border solid 1px;
1552
1553 // Filters.
1554 .filters {
1555 @include clearfix();
1556 border-bottom: $wp-card-border solid 1px;
1557 background: #fff;
1558
1559 .filter {
1560 margin: 0;
1561 padding: 0;
1562 float: left;
1563 width: 100%;
1564 box-sizing: border-box;
1565 padding: 7px 7px 7px 0;
1566 &:first-child {
1567 padding-left: 7px;
1568 }
1569
1570 // inputs
1571 input,
1572 select {
1573 margin: 0;
1574 float: none; /* potential fix for media popup? */
1575
1576 &:focus,
1577 &:active {
1578 outline: none;
1579 box-shadow: none;
1580 }
1581 }
1582 input {
1583 border-color: transparent;
1584 box-shadow: none;
1585 padding-left: 3px;
1586 padding-right: 3px;
1587 }
1588 }
1589
1590 /* widths */
1591 &.-f2 {
1592 .filter {
1593 width: 50%;
1594 }
1595 }
1596 &.-f3 {
1597 .filter {
1598 width: 25%;
1599 }
1600 .filter.-search {
1601 width: 50%;
1602 }
1603 }
1604 }
1605
1606 /* list */
1607 .list {
1608 margin: 0;
1609 padding: 5px;
1610 height: 160px;
1611 overflow: auto;
1612
1613 .acf-rel-label,
1614 .acf-rel-item,
1615 p {
1616 padding: 5px;
1617 margin: 0;
1618 display: block;
1619 position: relative;
1620 min-height: 18px;
1621 }
1622
1623 .acf-rel-label {
1624 font-weight: bold;
1625 }
1626
1627 .acf-rel-item {
1628 cursor: pointer;
1629
1630 b {
1631 text-decoration: underline;
1632 font-weight: normal;
1633 }
1634
1635 .thumbnail {
1636 background: darken(#f9f9f9, 10%);
1637 width: 22px;
1638 height: 22px;
1639 float: left;
1640 margin: -2px 5px 0 0;
1641
1642 img {
1643 max-width: 22px;
1644 max-height: 22px;
1645 margin: 0 auto;
1646 display: block;
1647 }
1648
1649 &.-icon {
1650 background: #fff;
1651
1652 img {
1653 max-height: 20px;
1654 margin-top: 1px;
1655 }
1656 }
1657 }
1658
1659 /* hover */
1660 &:hover, &.relationship-hover {
1661 background: #3875d7;
1662 color: #fff;
1663
1664 .thumbnail {
1665 background: lighten(#3875d7, 25%);
1666
1667 &.-icon {
1668 background: #fff;
1669 }
1670 }
1671 }
1672
1673 /* disabled */
1674 &.disabled {
1675 opacity: 0.5;
1676
1677 &:hover {
1678 background: transparent;
1679 color: #333;
1680 cursor: default;
1681
1682 .thumbnail {
1683 background: darken(#f9f9f9, 10%);
1684
1685 &.-icon {
1686 background: #fff;
1687 }
1688 }
1689 }
1690 }
1691 }
1692
1693 ul {
1694 padding-bottom: 5px;
1695
1696 .acf-rel-label,
1697 .acf-rel-item,
1698 p {
1699 padding-left: 20px;
1700 }
1701 }
1702 }
1703
1704 /* selection (bottom) */
1705 .selection {
1706 @include clearfix();
1707 position: relative;
1708
1709 .values,
1710 .choices {
1711 width: 50%;
1712 background: #fff;
1713 float: left;
1714 }
1715
1716 /* choices */
1717 .choices {
1718 background: #f9f9f9;
1719
1720 .list {
1721 border-right: #dfdfdf solid 1px;
1722 }
1723 }
1724
1725 /* values */
1726 .values {
1727 .acf-icon {
1728 position: absolute;
1729 top: 4px;
1730 right: 7px;
1731 display: none;
1732
1733 /* rtl */
1734 html[dir="rtl"]="rtl""] & {
1735 right: auto;
1736 left: 7px;
1737 }
1738 }
1739
1740 .acf-rel-item:hover .acf-icon, .acf-rel-item.relationship-hover .acf-icon {
1741 display: block;
1742 }
1743
1744 .acf-rel-item {
1745 cursor: move;
1746
1747 b {
1748 text-decoration: none;
1749 }
1750 }
1751 }
1752 }
1753 }
1754
1755 /* menu item fix */
1756 .menu-item {
1757 .acf-relationship {
1758 ul {
1759 width: auto;
1760 }
1761
1762 li {
1763 display: block;
1764 }
1765 }
1766 }
1767
1768 /*--------------------------------------------------------------------------
1769 *
1770 * WYSIWYG
1771 *
1772 *-------------------------------------------------------------------------*/
1773
1774 .acf-editor-wrap {
1775 // Delay.
1776 &.delay {
1777 .acf-editor-toolbar {
1778 content: "";
1779 display: block;
1780 background: #f5f5f5;
1781 border-bottom: #dddddd solid 1px;
1782 color: #555d66;
1783 padding: 10px;
1784 }
1785
1786 .wp-editor-area {
1787 padding: 10px;
1788 border: none;
1789 color: inherit !important; // Fixes white text bug.
1790 }
1791 }
1792
1793 iframe {
1794 min-height: 200px;
1795 }
1796
1797 .wp-editor-container {
1798 border: 1px solid $wp-card-border;
1799 box-shadow: none !important;
1800 }
1801
1802 .wp-editor-tabs {
1803 box-sizing: content-box;
1804 }
1805
1806 .wp-switch-editor {
1807 border-color: $wp-card-border;
1808 border-bottom-color: transparent;
1809 }
1810 }
1811
1812 // Full Screen Mode.
1813 #mce_fullscreen_container {
1814 z-index: 900000 !important;
1815 }
1816
1817 /*-----------------------------------------------------------------------------
1818 *
1819 * Tab
1820 *
1821 *-----------------------------------------------------------------------------*/
1822
1823 .acf-field-tab {
1824 display: none !important;
1825 }
1826
1827 // class to hide fields
1828 .hidden-by-tab {
1829 display: none !important;
1830 }
1831
1832 // ensure floating fields do not disturb tab wrap
1833 .acf-tab-wrap {
1834 clear: both;
1835 z-index: 1;
1836 overflow: auto;
1837 }
1838
1839 // tab group
1840 .acf-tab-group {
1841 border-bottom: #ccc solid 1px;
1842 padding: 10px 10px 0;
1843
1844 li {
1845 margin: 0 0.5em 0 0;
1846
1847 a {
1848 padding: 5px 10px;
1849 display: block;
1850
1851 color: #555;
1852 font-size: 14px;
1853 font-weight: 600;
1854 line-height: 24px;
1855
1856 border: #ccc solid 1px;
1857 border-bottom: 0 none;
1858 text-decoration: none;
1859 background: #e5e5e5;
1860 transition: none;
1861
1862 &:hover {
1863 background: #fff;
1864 }
1865
1866 &:focus {
1867 outline: none;
1868 box-shadow: none;
1869 }
1870
1871 &:empty {
1872 display: none;
1873 }
1874 }
1875
1876 // rtl
1877 html[dir="rtl"]="rtl""] & {
1878 margin: 0 0 0 0.5em;
1879 }
1880
1881 // active
1882 &.active a {
1883 background: #f1f1f1;
1884 color: #000;
1885 padding-bottom: 6px;
1886 margin-bottom: -1px;
1887 position: relative;
1888 z-index: 1;
1889 }
1890 }
1891 }
1892
1893 // inside acf-fields
1894 .acf-fields > .acf-tab-wrap {
1895 background: #f9f9f9;
1896
1897 // group
1898 .acf-tab-group {
1899 position: relative;
1900 border-top: $wp-card-border solid 1px;
1901 border-bottom: $wp-card-border solid 1px;
1902
1903 // Pull next element (field) up and underneith.
1904 z-index: 2;
1905 margin-bottom: -1px;
1906
1907 // li a {
1908 // background: #f1f1f1;
1909 // border-color: $wp-card-border;
1910 //
1911 // &:hover {
1912 // background: #FFF;
1913 // }
1914 // }
1915 //
1916 // li.active a {
1917 // background: #FFFFFF;
1918 // }
1919
1920 // WP Admin 3.8
1921 @include wp-admin("3-8") {
1922 border-color: $wp38-card-border-1;
1923 }
1924 }
1925
1926 // first child
1927 // fixes issue causing double border-top due to WP postbox .handlediv
1928 // &:first-child .acf-tab-group {
1929 // border-top: none;
1930 // }
1931 }
1932
1933 // inside acf-fields.-left
1934 .acf-fields.-left > .acf-tab-wrap {
1935 // group
1936 .acf-tab-group {
1937 padding-left: 20%;
1938
1939 /* mobile */
1940 @media screen and (max-width: $sm) {
1941 padding-left: 10px;
1942 }
1943
1944 /* rtl */
1945 html[dir="rtl"]="rtl""] & {
1946 padding-left: 0;
1947 padding-right: 20%;
1948
1949 /* mobile */
1950 @media screen and (max-width: 850px) {
1951 padding-right: 10px;
1952 }
1953 }
1954 }
1955 }
1956
1957 // left
1958 .acf-tab-wrap.-left {
1959 // group
1960 .acf-tab-group {
1961 position: absolute;
1962 left: 0;
1963 width: 20%;
1964 border: 0 none;
1965 padding: 0 !important; /* important overrides 'left aligned labels' */
1966 margin: 1px 0 0;
1967
1968 // li
1969 li {
1970 float: none;
1971 margin: -1px 0 0;
1972
1973 a {
1974 border: 1px solid #ededed;
1975 font-size: 13px;
1976 line-height: 18px;
1977 color: #0073aa;
1978 padding: 10px;
1979 margin: 0;
1980 font-weight: normal;
1981 border-width: 1px 0;
1982 border-radius: 0;
1983 background: transparent;
1984
1985 &:hover {
1986 color: #00a0d2;
1987 }
1988 }
1989
1990 &.active a {
1991 border-color: #dfdfdf;
1992 color: #000;
1993 margin-right: -1px;
1994 background: #fff;
1995 }
1996 }
1997
1998 // rtl
1999 html[dir="rtl"]="rtl""] & {
2000 left: auto;
2001 right: 0;
2002
2003 li.active a {
2004 margin-right: 0;
2005 margin-left: -1px;
2006 }
2007 }
2008 }
2009
2010 // space before field
2011 .acf-field + &:before {
2012 content: "";
2013 display: block;
2014 position: relative;
2015 z-index: 1;
2016 height: 10px;
2017 border-top: #dfdfdf solid 1px;
2018 border-bottom: #dfdfdf solid 1px;
2019 margin-bottom: -1px;
2020 }
2021
2022 // first child has negative margin issues
2023 &:first-child {
2024 .acf-tab-group {
2025 li:first-child a {
2026 border-top: none;
2027 }
2028 }
2029 }
2030 }
2031
2032 /* sidebar */
2033 .acf-fields.-sidebar {
2034 padding: 0 0 0 20% !important;
2035 position: relative;
2036
2037 /* before */
2038 &:before {
2039 content: "";
2040 display: block;
2041 position: absolute;
2042 top: 0;
2043 left: 0;
2044 width: 20%;
2045 bottom: 0;
2046 border-right: #dfdfdf solid 1px;
2047 background: #f9f9f9;
2048 z-index: 1;
2049 }
2050
2051 /* rtl */
2052 html[dir="rtl"]="rtl""] & {
2053 padding: 0 20% 0 0 !important;
2054
2055 &:before {
2056 border-left: #dfdfdf solid 1px;
2057 border-right-width: 0;
2058 left: auto;
2059 right: 0;
2060 }
2061 }
2062
2063 // left
2064 &.-left {
2065 padding: 0 0 0 180px !important;
2066
2067 /* rtl */
2068 html[dir="rtl"]="rtl""] & {
2069 padding: 0 180px 0 0 !important;
2070 }
2071
2072 &:before {
2073 background: #f1f1f1;
2074 border-color: #dfdfdf;
2075 width: 180px;
2076 }
2077
2078 > .acf-tab-wrap.-left .acf-tab-group {
2079 width: 180px;
2080
2081 li a {
2082 border-color: #e4e4e4;
2083 }
2084
2085 li.active a {
2086 background: #f9f9f9;
2087 }
2088 }
2089 }
2090
2091 // fix double border
2092 > .acf-field-tab + .acf-field {
2093 border-top: none;
2094 }
2095 }
2096
2097 // clear
2098 .acf-fields.-clear > .acf-tab-wrap {
2099 background: transparent;
2100
2101 // group
2102 .acf-tab-group {
2103 margin-top: 0;
2104 border-top: none;
2105 padding-left: 0;
2106 padding-right: 0;
2107
2108 li a {
2109 background: #e5e5e5;
2110
2111 &:hover {
2112 background: #fff;
2113 }
2114 }
2115
2116 li.active a {
2117 background: #f1f1f1;
2118 }
2119 }
2120 }
2121
2122 /* seamless */
2123 .acf-postbox.seamless {
2124 // sidebar
2125 > .acf-fields.-sidebar {
2126 margin-left: 0 !important;
2127
2128 &:before {
2129 background: transparent;
2130 }
2131 }
2132
2133 // default
2134 > .acf-fields > .acf-tab-wrap {
2135 background: transparent;
2136 margin-bottom: 10px;
2137 padding-left: $fx;
2138 padding-right: $fx;
2139
2140 .acf-tab-group {
2141 border-top: 0 none;
2142 border-color: $wp-card-border;
2143
2144 li a {
2145 background: #e5e5e5;
2146 border-color: $wp-card-border;
2147
2148 &:hover {
2149 background: #fff;
2150 }
2151 }
2152
2153 li.active a {
2154 background: #f1f1f1;
2155 }
2156 }
2157 }
2158
2159 // left tabs
2160 > .acf-fields > .acf-tab-wrap.-left {
2161 &:before {
2162 border-top: none;
2163 height: auto;
2164 }
2165
2166 .acf-tab-group {
2167 margin-bottom: 0;
2168
2169 li a {
2170 border-width: 1px 0 1px 1px !important;
2171 border-color: #cccccc;
2172 background: #e5e5e5;
2173 }
2174
2175 li.active a {
2176 background: #f1f1f1;
2177 }
2178 }
2179 }
2180 }
2181
2182 // menu
2183 .menu-edit,
2184 .widget {
2185 .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li {
2186 a {
2187 background: #f1f1f1;
2188 }
2189 a:hover,
2190 &.active a {
2191 background: #fff;
2192 }
2193 }
2194 }
2195
2196 .compat-item .acf-tab-wrap td {
2197 display: block;
2198 }
2199
2200 /* within gallery sidebar */
2201 .acf-gallery-side .acf-tab-wrap {
2202 border-top: 0 none !important;
2203 }
2204
2205 .acf-gallery-side .acf-tab-wrap .acf-tab-group {
2206 margin: 10px 0 !important;
2207 padding: 0 !important;
2208 }
2209
2210 .acf-gallery-side .acf-tab-group li.active a {
2211 background: #f9f9f9 !important;
2212 }
2213
2214 /* withing widget */
2215 .widget .acf-tab-group {
2216 border-bottom-color: #e8e8e8;
2217 }
2218
2219 .widget .acf-tab-group li a {
2220 background: #f1f1f1;
2221 }
2222
2223 .widget .acf-tab-group li.active a {
2224 background: #fff;
2225 }
2226
2227 /* media popup (edit image) */
2228 .media-modal.acf-expanded
2229 .compat-attachment-fields
2230 > tbody
2231 > tr.acf-tab-wrap
2232 .acf-tab-group {
2233 padding-left: 23%;
2234 border-bottom-color: #dddddd;
2235 }
2236
2237 /* table */
2238
2239 .form-table > tbody > tr.acf-tab-wrap .acf-tab-group {
2240 padding: 0 5px 0 210px;
2241 }
2242
2243 /* rtl */
2244 html[dir="rtl"]="rtl""] .form-table > tbody > tr.acf-tab-wrap .acf-tab-group {
2245 padding: 0 210px 0 5px;
2246 }
2247
2248 /*--------------------------------------------------------------------------------------------
2249 *
2250 * oembed
2251 *
2252 *--------------------------------------------------------------------------------------------*/
2253
2254 .acf-oembed {
2255 position: relative;
2256 border: $wp-card-border solid 1px;
2257 background: #fff;
2258
2259 .title {
2260 position: relative;
2261 border-bottom: $wp-card-border solid 1px;
2262 padding: 5px 10px;
2263
2264 .input-search {
2265 margin: 0;
2266 font-size: 14px;
2267 line-height: 30px;
2268 height: 30px;
2269 padding: 0;
2270 border: 0 none;
2271 box-shadow: none;
2272 border-radius: 0;
2273 font-family: inherit;
2274 cursor: text;
2275 }
2276
2277 .acf-actions {
2278 padding: 6px;
2279 }
2280 }
2281
2282 .canvas {
2283 position: relative;
2284 min-height: 250px;
2285 background: #f9f9f9;
2286
2287 .canvas-media {
2288 position: relative;
2289 z-index: 1;
2290 }
2291
2292 iframe {
2293 display: block;
2294 margin: 0;
2295 padding: 0;
2296 width: 100%;
2297 }
2298
2299 .acf-icon.-picture {
2300 @include centered();
2301 z-index: 0;
2302
2303 height: 42px;
2304 width: 42px;
2305 font-size: 42px;
2306 color: #999;
2307 }
2308
2309 .acf-loading-overlay {
2310 background: rgba(255, 255, 255, 0.9);
2311 }
2312
2313 .canvas-error {
2314 position: absolute;
2315 top: 50%;
2316 left: 0%;
2317 right: 0%;
2318 margin: -9px 0 0 0;
2319 text-align: center;
2320 display: none;
2321
2322 p {
2323 padding: 8px;
2324 margin: 0;
2325 display: inline;
2326 }
2327 }
2328 }
2329
2330 // has value
2331 &.has-value {
2332 .canvas {
2333 min-height: 50px;
2334 }
2335
2336 .input-search {
2337 font-weight: bold;
2338 }
2339
2340 .title:hover .acf-actions {
2341 display: block;
2342 }
2343 }
2344 }
2345
2346 /*--------------------------------------------------------------------------------------------
2347 *
2348 * Image
2349 *
2350 *--------------------------------------------------------------------------------------------*/
2351
2352 .acf-image-uploader {
2353 @include clearfix();
2354 position: relative;
2355
2356 p {
2357 margin: 0;
2358 }
2359
2360 /* image wrap*/
2361 .image-wrap {
2362 position: relative;
2363 float: left;
2364
2365 img {
2366 max-width: 100%;
2367 max-height: 100%;
2368 width: auto;
2369 height: auto;
2370 display: block;
2371 min-width: 30px;
2372 min-height: 30px;
2373 background: #f1f1f1;
2374 margin: 0;
2375 padding: 0;
2376
2377 /* svg */
2378 &[src$=".svg"]$=".svg""] {
2379 min-height: 100px;
2380 min-width: 100px;
2381 }
2382 }
2383
2384 /* hover */
2385 &:hover .acf-actions {
2386 display: block;
2387 }
2388 }
2389
2390 /* input */
2391 input.button {
2392 width: auto;
2393 }
2394
2395 /* rtl */
2396 html[dir="rtl"]="rtl""] & {
2397 .image-wrap {
2398 float: right;
2399 }
2400 }
2401 }
2402
2403 /*--------------------------------------------------------------------------------------------
2404 *
2405 * File
2406 *
2407 *--------------------------------------------------------------------------------------------*/
2408
2409 .acf-file-uploader {
2410 position: relative;
2411
2412 p {
2413 margin: 0;
2414 }
2415
2416 .file-wrap {
2417 border: $wp-card-border solid 1px;
2418 min-height: 84px;
2419 position: relative;
2420 background: #fff;
2421 }
2422
2423 .file-icon {
2424 position: absolute;
2425 top: 0;
2426 left: 0;
2427 bottom: 0;
2428 padding: 10px;
2429 background: #f1f1f1;
2430 border-right: $wp-card-border-1 solid 1px;
2431
2432 img {
2433 display: block;
2434 padding: 0;
2435 margin: 0;
2436 max-width: 48px;
2437 }
2438 }
2439
2440 .file-info {
2441 padding: 10px;
2442 margin-left: 69px;
2443
2444 p {
2445 margin: 0 0 2px;
2446 font-size: 13px;
2447 line-height: 1.4em;
2448 word-break: break-all;
2449 }
2450
2451 a {
2452 text-decoration: none;
2453 }
2454 }
2455
2456 /* hover */
2457 &:hover .acf-actions {
2458 display: block;
2459 }
2460
2461 /* rtl */
2462 html[dir="rtl"]="rtl""] & {
2463 .file-icon {
2464 left: auto;
2465 right: 0;
2466 border-left: #e5e5e5 solid 1px;
2467 border-right: none;
2468 }
2469
2470 .file-info {
2471 margin-right: 69px;
2472 margin-left: 0;
2473 }
2474 }
2475 }
2476
2477 /*-----------------------------------------------------------------------------
2478 *
2479 * Date Picker
2480 *
2481 *-----------------------------------------------------------------------------*/
2482
2483 .acf-ui-datepicker .ui-datepicker {
2484 z-index: 900000 !important;
2485
2486 .ui-widget-header a {
2487 cursor: pointer;
2488 transition: none;
2489 }
2490 }
2491
2492 /* fix highlight state overriding hover / active */
2493 .acf-ui-datepicker .ui-state-highlight.ui-state-hover {
2494 border: 1px solid #98b7e8 !important;
2495 background: #98b7e8 !important;
2496 font-weight: normal !important;
2497 color: #ffffff !important;
2498 }
2499
2500 .acf-ui-datepicker .ui-state-highlight.ui-state-active {
2501 border: 1px solid #3875d7 !important;
2502 background: #3875d7 !important;
2503 font-weight: normal !important;
2504 color: #ffffff !important;
2505 }
2506
2507 /*-----------------------------------------------------------------------------
2508 *
2509 * Separator field
2510 *
2511 *-----------------------------------------------------------------------------*/
2512
2513 .acf-field-separator {
2514 .acf-label {
2515 margin-bottom: 0;
2516
2517 label {
2518 font-weight: normal;
2519 }
2520 }
2521
2522 .acf-input {
2523 display: none;
2524 }
2525
2526 /* fields */
2527 .acf-fields > & {
2528 background: #f9f9f9;
2529 border-bottom: 1px solid #dfdfdf;
2530 border-top: 1px solid #dfdfdf;
2531 margin-bottom: -1px;
2532 z-index: 2;
2533 }
2534 }
2535
2536 /*-----------------------------------------------------------------------------
2537 *
2538 * Taxonomy
2539 *
2540 *-----------------------------------------------------------------------------*/
2541
2542 .acf-taxonomy-field {
2543 position: relative;
2544
2545 .categorychecklist-holder {
2546 border: $wp-card-border solid 1px;
2547 border-radius: 3px;
2548 max-height: 200px;
2549 overflow: auto;
2550 }
2551
2552 .acf-checkbox-list {
2553 margin: 0;
2554 padding: 10px;
2555
2556 ul.children {
2557 padding-left: 18px;
2558 }
2559 }
2560
2561 /* hover */
2562 &:hover {
2563 .acf-actions {
2564 display: block;
2565 }
2566 }
2567
2568 /* select */
2569 &[data-ftype="select"]="select""] {
2570 .acf-actions {
2571 padding: 0;
2572 margin: -9px;
2573 }
2574 }
2575 }
2576
2577 /*-----------------------------------------------------------------------------
2578 *
2579 * Range
2580 *
2581 *-----------------------------------------------------------------------------*/
2582
2583 .acf-range-wrap {
2584 .acf-append,
2585 .acf-prepend {
2586 display: inline-block;
2587 vertical-align: middle;
2588 line-height: 28px;
2589 margin: 0 7px 0 0;
2590 }
2591
2592 .acf-append {
2593 margin: 0 0 0 7px;
2594 }
2595
2596 input[type="range"]="range""] {
2597 display: inline-block;
2598 padding: 0;
2599 margin: 0;
2600 vertical-align: middle;
2601 height: 28px;
2602
2603 &:focus {
2604 outline: none;
2605 }
2606 }
2607
2608 input[type="number"]="number""] {
2609 display: inline-block;
2610 min-width: 5em;
2611 padding-right: 4px;
2612 margin-left: 10px;
2613 vertical-align: middle;
2614 }
2615
2616 /* rtl */
2617 html[dir="rtl"]="rtl""] & {
2618 input[type="number"]="number""] {
2619 margin-right: 10px;
2620 margin-left: 0;
2621 }
2622
2623 .acf-append {
2624 margin: 0 7px 0 0;
2625 }
2626 .acf-prepend {
2627 margin: 0 0 0 7px;
2628 }
2629 }
2630 }
2631
2632 /*-----------------------------------------------------------------------------
2633 *
2634 * acf-accordion
2635 *
2636 *-----------------------------------------------------------------------------*/
2637
2638 .acf-accordion {
2639 margin: -1px 0;
2640 padding: 0;
2641 background: #fff;
2642 border-top: 1px solid $wp-card-border-1;
2643 border-bottom: 1px solid $wp-card-border-1;
2644 z-index: 1; // Display above following field.
2645
2646 // Title.
2647 .acf-accordion-title {
2648 margin: 0;
2649 padding: 12px;
2650 font-weight: bold;
2651 cursor: pointer;
2652 font-size: inherit;
2653 font-size: 13px;
2654 line-height: 1.4em;
2655
2656 &:hover {
2657 background: #f3f4f5;
2658 }
2659
2660 label {
2661 margin: 0;
2662 padding: 0;
2663 font-size: 13px;
2664 line-height: 1.4em;
2665 }
2666
2667 p {
2668 font-weight: normal;
2669 }
2670
2671 .acf-accordion-icon {
2672 float: right;
2673 }
2674
2675 // Gutenberg uses SVG.
2676 svg.acf-accordion-icon {
2677 position: absolute;
2678 right: 10px;
2679 top: 50%;
2680 transform: translateY(-50%);
2681 color: #191e23;
2682 fill: currentColor;
2683 }
2684 }
2685
2686 .acf-accordion-content {
2687 margin: 0;
2688 padding: 0 12px 12px;
2689 display: none;
2690 }
2691
2692 // Open.
2693 &.-open {
2694 > .acf-accordion-content {
2695 display: block;
2696 }
2697 }
2698 }
2699
2700 // Field specific overrides
2701 .acf-field.acf-accordion {
2702 margin: -1px 0;
2703 padding: 0 !important; // !important needed to avoid Gutenberg sidebar issues.
2704 border-color: $wp-card-border-1;
2705
2706 .acf-label.acf-accordion-title {
2707 padding: 12px;
2708 width: auto;
2709 float: none;
2710 width: auto;
2711 }
2712
2713 .acf-input.acf-accordion-content {
2714 padding: 0;
2715 float: none;
2716 width: auto;
2717
2718 > .acf-fields {
2719 border-top: $wp-card-border-2 solid 1px;
2720
2721 &.-clear {
2722 padding: 0 $fx $fy;
2723 }
2724 }
2725 }
2726 }
2727
2728 /* field specific (left) */
2729 .acf-fields.-left > .acf-field.acf-accordion {
2730 &:before {
2731 display: none;
2732 }
2733
2734 .acf-accordion-title {
2735 width: auto;
2736 margin: 0 !important;
2737 padding: 12px;
2738 float: none !important;
2739 }
2740
2741 .acf-accordion-content {
2742 padding: 0 !important;
2743 }
2744 }
2745
2746 /* field specific (clear) */
2747 .acf-fields.-clear > .acf-field.acf-accordion {
2748 border: #cccccc solid 1px;
2749 background: transparent;
2750
2751 + .acf-field.acf-accordion {
2752 margin-top: -16px;
2753 }
2754 }
2755
2756 /* table */
2757 tr.acf-field.acf-accordion {
2758 background: transparent;
2759
2760 > .acf-input {
2761 padding: 0 !important;
2762 border: #cccccc solid 1px;
2763 }
2764
2765 .acf-accordion-content {
2766 padding: 0 12px 12px;
2767 }
2768 }
2769
2770 /* #addtag */
2771 #addtag div.acf-field.error {
2772 border: 0 none;
2773 padding: 8px 0;
2774 }
2775
2776 #addtag > .acf-field.acf-accordion {
2777 padding-right: 0;
2778 margin-right: 5%;
2779
2780 + p.submit {
2781 margin-top: 0;
2782 }
2783 }
2784
2785 /* border */
2786 tr.acf-accordion {
2787 margin: 15px 0 !important;
2788
2789 + tr.acf-accordion {
2790 margin-top: -16px !important;
2791 }
2792 }
2793
2794 /* seamless */
2795 .acf-postbox.seamless > .acf-fields > .acf-accordion {
2796 margin-left: $field_padding_x;
2797 margin-right: $field_padding_x;
2798 border: $wp-card-border solid 1px;
2799 }
2800
2801 /* rtl */
2802 html[dir="rtl"]="rtl""] .acf-accordion {
2803 }
2804
2805 /* menu item */
2806 /*
2807 .menu-item-settings > .field-acf > .acf-field.acf-accordion {
2808 border: #dfdfdf solid 1px;
2809 margin: 10px -13px 10px -11px;
2810
2811 + .acf-field.acf-accordion {
2812 margin-top: -11px;
2813 }
2814 }
2815 */
2816
2817 /* widget */
2818 .widget .widget-content > .acf-field.acf-accordion {
2819 border: #dfdfdf solid 1px;
2820 margin-bottom: 10px;
2821
2822 .acf-accordion-title {
2823 margin-bottom: 0;
2824 }
2825
2826 + .acf-field.acf-accordion {
2827 margin-top: -11px;
2828 }
2829 }
2830
2831 // media modal
2832 .media-modal .compat-attachment-fields .acf-field.acf-accordion {
2833 // siblings
2834 + .acf-field.acf-accordion {
2835 margin-top: -1px;
2836 }
2837
2838 // input
2839 > .acf-input {
2840 width: 100%;
2841 }
2842
2843 // table
2844 .compat-attachment-fields > tbody > tr > td {
2845 padding-bottom: 5px;
2846 }
2847 }
2848
2849 /*-----------------------------------------------------------------------------
2850 *
2851 * Block Editor
2852 *
2853 *-----------------------------------------------------------------------------*/
2854 .block-editor {
2855 // Sidebar
2856 .edit-post-sidebar {
2857 // Remove metabox hndle border to simulate component panel.
2858 .acf-postbox {
2859 > .postbox-header,
2860 > .hndle {
2861 border-bottom-width: 0 !important;
2862 }
2863 &.closed {
2864 > .postbox-header,
2865 > .hndle {
2866 border-bottom-width: 1px !important;
2867 }
2868 }
2869 }
2870
2871 // Field wrap.
2872 .acf-fields {
2873 min-height: 1px;
2874 overflow: auto; // Fixes margin-collapse issue in WP 5.3.
2875
2876 > .acf-field {
2877 border-width: 0;
2878 border-color: #e2e4e7;
2879 margin: 0px;
2880 padding: 10px 16px;
2881
2882 // Force full width.
2883 width: auto !important;
2884 min-height: 0 !important;
2885 float: none !important;
2886
2887 // Field labels.
2888 > .acf-label {
2889 margin-bottom: 5px;
2890 label {
2891 font-weight: normal;
2892 }
2893 }
2894
2895 // Accordions.
2896 &.acf-accordion {
2897 padding: 0;
2898 margin: 0;
2899 border-top-width: 1px;
2900
2901 &:first-child {
2902 border-top-width: 0;
2903 }
2904
2905 .acf-accordion-title {
2906 margin: 0;
2907 padding: 15px;
2908 label {
2909 font-weight: 500;
2910 color: rgb(30, 30, 30);
2911 }
2912
2913 svg.acf-accordion-icon {
2914 right: 16px;
2915 }
2916 }
2917
2918 .acf-accordion-content {
2919 > .acf-fields {
2920 border-top-width: 0;
2921 }
2922 }
2923 }
2924 }
2925 }
2926
2927 .block-editor-block-inspector{
2928 // The Top level notice for all fields.
2929 .acf-fields > .acf-notice {
2930 display: grid;
2931 grid-template-columns: 1fr 25px;
2932 padding: 10px;
2933 margin: 0;
2934 }
2935 .acf-fields > .acf-notice p:last-of-type {
2936 margin: 0;
2937 }
2938 .acf-fields > .acf-notice > .acf-notice-dismiss {
2939 position: relative;
2940 top: unset;
2941 right: unset;
2942 }
2943
2944 // The notice below each field.
2945 .acf-fields .acf-field .acf-notice {
2946 margin: 0;
2947 padding: 0;
2948 }
2949
2950 .acf-fields .acf-error {
2951 margin-bottom: 10px;
2952 }
2953 }
2954 }
2955 }
2956
2957 /*-----------------------------------------------------------------------------
2958 *
2959 * Prefix field label & prefix field names
2960 *
2961 *-----------------------------------------------------------------------------*/
2962 .acf-field-setting-prefix_label,
2963 .acf-field-setting-prefix_name {
2964 p.description {
2965 order: 3;
2966 margin: {
2967 top: 0;
2968 left: 16px;
2969 }
2970
2971 code {
2972 padding: {
2973 top: 4px;
2974 right: 6px;
2975 bottom: 4px;
2976 left: 6px;
2977 }
2978 background-color: $gray-100;
2979 border-radius: 4px;
2980 @extend .p7;
2981 color: $gray-500;
2982 }
2983 }
2984 }
2985
2986 /*-----------------------------------------------------------------------------
2987 *
2988 * Editor tab styles
2989 *
2990 *-----------------------------------------------------------------------------*/
2991
2992 .acf-fields > .acf-tab-wrap:first-child .acf-tab-group {
2993 border-top: none;
2994 }
2995
2996 .acf-fields > .acf-tab-wrap .acf-tab-group li.active a {
2997 background: #ffffff;
2998 }
2999
3000 .acf-fields > .acf-tab-wrap .acf-tab-group li a {
3001 background: #f1f1f1;
3002 border-color: #ccd0d4;
3003 }
3004
3005 .acf-fields > .acf-tab-wrap .acf-tab-group li a:hover {
3006 background: #fff;
3007 }
3008