bootstrap 4.5.2 → 5.0.0.alpha1
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 +4 -4
- data/README.md +1 -1
- data/assets/javascripts/bootstrap-sprockets.js +12 -8
- data/assets/javascripts/bootstrap.js +1876 -1220
- data/assets/javascripts/bootstrap.min.js +2 -2
- data/assets/javascripts/bootstrap/alert.js +133 -48
- data/assets/javascripts/bootstrap/button.js +56 -123
- data/assets/javascripts/bootstrap/carousel.js +268 -129
- data/assets/javascripts/bootstrap/collapse.js +285 -106
- data/assets/javascripts/bootstrap/dom/data.js +81 -0
- data/assets/javascripts/bootstrap/dom/event-handler.js +311 -0
- data/assets/javascripts/bootstrap/dom/manipulator.js +100 -0
- data/assets/javascripts/bootstrap/dom/polyfill.js +110 -0
- data/assets/javascripts/bootstrap/dom/selector-engine.js +98 -0
- data/assets/javascripts/bootstrap/dropdown.js +235 -161
- data/assets/javascripts/bootstrap/modal.js +322 -193
- data/assets/javascripts/bootstrap/popover.js +72 -41
- data/assets/javascripts/bootstrap/scrollspy.js +151 -56
- data/assets/javascripts/bootstrap/tab.js +151 -64
- data/assets/javascripts/bootstrap/toast.js +163 -65
- data/assets/javascripts/bootstrap/tooltip.js +336 -155
- data/assets/stylesheets/_bootstrap-grid.scss +51 -15
- data/assets/stylesheets/_bootstrap-reboot.scss +4 -1
- data/assets/stylesheets/_bootstrap.scss +14 -8
- data/assets/stylesheets/bootstrap/_alert.scss +3 -3
- data/assets/stylesheets/bootstrap/_badge.scss +2 -27
- data/assets/stylesheets/bootstrap/_breadcrumb.scss +3 -17
- data/assets/stylesheets/bootstrap/_button-group.scss +16 -38
- data/assets/stylesheets/bootstrap/_buttons.scss +27 -45
- data/assets/stylesheets/bootstrap/_card.scss +18 -64
- data/assets/stylesheets/bootstrap/_carousel.scss +13 -15
- data/assets/stylesheets/bootstrap/_close.scss +9 -13
- data/assets/stylesheets/bootstrap/_containers.scss +41 -0
- data/assets/stylesheets/bootstrap/_dropdown.scss +10 -7
- data/assets/stylesheets/bootstrap/_forms.scss +9 -347
- data/assets/stylesheets/bootstrap/_functions.scss +82 -20
- data/assets/stylesheets/bootstrap/_grid.scss +3 -54
- data/assets/stylesheets/bootstrap/_helpers.scss +7 -0
- data/assets/stylesheets/bootstrap/_list-group.scss +6 -3
- data/assets/stylesheets/bootstrap/_mixins.scss +6 -12
- data/assets/stylesheets/bootstrap/_modal.scss +34 -39
- data/assets/stylesheets/bootstrap/_nav.scss +8 -8
- data/assets/stylesheets/bootstrap/_navbar.scss +42 -74
- data/assets/stylesheets/bootstrap/_pagination.scss +7 -20
- data/assets/stylesheets/bootstrap/_popover.scss +5 -5
- data/assets/stylesheets/bootstrap/_progress.scss +2 -4
- data/assets/stylesheets/bootstrap/_reboot.scss +300 -164
- data/assets/stylesheets/bootstrap/_root.scss +5 -9
- data/assets/stylesheets/bootstrap/_spinners.scss +2 -2
- data/assets/stylesheets/bootstrap/_tables.scss +80 -114
- data/assets/stylesheets/bootstrap/_toasts.scss +2 -4
- data/assets/stylesheets/bootstrap/_tooltip.scss +5 -5
- data/assets/stylesheets/bootstrap/_transitions.scss +0 -1
- data/assets/stylesheets/bootstrap/_type.scss +38 -59
- data/assets/stylesheets/bootstrap/_utilities.scss +503 -18
- data/assets/stylesheets/bootstrap/_variables.scss +544 -424
- data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +18 -0
- data/assets/stylesheets/bootstrap/forms/_form-check.scss +142 -0
- data/assets/stylesheets/bootstrap/forms/_form-control.scss +116 -0
- data/assets/stylesheets/bootstrap/forms/_form-file.scss +91 -0
- data/assets/stylesheets/bootstrap/forms/_form-range.scss +136 -0
- data/assets/stylesheets/bootstrap/forms/_form-select.scss +82 -0
- data/assets/stylesheets/bootstrap/forms/_form-text.scss +11 -0
- data/assets/stylesheets/bootstrap/forms/_input-group.scss +140 -0
- data/assets/stylesheets/bootstrap/forms/_labels.scss +36 -0
- data/assets/stylesheets/bootstrap/forms/_validation.scss +12 -0
- data/assets/stylesheets/bootstrap/{utilities → helpers}/_clearfix.scss +0 -0
- data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +12 -0
- data/assets/stylesheets/bootstrap/helpers/_embed.scss +31 -0
- data/assets/stylesheets/bootstrap/helpers/_position.scss +30 -0
- data/assets/stylesheets/bootstrap/helpers/_screenreaders.scss +8 -0
- data/assets/stylesheets/bootstrap/helpers/_stretched-link.scss +15 -0
- data/assets/stylesheets/bootstrap/helpers/_text-truncation.scss +7 -0
- data/assets/stylesheets/bootstrap/mixins/_alert.scss +0 -4
- data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +11 -8
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +62 -47
- data/assets/stylesheets/bootstrap/mixins/_caret.scss +4 -4
- data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +2 -0
- data/assets/stylesheets/bootstrap/mixins/_container.scss +9 -0
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +22 -67
- data/assets/stylesheets/bootstrap/mixins/_gradients.scss +9 -11
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +84 -32
- data/assets/stylesheets/bootstrap/mixins/_image.scss +1 -21
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +2 -1
- data/assets/stylesheets/bootstrap/mixins/_lists.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_pagination.scss +15 -8
- data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +16 -22
- data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +21 -0
- data/assets/stylesheets/bootstrap/mixins/_transition.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_utilities.scss +49 -0
- data/assets/stylesheets/bootstrap/utilities/_api.scss +47 -0
- data/assets/stylesheets/bootstrap/vendor/_rfs.scss +234 -126
- data/lib/bootstrap/version.rb +2 -2
- data/tasks/updater/js.rb +3 -3
- metadata +31 -39
- data/assets/javascripts/bootstrap/util.js +0 -192
- data/assets/stylesheets/bootstrap/_code.scss +0 -48
- data/assets/stylesheets/bootstrap/_custom-forms.scss +0 -523
- data/assets/stylesheets/bootstrap/_input-group.scss +0 -192
- data/assets/stylesheets/bootstrap/_jumbotron.scss +0 -17
- data/assets/stylesheets/bootstrap/_media.scss +0 -8
- data/assets/stylesheets/bootstrap/_print.scss +0 -141
- data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -23
- data/assets/stylesheets/bootstrap/mixins/_badge.scss +0 -17
- data/assets/stylesheets/bootstrap/mixins/_float.scss +0 -14
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -80
- data/assets/stylesheets/bootstrap/mixins/_hover.scss +0 -37
- data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -11
- data/assets/stylesheets/bootstrap/mixins/_size.scss +0 -7
- data/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -39
- data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -17
- data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +0 -11
- data/assets/stylesheets/bootstrap/mixins/_visibility.scss +0 -8
- data/assets/stylesheets/bootstrap/utilities/_align.scss +0 -8
- data/assets/stylesheets/bootstrap/utilities/_background.scss +0 -19
- data/assets/stylesheets/bootstrap/utilities/_borders.scss +0 -75
- data/assets/stylesheets/bootstrap/utilities/_display.scss +0 -26
- data/assets/stylesheets/bootstrap/utilities/_embed.scss +0 -39
- data/assets/stylesheets/bootstrap/utilities/_flex.scss +0 -51
- data/assets/stylesheets/bootstrap/utilities/_float.scss +0 -11
- data/assets/stylesheets/bootstrap/utilities/_interactions.scss +0 -5
- data/assets/stylesheets/bootstrap/utilities/_overflow.scss +0 -5
- data/assets/stylesheets/bootstrap/utilities/_position.scss +0 -32
- data/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +0 -11
- data/assets/stylesheets/bootstrap/utilities/_shadows.scss +0 -6
- data/assets/stylesheets/bootstrap/utilities/_sizing.scss +0 -20
- data/assets/stylesheets/bootstrap/utilities/_spacing.scss +0 -73
- data/assets/stylesheets/bootstrap/utilities/_stretched-link.scss +0 -19
- data/assets/stylesheets/bootstrap/utilities/_text.scss +0 -72
- data/assets/stylesheets/bootstrap/utilities/_visibility.scss +0 -13
|
@@ -46,19 +46,16 @@
|
|
|
46
46
|
// Enable `flex-grow: 1` for decks and groups so that card blocks take up
|
|
47
47
|
// as much space as possible, ensuring footers are aligned to the bottom.
|
|
48
48
|
flex: 1 1 auto;
|
|
49
|
-
|
|
50
|
-
// See: https://github.com/twbs/bootstrap/pull/28855
|
|
51
|
-
min-height: 1px;
|
|
52
|
-
padding: $card-spacer-x;
|
|
49
|
+
padding: $card-spacer-y $card-spacer-x;
|
|
53
50
|
color: $card-color;
|
|
54
51
|
}
|
|
55
52
|
|
|
56
53
|
.card-title {
|
|
57
|
-
margin-bottom: $card-spacer-y;
|
|
54
|
+
margin-bottom: $card-title-spacer-y;
|
|
58
55
|
}
|
|
59
56
|
|
|
60
57
|
.card-subtitle {
|
|
61
|
-
margin-top: -$card-spacer-y / 2;
|
|
58
|
+
margin-top: -$card-title-spacer-y / 2;
|
|
62
59
|
margin-bottom: 0;
|
|
63
60
|
}
|
|
64
61
|
|
|
@@ -67,7 +64,7 @@
|
|
|
67
64
|
}
|
|
68
65
|
|
|
69
66
|
.card-link {
|
|
70
|
-
|
|
67
|
+
&:hover {
|
|
71
68
|
text-decoration: none;
|
|
72
69
|
}
|
|
73
70
|
|
|
@@ -81,7 +78,7 @@
|
|
|
81
78
|
//
|
|
82
79
|
|
|
83
80
|
.card-header {
|
|
84
|
-
padding: $card-
|
|
81
|
+
padding: $card-cap-padding-y $card-cap-padding-x;
|
|
85
82
|
margin-bottom: 0; // Removes the default margin-bottom of <hN>
|
|
86
83
|
color: $card-cap-color;
|
|
87
84
|
background-color: $card-cap-bg;
|
|
@@ -93,7 +90,7 @@
|
|
|
93
90
|
}
|
|
94
91
|
|
|
95
92
|
.card-footer {
|
|
96
|
-
padding: $card-
|
|
93
|
+
padding: $card-cap-padding-y $card-cap-padding-x;
|
|
97
94
|
color: $card-cap-color;
|
|
98
95
|
background-color: $card-cap-bg;
|
|
99
96
|
border-top: $card-border-width solid $card-border-color;
|
|
@@ -109,15 +106,22 @@
|
|
|
109
106
|
//
|
|
110
107
|
|
|
111
108
|
.card-header-tabs {
|
|
112
|
-
margin-right: -$card-
|
|
113
|
-
margin-bottom: -$card-
|
|
114
|
-
margin-left: -$card-
|
|
109
|
+
margin-right: -$card-cap-padding-x / 2;
|
|
110
|
+
margin-bottom: -$card-cap-padding-y;
|
|
111
|
+
margin-left: -$card-cap-padding-x / 2;
|
|
115
112
|
border-bottom: 0;
|
|
113
|
+
|
|
114
|
+
@if $nav-tabs-link-active-bg != $card-bg {
|
|
115
|
+
.nav-link.active {
|
|
116
|
+
background-color: $card-bg;
|
|
117
|
+
border-bottom-color: $card-bg;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
116
120
|
}
|
|
117
121
|
|
|
118
122
|
.card-header-pills {
|
|
119
|
-
margin-right: -$card-
|
|
120
|
-
margin-left: -$card-
|
|
123
|
+
margin-right: -$card-cap-padding-x / 2;
|
|
124
|
+
margin-left: -$card-cap-padding-x / 2;
|
|
121
125
|
}
|
|
122
126
|
|
|
123
127
|
// Card image
|
|
@@ -134,7 +138,6 @@
|
|
|
134
138
|
.card-img,
|
|
135
139
|
.card-img-top,
|
|
136
140
|
.card-img-bottom {
|
|
137
|
-
flex-shrink: 0; // For IE: https://github.com/twbs/bootstrap/issues/29396
|
|
138
141
|
width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
|
|
139
142
|
}
|
|
140
143
|
|
|
@@ -149,30 +152,6 @@
|
|
|
149
152
|
}
|
|
150
153
|
|
|
151
154
|
|
|
152
|
-
// Card deck
|
|
153
|
-
|
|
154
|
-
.card-deck {
|
|
155
|
-
.card {
|
|
156
|
-
margin-bottom: $card-deck-margin;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
@include media-breakpoint-up(sm) {
|
|
160
|
-
display: flex;
|
|
161
|
-
flex-flow: row wrap;
|
|
162
|
-
margin-right: -$card-deck-margin;
|
|
163
|
-
margin-left: -$card-deck-margin;
|
|
164
|
-
|
|
165
|
-
.card {
|
|
166
|
-
// Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
|
|
167
|
-
flex: 1 0 0%;
|
|
168
|
-
margin-right: $card-deck-margin;
|
|
169
|
-
margin-bottom: 0; // Override the default
|
|
170
|
-
margin-left: $card-deck-margin;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
176
155
|
//
|
|
177
156
|
// Card groups
|
|
178
157
|
//
|
|
@@ -236,36 +215,11 @@
|
|
|
236
215
|
}
|
|
237
216
|
|
|
238
217
|
|
|
239
|
-
//
|
|
240
|
-
// Columns
|
|
241
|
-
//
|
|
242
|
-
|
|
243
|
-
.card-columns {
|
|
244
|
-
.card {
|
|
245
|
-
margin-bottom: $card-columns-margin;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
@include media-breakpoint-up(sm) {
|
|
249
|
-
column-count: $card-columns-count;
|
|
250
|
-
column-gap: $card-columns-gap;
|
|
251
|
-
orphans: 1;
|
|
252
|
-
widows: 1;
|
|
253
|
-
|
|
254
|
-
.card {
|
|
255
|
-
display: inline-block; // Don't let them vertically span multiple columns
|
|
256
|
-
width: 100%; // Don't let their width change
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
|
|
262
218
|
//
|
|
263
219
|
// Accordion
|
|
264
220
|
//
|
|
265
221
|
|
|
266
222
|
.accordion {
|
|
267
|
-
overflow-anchor: none;
|
|
268
|
-
|
|
269
223
|
> .card {
|
|
270
224
|
overflow: hidden;
|
|
271
225
|
|
|
@@ -101,7 +101,8 @@
|
|
|
101
101
|
@include transition($carousel-control-transition);
|
|
102
102
|
|
|
103
103
|
// Hover/focus state
|
|
104
|
-
|
|
104
|
+
&:hover,
|
|
105
|
+
&:focus {
|
|
105
106
|
color: $carousel-control-color;
|
|
106
107
|
text-decoration: none;
|
|
107
108
|
outline: 0;
|
|
@@ -110,15 +111,11 @@
|
|
|
110
111
|
}
|
|
111
112
|
.carousel-control-prev {
|
|
112
113
|
left: 0;
|
|
113
|
-
|
|
114
|
-
background-image: linear-gradient(90deg, rgba($black, .25), rgba($black, .001));
|
|
115
|
-
}
|
|
114
|
+
background-image: if($enable-gradients, linear-gradient(90deg, rgba($black, .25), rgba($black, .001)), null);
|
|
116
115
|
}
|
|
117
116
|
.carousel-control-next {
|
|
118
117
|
right: 0;
|
|
119
|
-
|
|
120
|
-
background-image: linear-gradient(270deg, rgba($black, .25), rgba($black, .001));
|
|
121
|
-
}
|
|
118
|
+
background-image: if($enable-gradients, linear-gradient(270deg, rgba($black, .25), rgba($black, .001)), null);
|
|
122
119
|
}
|
|
123
120
|
|
|
124
121
|
// Icons for within
|
|
@@ -127,7 +124,9 @@
|
|
|
127
124
|
display: inline-block;
|
|
128
125
|
width: $carousel-control-icon-width;
|
|
129
126
|
height: $carousel-control-icon-width;
|
|
130
|
-
background: no-repeat
|
|
127
|
+
background-repeat: no-repeat;
|
|
128
|
+
background-position: 50%;
|
|
129
|
+
background-size: 100% 100%;
|
|
131
130
|
}
|
|
132
131
|
.carousel-control-prev-icon {
|
|
133
132
|
background-image: escape-svg($carousel-control-prev-icon-bg);
|
|
@@ -147,7 +146,7 @@
|
|
|
147
146
|
right: 0;
|
|
148
147
|
bottom: 0;
|
|
149
148
|
left: 0;
|
|
150
|
-
z-index:
|
|
149
|
+
z-index: 2;
|
|
151
150
|
display: flex;
|
|
152
151
|
justify-content: center;
|
|
153
152
|
padding-left: 0; // override <ol> default
|
|
@@ -170,12 +169,12 @@
|
|
|
170
169
|
// Use transparent borders to increase the hit area by 10px on top and bottom.
|
|
171
170
|
border-top: $carousel-indicator-hit-area-height solid transparent;
|
|
172
171
|
border-bottom: $carousel-indicator-hit-area-height solid transparent;
|
|
173
|
-
opacity:
|
|
172
|
+
opacity: $carousel-indicator-opacity;
|
|
174
173
|
@include transition($carousel-indicator-transition);
|
|
175
174
|
}
|
|
176
175
|
|
|
177
176
|
.active {
|
|
178
|
-
opacity:
|
|
177
|
+
opacity: $carousel-indicator-active-opacity;
|
|
179
178
|
}
|
|
180
179
|
}
|
|
181
180
|
|
|
@@ -187,11 +186,10 @@
|
|
|
187
186
|
.carousel-caption {
|
|
188
187
|
position: absolute;
|
|
189
188
|
right: (100% - $carousel-caption-width) / 2;
|
|
190
|
-
bottom:
|
|
189
|
+
bottom: $carousel-caption-spacer;
|
|
191
190
|
left: (100% - $carousel-caption-width) / 2;
|
|
192
|
-
|
|
193
|
-
padding-
|
|
194
|
-
padding-bottom: 20px;
|
|
191
|
+
padding-top: $carousel-caption-padding-y;
|
|
192
|
+
padding-bottom: $carousel-caption-padding-y;
|
|
195
193
|
color: $carousel-caption-color;
|
|
196
194
|
text-align: center;
|
|
197
195
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
.close {
|
|
2
|
-
float: right;
|
|
3
2
|
@include font-size($close-font-size);
|
|
4
3
|
font-weight: $close-font-weight;
|
|
5
4
|
line-height: 1;
|
|
@@ -8,15 +7,19 @@
|
|
|
8
7
|
opacity: .5;
|
|
9
8
|
|
|
10
9
|
// Override <a>'s hover style
|
|
11
|
-
|
|
10
|
+
&:hover {
|
|
12
11
|
color: $close-color;
|
|
13
12
|
text-decoration: none;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
|
-
&:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
&:hover,
|
|
16
|
+
&:focus {
|
|
17
|
+
opacity: .75;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:disabled,
|
|
21
|
+
&.disabled {
|
|
22
|
+
pointer-events: none;
|
|
20
23
|
}
|
|
21
24
|
}
|
|
22
25
|
|
|
@@ -31,10 +34,3 @@ button.close {
|
|
|
31
34
|
background-color: transparent;
|
|
32
35
|
border: 0;
|
|
33
36
|
}
|
|
34
|
-
|
|
35
|
-
// Future-proof disabling of clicks on `<a>` elements
|
|
36
|
-
|
|
37
|
-
// stylelint-disable-next-line selector-no-qualifying-type
|
|
38
|
-
a.close.disabled {
|
|
39
|
-
pointer-events: none;
|
|
40
|
-
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Container widths
|
|
2
|
+
//
|
|
3
|
+
// Set the container width, and override it for fixed navbars in media queries.
|
|
4
|
+
|
|
5
|
+
@if $enable-grid-classes {
|
|
6
|
+
// Single container class with breakpoint max-widths
|
|
7
|
+
.container,
|
|
8
|
+
// 100% wide container at all breakpoints
|
|
9
|
+
.container-fluid {
|
|
10
|
+
@include make-container();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Responsive containers that are 100% wide until a breakpoint
|
|
14
|
+
@each $breakpoint, $container-max-width in $container-max-widths {
|
|
15
|
+
.container-#{$breakpoint} {
|
|
16
|
+
@extend .container-fluid;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@include media-breakpoint-up($breakpoint, $grid-breakpoints) {
|
|
20
|
+
%responsive-container-#{$breakpoint} {
|
|
21
|
+
max-width: $container-max-width;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Extend each breakpoint which is smaller or equal to the current breakpoint
|
|
25
|
+
$extend-breakpoint: true;
|
|
26
|
+
|
|
27
|
+
@each $name, $width in $grid-breakpoints {
|
|
28
|
+
@if ($extend-breakpoint) {
|
|
29
|
+
.container#{breakpoint-infix($name, $grid-breakpoints)} {
|
|
30
|
+
@extend %responsive-container-#{$breakpoint};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Once the current breakpoint is reached, stop extending
|
|
34
|
+
@if ($breakpoint == $name) {
|
|
35
|
+
$extend-breakpoint: false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
left: 0;
|
|
21
21
|
z-index: $zindex-dropdown;
|
|
22
22
|
display: none; // none by default, but block on "open" of the menu
|
|
23
|
-
float: left;
|
|
24
23
|
min-width: $dropdown-min-width;
|
|
25
24
|
padding: $dropdown-padding-y 0;
|
|
26
25
|
margin: $dropdown-spacer 0 0; // override default ul
|
|
@@ -35,6 +34,7 @@
|
|
|
35
34
|
@include box-shadow($dropdown-box-shadow);
|
|
36
35
|
}
|
|
37
36
|
|
|
37
|
+
// scss-docs-start responsive-breakpoints
|
|
38
38
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
39
39
|
@include media-breakpoint-up($breakpoint) {
|
|
40
40
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
+
// scss-docs-end responsive-breakpoints
|
|
53
54
|
|
|
54
55
|
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
|
55
56
|
// Just add .dropup after the standard .dropdown class and you're set.
|
|
@@ -114,7 +115,10 @@
|
|
|
114
115
|
|
|
115
116
|
// Dividers (basically an `<hr>`) within the dropdown
|
|
116
117
|
.dropdown-divider {
|
|
117
|
-
|
|
118
|
+
height: 0;
|
|
119
|
+
margin: $dropdown-divider-margin-y 0;
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
border-top: 1px solid $dropdown-divider-bg;
|
|
118
122
|
}
|
|
119
123
|
|
|
120
124
|
// Links, buttons, and more within the dropdown menu
|
|
@@ -145,9 +149,10 @@
|
|
|
145
149
|
}
|
|
146
150
|
}
|
|
147
151
|
|
|
148
|
-
|
|
152
|
+
&:hover,
|
|
153
|
+
&:focus {
|
|
149
154
|
color: $dropdown-link-hover-color;
|
|
150
|
-
text-decoration: none;
|
|
155
|
+
text-decoration: if($link-hover-decoration == underline, none, null);
|
|
151
156
|
@include gradient-bg($dropdown-link-hover-bg);
|
|
152
157
|
}
|
|
153
158
|
|
|
@@ -164,9 +169,7 @@
|
|
|
164
169
|
pointer-events: none;
|
|
165
170
|
background-color: transparent;
|
|
166
171
|
// Remove CSS gradients if they're enabled
|
|
167
|
-
|
|
168
|
-
background-image: none;
|
|
169
|
-
}
|
|
172
|
+
background-image: if($enable-gradients, none, null);
|
|
170
173
|
}
|
|
171
174
|
}
|
|
172
175
|
|
|
@@ -1,347 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
height: $input-height;
|
|
11
|
-
padding: $input-padding-y $input-padding-x;
|
|
12
|
-
font-family: $input-font-family;
|
|
13
|
-
@include font-size($input-font-size);
|
|
14
|
-
font-weight: $input-font-weight;
|
|
15
|
-
line-height: $input-line-height;
|
|
16
|
-
color: $input-color;
|
|
17
|
-
background-color: $input-bg;
|
|
18
|
-
background-clip: padding-box;
|
|
19
|
-
border: $input-border-width solid $input-border-color;
|
|
20
|
-
|
|
21
|
-
// Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
|
|
22
|
-
@include border-radius($input-border-radius, 0);
|
|
23
|
-
|
|
24
|
-
@include box-shadow($input-box-shadow);
|
|
25
|
-
@include transition($input-transition);
|
|
26
|
-
|
|
27
|
-
// Unstyle the caret on `<select>`s in IE10+.
|
|
28
|
-
&::-ms-expand {
|
|
29
|
-
background-color: transparent;
|
|
30
|
-
border: 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// Remove select outline from select box in FF
|
|
34
|
-
&:-moz-focusring {
|
|
35
|
-
color: transparent;
|
|
36
|
-
text-shadow: 0 0 0 $input-color;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// Customize the `:focus` state to imitate native WebKit styles.
|
|
40
|
-
@include form-control-focus($ignore-warning: true);
|
|
41
|
-
|
|
42
|
-
// Placeholder
|
|
43
|
-
&::placeholder {
|
|
44
|
-
color: $input-placeholder-color;
|
|
45
|
-
// Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526.
|
|
46
|
-
opacity: 1;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// Disabled and read-only inputs
|
|
50
|
-
//
|
|
51
|
-
// HTML5 says that controls under a fieldset > legend:first-child won't be
|
|
52
|
-
// disabled if the fieldset is disabled. Due to implementation difficulty, we
|
|
53
|
-
// don't honor that edge case; we style them as disabled anyway.
|
|
54
|
-
&:disabled,
|
|
55
|
-
&[readonly] {
|
|
56
|
-
background-color: $input-disabled-bg;
|
|
57
|
-
// iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
|
|
58
|
-
opacity: 1;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
input[type="date"],
|
|
63
|
-
input[type="time"],
|
|
64
|
-
input[type="datetime-local"],
|
|
65
|
-
input[type="month"] {
|
|
66
|
-
&.form-control {
|
|
67
|
-
appearance: none; // Fix appearance for date inputs in Safari
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
select.form-control {
|
|
72
|
-
&:focus::-ms-value {
|
|
73
|
-
// Suppress the nested default white text on blue background highlight given to
|
|
74
|
-
// the selected option text when the (still closed) <select> receives focus
|
|
75
|
-
// in IE and (under certain conditions) Edge, as it looks bad and cannot be made to
|
|
76
|
-
// match the appearance of the native widget.
|
|
77
|
-
// See https://github.com/twbs/bootstrap/issues/19398.
|
|
78
|
-
color: $input-color;
|
|
79
|
-
background-color: $input-bg;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// Make file inputs better match text inputs by forcing them to new lines.
|
|
84
|
-
.form-control-file,
|
|
85
|
-
.form-control-range {
|
|
86
|
-
display: block;
|
|
87
|
-
width: 100%;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
//
|
|
92
|
-
// Labels
|
|
93
|
-
//
|
|
94
|
-
|
|
95
|
-
// For use with horizontal and inline forms, when you need the label (or legend)
|
|
96
|
-
// text to align with the form controls.
|
|
97
|
-
.col-form-label {
|
|
98
|
-
padding-top: add($input-padding-y, $input-border-width);
|
|
99
|
-
padding-bottom: add($input-padding-y, $input-border-width);
|
|
100
|
-
margin-bottom: 0; // Override the `<label>/<legend>` default
|
|
101
|
-
@include font-size(inherit); // Override the `<legend>` default
|
|
102
|
-
line-height: $input-line-height;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.col-form-label-lg {
|
|
106
|
-
padding-top: add($input-padding-y-lg, $input-border-width);
|
|
107
|
-
padding-bottom: add($input-padding-y-lg, $input-border-width);
|
|
108
|
-
@include font-size($input-font-size-lg);
|
|
109
|
-
line-height: $input-line-height-lg;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.col-form-label-sm {
|
|
113
|
-
padding-top: add($input-padding-y-sm, $input-border-width);
|
|
114
|
-
padding-bottom: add($input-padding-y-sm, $input-border-width);
|
|
115
|
-
@include font-size($input-font-size-sm);
|
|
116
|
-
line-height: $input-line-height-sm;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
// Readonly controls as plain text
|
|
121
|
-
//
|
|
122
|
-
// Apply class to a readonly input to make it appear like regular plain
|
|
123
|
-
// text (without any border, background color, focus indicator)
|
|
124
|
-
|
|
125
|
-
.form-control-plaintext {
|
|
126
|
-
display: block;
|
|
127
|
-
width: 100%;
|
|
128
|
-
padding: $input-padding-y 0;
|
|
129
|
-
margin-bottom: 0; // match inputs if this class comes on inputs with default margins
|
|
130
|
-
@include font-size($input-font-size);
|
|
131
|
-
line-height: $input-line-height;
|
|
132
|
-
color: $input-plaintext-color;
|
|
133
|
-
background-color: transparent;
|
|
134
|
-
border: solid transparent;
|
|
135
|
-
border-width: $input-border-width 0;
|
|
136
|
-
|
|
137
|
-
&.form-control-sm,
|
|
138
|
-
&.form-control-lg {
|
|
139
|
-
padding-right: 0;
|
|
140
|
-
padding-left: 0;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
// Form control sizing
|
|
146
|
-
//
|
|
147
|
-
// Build on `.form-control` with modifier classes to decrease or increase the
|
|
148
|
-
// height and font-size of form controls.
|
|
149
|
-
//
|
|
150
|
-
// Repeated in `_input_group.scss` to avoid Sass extend issues.
|
|
151
|
-
|
|
152
|
-
.form-control-sm {
|
|
153
|
-
height: $input-height-sm;
|
|
154
|
-
padding: $input-padding-y-sm $input-padding-x-sm;
|
|
155
|
-
@include font-size($input-font-size-sm);
|
|
156
|
-
line-height: $input-line-height-sm;
|
|
157
|
-
@include border-radius($input-border-radius-sm);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.form-control-lg {
|
|
161
|
-
height: $input-height-lg;
|
|
162
|
-
padding: $input-padding-y-lg $input-padding-x-lg;
|
|
163
|
-
@include font-size($input-font-size-lg);
|
|
164
|
-
line-height: $input-line-height-lg;
|
|
165
|
-
@include border-radius($input-border-radius-lg);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
// stylelint-disable-next-line no-duplicate-selectors
|
|
169
|
-
select.form-control {
|
|
170
|
-
&[size],
|
|
171
|
-
&[multiple] {
|
|
172
|
-
height: auto;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
textarea.form-control {
|
|
177
|
-
height: auto;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
// Form groups
|
|
181
|
-
//
|
|
182
|
-
// Designed to help with the organization and spacing of vertical forms. For
|
|
183
|
-
// horizontal forms, use the predefined grid classes.
|
|
184
|
-
|
|
185
|
-
.form-group {
|
|
186
|
-
margin-bottom: $form-group-margin-bottom;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.form-text {
|
|
190
|
-
display: block;
|
|
191
|
-
margin-top: $form-text-margin-top;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
// Form grid
|
|
196
|
-
//
|
|
197
|
-
// Special replacement for our grid system's `.row` for tighter form layouts.
|
|
198
|
-
|
|
199
|
-
.form-row {
|
|
200
|
-
display: flex;
|
|
201
|
-
flex-wrap: wrap;
|
|
202
|
-
margin-right: -$form-grid-gutter-width / 2;
|
|
203
|
-
margin-left: -$form-grid-gutter-width / 2;
|
|
204
|
-
|
|
205
|
-
> .col,
|
|
206
|
-
> [class*="col-"] {
|
|
207
|
-
padding-right: $form-grid-gutter-width / 2;
|
|
208
|
-
padding-left: $form-grid-gutter-width / 2;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
// Checkboxes and radios
|
|
214
|
-
//
|
|
215
|
-
// Indent the labels to position radios/checkboxes as hanging controls.
|
|
216
|
-
|
|
217
|
-
.form-check {
|
|
218
|
-
position: relative;
|
|
219
|
-
display: block;
|
|
220
|
-
padding-left: $form-check-input-gutter;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.form-check-input {
|
|
224
|
-
position: absolute;
|
|
225
|
-
margin-top: $form-check-input-margin-y;
|
|
226
|
-
margin-left: -$form-check-input-gutter;
|
|
227
|
-
|
|
228
|
-
// Use [disabled] and :disabled for workaround https://github.com/twbs/bootstrap/issues/28247
|
|
229
|
-
&[disabled] ~ .form-check-label,
|
|
230
|
-
&:disabled ~ .form-check-label {
|
|
231
|
-
color: $text-muted;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.form-check-label {
|
|
236
|
-
margin-bottom: 0; // Override default `<label>` bottom margin
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
.form-check-inline {
|
|
240
|
-
display: inline-flex;
|
|
241
|
-
align-items: center;
|
|
242
|
-
padding-left: 0; // Override base .form-check
|
|
243
|
-
margin-right: $form-check-inline-margin-x;
|
|
244
|
-
|
|
245
|
-
// Undo .form-check-input defaults and add some `margin-right`.
|
|
246
|
-
.form-check-input {
|
|
247
|
-
position: static;
|
|
248
|
-
margin-top: 0;
|
|
249
|
-
margin-right: $form-check-inline-input-margin-x;
|
|
250
|
-
margin-left: 0;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
// Form validation
|
|
256
|
-
//
|
|
257
|
-
// Provide feedback to users when form field values are valid or invalid. Works
|
|
258
|
-
// primarily for client-side validation via scoped `:invalid` and `:valid`
|
|
259
|
-
// pseudo-classes but also includes `.is-invalid` and `.is-valid` classes for
|
|
260
|
-
// server side validation.
|
|
261
|
-
|
|
262
|
-
@each $state, $data in $form-validation-states {
|
|
263
|
-
@include form-validation-state($state, map-get($data, color), map-get($data, icon));
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
// Inline forms
|
|
267
|
-
//
|
|
268
|
-
// Make forms appear inline(-block) by adding the `.form-inline` class. Inline
|
|
269
|
-
// forms begin stacked on extra small (mobile) devices and then go inline when
|
|
270
|
-
// viewports reach <768px.
|
|
271
|
-
//
|
|
272
|
-
// Requires wrapping inputs and labels with `.form-group` for proper display of
|
|
273
|
-
// default HTML form controls and our custom form controls (e.g., input groups).
|
|
274
|
-
|
|
275
|
-
.form-inline {
|
|
276
|
-
display: flex;
|
|
277
|
-
flex-flow: row wrap;
|
|
278
|
-
align-items: center; // Prevent shorter elements from growing to same height as others (e.g., small buttons growing to normal sized button height)
|
|
279
|
-
|
|
280
|
-
// Because we use flex, the initial sizing of checkboxes is collapsed and
|
|
281
|
-
// doesn't occupy the full-width (which is what we want for xs grid tier),
|
|
282
|
-
// so we force that here.
|
|
283
|
-
.form-check {
|
|
284
|
-
width: 100%;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
// Kick in the inline
|
|
288
|
-
@include media-breakpoint-up(sm) {
|
|
289
|
-
label {
|
|
290
|
-
display: flex;
|
|
291
|
-
align-items: center;
|
|
292
|
-
justify-content: center;
|
|
293
|
-
margin-bottom: 0;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
// Inline-block all the things for "inline"
|
|
297
|
-
.form-group {
|
|
298
|
-
display: flex;
|
|
299
|
-
flex: 0 0 auto;
|
|
300
|
-
flex-flow: row wrap;
|
|
301
|
-
align-items: center;
|
|
302
|
-
margin-bottom: 0;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
// Allow folks to *not* use `.form-group`
|
|
306
|
-
.form-control {
|
|
307
|
-
display: inline-block;
|
|
308
|
-
width: auto; // Prevent labels from stacking above inputs in `.form-group`
|
|
309
|
-
vertical-align: middle;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
// Make static controls behave like regular ones
|
|
313
|
-
.form-control-plaintext {
|
|
314
|
-
display: inline-block;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
.input-group,
|
|
318
|
-
.custom-select {
|
|
319
|
-
width: auto;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
// Remove default margin on radios/checkboxes that were used for stacking, and
|
|
323
|
-
// then undo the floating of radios and checkboxes to match.
|
|
324
|
-
.form-check {
|
|
325
|
-
display: flex;
|
|
326
|
-
align-items: center;
|
|
327
|
-
justify-content: center;
|
|
328
|
-
width: auto;
|
|
329
|
-
padding-left: 0;
|
|
330
|
-
}
|
|
331
|
-
.form-check-input {
|
|
332
|
-
position: relative;
|
|
333
|
-
flex-shrink: 0;
|
|
334
|
-
margin-top: 0;
|
|
335
|
-
margin-right: $form-check-input-margin-x;
|
|
336
|
-
margin-left: 0;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.custom-control {
|
|
340
|
-
align-items: center;
|
|
341
|
-
justify-content: center;
|
|
342
|
-
}
|
|
343
|
-
.custom-control-label {
|
|
344
|
-
margin-bottom: 0;
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
}
|
|
1
|
+
@import "forms/labels";
|
|
2
|
+
@import "forms/form-text";
|
|
3
|
+
@import "forms/form-control";
|
|
4
|
+
@import "forms/form-select";
|
|
5
|
+
@import "forms/form-check";
|
|
6
|
+
@import "forms/form-file";
|
|
7
|
+
@import "forms/form-range";
|
|
8
|
+
@import "forms/input-group";
|
|
9
|
+
@import "forms/validation";
|