-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplyColors.scss
87 lines (75 loc) · 1.64 KB
/
applyColors.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/* import the necessary Bootstrap files */
@import "{}/node_modules/bootstrap/scss/functions";
@import "{}/node_modules/bootstrap/scss/variables";
@import "{}/node_modules/bootstrap/scss/mixins/buttons";
@import "./colors";
/* -------begin customization-------- */
/* simply assign the value */
$body-bg: $lea-light;
/* or, use an existing variable */
$theme-colors: (
primary: $lea-primary,
secondary: $lea-secondary,
light: $lea-light,
gray: $lea-gray,
dark: $lea-dark,
warning: $lea-warning,
danger: $lea-danger,
info: $lea-info,
success: $lea-success,
);
@each $color, $value in $theme-colors {
/*
default buttons
*/
.btn-#{$color} {
color: white !important;
&:hover {
color: white !important;
}
&.active {
color: white !important;
}
}
/*
outline buttons
*/
.btn-outline-#{$color} {
&:hover {
color: white !important;
}
&.active {
color: white !important;
}
}
/*
lea action buttons
*/
.lea-action-btn-#{$color} {
color: $value !important;
background-color: white !important;
&:hover {
background-color: $value !important;
color: white !important;
}
&.active {
background-color: $value !important;
color: white !important;
}
}
/*
lea action outlines buttons
*/
.lea-action-btn-outline-#{$color} {
color: $value !important;
background-color: white !important;
&:hover {
background-color: $value !important;
color: white !important;
}
&.active {
background-color: $value !important;
color: white !important;
}
}
}