blob: b7747bf3ab202b5548c776a988a51427efa28a24 (
plain)
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
// Helper text
.form-text {
font-size: $form-label-font-size;
line-height: $form-line-height;
margin-top: -$spacer / 4;
margin-bottom: $spacer / 2;
color: gray("700")!important;
}
// Legend label
.col-form-label {
color: gray("800");
font-size: $form-label-font-size;
line-height: $form-line-height;
}
.form-group {
margin-bottom: $spacer * 2;
}
.custom-select,
.form-control,
.input-group-text {
border-color: gray("500") !important;
background-color: gray("100");
}
.custom-select,
.form-control {
&:active {
border: 1px solid $primary!important;
}
&:focus {
color: theme-color("dark");
background-color: gray("100");
box-shadow: inset 0 0 0 3px gray("100"), inset 0 0 0 5px theme-color("primary") !important;
}
&:disabled {
background-color: gray("400");
color: gray("600");
}
&::placeholder {
color: gray("600");
}
&.is-invalid,
&:invalid {
border: 1px solid theme-color("danger") !important;
}
}
.custom-select,
.custom-control-label,
.form-control {
color: theme-color("dark");
font-size: 1rem;
}
// Inverted form colors
.form-background {
background-color: gray("100");
.custom-select,
.form-control {
background-color: $white;
&:focus {
background-color: $white;
}
&:disabled {
background-color: gray("400");
color: gray("600");
}
}
}
.invalid-feedback {
font-size: $form-label-font-size;
line-height: $form-line-height;
}
.custom-control {
.custom-control-input[disabled=disabled] {
& + .custom-control-label {
// Disabled label for checkbox, radio,
// switch bootstrap form components
color: gray("600")!important;
}
}
}
.b-form-tag-remove {
// X button to remove tag
font-weight: normal;
}
.b-form-tags-button {
// Add button inside input field
white-space: nowrap;
margin-right: -$spacer;
&.btn-link-primary {
color: theme-color("primary");
fill: currentColor;
}
}
|