PluginProbe ʕ •ᴥ•ʔ
Secure Custom Fields / 6.4.1-beta5
Secure Custom Fields v6.4.1-beta5
6.9.5 6.9.4 6.9.3 6.9.2 6.9.1 6.9.0 6.8.9 6.8.7 6.8.8 6.8.6 6.8.4 6.8.5 trunk 6.4.0-beta1 6.4.0-beta2 6.4.1 6.4.1-beta3 6.4.1-beta4 6.4.1-beta5 6.4.1-beta6 6.4.1-beta7 6.4.2 6.5.0 6.5.1 6.5.2 6.5.3 6.5.4 6.5.5 6.5.6 6.5.7 6.6.0 6.7.0 6.7.1 6.8.0 6.8.1 6.8.2 6.8.3
secure-custom-fields / assets / src / sass / _edit-field-group.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
_edit-field-group.scss
1674 lines
1 /*----------------------------------------------------------------------------
2 *
3 * Container sizes
4 *
5 *----------------------------------------------------------------------------*/
6 .post-type-acf-field-group .metabox-holder.columns-1 {
7 #acf-field-group-fields,
8 #acf-field-group-options,
9 .meta-box-sortables.ui-sortable,
10 .notice {
11 max-width: $max-width;
12 }
13 }
14
15 /*----------------------------------------------------------------------------
16 *
17 * Max width for notices in 1 column edit field group layout
18 *
19 *----------------------------------------------------------------------------*/
20 .post-type-acf-field-group.columns-1 {
21 .notice {
22 max-width: $max-width;
23 }
24 }
25
26 /*----------------------------------------------------------------------------
27 *
28 * Widen edit field group headerbar for 2 column layout
29 *
30 *----------------------------------------------------------------------------*/
31 .post-type-acf-field-group.columns-2 {
32 .acf-headerbar .acf-headerbar-inner {
33 max-width: 100%;
34 }
35 }
36
37 /*----------------------------------------------------------------------------
38 *
39 * Post stuff
40 *
41 *----------------------------------------------------------------------------*/
42 .post-type-acf-field-group {
43 #poststuff {
44 margin: {
45 top: 0;
46 right: 0;
47 bottom: 0;
48 left: 0;
49 }
50 padding: {
51 top: 0;
52 right: 0;
53 bottom: 0;
54 left: 0;
55 }
56 }
57 }
58
59 /*----------------------------------------------------------------------------
60 *
61 * Table
62 *
63 *----------------------------------------------------------------------------*/
64 .post-type-acf-field-group {
65 #acf-field-group-fields .acf-field-list-wrap {
66 overflow: hidden;
67 border: none;
68 border-radius: 0 0 $radius-lg $radius-lg;
69 box-shadow: $elevation-01;
70
71 &.-empty {
72 border-top: {
73 width: 1px;
74 style: solid;
75 color: $gray-200;
76 }
77
78 .acf-thead,
79 .acf-tfoot {
80 display: none;
81 }
82
83 .no-fields-message {
84 min-height: 280px;
85 }
86 }
87 }
88 }
89
90 /*----------------------------------------------------------------------------
91 *
92 * Table header
93 *
94 *----------------------------------------------------------------------------*/
95 .post-type-acf-field-group {
96 .acf-thead {
97 background-color: $gray-50;
98 border-top: {
99 width: 1px;
100 style: solid;
101 color: $gray-200;
102 }
103 border-bottom: {
104 width: 1px;
105 style: solid;
106 color: $gray-200;
107 }
108
109 li {
110 display: flex;
111 align-items: center;
112 min-height: 48px;
113 padding: {
114 top: 0;
115 bottom: 0;
116 }
117 @extend .p4;
118 color: $gray-700;
119 font-weight: 500;
120 }
121 }
122 }
123
124 /*----------------------------------------------------------------------------
125 *
126 * Table body
127 *
128 *----------------------------------------------------------------------------*/
129 .post-type-acf-field-group {
130 .acf-field-object {
131 border-top: {
132 width: 1px;
133 style: solid;
134 color: $gray-200;
135 }
136
137 &:hover {
138 .acf-sortable-handle:before {
139 display: inline-flex;
140 }
141 }
142
143 // Add divider to show which fields have endpoint
144 &.acf-field-is-endpoint {
145 &:before {
146 display: block;
147 content: "";
148 height: 2px;
149 width: 100%;
150 background: $gray-300;
151 margin-top: -1px;
152 }
153
154 &.acf-field-object-accordion {
155 &:before {
156 display: none;
157 }
158
159 &:after {
160 display: block;
161 content: "";
162 height: 2px;
163 width: 100%;
164 background: $gray-300;
165 z-index: 500;
166 }
167 }
168 }
169
170 &:hover {
171 background-color: lighten($blue-50, 3%);
172 }
173
174 &.open {
175 background-color: #fff;
176 border-top-color: $blue-200;
177 }
178
179 &.open .handle {
180 background-color: $blue-100;
181 border: none;
182 text-shadow: none;
183
184 a {
185 color: $link-color !important;
186
187 &.delete-field {
188 color: #a00 !important;
189 }
190 }
191 }
192
193 .acf-field-setting-type .acf-hl {
194 margin: 0;
195
196 li {
197 width: auto;
198
199 &:first-child {
200 flex-grow: 1;
201 margin-left: -10px;
202 }
203
204 &:nth-child(2) {
205 padding-right: 0;
206 }
207 }
208 }
209
210 ul.acf-hl {
211 display: flex;
212 align-items: stretch;
213 }
214
215 .handle li {
216 display: flex;
217 align-items: top;
218 flex-wrap: wrap;
219 min-height: 60px;
220 @extend .p4;
221 color: $gray-700;
222
223 &.li-field-label {
224 display: flex;
225 flex-wrap: wrap;
226 justify-content: flex-start;
227 align-content: flex-start;
228 align-items: flex-start;
229 width: auto;
230
231 a.edit-field {
232 @extend .p4;
233 }
234
235 strong {
236 font-weight: 500;
237 }
238
239 .row-options {
240 width: 100%;
241 }
242
243 .row-options a {
244 @extend .p6;
245 }
246 }
247 }
248 }
249 }
250
251 /*----------------------------------------------------------------------------
252 *
253 * Table footer
254 *
255 *----------------------------------------------------------------------------*/
256 .post-type-acf-field-group {
257 .acf-tfoot {
258 display: flex;
259 align-items: center;
260 justify-content: flex-end;
261 min-height: 80px;
262 box-sizing: border-box;
263 padding: {
264 top: 8px;
265 right: 24px;
266 bottom: 8px;
267 left: 24px;
268 }
269 background-color: #fff;
270 border-top: {
271 width: 1px;
272 style: solid;
273 color: $gray-200;
274 }
275
276 .acf-fr {
277 margin: {
278 top: 0;
279 right: 0;
280 bottom: 0;
281 left: 0;
282 }
283 padding: {
284 top: 0;
285 right: 0;
286 bottom: 0;
287 left: 0;
288 }
289 }
290 }
291 }
292
293 /*----------------------------------------------------------------------------
294 *
295 * Edit field settings
296 *
297 *----------------------------------------------------------------------------*/
298 .post-type-acf-field-group .acf-field-object .settings {
299 box-sizing: border-box;
300 padding: {
301 top: 0;
302 bottom: 0;
303 }
304 background-color: #fff;
305 border-left: {
306 width: 4px;
307 style: solid;
308 color: $blue-300;
309 }
310 }
311
312 /*----------------------------------------------------------------------------
313 *
314 * Main field settings container
315 *
316 *----------------------------------------------------------------------------*/
317 .acf-field-settings-main {
318 padding: {
319 top: 32px;
320 right: 0;
321 bottom: 32px;
322 left: 0;
323 }
324
325 .acf-field:last-of-type,
326 .acf-field.acf-last-visible {
327 margin: {
328 bottom: 0;
329 }
330 }
331 }
332
333 /*----------------------------------------------------------------------------
334 *
335 * Field label
336 *
337 *----------------------------------------------------------------------------*/
338 .acf-field-settings .acf-label {
339 display: block;
340 justify-content: space-between;
341 align-items: center;
342 align-content: center;
343 margin: {
344 top: 0;
345 right: 0;
346 bottom: 6px;
347 left: 0;
348 }
349 }
350
351 /*----------------------------------------------------------------------------
352 *
353 * Single field
354 *
355 *----------------------------------------------------------------------------*/
356 .acf-field-settings .acf-field {
357 box-sizing: border-box;
358 width: 100%;
359 margin: {
360 top: 0;
361 right: 0;
362 bottom: 32px;
363 left: 0;
364 }
365 padding: {
366 top: 0;
367 right: 72px;
368 bottom: 0;
369 left: 72px;
370 }
371
372 @media screen and (max-width: 600px) {
373 padding: {
374 right: 12px;
375 left: 12px;
376 }
377 }
378
379 .acf-label,
380 .acf-input {
381 max-width: 600px;
382
383 &.acf-input-sub {
384 max-width: 100%;
385 }
386
387 .acf-btn {
388 &:disabled {
389 background-color: $gray-100;
390 color: $gray-400 !important;
391 border: 1px $gray-300 solid;
392 cursor: default;
393 }
394 }
395 }
396
397 .acf-input-wrap {
398 overflow: visible;
399 }
400 }
401
402 /*----------------------------------------------------------------------------
403 *
404 * Field separators
405 *
406 *----------------------------------------------------------------------------*/
407
408 .acf-field-settings .acf-field.acf-field-setting-label,
409 .acf-field-settings .acf-field-setting-wrapper {
410 padding: {
411 top: 24px;
412 }
413 border-top: {
414 width: 1px;
415 style: solid;
416 color: $gray-200;
417 }
418 }
419
420 .acf-field-settings .acf-field-setting-wrapper {
421 margin: {
422 top: 24px;
423 }
424 }
425
426 /*----------------------------------------------------------------------------
427 *
428 * Informational Notes for specific fields
429 *
430 *----------------------------------------------------------------------------*/
431 .acf-field-setting-bidirectional_notes {
432 .acf-label {
433 display: none;
434 }
435
436 .acf-feature-notice {
437 background-color: $gray-50;
438 border: 1px solid $gray-200;
439 border-radius: 6px;
440 padding: 16px;
441 color: $gray-700;
442 position: relative;
443
444 &.with-warning-icon {
445 padding-left: 45px;
446 &::before {
447 content: "";
448 $icon-size: 18px;
449 display: block;
450 position: absolute;
451 top: 17px;
452 left: 18px;
453 z-index: 600;
454 width: $icon-size;
455 height: $icon-size;
456 margin: {
457 right: 8px;
458 }
459 background-color: $gray-500;
460 border: none;
461 border-radius: 0;
462 -webkit-mask-size: contain;
463 mask-size: contain;
464 -webkit-mask-repeat: no-repeat;
465 mask-repeat: no-repeat;
466 -webkit-mask-position: center;
467 mask-position: center;
468 -webkit-mask-image: url("../../images/icons/icon-info.svg");
469 mask-image: url("../../images/icons/icon-info.svg");
470 }
471 }
472 }
473 }
474
475 /*----------------------------------------------------------------------------
476 *
477 * Edit fields footer
478 *
479 *----------------------------------------------------------------------------*/
480 .acf-field-settings .acf-field-settings-footer {
481 display: flex;
482 align-items: center;
483 min-height: 72px;
484 box-sizing: border-box;
485 width: 100%;
486 margin: {
487 top: 0;
488 right: 0;
489 bottom: 0;
490 left: 0;
491 }
492 padding: {
493 top: 0;
494 right: 0;
495 bottom: 0;
496 left: 72px;
497 }
498 border-top: {
499 width: 1px;
500 style: solid;
501 color: $gray-200;
502 }
503
504 @media screen and (max-width: 600px) {
505 padding: {
506 left: 12px;
507 }
508 }
509 }
510
511 .rtl .acf-field-settings .acf-field-settings-footer {
512 padding: {
513 top: 0;
514 right: 72px;
515 bottom: 0;
516 left: 0;
517 }
518 }
519
520 /*----------------------------------------------------------------------------
521 *
522 * Tabs
523 *
524 *----------------------------------------------------------------------------*/
525 .acf-fields,
526 .acf-admin-page.acf-internal-post-type,
527 .acf-browse-fields-modal-wrap {
528 .acf-tab-wrap {
529 background: $gray-50;
530 border-bottom: {
531 color: $gray-800;
532 }
533
534 .acf-tab-group {
535 padding: {
536 right: 24px;
537 left: 24px;
538 }
539 border-top: {
540 width: 0;
541 }
542 border-bottom: {
543 width: 1px;
544 style: solid;
545 color: $gray-200;
546 }
547 }
548 }
549
550 .acf-field-settings-tab-bar,
551 .acf-tab-wrap .acf-tab-group {
552 display: flex;
553 align-items: stretch;
554 min-height: 48px;
555 padding: {
556 top: 0;
557 right: 0;
558 bottom: 0;
559 left: 24px;
560 }
561 margin: {
562 top: 0;
563 bottom: 0;
564 }
565 border-bottom: {
566 width: 1px;
567 style: solid;
568 color: $gray-200;
569 }
570 li {
571 display: flex;
572 margin: {
573 top: 0;
574 right: 24px;
575 bottom: 0;
576 left: 0;
577 }
578 padding: 0;
579
580 a {
581 &:focus-visible {
582 border: 1px solid #5897fb;
583 }
584
585 box-sizing: border-box;
586 display: inline-flex;
587 align-items: center;
588 height: 100%;
589 padding: {
590 top: 3px;
591 right: 0;
592 bottom: 0;
593 left: 0;
594 }
595 background: none;
596 border-top: none;
597 border-right: none;
598 border-bottom: {
599 width: 3px;
600 style: solid;
601 color: transparent;
602 }
603 border-left: none;
604 color: $gray-500;
605 @extend .p5;
606 font-weight: normal;
607
608 &:hover {
609 color: $gray-800;
610 }
611
612 &:hover {
613 background-color: transparent;
614 }
615 }
616
617 &.active a {
618 background: none;
619 border-bottom: {
620 color: $color-primary;
621 }
622 color: $blue-500;
623
624 &:focus-visible {
625 border-bottom: {
626 color: $color-primary;
627 width: 3px;
628 }
629 }
630 }
631 }
632 }
633 }
634
635 .acf-admin-page.acf-internal-post-type
636 .acf-field-editor
637 .acf-field-settings-tab-bar {
638 padding: {
639 left: 72px;
640 }
641
642 @media screen and (max-width: 600px) {
643 padding: {
644 left: 12px;
645 }
646 }
647 }
648
649 /*----------------------------------------------------------------------------
650 *
651 * Field group settings
652 *
653 *----------------------------------------------------------------------------*/
654 #acf-field-group-options {
655 .field-group-settings-tab {
656 padding: {
657 top: 24px;
658 right: 24px;
659 bottom: 24px;
660 left: 24px;
661 }
662
663 .acf-field:last-of-type {
664 padding: 0;
665 }
666 }
667
668 .acf-field {
669 border: none;
670 margin: {
671 top: 0;
672 right: 0;
673 bottom: 0;
674 left: 0;
675 }
676 padding: {
677 top: 0;
678 right: 0;
679 bottom: 24px;
680 left: 0;
681 }
682 }
683
684 // Split layout
685 .field-group-setting-split-container {
686 display: flex;
687 padding: {
688 top: 0;
689 right: 0;
690 bottom: 0;
691 left: 0;
692 }
693
694 .field-group-setting-split {
695 box-sizing: border-box;
696 padding: {
697 top: 24px;
698 right: 24px;
699 bottom: 24px;
700 left: 24px;
701 }
702 }
703
704 .field-group-setting-split:nth-child(1) {
705 flex: 1 0 auto;
706 }
707
708 .field-group-setting-split:nth-child(2n) {
709 flex: 1 0 auto;
710 max-width: 320px;
711 margin: {
712 top: 0;
713 right: 0;
714 bottom: 0;
715 left: 32px;
716 }
717 padding: {
718 right: 32px;
719 left: 32px;
720 }
721 border-left: {
722 width: 1px;
723 style: solid;
724 color: $gray-200;
725 }
726 }
727 }
728
729 // Description field
730 .acf-field[data-name="description"]="description""] {
731 max-width: 600px;
732 }
733
734 // Button group
735 .acf-button-group {
736 display: inline-flex;
737 }
738 }
739
740 .rtl #acf-field-group-options {
741 .field-group-setting-split-container {
742 .field-group-setting-split:nth-child(2n) {
743 margin: {
744 right: 32px;
745 left: 0;
746 }
747 border-left: none;
748 border-right: {
749 width: 1px;
750 style: solid;
751 color: $gray-200;
752 }
753 }
754 }
755 }
756
757 /*----------------------------------------------------------------------------
758 *
759 * Reorder handles
760 *
761 *----------------------------------------------------------------------------*/
762 .acf-field-list {
763 .li-field-order {
764 padding: 0;
765 display: flex;
766 flex-direction: row;
767 flex-wrap: nowrap;
768 justify-content: center;
769 align-content: stretch;
770 align-items: stretch;
771 background-color: transparent;
772 }
773
774 .acf-sortable-handle {
775 display: flex;
776 flex-direction: row;
777 flex-wrap: nowrap;
778 justify-content: center;
779 align-content: flex-start;
780 align-items: flex-start;
781 width: 100%;
782 height: 100%;
783 position: relative;
784 padding: {
785 top: 11px;
786 bottom: 8px;
787 }
788 @extend .p4;
789 background-color: transparent;
790 border: none;
791 border-radius: 0;
792
793 &:hover {
794 cursor: grab;
795 }
796
797 &:before {
798 content: "";
799 display: none;
800 position: absolute;
801 top: 16px;
802 left: 8px;
803 width: 16px;
804 height: 16px;
805 $icon-size: 12px;
806 width: $icon-size;
807 height: $icon-size;
808 background-color: $gray-400;
809 border: none;
810 border-radius: 0;
811 -webkit-mask-size: contain;
812 mask-size: contain;
813 -webkit-mask-repeat: no-repeat;
814 mask-repeat: no-repeat;
815 -webkit-mask-position: center;
816 mask-position: center;
817 text-indent: 500%;
818 white-space: nowrap;
819 overflow: hidden;
820 -webkit-mask-image: url("../../images/icons/icon-draggable.svg");
821 mask-image: url("../../images/icons/icon-draggable.svg");
822 }
823 }
824 }
825
826 .rtl .acf-field-list {
827 .acf-sortable-handle {
828 &:before {
829 left: 0;
830 right: 8px;
831 }
832 }
833 }
834
835 /*----------------------------------------------------------------------------
836 *
837 * Expand / collapse field icon
838 *
839 *----------------------------------------------------------------------------*/
840 .acf-field-object {
841 .li-field-label {
842 position: relative;
843 padding: {
844 left: 40px;
845 }
846
847 &:before {
848 content: "";
849 display: block;
850 position: absolute;
851 left: 6px;
852 $icon-size: 18px;
853 display: inline-flex;
854 width: $icon-size;
855 height: $icon-size;
856 margin: {
857 top: -2px;
858 }
859 background-color: $gray-500;
860 border: none;
861 border-radius: 0;
862 -webkit-mask-size: contain;
863 mask-size: contain;
864 -webkit-mask-repeat: no-repeat;
865 mask-repeat: no-repeat;
866 -webkit-mask-position: center;
867 mask-position: center;
868 text-indent: 500%;
869 white-space: nowrap;
870 overflow: hidden;
871 -webkit-mask-image: url("../../images/icons/icon-chevron-down.svg");
872 mask-image: url("../../images/icons/icon-chevron-down.svg");
873 }
874
875 &:hover:before {
876 cursor: pointer;
877 }
878 }
879 }
880
881 .rtl {
882 .acf-field-object {
883 .li-field-label {
884 padding: {
885 left: 0;
886 right: 40px;
887 }
888
889 &:before {
890 left: 0;
891 right: 6px;
892 -webkit-mask-image: url("../../images/icons/icon-chevron-down.svg");
893 mask-image: url("../../images/icons/icon-chevron-down.svg");
894 }
895 }
896
897 // Open
898 &.open {
899 .li-field-label:before {
900 -webkit-mask-image: url("../../images/icons/icon-chevron-down.svg");
901 mask-image: url("../../images/icons/icon-chevron-down.svg");
902 }
903
904 .acf-input-sub .li-field-label:before {
905 -webkit-mask-image: url("../../images/icons/icon-chevron-right.svg");
906 mask-image: url("../../images/icons/icon-chevron-right.svg");
907 }
908
909 .acf-input-sub .acf-field-object.open .li-field-label:before {
910 -webkit-mask-image: url("../../images/icons/icon-chevron-down.svg");
911 mask-image: url("../../images/icons/icon-chevron-down.svg");
912 }
913 }
914 }
915 }
916
917 .acf-thead {
918 .li-field-label {
919 padding: {
920 left: 40px;
921 }
922 }
923 .rtl & {
924 .li-field-label {
925 padding: {
926 left: 0;
927 right: 40px;
928 }
929 }
930 }
931 }
932
933 /*----------------------------------------------------------------------------
934 *
935 * Conditional logic layout
936 *
937 *----------------------------------------------------------------------------*/
938 .acf-field-settings-main-conditional-logic {
939
940 .acf-conditional-toggle {
941 display: flex;
942 padding: {
943 right: 72px;
944 left: 72px;
945 }
946
947 @media screen and (max-width: 600px) {
948 padding: {
949 left: 12px;
950 }
951 }
952 }
953
954 .acf-field {
955 flex-wrap: wrap;
956 margin: {
957 bottom: 0;
958 }
959 padding: {
960 right: 0;
961 left: 0;
962 }
963
964 .rule-groups {
965 flex: 0 1 100%;
966 order: 3;
967 margin: {
968 top: 32px;
969 }
970 padding: {
971 top: 32px;
972 right: 72px;
973 left: 72px;
974 }
975 border-top: {
976 width: 1px;
977 style: solid;
978 color: $gray-200;
979 }
980
981 @media screen and (max-width: 600px) {
982 padding: {
983 left: 12px;
984 }
985
986 table.acf-table tbody tr {
987 display: flex;
988 flex-wrap: wrap;
989 justify-content: flex-start;
990 align-content: flex-start;
991 align-items: flex-start;
992
993 td {
994 flex: 1 1 100%;
995 }
996 }
997 }
998 }
999 }
1000 }
1001
1002 .acf-taxonomy-select-id,
1003 .acf-relationship-select-id,
1004 .acf-post_object-select-id,
1005 .acf-page_link-select-id,
1006 .acf-user-select-id {
1007 color: $gray-400;
1008 padding-left: 10px;
1009 }
1010
1011 .acf-taxonomy-select-sub-item {
1012 max-width: 180px;
1013 white-space: nowrap;
1014 overflow: hidden;
1015 text-overflow: ellipsis;
1016 margin-left: 5px;
1017 }
1018
1019 .acf-taxonomy-select-name {
1020 max-width: 180px;
1021 white-space: nowrap;
1022 overflow: hidden;
1023 text-overflow: ellipsis;
1024 }
1025
1026 /*----------------------------------------------------------------------------
1027 *
1028 * Prefix & append styling
1029 *
1030 *----------------------------------------------------------------------------*/
1031 .acf-input {
1032 .acf-input-prepend,
1033 .acf-input-append {
1034 display: inline-flex;
1035 align-items: center;
1036 height: 100%;
1037 min-height: 40px;
1038 padding: {
1039 right: 12px;
1040 left: 12px;
1041 }
1042 background-color: $gray-50;
1043 border-color: $gray-300;
1044 box-shadow: $elevation-01;
1045 color: $gray-500;
1046 }
1047
1048 .acf-input-prepend {
1049 border-radius: $radius-md 0 0 $radius-md;
1050 }
1051
1052 .acf-input-append {
1053 border-radius: 0 $radius-md $radius-md 0;
1054 }
1055 }
1056
1057 /*----------------------------------------------------------------------------
1058 *
1059 * ACF input wrap
1060 *
1061 *----------------------------------------------------------------------------*/
1062 .acf-input-wrap {
1063 display: flex;
1064 }
1065
1066 .acf-field-settings-main-presentation .acf-input-wrap {
1067 display: flex;
1068 }
1069
1070 /*----------------------------------------------------------------------------
1071 *
1072 * Empty state
1073 *
1074 *----------------------------------------------------------------------------*/
1075 .post-type-acf-field-group
1076 #acf-field-group-fields
1077 .acf-field-list.-empty
1078 .no-fields-message {
1079 display: flex;
1080 justify-content: center;
1081 padding: {
1082 top: 48px;
1083 bottom: 48px;
1084 }
1085
1086 .no-fields-message-inner {
1087 display: flex;
1088 flex-wrap: wrap;
1089 justify-content: center;
1090 align-content: center;
1091 align-items: flex-start;
1092 text-align: center;
1093 max-width: 400px;
1094
1095 img,
1096 h2,
1097 p {
1098 flex: 1 0 100%;
1099 }
1100
1101 h2 {
1102 @extend .acf-h2;
1103 margin: {
1104 top: 32px;
1105 bottom: 0;
1106 }
1107 padding: 0;
1108 color: $gray-700;
1109 }
1110
1111 p {
1112 @extend .p2;
1113 margin: {
1114 top: 12px;
1115 bottom: 0;
1116 }
1117 padding: 0;
1118 color: $gray-500;
1119
1120 &.acf-small {
1121 @extend .p6;
1122 margin: {
1123 top: 32px;
1124 }
1125 }
1126 }
1127
1128 img {
1129 max-width: 284px;
1130 margin: {
1131 bottom: 0;
1132 }
1133 }
1134
1135 .acf-btn {
1136 margin: {
1137 top: 32px;
1138 }
1139 }
1140 }
1141 }
1142
1143 /*----------------------------------------------------------------------------
1144 *
1145 * Hide add title prompt label
1146 *
1147 *----------------------------------------------------------------------------*/
1148 .post-type-acf-field-group {
1149 .acf-headerbar {
1150 #title-prompt-text {
1151 display: none;
1152 }
1153 }
1154 }
1155
1156 /*----------------------------------------------------------------------------
1157 *
1158 * Modal styling
1159 *
1160 *----------------------------------------------------------------------------*/
1161 .acf-admin-page {
1162 #acf-popup .acf-popup-box {
1163 min-width: 480px;
1164
1165 .title {
1166 display: flex;
1167 align-items: center;
1168 align-content: center;
1169 justify-content: space-between;
1170 min-height: 64px;
1171 box-sizing: border-box;
1172 margin: 0;
1173 padding: {
1174 right: 24px;
1175 left: 24px;
1176 }
1177 border-bottom: {
1178 width: 1px;
1179 style: solid;
1180 color: $gray-200;
1181 }
1182
1183 h1,
1184 h2,
1185 h3,
1186 h4 {
1187 @extend .acf-h3;
1188 padding: {
1189 left: 0;
1190 }
1191 color: $gray-700;
1192 }
1193
1194 .acf-icon {
1195 display: block;
1196 position: relative;
1197 top: auto;
1198 right: auto;
1199 width: 22px;
1200 height: 22px;
1201 background-color: transparent;
1202 color: transparent;
1203
1204 &:before {
1205 $icon-size: 22px;
1206 display: inline-flex;
1207 position: absolute;
1208 top: 0;
1209 left: 0;
1210 width: $icon-size;
1211 height: $icon-size;
1212 background-color: $gray-500;
1213 border: none;
1214 border-radius: 0;
1215 -webkit-mask-size: contain;
1216 mask-size: contain;
1217 -webkit-mask-repeat: no-repeat;
1218 mask-repeat: no-repeat;
1219 -webkit-mask-position: center;
1220 mask-position: center;
1221 text-indent: 500%;
1222 white-space: nowrap;
1223 overflow: hidden;
1224 -webkit-mask-image: url("../../images/icons/icon-close-circle.svg");
1225 mask-image: url("../../images/icons/icon-close-circle.svg");
1226 }
1227
1228 &:hover:before {
1229 background-color: $color-primary;
1230 }
1231 }
1232 }
1233
1234 .inner {
1235 box-sizing: border-box;
1236 margin: 0;
1237 padding: {
1238 top: 24px;
1239 right: 24px;
1240 bottom: 24px;
1241 left: 24px;
1242 }
1243 border-top: none;
1244
1245 p {
1246 margin: {
1247 top: 0;
1248 bottom: 0;
1249 }
1250 }
1251 }
1252
1253 // Custom styling for move custom field modal/link field groups modal.
1254 #acf-move-field-form,
1255 #acf-link-field-groups-form {
1256 .acf-field-select {
1257 margin: {
1258 top: 0;
1259 }
1260 }
1261 }
1262 }
1263
1264 // Custom styling for the link field groups/create options page modal.
1265 .acf-link-field-groups-popup .acf-popup-box,
1266 .acf-create-options-page-popup .acf-popup-box {
1267 .title h3 {
1268 color: $gray-800;
1269 font-weight: 500;
1270
1271 &:before {
1272 content: "";
1273 width: 18px;
1274 height: 18px;
1275 background: $gray-400;
1276 margin-right: 9px;
1277 }
1278 }
1279
1280 .inner {
1281 padding: 0 !important;
1282
1283 .acf-field-select,
1284 .acf-link-successful {
1285 padding: 32px 24px;
1286 margin-bottom: 0;
1287
1288 .description {
1289 margin-top: 6px !important;
1290 }
1291 }
1292
1293 .acf-actions {
1294 background: $gray-50;
1295 border-top: 1px solid $gray-200;
1296 padding: {
1297 top: 20px;
1298 left: 24px;
1299 bottom: 20px;
1300 right: 24px;
1301 }
1302 border-bottom-left-radius: 8px;
1303 border-bottom-right-radius: 8px;
1304
1305 .acf-btn {
1306 display: inline-block;
1307 margin-left: 8px;
1308
1309 &.acf-btn-primary {
1310 width: 120px;
1311 }
1312 }
1313 }
1314 }
1315 }
1316
1317 .acf-create-options-page-popup .acf-popup-box {
1318 .inner {
1319 .acf-error-message.-success {
1320 display: none;
1321 }
1322
1323 .-dismiss {
1324 margin: 24px 32px !important;
1325 }
1326
1327 .acf-field {
1328 padding: 24px 32px 0 32px;
1329 margin: 0;
1330
1331 &.acf-error {
1332 .acf-input-wrap {
1333 overflow: inherit;
1334
1335 input[type="text"]="text""] {
1336 border: 1px rgba($color-danger, 0.5) solid !important;
1337 box-shadow:
1338 0px 0px 0px 3px rgba(209, 55, 55, 0.12),
1339 0px 0px 0px rgba(255, 54, 54, 0.25) !important;
1340 background-image: url(../../images/icons/icon-info-red.svg);
1341 background-position: right 10px top 50%;
1342 background-size: 14px;
1343 background-repeat: no-repeat;
1344 }
1345 }
1346 }
1347
1348 .acf-options-page-modal-error p {
1349 font-size: 12px;
1350 color: $color-danger;
1351 }
1352 }
1353
1354 .acf-actions {
1355 margin-top: 32px;
1356
1357 .acf-btn:disabled {
1358 background-color: $blue-500;
1359 }
1360 }
1361 }
1362 }
1363 }
1364
1365 /*----------------------------------------------------------------------------
1366 *
1367 * Hide original #post-body-content from edit field group page
1368 *
1369 *----------------------------------------------------------------------------*/
1370 .acf-admin-single-field-group {
1371 #post-body-content {
1372 display: none;
1373 }
1374 }
1375
1376 /*----------------------------------------------------------------------------
1377 *
1378 * Settings section footer
1379 *
1380 *----------------------------------------------------------------------------*/
1381 .acf-field-group-settings-footer {
1382 display: flex;
1383 justify-content: space-between;
1384 align-content: stretch;
1385 align-items: center;
1386 position: relative;
1387 min-height: 88px;
1388 margin: {
1389 right: -24px;
1390 left: -24px;
1391 bottom: -24px;
1392 }
1393 padding: {
1394 right: 24px;
1395 left: 24px;
1396 }
1397 border-top: {
1398 width: 1px;
1399 style: solid;
1400 color: $gray-200;
1401 }
1402
1403 .acf-created-on {
1404 display: inline-flex;
1405 justify-content: flex-start;
1406 align-content: stretch;
1407 align-items: center;
1408 @extend .p5;
1409 color: $gray-500;
1410
1411 &:before {
1412 content: "";
1413 $icon-size: 20px;
1414 display: inline-block;
1415 width: $icon-size;
1416 height: $icon-size;
1417 margin: {
1418 right: 8px;
1419 }
1420 background-color: $gray-400;
1421 border: none;
1422 border-radius: 0;
1423 -webkit-mask-size: contain;
1424 mask-size: contain;
1425 -webkit-mask-repeat: no-repeat;
1426 mask-repeat: no-repeat;
1427 -webkit-mask-position: center;
1428 mask-position: center;
1429 -webkit-mask-image: url("../../images/icons/icon-time.svg");
1430 mask-image: url("../../images/icons/icon-time.svg");
1431 }
1432 }
1433 }
1434
1435 /*----------------------------------------------------------------------------
1436 *
1437 * Conditional logic enabled badge
1438 *
1439 *----------------------------------------------------------------------------*/
1440 .conditional-logic-badge {
1441 display: none;
1442
1443 &.is-enabled {
1444 display: inline-block;
1445 width: 6px;
1446 height: 6px;
1447 overflow: hidden;
1448 margin: {
1449 left: 8px;
1450 }
1451 background-color: rgba($color-success, 0.4);
1452 border: {
1453 width: 1px;
1454 style: solid;
1455 color: $color-success;
1456 }
1457 border-radius: 100px;
1458 text-indent: 100%;
1459 white-space: nowrap;
1460 }
1461 }
1462
1463 /*----------------------------------------------------------------------------
1464 *
1465 * Field settings container
1466 *
1467 *----------------------------------------------------------------------------*/
1468 .acf-field-type-settings {
1469 container-name: settings;
1470 container-type: inline-size;
1471 }
1472
1473 /*----------------------------------------------------------------------------
1474 *
1475 * Split field settings
1476 *
1477 *----------------------------------------------------------------------------*/
1478 .acf-field-settings-split {
1479 display: flex;
1480 border-top: {
1481 width: 1px;
1482 style: solid;
1483 color: $gray-200;
1484 }
1485 .acf-field {
1486 margin: 0;
1487 padding: {
1488 top: 32px;
1489 bottom: 32px;
1490 }
1491
1492 &:nth-child(2n) {
1493 border-left: {
1494 width: 1px;
1495 style: solid;
1496 color: $gray-200;
1497 }
1498 }
1499 }
1500 }
1501
1502 @container settings (max-width: 1170px) {
1503 .acf-field-settings-split {
1504 border: none;
1505 flex-direction: column;
1506 }
1507 .acf-field {
1508 border-top-width: 1px;
1509 border-top-style: solid;
1510 border-top-color: $gray-200;
1511 }
1512 }
1513
1514 /*----------------------------------------------------------------------------
1515 *
1516 * Display & return format
1517 *
1518 *----------------------------------------------------------------------------*/
1519 .acf-field-setting-display_format,
1520 .acf-field-setting-return_format {
1521 .acf-label {
1522 margin: {
1523 bottom: 6px;
1524 }
1525 }
1526
1527 .acf-radio-list {
1528 li {
1529 display: flex;
1530
1531 label {
1532 display: inline-flex;
1533 width: 100%;
1534
1535 span {
1536 flex: 1 1 auto;
1537 }
1538
1539 code {
1540 padding: {
1541 right: 8px;
1542 left: 8px;
1543 }
1544 background-color: $gray-100;
1545 border-radius: 4px;
1546 @extend .p5;
1547 color: $gray-600;
1548 }
1549 }
1550
1551 input[type="text"]="text""] {
1552 height: 32px;
1553 }
1554 }
1555 }
1556 }
1557
1558 .acf-field-settings .acf-field-setting-first_day {
1559 padding: {
1560 top: 32px;
1561 }
1562 border-top: {
1563 width: 1px;
1564 style: solid;
1565 color: $gray-200;
1566 }
1567 }
1568
1569 /*----------------------------------------------------------------------------
1570 *
1571 * Image and Gallery fields
1572 *
1573 *----------------------------------------------------------------------------*/
1574 .acf-field-object-image,
1575 .acf-field-object-gallery {
1576 .acf-hl[data-cols="3"]="3""] > li {
1577 width: auto;
1578 }
1579 }
1580
1581 /*----------------------------------------------------------------------------
1582 *
1583 * Appended fields fields
1584 *
1585 *----------------------------------------------------------------------------*/
1586 .acf-field-settings .acf-field-appended {
1587 overflow: auto;
1588
1589 .acf-input {
1590 float: left;
1591 }
1592 }
1593
1594 /*----------------------------------------------------------------------------
1595 *
1596 * Flexible widths for image minimum / maximum size fields
1597 *
1598 *----------------------------------------------------------------------------*/
1599 .acf-field-settings .acf-field.acf-field-setting-min_width,
1600 .acf-field-settings .acf-field.acf-field-setting-max_width {
1601 .acf-input {
1602 max-width: none;
1603 }
1604
1605 .acf-input-wrap input[type="text"]="text""] {
1606 max-width: 81px;
1607 }
1608 }
1609
1610 /*----------------------------------------------------------------------------
1611 *
1612 * Temporary fix to hide pagination setting for repeaters used as subfields.
1613 *
1614 *----------------------------------------------------------------------------*/
1615 .post-type-acf-field-group {
1616 .acf-field-object-flexible-content {
1617 .acf-field-setting-pagination {
1618 display: none;
1619 }
1620 }
1621
1622 .acf-field-object-repeater {
1623 .acf-field-object-repeater {
1624 .acf-field-setting-pagination {
1625 display: none;
1626 }
1627 }
1628 }
1629 }
1630
1631 /*----------------------------------------------------------------------------
1632 *
1633 * Flexible content field width
1634 *
1635 *----------------------------------------------------------------------------*/
1636
1637 .acf-admin-single-field-group
1638 .acf-field-object-flexible-content
1639 .acf-is-subfields
1640 .acf-field-object {
1641 .acf-label,
1642 .acf-input {
1643 max-width: 600px;
1644 }
1645 }
1646
1647 /*----------------------------------------------------------------------------
1648 *
1649 * Fix default value checkbox focus state
1650 *
1651 *----------------------------------------------------------------------------*/
1652
1653 .acf-admin-single-field-group {
1654 .acf-field.acf-field-true-false.acf-field-setting-default_value
1655 .acf-true-false {
1656 border: none;
1657
1658 input[type="checkbox"]="checkbox""] {
1659 margin-right: 0;
1660 }
1661 }
1662 }
1663
1664 /*----------------------------------------------------------------------------
1665 *
1666 * With front field extra spacing
1667 *
1668 *----------------------------------------------------------------------------*/
1669 .acf-field.acf-field-with-front {
1670 margin: {
1671 top: 32px;
1672 }
1673 }
1674