-
Notifications
You must be signed in to change notification settings - Fork 0
/
acf_colored_sections.scss
62 lines (53 loc) · 1.46 KB
/
acf_colored_sections.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
Mixin for ACF colored pagebuilder
elements (flexible content field)
--- $name = name of flex content field
--- $color = color? :)
*/
@mixin acfsection($name, $color) {
[data-name="#{$name}"] {
background-color: lighten($color, 20%);
.ui-sortable {
.acf-row-handle {
border-bottom: 3px solid lighten($color, 20%);
border-top: 3px solid lighten($color, 20%);
}
}
}
[data-layout="#{$name}"] {
border-left: 6px solid $color !important;
.acf-row-handle.order {
background-color: $color;
border-bottom: 5px solid darken($color, 20%);
color: black;
}
> .acf-fc-layout-handle {
background-color: $color;
}
@content;
}
}
// Define colors
$acf-color1: #ff8383;
$acf-color2: #f7d4a8;
$acf-color3: #77ce77;
$acf-color4: #e0bfff;
$acf-color5: #cef7a8;
$acf-color6: #f7d4a8;
$acf-color7: #b4fdce;
$acf-color8: #fdb4e0;
$acf-color9: #fdfdb4;
$acf-color10: #b4dffd;
$acf-color11: #d8b3b3;
$acf-color12: #ffc357;
$acf-color13: #bac9dc;
$acf-color14: #d5db9f;
$acf-options: #ffe1e1;
/**
* Use ACF field name as 1st arg and color for second
* Use this in admin Stylesheet
*/
@include acfsection(slider, $acf-color4);
@include acfsection(full_image, $acf-color5);
@include acfsection(generic_content, $acf-color6);
@include acfsection(cta, $acf-color1);