jekyll-bootstrap 4.0.0.pre.beta.2.2 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/_includes/head.html +0 -2
- data/_sass/_alert.scss +3 -1
- data/_sass/_button-group.scss +31 -72
- data/_sass/_buttons.scss +26 -19
- data/_sass/_card.scss +23 -12
- data/_sass/_carousel.scss +2 -2
- data/_sass/_close.scss +6 -1
- data/_sass/_code.scss +4 -12
- data/_sass/_custom-forms.scss +124 -84
- data/_sass/_dropdown.scss +30 -2
- data/_sass/_forms.scss +46 -71
- data/_sass/_functions.scss +4 -4
- data/_sass/_images.scss +0 -1
- data/_sass/_input-group.scss +99 -126
- data/_sass/_list-group.scss +2 -1
- data/_sass/_modal.scss +24 -9
- data/_sass/_nav.scss +2 -2
- data/_sass/_navbar.scss +8 -3
- data/_sass/_pagination.scss +32 -19
- data/_sass/_popover.scss +106 -117
- data/_sass/_print.scss +17 -3
- data/_sass/_progress.scss +4 -1
- data/_sass/_reboot.scss +3 -25
- data/_sass/_tables.scss +1 -1
- data/_sass/_tooltip.scss +65 -57
- data/_sass/_type.scss +2 -2
- data/_sass/_variables.scss +174 -108
- data/_sass/bootstrap-grid.scss +4 -7
- data/_sass/bootstrap-reboot.scss +3 -3
- data/_sass/bootstrap.scss +4 -4
- data/_sass/mixins/_background-variant.scss +2 -1
- data/_sass/mixins/_breakpoints.scss +11 -7
- data/_sass/mixins/_buttons.scss +37 -22
- data/_sass/mixins/_caret.scss +30 -0
- data/_sass/mixins/_forms.scss +48 -19
- data/_sass/mixins/_grid-framework.scss +5 -7
- data/_sass/mixins/_hover.scss +24 -46
- data/_sass/mixins/_list-group.scss +10 -13
- data/_sass/mixins/_screen-reader.scss +1 -1
- data/_sass/mixins/_text-hide.scss +1 -0
- data/_sass/utilities/_borders.scss +6 -1
- data/_sass/utilities/_display.scss +10 -28
- metadata +5 -19
data/_sass/_custom-forms.scss
CHANGED
@@ -9,9 +9,13 @@
|
|
9
9
|
|
10
10
|
.custom-control {
|
11
11
|
position: relative;
|
12
|
-
display:
|
12
|
+
display: block;
|
13
13
|
min-height: (1rem * $line-height-base);
|
14
14
|
padding-left: $custom-control-gutter;
|
15
|
+
}
|
16
|
+
|
17
|
+
.custom-control-inline {
|
18
|
+
display: inline-flex;
|
15
19
|
margin-right: $custom-control-spacer-x;
|
16
20
|
}
|
17
21
|
|
@@ -20,71 +24,107 @@
|
|
20
24
|
z-index: -1; // Put the input behind the label so it doesn't overlay text
|
21
25
|
opacity: 0;
|
22
26
|
|
23
|
-
&:checked ~ .custom-control-
|
27
|
+
&:checked ~ .custom-control-label::before {
|
24
28
|
color: $custom-control-indicator-checked-color;
|
25
29
|
@include gradient-bg($custom-control-indicator-checked-bg);
|
26
30
|
@include box-shadow($custom-control-indicator-checked-box-shadow);
|
27
31
|
}
|
28
32
|
|
29
|
-
&:focus ~ .custom-control-
|
33
|
+
&:focus ~ .custom-control-label::before {
|
30
34
|
// the mixin is not used here to make sure there is feedback
|
31
35
|
box-shadow: $custom-control-indicator-focus-box-shadow;
|
32
36
|
}
|
33
37
|
|
34
|
-
&:active ~ .custom-control-
|
38
|
+
&:active ~ .custom-control-label::before {
|
35
39
|
color: $custom-control-indicator-active-color;
|
36
|
-
|
40
|
+
background-color: $custom-control-indicator-active-bg;
|
37
41
|
@include box-shadow($custom-control-indicator-active-box-shadow);
|
38
42
|
}
|
39
43
|
|
40
44
|
&:disabled {
|
41
|
-
~ .custom-control-
|
42
|
-
|
43
|
-
}
|
45
|
+
~ .custom-control-label {
|
46
|
+
color: $custom-control-label-disabled-color;
|
44
47
|
|
45
|
-
|
46
|
-
|
48
|
+
&::before {
|
49
|
+
background-color: $custom-control-indicator-disabled-bg;
|
50
|
+
}
|
47
51
|
}
|
48
52
|
}
|
49
53
|
}
|
50
54
|
|
51
|
-
// Custom
|
55
|
+
// Custom control indicators
|
52
56
|
//
|
53
|
-
//
|
57
|
+
// Build the custom controls out of psuedo-elements.
|
54
58
|
|
55
|
-
.custom-control-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
59
|
+
.custom-control-label {
|
60
|
+
margin-bottom: 0;
|
61
|
+
|
62
|
+
// Background-color and (when enabled) gradient
|
63
|
+
&::before {
|
64
|
+
position: absolute;
|
65
|
+
top: (($line-height-base - $custom-control-indicator-size) / 2);
|
66
|
+
left: 0;
|
67
|
+
display: block;
|
68
|
+
width: $custom-control-indicator-size;
|
69
|
+
height: $custom-control-indicator-size;
|
70
|
+
pointer-events: none;
|
71
|
+
content: "";
|
72
|
+
user-select: none;
|
73
|
+
background-color: $custom-control-indicator-bg;
|
74
|
+
@include box-shadow($custom-control-indicator-box-shadow);
|
75
|
+
}
|
76
|
+
|
77
|
+
// Foreground (icon)
|
78
|
+
&::after {
|
79
|
+
position: absolute;
|
80
|
+
top: (($line-height-base - $custom-control-indicator-size) / 2);
|
81
|
+
left: 0;
|
82
|
+
display: block;
|
83
|
+
width: $custom-control-indicator-size;
|
84
|
+
height: $custom-control-indicator-size;
|
85
|
+
content: "";
|
86
|
+
background-repeat: no-repeat;
|
87
|
+
background-position: center center;
|
88
|
+
background-size: $custom-control-indicator-bg-size;
|
89
|
+
}
|
69
90
|
}
|
70
91
|
|
92
|
+
|
71
93
|
// Checkboxes
|
72
94
|
//
|
73
95
|
// Tweak just a few things for checkboxes.
|
74
96
|
|
75
97
|
.custom-checkbox {
|
76
|
-
.custom-control-
|
98
|
+
.custom-control-label::before {
|
77
99
|
@include border-radius($custom-checkbox-indicator-border-radius);
|
78
100
|
}
|
79
101
|
|
80
|
-
.custom-control-input:checked ~ .custom-control-
|
81
|
-
|
102
|
+
.custom-control-input:checked ~ .custom-control-label {
|
103
|
+
&::before {
|
104
|
+
@include gradient-bg($custom-control-indicator-checked-bg);
|
105
|
+
}
|
106
|
+
&::after {
|
107
|
+
background-image: $custom-checkbox-indicator-icon-checked;
|
108
|
+
}
|
82
109
|
}
|
83
110
|
|
84
|
-
.custom-control-input:indeterminate ~ .custom-control-
|
85
|
-
|
86
|
-
|
87
|
-
|
111
|
+
.custom-control-input:indeterminate ~ .custom-control-label {
|
112
|
+
&::before {
|
113
|
+
@include gradient-bg($custom-checkbox-indicator-indeterminate-bg);
|
114
|
+
@include box-shadow($custom-checkbox-indicator-indeterminate-box-shadow);
|
115
|
+
}
|
116
|
+
&::after {
|
117
|
+
background-image: $custom-checkbox-indicator-icon-indeterminate;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
.custom-control-input:disabled {
|
122
|
+
&:checked ~ .custom-control-label::before {
|
123
|
+
background-color: $custom-control-indicator-checked-disabled-bg;
|
124
|
+
}
|
125
|
+
&:indeterminate ~ .custom-control-label::before {
|
126
|
+
background-color: $custom-control-indicator-checked-disabled-bg;
|
127
|
+
}
|
88
128
|
}
|
89
129
|
}
|
90
130
|
|
@@ -93,30 +133,22 @@
|
|
93
133
|
// Tweak just a few things for radios.
|
94
134
|
|
95
135
|
.custom-radio {
|
96
|
-
.custom-control-
|
136
|
+
.custom-control-label::before {
|
97
137
|
border-radius: $custom-radio-indicator-border-radius;
|
98
138
|
}
|
99
139
|
|
100
|
-
.custom-control-input:checked ~ .custom-control-
|
101
|
-
|
140
|
+
.custom-control-input:checked ~ .custom-control-label {
|
141
|
+
&::before {
|
142
|
+
@include gradient-bg($custom-control-indicator-checked-bg);
|
143
|
+
}
|
144
|
+
&::after {
|
145
|
+
background-image: $custom-radio-indicator-icon-checked;
|
146
|
+
}
|
102
147
|
}
|
103
|
-
}
|
104
|
-
|
105
|
-
|
106
|
-
// Layout options
|
107
|
-
//
|
108
|
-
// By default radios and checkboxes are `inline-block` with no additional spacing
|
109
|
-
// set. Use these optional classes to tweak the layout.
|
110
148
|
|
111
|
-
.custom-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
.custom-control {
|
116
|
-
margin-bottom: $custom-control-spacer-y;
|
117
|
-
|
118
|
-
+ .custom-control {
|
119
|
-
margin-left: 0;
|
149
|
+
.custom-control-input:disabled {
|
150
|
+
&:checked ~ .custom-control-label::before {
|
151
|
+
background-color: $custom-control-indicator-checked-disabled-bg;
|
120
152
|
}
|
121
153
|
}
|
122
154
|
}
|
@@ -130,8 +162,8 @@
|
|
130
162
|
|
131
163
|
.custom-select {
|
132
164
|
display: inline-block;
|
133
|
-
|
134
|
-
height: $
|
165
|
+
width: 100%;
|
166
|
+
height: $custom-select-height;
|
135
167
|
padding: $custom-select-padding-y ($custom-select-padding-x + $custom-select-indicator-padding) $custom-select-padding-y $custom-select-padding-x;
|
136
168
|
line-height: $custom-select-line-height;
|
137
169
|
color: $custom-select-color;
|
@@ -148,12 +180,12 @@
|
|
148
180
|
|
149
181
|
&:focus {
|
150
182
|
border-color: $custom-select-focus-border-color;
|
151
|
-
outline:
|
152
|
-
|
183
|
+
outline: 0;
|
184
|
+
box-shadow: $custom-select-focus-box-shadow;
|
153
185
|
|
154
186
|
&::-ms-value {
|
155
187
|
// For visual consistency with other platforms/browsers,
|
156
|
-
//
|
188
|
+
// suppress the default white text on blue background highlight given to
|
157
189
|
// the selected option text when the (still closed) <select> receives focus
|
158
190
|
// in IE and (under certain conditions) Edge.
|
159
191
|
// See https://github.com/twbs/bootstrap/issues/19398.
|
@@ -162,8 +194,10 @@
|
|
162
194
|
}
|
163
195
|
}
|
164
196
|
|
165
|
-
&[multiple]
|
197
|
+
&[multiple],
|
198
|
+
&[size]:not([size="1"]) {
|
166
199
|
height: auto;
|
200
|
+
padding-right: $custom-select-padding-x;
|
167
201
|
background-image: none;
|
168
202
|
}
|
169
203
|
|
@@ -185,6 +219,13 @@
|
|
185
219
|
font-size: $custom-select-font-size-sm;
|
186
220
|
}
|
187
221
|
|
222
|
+
.custom-select-lg {
|
223
|
+
height: $custom-select-height-lg;
|
224
|
+
padding-top: $custom-select-padding-y;
|
225
|
+
padding-bottom: $custom-select-padding-y;
|
226
|
+
font-size: $custom-select-font-size-lg;
|
227
|
+
}
|
228
|
+
|
188
229
|
|
189
230
|
// File
|
190
231
|
//
|
@@ -193,65 +234,64 @@
|
|
193
234
|
.custom-file {
|
194
235
|
position: relative;
|
195
236
|
display: inline-block;
|
196
|
-
|
237
|
+
width: 100%;
|
197
238
|
height: $custom-file-height;
|
198
239
|
margin-bottom: 0;
|
199
240
|
}
|
200
241
|
|
201
242
|
.custom-file-input {
|
202
|
-
|
203
|
-
|
243
|
+
position: relative;
|
244
|
+
z-index: 2;
|
245
|
+
width: 100%;
|
204
246
|
height: $custom-file-height;
|
205
247
|
margin: 0;
|
206
248
|
opacity: 0;
|
207
249
|
|
208
250
|
&:focus ~ .custom-file-control {
|
251
|
+
border-color: $custom-file-focus-border-color;
|
209
252
|
box-shadow: $custom-file-focus-box-shadow;
|
253
|
+
|
254
|
+
&::before {
|
255
|
+
border-color: $custom-file-focus-border-color;
|
256
|
+
}
|
257
|
+
}
|
258
|
+
|
259
|
+
@each $lang, $value in $custom-file-text {
|
260
|
+
&:lang(#{$lang}) ~ .custom-file-label::after {
|
261
|
+
content: $value;
|
262
|
+
}
|
210
263
|
}
|
211
264
|
}
|
212
265
|
|
213
|
-
.custom-file-
|
266
|
+
.custom-file-label {
|
214
267
|
position: absolute;
|
215
268
|
top: 0;
|
216
269
|
right: 0;
|
217
270
|
left: 0;
|
218
|
-
z-index:
|
271
|
+
z-index: 1;
|
219
272
|
height: $custom-file-height;
|
220
273
|
padding: $custom-file-padding-y $custom-file-padding-x;
|
221
274
|
line-height: $custom-file-line-height;
|
222
275
|
color: $custom-file-color;
|
223
|
-
pointer-events: none;
|
224
|
-
user-select: none;
|
225
276
|
background-color: $custom-file-bg;
|
226
277
|
border: $custom-file-border-width solid $custom-file-border-color;
|
227
278
|
@include border-radius($custom-file-border-radius);
|
228
279
|
@include box-shadow($custom-file-box-shadow);
|
229
280
|
|
230
|
-
|
231
|
-
&:lang(#{$lang}):empty::after {
|
232
|
-
content: $text;
|
233
|
-
}
|
234
|
-
}
|
235
|
-
|
236
|
-
&::before {
|
281
|
+
&::after {
|
237
282
|
position: absolute;
|
238
|
-
top:
|
239
|
-
right:
|
240
|
-
bottom:
|
241
|
-
z-index:
|
283
|
+
top: 0;
|
284
|
+
right: 0;
|
285
|
+
bottom: 0;
|
286
|
+
z-index: 3;
|
242
287
|
display: block;
|
243
|
-
height: $custom-file-height;
|
288
|
+
height: calc(#{$custom-file-height} - #{$custom-file-border-width} * 2);
|
244
289
|
padding: $custom-file-padding-y $custom-file-padding-x;
|
245
290
|
line-height: $custom-file-line-height;
|
246
291
|
color: $custom-file-button-color;
|
292
|
+
content: "Browse";
|
247
293
|
@include gradient-bg($custom-file-button-bg);
|
248
|
-
border: $custom-file-border-width solid $custom-file-border-color;
|
294
|
+
border-left: $custom-file-border-width solid $custom-file-border-color;
|
249
295
|
@include border-radius(0 $custom-file-border-radius $custom-file-border-radius 0);
|
250
296
|
}
|
251
|
-
|
252
|
-
@each $lang, $text in map-get($custom-file-text, button-label) {
|
253
|
-
&:lang(#{$lang})::before {
|
254
|
-
content: $text;
|
255
|
-
}
|
256
|
-
}
|
257
297
|
}
|
data/_sass/_dropdown.scss
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
background-color: $dropdown-bg;
|
28
28
|
background-clip: padding-box;
|
29
29
|
border: $dropdown-border-width solid $dropdown-border-color;
|
30
|
-
@include border-radius($border-radius);
|
30
|
+
@include border-radius($dropdown-border-radius);
|
31
31
|
@include box-shadow($dropdown-box-shadow);
|
32
32
|
}
|
33
33
|
|
@@ -44,6 +44,34 @@
|
|
44
44
|
}
|
45
45
|
}
|
46
46
|
|
47
|
+
.dropright {
|
48
|
+
.dropdown-menu {
|
49
|
+
margin-top: 0;
|
50
|
+
margin-left: $dropdown-spacer;
|
51
|
+
}
|
52
|
+
|
53
|
+
.dropdown-toggle {
|
54
|
+
@include caret(right);
|
55
|
+
&::after {
|
56
|
+
vertical-align: 0;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
.dropleft {
|
62
|
+
.dropdown-menu {
|
63
|
+
margin-top: 0;
|
64
|
+
margin-right: $dropdown-spacer;
|
65
|
+
}
|
66
|
+
|
67
|
+
.dropdown-toggle {
|
68
|
+
@include caret(left);
|
69
|
+
&::before {
|
70
|
+
vertical-align: 0;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
47
75
|
// Dividers (basically an `<hr>`) within the dropdown
|
48
76
|
.dropdown-divider {
|
49
77
|
@include nav-divider($dropdown-divider-bg);
|
@@ -61,7 +89,7 @@
|
|
61
89
|
color: $dropdown-link-color;
|
62
90
|
text-align: inherit; // For `<button>`s
|
63
91
|
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
64
|
-
background:
|
92
|
+
background-color: transparent; // For `<button>`s
|
65
93
|
border: 0; // For `<button>`s
|
66
94
|
|
67
95
|
@include hover-focus {
|
data/_sass/_forms.scss
CHANGED
@@ -7,15 +7,13 @@
|
|
7
7
|
.form-control {
|
8
8
|
display: block;
|
9
9
|
width: 100%;
|
10
|
-
padding: $input-
|
10
|
+
padding: $input-padding-y $input-padding-x;
|
11
11
|
font-size: $font-size-base;
|
12
|
-
line-height: $input-
|
12
|
+
line-height: $input-line-height;
|
13
13
|
color: $input-color;
|
14
14
|
background-color: $input-bg;
|
15
|
-
// Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214.
|
16
|
-
background-image: none;
|
17
15
|
background-clip: padding-box;
|
18
|
-
border: $input-
|
16
|
+
border: $input-border-width solid $input-border-color;
|
19
17
|
|
20
18
|
// Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
|
21
19
|
@if $enable-rounded {
|
@@ -78,6 +76,7 @@ select.form-control {
|
|
78
76
|
.form-control-file,
|
79
77
|
.form-control-range {
|
80
78
|
display: block;
|
79
|
+
width: 100%;
|
81
80
|
}
|
82
81
|
|
83
82
|
|
@@ -85,41 +84,28 @@ select.form-control {
|
|
85
84
|
// Labels
|
86
85
|
//
|
87
86
|
|
88
|
-
// For use with horizontal and inline forms, when you need the label
|
89
|
-
// align with the form controls.
|
87
|
+
// For use with horizontal and inline forms, when you need the label (or legend)
|
88
|
+
// text to align with the form controls.
|
90
89
|
.col-form-label {
|
91
|
-
padding-top: calc(#{$input-
|
92
|
-
padding-bottom: calc(#{$input-
|
93
|
-
margin-bottom: 0; // Override the `<label>` default
|
94
|
-
|
90
|
+
padding-top: calc(#{$input-padding-y} + #{$input-border-width});
|
91
|
+
padding-bottom: calc(#{$input-padding-y} + #{$input-border-width});
|
92
|
+
margin-bottom: 0; // Override the `<label>/<legend>` default
|
93
|
+
font-size: inherit; // Override the `<legend>` default
|
94
|
+
line-height: $input-line-height;
|
95
95
|
}
|
96
96
|
|
97
97
|
.col-form-label-lg {
|
98
|
-
padding-top: calc(#{$input-
|
99
|
-
padding-bottom: calc(#{$input-
|
98
|
+
padding-top: calc(#{$input-padding-y-lg} + #{$input-border-width});
|
99
|
+
padding-bottom: calc(#{$input-padding-y-lg} + #{$input-border-width});
|
100
100
|
font-size: $font-size-lg;
|
101
|
-
line-height: $input-
|
101
|
+
line-height: $input-line-height-lg;
|
102
102
|
}
|
103
103
|
|
104
104
|
.col-form-label-sm {
|
105
|
-
padding-top: calc(#{$input-
|
106
|
-
padding-bottom: calc(#{$input-
|
105
|
+
padding-top: calc(#{$input-padding-y-sm} + #{$input-border-width});
|
106
|
+
padding-bottom: calc(#{$input-padding-y-sm} + #{$input-border-width});
|
107
107
|
font-size: $font-size-sm;
|
108
|
-
line-height: $input-
|
109
|
-
}
|
110
|
-
|
111
|
-
|
112
|
-
//
|
113
|
-
// Legends
|
114
|
-
//
|
115
|
-
|
116
|
-
// For use with horizontal and inline forms, when you need the legend text to
|
117
|
-
// be the same size as regular labels, and to align with the form controls.
|
118
|
-
.col-form-legend {
|
119
|
-
padding-top: $input-btn-padding-y;
|
120
|
-
padding-bottom: $input-btn-padding-y;
|
121
|
-
margin-bottom: 0;
|
122
|
-
font-size: $font-size-base;
|
108
|
+
line-height: $input-line-height-sm;
|
123
109
|
}
|
124
110
|
|
125
111
|
|
@@ -129,13 +115,15 @@ select.form-control {
|
|
129
115
|
// text (without any border, background color, focus indicator)
|
130
116
|
|
131
117
|
.form-control-plaintext {
|
132
|
-
|
133
|
-
|
118
|
+
display: block;
|
119
|
+
width: 100%;
|
120
|
+
padding-top: $input-padding-y;
|
121
|
+
padding-bottom: $input-padding-y;
|
134
122
|
margin-bottom: 0; // match inputs if this class comes on inputs with default margins
|
135
|
-
line-height: $input-
|
123
|
+
line-height: $input-line-height;
|
136
124
|
background-color: transparent;
|
137
125
|
border: solid transparent;
|
138
|
-
border-width: $input-
|
126
|
+
border-width: $input-border-width 0;
|
139
127
|
|
140
128
|
&.form-control-sm,
|
141
129
|
&.form-control-lg {
|
@@ -154,9 +142,9 @@ select.form-control {
|
|
154
142
|
// issue documented in https://github.com/twbs/bootstrap/issues/15074.
|
155
143
|
|
156
144
|
.form-control-sm {
|
157
|
-
padding: $input-
|
145
|
+
padding: $input-padding-y-sm $input-padding-x-sm;
|
158
146
|
font-size: $font-size-sm;
|
159
|
-
line-height: $input-
|
147
|
+
line-height: $input-line-height-sm;
|
160
148
|
@include border-radius($input-border-radius-sm);
|
161
149
|
}
|
162
150
|
|
@@ -167,9 +155,9 @@ select.form-control-sm {
|
|
167
155
|
}
|
168
156
|
|
169
157
|
.form-control-lg {
|
170
|
-
padding: $input-
|
158
|
+
padding: $input-padding-y-lg $input-padding-x-lg;
|
171
159
|
font-size: $font-size-lg;
|
172
|
-
line-height: $input-
|
160
|
+
line-height: $input-line-height-lg;
|
173
161
|
@include border-radius($input-border-radius-lg);
|
174
162
|
}
|
175
163
|
|
@@ -220,33 +208,35 @@ select.form-control-lg {
|
|
220
208
|
.form-check {
|
221
209
|
position: relative;
|
222
210
|
display: block;
|
223
|
-
margin-bottom: $form-check-margin-bottom;
|
224
|
-
|
225
|
-
&.disabled {
|
226
|
-
.form-check-label {
|
227
|
-
color: $text-muted;
|
228
|
-
}
|
229
|
-
}
|
230
|
-
}
|
231
|
-
|
232
|
-
.form-check-label {
|
233
211
|
padding-left: $form-check-input-gutter;
|
234
|
-
margin-bottom: 0; // Override default `<label>` bottom margin
|
235
212
|
}
|
236
213
|
|
237
214
|
.form-check-input {
|
238
215
|
position: absolute;
|
239
216
|
margin-top: $form-check-input-margin-y;
|
240
217
|
margin-left: -$form-check-input-gutter;
|
218
|
+
|
219
|
+
&:disabled ~ .form-check-label {
|
220
|
+
color: $text-muted;
|
221
|
+
}
|
222
|
+
}
|
223
|
+
|
224
|
+
.form-check-label {
|
225
|
+
margin-bottom: 0; // Override default `<label>` bottom margin
|
241
226
|
}
|
242
227
|
|
243
|
-
// Radios and checkboxes on same line
|
244
228
|
.form-check-inline {
|
245
|
-
display: inline-
|
229
|
+
display: inline-flex;
|
230
|
+
align-items: center;
|
231
|
+
padding-left: 0; // Override base .form-check
|
246
232
|
margin-right: $form-check-inline-margin-x;
|
247
233
|
|
248
|
-
.form-check-
|
249
|
-
|
234
|
+
// Undo .form-check-input defaults and add some `margin-right`.
|
235
|
+
.form-check-input {
|
236
|
+
position: static;
|
237
|
+
margin-top: 0;
|
238
|
+
margin-right: $form-check-inline-input-margin-x;
|
239
|
+
margin-left: 0;
|
250
240
|
}
|
251
241
|
}
|
252
242
|
|
@@ -323,10 +313,6 @@ select.form-control-lg {
|
|
323
313
|
align-items: center;
|
324
314
|
justify-content: center;
|
325
315
|
width: auto;
|
326
|
-
margin-top: 0;
|
327
|
-
margin-bottom: 0;
|
328
|
-
}
|
329
|
-
.form-check-label {
|
330
316
|
padding-left: 0;
|
331
317
|
}
|
332
318
|
.form-check-input {
|
@@ -336,23 +322,12 @@ select.form-control-lg {
|
|
336
322
|
margin-left: 0;
|
337
323
|
}
|
338
324
|
|
339
|
-
// Custom form controls
|
340
325
|
.custom-control {
|
341
|
-
display: flex;
|
342
326
|
align-items: center;
|
343
327
|
justify-content: center;
|
344
|
-
padding-left: 0;
|
345
328
|
}
|
346
|
-
.custom-control-
|
347
|
-
|
348
|
-
display: inline-block;
|
349
|
-
margin-right: $form-check-input-margin-x; // Flexbox alignment means we lose our HTML space here, so we compensate.
|
350
|
-
vertical-align: text-bottom;
|
351
|
-
}
|
352
|
-
|
353
|
-
// Re-override the feedback icon.
|
354
|
-
.has-feedback .form-control-feedback {
|
355
|
-
top: 0;
|
329
|
+
.custom-control-label {
|
330
|
+
margin-bottom: 0;
|
356
331
|
}
|
357
332
|
}
|
358
333
|
}
|