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 / _fields.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
_fields.scss
3014 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 scrollbar-width: none;
1838 -ms-overflow-style: none;
1839 }
1840
1841 .acf-tab-wrap::-webkit-scrollbar {
1842 display: none;
1843 }
1844
1845 // tab group
1846 .acf-tab-group {
1847 border-bottom: #ccc solid 1px;
1848 padding: 10px 10px 0;
1849
1850 li {
1851 margin: 0 0.5em 0 0;
1852
1853 a {
1854 padding: 5px 10px;
1855 display: block;
1856
1857 color: #555;
1858 font-size: 14px;
1859 font-weight: 600;
1860 line-height: 24px;
1861
1862 border: #ccc solid 1px;
1863 border-bottom: 0 none;
1864 text-decoration: none;
1865 background: #e5e5e5;
1866 transition: none;
1867
1868 &:hover {
1869 background: #fff;
1870 }
1871
1872 &:focus {
1873 outline: none;
1874 box-shadow: none;
1875 }
1876
1877 &:empty {
1878 display: none;
1879 }
1880 }
1881
1882 // rtl
1883 html[dir="rtl"]="rtl""] & {
1884 margin: 0 0 0 0.5em;
1885 }
1886
1887 // active
1888 &.active a {
1889 background: #f1f1f1;
1890 color: #000;
1891 padding-bottom: 6px;
1892 margin-bottom: -1px;
1893 position: relative;
1894 z-index: 1;
1895 }
1896 }
1897 }
1898
1899 // inside acf-fields
1900 .acf-fields > .acf-tab-wrap {
1901 background: #f9f9f9;
1902
1903 // group
1904 .acf-tab-group {
1905 position: relative;
1906 border-top: $wp-card-border solid 1px;
1907 border-bottom: $wp-card-border solid 1px;
1908
1909 // Pull next element (field) up and underneith.
1910 z-index: 2;
1911 margin-bottom: -1px;
1912
1913 // li a {
1914 // background: #f1f1f1;
1915 // border-color: $wp-card-border;
1916 //
1917 // &:hover {
1918 // background: #FFF;
1919 // }
1920 // }
1921 //
1922 // li.active a {
1923 // background: #FFFFFF;
1924 // }
1925
1926 // WP Admin 3.8
1927 @include wp-admin("3-8") {
1928 border-color: $wp38-card-border-1;
1929 }
1930 }
1931
1932 // first child
1933 // fixes issue causing double border-top due to WP postbox .handlediv
1934 // &:first-child .acf-tab-group {
1935 // border-top: none;
1936 // }
1937 }
1938
1939 // inside acf-fields.-left
1940 .acf-fields.-left > .acf-tab-wrap {
1941 // group
1942 .acf-tab-group {
1943 padding-left: 20%;
1944
1945 /* mobile */
1946 @media screen and (max-width: $sm) {
1947 padding-left: 10px;
1948 }
1949
1950 /* rtl */
1951 html[dir="rtl"]="rtl""] & {
1952 padding-left: 0;
1953 padding-right: 20%;
1954
1955 /* mobile */
1956 @media screen and (max-width: 850px) {
1957 padding-right: 10px;
1958 }
1959 }
1960 }
1961 }
1962
1963 // left
1964 .acf-tab-wrap.-left {
1965 // group
1966 .acf-tab-group {
1967 position: absolute;
1968 left: 0;
1969 width: 20%;
1970 border: 0 none;
1971 padding: 0 !important; /* important overrides 'left aligned labels' */
1972 margin: 1px 0 0;
1973
1974 // li
1975 li {
1976 float: none;
1977 margin: -1px 0 0;
1978
1979 a {
1980 border: 1px solid #ededed;
1981 font-size: 13px;
1982 line-height: 18px;
1983 color: #0073aa;
1984 padding: 10px;
1985 margin: 0;
1986 font-weight: normal;
1987 border-width: 1px 0;
1988 border-radius: 0;
1989 background: transparent;
1990
1991 &:hover {
1992 color: #00a0d2;
1993 }
1994 }
1995
1996 &.active a {
1997 border-color: #dfdfdf;
1998 color: #000;
1999 margin-right: -1px;
2000 background: #fff;
2001 }
2002 }
2003
2004 // rtl
2005 html[dir="rtl"]="rtl""] & {
2006 left: auto;
2007 right: 0;
2008
2009 li.active a {
2010 margin-right: 0;
2011 margin-left: -1px;
2012 }
2013 }
2014 }
2015
2016 // space before field
2017 .acf-field + &:before {
2018 content: "";
2019 display: block;
2020 position: relative;
2021 z-index: 1;
2022 height: 10px;
2023 border-top: #dfdfdf solid 1px;
2024 border-bottom: #dfdfdf solid 1px;
2025 margin-bottom: -1px;
2026 }
2027
2028 // first child has negative margin issues
2029 &:first-child {
2030 .acf-tab-group {
2031 li:first-child a {
2032 border-top: none;
2033 }
2034 }
2035 }
2036 }
2037
2038 /* sidebar */
2039 .acf-fields.-sidebar {
2040 padding: 0 0 0 20% !important;
2041 position: relative;
2042
2043 /* before */
2044 &:before {
2045 content: "";
2046 display: block;
2047 position: absolute;
2048 top: 0;
2049 left: 0;
2050 width: 20%;
2051 bottom: 0;
2052 border-right: #dfdfdf solid 1px;
2053 background: #f9f9f9;
2054 z-index: 1;
2055 }
2056
2057 /* rtl */
2058 html[dir="rtl"]="rtl""] & {
2059 padding: 0 20% 0 0 !important;
2060
2061 &:before {
2062 border-left: #dfdfdf solid 1px;
2063 border-right-width: 0;
2064 left: auto;
2065 right: 0;
2066 }
2067 }
2068
2069 // left
2070 &.-left {
2071 padding: 0 0 0 180px !important;
2072
2073 /* rtl */
2074 html[dir="rtl"]="rtl""] & {
2075 padding: 0 180px 0 0 !important;
2076 }
2077
2078 &:before {
2079 background: #f1f1f1;
2080 border-color: #dfdfdf;
2081 width: 180px;
2082 }
2083
2084 > .acf-tab-wrap.-left .acf-tab-group {
2085 width: 180px;
2086
2087 li a {
2088 border-color: #e4e4e4;
2089 }
2090
2091 li.active a {
2092 background: #f9f9f9;
2093 }
2094 }
2095 }
2096
2097 // fix double border
2098 > .acf-field-tab + .acf-field {
2099 border-top: none;
2100 }
2101 }
2102
2103 // clear
2104 .acf-fields.-clear > .acf-tab-wrap {
2105 background: transparent;
2106
2107 // group
2108 .acf-tab-group {
2109 margin-top: 0;
2110 border-top: none;
2111 padding-left: 0;
2112 padding-right: 0;
2113
2114 li a {
2115 background: #e5e5e5;
2116
2117 &:hover {
2118 background: #fff;
2119 }
2120 }
2121
2122 li.active a {
2123 background: #f1f1f1;
2124 }
2125 }
2126 }
2127
2128 /* seamless */
2129 .acf-postbox.seamless {
2130 // sidebar
2131 > .acf-fields.-sidebar {
2132 margin-left: 0 !important;
2133
2134 &:before {
2135 background: transparent;
2136 }
2137 }
2138
2139 // default
2140 > .acf-fields > .acf-tab-wrap {
2141 background: transparent;
2142 margin-bottom: 10px;
2143 padding-left: $fx;
2144 padding-right: $fx;
2145
2146 .acf-tab-group {
2147 border-top: 0 none;
2148 border-color: $wp-card-border;
2149
2150 li a {
2151 background: #e5e5e5;
2152 border-color: $wp-card-border;
2153
2154 &:hover {
2155 background: #fff;
2156 }
2157 }
2158
2159 li.active a {
2160 background: #f1f1f1;
2161 }
2162 }
2163 }
2164
2165 // left tabs
2166 > .acf-fields > .acf-tab-wrap.-left {
2167 &:before {
2168 border-top: none;
2169 height: auto;
2170 }
2171
2172 .acf-tab-group {
2173 margin-bottom: 0;
2174
2175 li a {
2176 border-width: 1px 0 1px 1px !important;
2177 border-color: #cccccc;
2178 background: #e5e5e5;
2179 }
2180
2181 li.active a {
2182 background: #f1f1f1;
2183 }
2184 }
2185 }
2186 }
2187
2188 // menu
2189 .menu-edit,
2190 .widget {
2191 .acf-fields.-clear > .acf-tab-wrap .acf-tab-group li {
2192 a {
2193 background: #f1f1f1;
2194 }
2195 a:hover,
2196 &.active a {
2197 background: #fff;
2198 }
2199 }
2200 }
2201
2202 .compat-item .acf-tab-wrap td {
2203 display: block;
2204 }
2205
2206 /* within gallery sidebar */
2207 .acf-gallery-side .acf-tab-wrap {
2208 border-top: 0 none !important;
2209 }
2210
2211 .acf-gallery-side .acf-tab-wrap .acf-tab-group {
2212 margin: 10px 0 !important;
2213 padding: 0 !important;
2214 }
2215
2216 .acf-gallery-side .acf-tab-group li.active a {
2217 background: #f9f9f9 !important;
2218 }
2219
2220 /* withing widget */
2221 .widget .acf-tab-group {
2222 border-bottom-color: #e8e8e8;
2223 }
2224
2225 .widget .acf-tab-group li a {
2226 background: #f1f1f1;
2227 }
2228
2229 .widget .acf-tab-group li.active a {
2230 background: #fff;
2231 }
2232
2233 /* media popup (edit image) */
2234 .media-modal.acf-expanded
2235 .compat-attachment-fields
2236 > tbody
2237 > tr.acf-tab-wrap
2238 .acf-tab-group {
2239 padding-left: 23%;
2240 border-bottom-color: #dddddd;
2241 }
2242
2243 /* table */
2244
2245 .form-table > tbody > tr.acf-tab-wrap .acf-tab-group {
2246 padding: 0 5px 0 210px;
2247 }
2248
2249 /* rtl */
2250 html[dir="rtl"]="rtl""] .form-table > tbody > tr.acf-tab-wrap .acf-tab-group {
2251 padding: 0 210px 0 5px;
2252 }
2253
2254 /*--------------------------------------------------------------------------------------------
2255 *
2256 * oembed
2257 *
2258 *--------------------------------------------------------------------------------------------*/
2259
2260 .acf-oembed {
2261 position: relative;
2262 border: $wp-card-border solid 1px;
2263 background: #fff;
2264
2265 .title {
2266 position: relative;
2267 border-bottom: $wp-card-border solid 1px;
2268 padding: 5px 10px;
2269
2270 .input-search {
2271 margin: 0;
2272 font-size: 14px;
2273 line-height: 30px;
2274 height: 30px;
2275 padding: 0;
2276 border: 0 none;
2277 box-shadow: none;
2278 border-radius: 0;
2279 font-family: inherit;
2280 cursor: text;
2281 }
2282
2283 .acf-actions {
2284 padding: 6px;
2285 }
2286 }
2287
2288 .canvas {
2289 position: relative;
2290 min-height: 250px;
2291 background: #f9f9f9;
2292
2293 .canvas-media {
2294 position: relative;
2295 z-index: 1;
2296 }
2297
2298 iframe {
2299 display: block;
2300 margin: 0;
2301 padding: 0;
2302 width: 100%;
2303 }
2304
2305 .acf-icon.-picture {
2306 @include centered();
2307 z-index: 0;
2308
2309 height: 42px;
2310 width: 42px;
2311 font-size: 42px;
2312 color: #999;
2313 }
2314
2315 .acf-loading-overlay {
2316 background: rgba(255, 255, 255, 0.9);
2317 }
2318
2319 .canvas-error {
2320 position: absolute;
2321 top: 50%;
2322 left: 0%;
2323 right: 0%;
2324 margin: -9px 0 0 0;
2325 text-align: center;
2326 display: none;
2327
2328 p {
2329 padding: 8px;
2330 margin: 0;
2331 display: inline;
2332 }
2333 }
2334 }
2335
2336 // has value
2337 &.has-value {
2338 .canvas {
2339 min-height: 50px;
2340 }
2341
2342 .input-search {
2343 font-weight: bold;
2344 }
2345
2346 .title:hover .acf-actions {
2347 display: block;
2348 }
2349 }
2350 }
2351
2352 /*--------------------------------------------------------------------------------------------
2353 *
2354 * Image
2355 *
2356 *--------------------------------------------------------------------------------------------*/
2357
2358 .acf-image-uploader {
2359 @include clearfix();
2360 position: relative;
2361
2362 p {
2363 margin: 0;
2364 }
2365
2366 /* image wrap*/
2367 .image-wrap {
2368 position: relative;
2369 float: left;
2370
2371 img {
2372 max-width: 100%;
2373 max-height: 100%;
2374 width: auto;
2375 height: auto;
2376 display: block;
2377 min-width: 30px;
2378 min-height: 30px;
2379 background: #f1f1f1;
2380 margin: 0;
2381 padding: 0;
2382
2383 /* svg */
2384 &[src$=".svg"]$=".svg""] {
2385 min-height: 100px;
2386 min-width: 100px;
2387 }
2388 }
2389
2390 /* hover */
2391 &:hover .acf-actions {
2392 display: block;
2393 }
2394 }
2395
2396 /* input */
2397 input.button {
2398 width: auto;
2399 }
2400
2401 /* rtl */
2402 html[dir="rtl"]="rtl""] & {
2403 .image-wrap {
2404 float: right;
2405 }
2406 }
2407 }
2408
2409 /*--------------------------------------------------------------------------------------------
2410 *
2411 * File
2412 *
2413 *--------------------------------------------------------------------------------------------*/
2414
2415 .acf-file-uploader {
2416 position: relative;
2417
2418 p {
2419 margin: 0;
2420 }
2421
2422 .file-wrap {
2423 border: $wp-card-border solid 1px;
2424 min-height: 84px;
2425 position: relative;
2426 background: #fff;
2427 }
2428
2429 .file-icon {
2430 position: absolute;
2431 top: 0;
2432 left: 0;
2433 bottom: 0;
2434 padding: 10px;
2435 background: #f1f1f1;
2436 border-right: $wp-card-border-1 solid 1px;
2437
2438 img {
2439 display: block;
2440 padding: 0;
2441 margin: 0;
2442 max-width: 48px;
2443 }
2444 }
2445
2446 .file-info {
2447 padding: 10px;
2448 margin-left: 69px;
2449
2450 p {
2451 margin: 0 0 2px;
2452 font-size: 13px;
2453 line-height: 1.4em;
2454 word-break: break-all;
2455 }
2456
2457 a {
2458 text-decoration: none;
2459 }
2460 }
2461
2462 /* hover */
2463 &:hover .acf-actions {
2464 display: block;
2465 }
2466
2467 /* rtl */
2468 html[dir="rtl"]="rtl""] & {
2469 .file-icon {
2470 left: auto;
2471 right: 0;
2472 border-left: #e5e5e5 solid 1px;
2473 border-right: none;
2474 }
2475
2476 .file-info {
2477 margin-right: 69px;
2478 margin-left: 0;
2479 }
2480 }
2481 }
2482
2483 /*-----------------------------------------------------------------------------
2484 *
2485 * Date Picker
2486 *
2487 *-----------------------------------------------------------------------------*/
2488
2489 .acf-ui-datepicker .ui-datepicker {
2490 z-index: 900000 !important;
2491
2492 .ui-widget-header a {
2493 cursor: pointer;
2494 transition: none;
2495 }
2496 }
2497
2498 /* fix highlight state overriding hover / active */
2499 .acf-ui-datepicker .ui-state-highlight.ui-state-hover {
2500 border: 1px solid #98b7e8 !important;
2501 background: #98b7e8 !important;
2502 font-weight: normal !important;
2503 color: #ffffff !important;
2504 }
2505
2506 .acf-ui-datepicker .ui-state-highlight.ui-state-active {
2507 border: 1px solid #3875d7 !important;
2508 background: #3875d7 !important;
2509 font-weight: normal !important;
2510 color: #ffffff !important;
2511 }
2512
2513 /*-----------------------------------------------------------------------------
2514 *
2515 * Separator field
2516 *
2517 *-----------------------------------------------------------------------------*/
2518
2519 .acf-field-separator {
2520 .acf-label {
2521 margin-bottom: 0;
2522
2523 label {
2524 font-weight: normal;
2525 }
2526 }
2527
2528 .acf-input {
2529 display: none;
2530 }
2531
2532 /* fields */
2533 .acf-fields > & {
2534 background: #f9f9f9;
2535 border-bottom: 1px solid #dfdfdf;
2536 border-top: 1px solid #dfdfdf;
2537 margin-bottom: -1px;
2538 z-index: 2;
2539 }
2540 }
2541
2542 /*-----------------------------------------------------------------------------
2543 *
2544 * Taxonomy
2545 *
2546 *-----------------------------------------------------------------------------*/
2547
2548 .acf-taxonomy-field {
2549 position: relative;
2550
2551 .categorychecklist-holder {
2552 border: $wp-card-border solid 1px;
2553 border-radius: 3px;
2554 max-height: 200px;
2555 overflow: auto;
2556 }
2557
2558 .acf-checkbox-list {
2559 margin: 0;
2560 padding: 10px;
2561
2562 ul.children {
2563 padding-left: 18px;
2564 }
2565 }
2566
2567 /* hover */
2568 &:hover {
2569 .acf-actions {
2570 display: block;
2571 }
2572 }
2573
2574 /* select */
2575 &[data-ftype="select"]="select""] {
2576 .acf-actions {
2577 padding: 0;
2578 margin: -9px;
2579 }
2580 }
2581 }
2582
2583 /*-----------------------------------------------------------------------------
2584 *
2585 * Range
2586 *
2587 *-----------------------------------------------------------------------------*/
2588
2589 .acf-range-wrap {
2590 .acf-append,
2591 .acf-prepend {
2592 display: inline-block;
2593 vertical-align: middle;
2594 line-height: 28px;
2595 margin: 0 7px 0 0;
2596 }
2597
2598 .acf-append {
2599 margin: 0 0 0 7px;
2600 }
2601
2602 input[type="range"]="range""] {
2603 display: inline-block;
2604 padding: 0;
2605 margin: 0;
2606 vertical-align: middle;
2607 height: 28px;
2608
2609 &:focus {
2610 outline: none;
2611 }
2612 }
2613
2614 input[type="number"]="number""] {
2615 display: inline-block;
2616 min-width: 5em;
2617 padding-right: 4px;
2618 margin-left: 10px;
2619 vertical-align: middle;
2620 }
2621
2622 /* rtl */
2623 html[dir="rtl"]="rtl""] & {
2624 input[type="number"]="number""] {
2625 margin-right: 10px;
2626 margin-left: 0;
2627 }
2628
2629 .acf-append {
2630 margin: 0 7px 0 0;
2631 }
2632 .acf-prepend {
2633 margin: 0 0 0 7px;
2634 }
2635 }
2636 }
2637
2638 /*-----------------------------------------------------------------------------
2639 *
2640 * acf-accordion
2641 *
2642 *-----------------------------------------------------------------------------*/
2643
2644 .acf-accordion {
2645 margin: -1px 0;
2646 padding: 0;
2647 background: #fff;
2648 border-top: 1px solid $wp-card-border-1;
2649 border-bottom: 1px solid $wp-card-border-1;
2650 z-index: 1; // Display above following field.
2651
2652 // Title.
2653 .acf-accordion-title {
2654 margin: 0;
2655 padding: 12px;
2656 font-weight: bold;
2657 cursor: pointer;
2658 font-size: inherit;
2659 font-size: 13px;
2660 line-height: 1.4em;
2661
2662 &:hover {
2663 background: #f3f4f5;
2664 }
2665
2666 label {
2667 margin: 0;
2668 padding: 0;
2669 font-size: 13px;
2670 line-height: 1.4em;
2671 }
2672
2673 p {
2674 font-weight: normal;
2675 }
2676
2677 .acf-accordion-icon {
2678 float: right;
2679 }
2680
2681 // Gutenberg uses SVG.
2682 svg.acf-accordion-icon {
2683 position: absolute;
2684 right: 10px;
2685 top: 50%;
2686 transform: translateY(-50%);
2687 color: #191e23;
2688 fill: currentColor;
2689 }
2690 }
2691
2692 .acf-accordion-content {
2693 margin: 0;
2694 padding: 0 12px 12px;
2695 display: none;
2696 }
2697
2698 // Open.
2699 &.-open {
2700 > .acf-accordion-content {
2701 display: block;
2702 }
2703 }
2704 }
2705
2706 // Field specific overrides
2707 .acf-field.acf-accordion {
2708 margin: -1px 0;
2709 padding: 0 !important; // !important needed to avoid Gutenberg sidebar issues.
2710 border-color: $wp-card-border-1;
2711
2712 .acf-label.acf-accordion-title {
2713 padding: 12px;
2714 width: auto;
2715 float: none;
2716 width: auto;
2717 }
2718
2719 .acf-input.acf-accordion-content {
2720 padding: 0;
2721 float: none;
2722 width: auto;
2723
2724 > .acf-fields {
2725 border-top: $wp-card-border-2 solid 1px;
2726
2727 &.-clear {
2728 padding: 0 $fx $fy;
2729 }
2730 }
2731 }
2732 }
2733
2734 /* field specific (left) */
2735 .acf-fields.-left > .acf-field.acf-accordion {
2736 &:before {
2737 display: none;
2738 }
2739
2740 .acf-accordion-title {
2741 width: auto;
2742 margin: 0 !important;
2743 padding: 12px;
2744 float: none !important;
2745 }
2746
2747 .acf-accordion-content {
2748 padding: 0 !important;
2749 }
2750 }
2751
2752 /* field specific (clear) */
2753 .acf-fields.-clear > .acf-field.acf-accordion {
2754 border: #cccccc solid 1px;
2755 background: transparent;
2756
2757 + .acf-field.acf-accordion {
2758 margin-top: -16px;
2759 }
2760 }
2761
2762 /* table */
2763 tr.acf-field.acf-accordion {
2764 background: transparent;
2765
2766 > .acf-input {
2767 padding: 0 !important;
2768 border: #cccccc solid 1px;
2769 }
2770
2771 .acf-accordion-content {
2772 padding: 0 12px 12px;
2773 }
2774 }
2775
2776 /* #addtag */
2777 #addtag div.acf-field.error {
2778 border: 0 none;
2779 padding: 8px 0;
2780 }
2781
2782 #addtag > .acf-field.acf-accordion {
2783 padding-right: 0;
2784 margin-right: 5%;
2785
2786 + p.submit {
2787 margin-top: 0;
2788 }
2789 }
2790
2791 /* border */
2792 tr.acf-accordion {
2793 margin: 15px 0 !important;
2794
2795 + tr.acf-accordion {
2796 margin-top: -16px !important;
2797 }
2798 }
2799
2800 /* seamless */
2801 .acf-postbox.seamless > .acf-fields > .acf-accordion {
2802 margin-left: $field_padding_x;
2803 margin-right: $field_padding_x;
2804 border: $wp-card-border solid 1px;
2805 }
2806
2807 /* rtl */
2808 html[dir="rtl"]="rtl""] .acf-accordion {
2809 }
2810
2811 /* menu item */
2812 /*
2813 .menu-item-settings > .field-acf > .acf-field.acf-accordion {
2814 border: #dfdfdf solid 1px;
2815 margin: 10px -13px 10px -11px;
2816
2817 + .acf-field.acf-accordion {
2818 margin-top: -11px;
2819 }
2820 }
2821 */
2822
2823 /* widget */
2824 .widget .widget-content > .acf-field.acf-accordion {
2825 border: #dfdfdf solid 1px;
2826 margin-bottom: 10px;
2827
2828 .acf-accordion-title {
2829 margin-bottom: 0;
2830 }
2831
2832 + .acf-field.acf-accordion {
2833 margin-top: -11px;
2834 }
2835 }
2836
2837 // media modal
2838 .media-modal .compat-attachment-fields .acf-field.acf-accordion {
2839 // siblings
2840 + .acf-field.acf-accordion {
2841 margin-top: -1px;
2842 }
2843
2844 // input
2845 > .acf-input {
2846 width: 100%;
2847 }
2848
2849 // table
2850 .compat-attachment-fields > tbody > tr > td {
2851 padding-bottom: 5px;
2852 }
2853 }
2854
2855 /*-----------------------------------------------------------------------------
2856 *
2857 * Block Editor
2858 *
2859 *-----------------------------------------------------------------------------*/
2860 .block-editor {
2861 // Sidebar
2862 .edit-post-sidebar {
2863 // Remove metabox hndle border to simulate component panel.
2864 .acf-postbox {
2865 > .postbox-header,
2866 > .hndle {
2867 border-bottom-width: 0 !important;
2868 }
2869 &.closed {
2870 > .postbox-header,
2871 > .hndle {
2872 border-bottom-width: 1px !important;
2873 }
2874 }
2875 }
2876
2877 // Field wrap.
2878 .acf-fields {
2879 min-height: 1px;
2880 overflow: auto; // Fixes margin-collapse issue in WP 5.3.
2881
2882 > .acf-field {
2883 border-width: 0;
2884 border-color: #e2e4e7;
2885 margin: 0px;
2886 padding: 10px 16px;
2887
2888 // Force full width.
2889 width: auto !important;
2890 min-height: 0 !important;
2891 float: none !important;
2892
2893 // Field labels.
2894 > .acf-label {
2895 margin-bottom: 5px;
2896 label {
2897 font-weight: normal;
2898 }
2899 }
2900
2901 // Accordions.
2902 &.acf-accordion {
2903 padding: 0;
2904 margin: 0;
2905 border-top-width: 1px;
2906
2907 &:first-child {
2908 border-top-width: 0;
2909 }
2910
2911 .acf-accordion-title {
2912 margin: 0;
2913 padding: 15px;
2914 label {
2915 font-weight: 500;
2916 color: rgb(30, 30, 30);
2917 }
2918
2919 svg.acf-accordion-icon {
2920 right: 16px;
2921 }
2922 }
2923
2924 .acf-accordion-content {
2925 > .acf-fields {
2926 border-top-width: 0;
2927 }
2928 }
2929 }
2930 }
2931 }
2932
2933 .block-editor-block-inspector{
2934 // The Top level notice for all fields.
2935 .acf-fields > .acf-notice {
2936 display: grid;
2937 grid-template-columns: 1fr 25px;
2938 padding: 10px;
2939 margin: 0;
2940 }
2941 .acf-fields > .acf-notice p:last-of-type {
2942 margin: 0;
2943 }
2944 .acf-fields > .acf-notice > .acf-notice-dismiss {
2945 position: relative;
2946 top: unset;
2947 right: unset;
2948 }
2949
2950 // The notice below each field.
2951 .acf-fields .acf-field .acf-notice {
2952 margin: 0;
2953 padding: 0;
2954 }
2955
2956 .acf-fields .acf-error {
2957 margin-bottom: 10px;
2958 }
2959 }
2960 }
2961 }
2962
2963 /*-----------------------------------------------------------------------------
2964 *
2965 * Prefix field label & prefix field names
2966 *
2967 *-----------------------------------------------------------------------------*/
2968 .acf-field-setting-prefix_label,
2969 .acf-field-setting-prefix_name {
2970 p.description {
2971 order: 3;
2972 margin: {
2973 top: 0;
2974 left: 16px;
2975 }
2976
2977 code {
2978 padding: {
2979 top: 4px;
2980 right: 6px;
2981 bottom: 4px;
2982 left: 6px;
2983 }
2984 background-color: $gray-100;
2985 border-radius: 4px;
2986 @extend .p7;
2987 color: $gray-500;
2988 }
2989 }
2990 }
2991
2992 /*-----------------------------------------------------------------------------
2993 *
2994 * Editor tab styles
2995 *
2996 *-----------------------------------------------------------------------------*/
2997
2998 .acf-fields > .acf-tab-wrap:first-child .acf-tab-group {
2999 border-top: none;
3000 }
3001
3002 .acf-fields > .acf-tab-wrap .acf-tab-group li.active a {
3003 background: #ffffff;
3004 }
3005
3006 .acf-fields > .acf-tab-wrap .acf-tab-group li a {
3007 background: #f1f1f1;
3008 border-color: #ccd0d4;
3009 }
3010
3011 .acf-fields > .acf-tab-wrap .acf-tab-group li a:hover {
3012 background: #fff;
3013 }
3014