bootstrap 4.0.0.alpha3 → 4.0.0.alpha3.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bootstrap might be problematic. Click here for more details.

Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -2
  3. data/CHANGELOG.md +5 -0
  4. data/LICENSE +1 -1
  5. data/README.md +3 -3
  6. data/Rakefile +11 -8
  7. data/assets/javascripts/bootstrap.js +61 -48
  8. data/assets/javascripts/bootstrap.min.js +4 -4
  9. data/assets/javascripts/bootstrap/alert.js +2 -2
  10. data/assets/javascripts/bootstrap/button.js +4 -2
  11. data/assets/javascripts/bootstrap/carousel.js +10 -6
  12. data/assets/javascripts/bootstrap/collapse.js +2 -2
  13. data/assets/javascripts/bootstrap/dropdown.js +12 -8
  14. data/assets/javascripts/bootstrap/modal.js +9 -12
  15. data/assets/javascripts/bootstrap/popover.js +2 -2
  16. data/assets/javascripts/bootstrap/scrollspy.js +4 -3
  17. data/assets/javascripts/bootstrap/tab.js +2 -2
  18. data/assets/javascripts/bootstrap/tooltip.js +2 -2
  19. data/assets/javascripts/bootstrap/util.js +8 -3
  20. data/assets/stylesheets/_bootstrap-grid.scss +2 -41
  21. data/assets/stylesheets/_bootstrap-reboot.scss +1 -0
  22. data/assets/stylesheets/_bootstrap.scss +5 -7
  23. data/assets/stylesheets/bootstrap/_alert.scss +1 -10
  24. data/assets/stylesheets/bootstrap/_breadcrumb.scss +25 -10
  25. data/assets/stylesheets/bootstrap/_button-group.scss +22 -12
  26. data/assets/stylesheets/bootstrap/_buttons.scss +14 -11
  27. data/assets/stylesheets/bootstrap/_card.scss +59 -30
  28. data/assets/stylesheets/bootstrap/_carousel.scss +25 -24
  29. data/assets/stylesheets/bootstrap/_close.scss +3 -0
  30. data/assets/stylesheets/bootstrap/_code.scss +6 -7
  31. data/assets/stylesheets/bootstrap/_custom-forms.scss +144 -105
  32. data/assets/stylesheets/bootstrap/_custom.scss +4 -0
  33. data/assets/stylesheets/bootstrap/_dropdown.scss +10 -24
  34. data/assets/stylesheets/bootstrap/_forms.scss +97 -185
  35. data/assets/stylesheets/bootstrap/_grid.scss +9 -46
  36. data/assets/stylesheets/bootstrap/_images.scss +3 -4
  37. data/assets/stylesheets/bootstrap/_input-group.scss +25 -26
  38. data/assets/stylesheets/bootstrap/_list-group.scss +33 -50
  39. data/assets/stylesheets/bootstrap/_media.scss +4 -5
  40. data/assets/stylesheets/bootstrap/_mixins.scss +1 -2
  41. data/assets/stylesheets/bootstrap/_modal.scss +13 -27
  42. data/assets/stylesheets/bootstrap/_nav.scss +18 -23
  43. data/assets/stylesheets/bootstrap/_navbar.scss +54 -26
  44. data/assets/stylesheets/bootstrap/_normalize.scss +164 -168
  45. data/assets/stylesheets/bootstrap/_pagination.scss +1 -1
  46. data/assets/stylesheets/bootstrap/_popover.scss +12 -5
  47. data/assets/stylesheets/bootstrap/_print.scss +93 -65
  48. data/assets/stylesheets/bootstrap/_progress.scss +43 -54
  49. data/assets/stylesheets/bootstrap/_reboot.scss +59 -13
  50. data/assets/stylesheets/bootstrap/_tables.scss +32 -27
  51. data/assets/stylesheets/bootstrap/_tags.scss +77 -0
  52. data/assets/stylesheets/bootstrap/_tooltip.scss +7 -5
  53. data/assets/stylesheets/bootstrap/_type.scss +22 -29
  54. data/assets/stylesheets/bootstrap/_utilities.scss +9 -95
  55. data/assets/stylesheets/bootstrap/_variables.scss +302 -139
  56. data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +1 -1
  57. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +22 -9
  58. data/assets/stylesheets/bootstrap/mixins/_cards.scss +8 -2
  59. data/assets/stylesheets/bootstrap/mixins/_forms.scss +7 -4
  60. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +4 -4
  61. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +37 -11
  62. data/assets/stylesheets/bootstrap/mixins/_grid.scss +18 -9
  63. data/assets/stylesheets/bootstrap/mixins/_hover.scss +10 -9
  64. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +2 -3
  65. data/assets/stylesheets/bootstrap/mixins/_progress.scss +5 -0
  66. data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +2 -3
  67. data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +1 -1
  68. data/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +3 -3
  69. data/assets/stylesheets/bootstrap/mixins/{_label.scss → _tag.scss} +2 -2
  70. data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +1 -1
  71. data/assets/stylesheets/bootstrap/{_utilities-background.scss → utilities/_background.scss} +1 -4
  72. data/assets/stylesheets/bootstrap/utilities/_clearfix.scss +3 -0
  73. data/assets/stylesheets/bootstrap/utilities/_display.scss +13 -0
  74. data/assets/stylesheets/bootstrap/utilities/_flex.scss +37 -0
  75. data/assets/stylesheets/bootstrap/utilities/_pulls.scss +13 -0
  76. data/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +11 -0
  77. data/assets/stylesheets/bootstrap/{_utilities-spacing.scss → utilities/_spacing.scss} +4 -0
  78. data/assets/stylesheets/bootstrap/utilities/_text.scss +51 -0
  79. data/assets/stylesheets/bootstrap/{_utilities-responsive.scss → utilities/_visibility.scss} +9 -1
  80. data/bootstrap.gemspec +1 -1
  81. data/lib/bootstrap.rb +6 -6
  82. data/lib/bootstrap/engine.rb +2 -0
  83. data/lib/bootstrap/version.rb +2 -2
  84. data/tasks/updater/network.rb +3 -1
  85. data/templates/project/_bootstrap-variables.scss +303 -140
  86. data/test/dummy_rails/config/boot.rb +1 -1
  87. data/test/gemfiles/rails_4_2.gemfile +4 -4
  88. data/test/gemfiles/rails_5_0.gemfile +12 -0
  89. data/test/rails_test.rb +1 -1
  90. data/test/support/dummy_rails_integration.rb +2 -2
  91. metadata +19 -14
  92. data/assets/stylesheets/bootstrap/_labels.scss +0 -77
  93. data/assets/stylesheets/bootstrap/_pager.scss +0 -57
  94. data/assets/stylesheets/bootstrap/mixins/_center-block.scss +0 -7
  95. data/test/gemfiles/rails_head.gemfile +0 -20
@@ -0,0 +1,4 @@
1
+ // Bootstrap overrides
2
+ //
3
+ // Copy variables from `_variables.scss` to this file to override default values
4
+ // without modifying source files.
@@ -10,8 +10,7 @@
10
10
  display: inline-block;
11
11
  width: 0;
12
12
  height: 0;
13
- margin-right: .25rem;
14
- margin-left: .25rem;
13
+ margin-left: $caret-width;
15
14
  vertical-align: middle;
16
15
  content: "";
17
16
  border-top: $caret-width solid;
@@ -42,9 +41,9 @@
42
41
  z-index: $zindex-dropdown;
43
42
  display: none; // none by default, but block on "open" of the menu
44
43
  float: left;
45
- min-width: 160px;
46
- padding: 5px 0;
47
- margin: 2px 0 0; // override default ul
44
+ min-width: $dropdown-min-width;
45
+ padding: $dropdown-padding-y 0;
46
+ margin: $dropdown-margin-top 0 0; // override default ul
48
47
  font-size: $font-size-base;
49
48
  color: $body-color;
50
49
  text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
@@ -53,7 +52,7 @@
53
52
  background-clip: padding-box;
54
53
  border: $dropdown-border-width solid $dropdown-border-color;
55
54
  @include border-radius($border-radius);
56
- @include box-shadow(0 6px 12px rgba(0,0,0,.175));
55
+ @include box-shadow($dropdown-box-shadow);
57
56
  }
58
57
 
59
58
  // Dividers (basically an `<hr>`) within the dropdown
@@ -67,10 +66,9 @@
67
66
  .dropdown-item {
68
67
  display: block;
69
68
  width: 100%; // For `<button>`s
70
- padding: 3px 20px;
69
+ padding: 3px $dropdown-item-padding-x;
71
70
  clear: both;
72
71
  font-weight: normal;
73
- line-height: $line-height;
74
72
  color: $dropdown-link-color;
75
73
  text-align: inherit; // For `<button>`s
76
74
  white-space: nowrap; // prevent links from randomly breaking onto new lines
@@ -133,12 +131,7 @@
133
131
  right: 0;
134
132
  left: auto; // Reset the default from `.dropdown-menu`
135
133
  }
136
- // With v3, we enabled auto-flipping if you have a dropdown within a right
137
- // aligned nav component. To enable the undoing of that, we provide an override
138
- // to restore the default dropdown menu alignment.
139
- //
140
- // This is only for left-aligning a dropdown menu within a `.navbar-right` or
141
- // `.pull-right` nav component.
134
+
142
135
  .dropdown-menu-left {
143
136
  right: auto;
144
137
  left: 0;
@@ -147,9 +140,8 @@
147
140
  // Dropdown section headers
148
141
  .dropdown-header {
149
142
  display: block;
150
- padding: 3px 20px;
143
+ padding: $dropdown-padding-y $dropdown-item-padding-x;
151
144
  font-size: $font-size-sm;
152
- line-height: $line-height;
153
145
  color: $dropdown-header-color;
154
146
  white-space: nowrap; // as with > li > a
155
147
  }
@@ -161,13 +153,7 @@
161
153
  right: 0;
162
154
  bottom: 0;
163
155
  left: 0;
164
- z-index: ($zindex-dropdown - 10);
165
- }
166
-
167
- // Right aligned dropdowns
168
- .pull-right > .dropdown-menu {
169
- right: 0;
170
- left: auto;
156
+ z-index: $zindex-dropdown-backdrop;
171
157
  }
172
158
 
173
159
  // Allow for dropdowns to go bottom up (aka, dropup-menu)
@@ -188,6 +174,6 @@
188
174
  .dropdown-menu {
189
175
  top: auto;
190
176
  bottom: 100%;
191
- margin-bottom: 2px;
177
+ margin-bottom: $dropdown-margin-top;
192
178
  }
193
179
  }
@@ -1,3 +1,5 @@
1
+ // scss-lint:disable QualifyingElement
2
+
1
3
  //
2
4
  // Textual form controls
3
5
  //
@@ -9,25 +11,18 @@
9
11
  // height: $input-height;
10
12
  padding: $input-padding-y $input-padding-x;
11
13
  font-size: $font-size-base;
12
- line-height: $line-height;
14
+ line-height: $input-line-height;
13
15
  color: $input-color;
14
16
  background-color: $input-bg;
15
17
  // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214.
16
18
  background-image: none;
19
+ background-clip: padding-box;
17
20
  border: $input-btn-border-width solid $input-border-color;
18
21
  // Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
19
22
  @include border-radius($input-border-radius);
20
23
  @include box-shadow($input-box-shadow);
21
24
  @include transition(border-color ease-in-out .15s, box-shadow ease-in-out .15s);
22
25
 
23
- // Make inputs at least the height of their button counterpart (base line-height + padding + border).
24
- // Only apply the height to textual inputs and some selects.
25
- // &:not(textarea),
26
- // &:not(select[size]),
27
- // &:not(select[multiple]) {
28
- // height: $input-height;
29
- // }
30
-
31
26
  // Unstyle the caret on `<select>`s in IE10+.
32
27
  &::-ms-expand {
33
28
  background-color: transparent;
@@ -61,6 +56,21 @@
61
56
  }
62
57
  }
63
58
 
59
+ select.form-control {
60
+ &:not([size]):not([multiple]) {
61
+ height: $input-height;
62
+ }
63
+
64
+ &:focus::-ms-value {
65
+ // Suppress the nested default white text on blue background highlight given to
66
+ // the selected option text when the (still closed) <select> receives focus
67
+ // in IE and (under certain conditions) Edge, as it looks bad and cannot be made to
68
+ // match the appearance of the native widget.
69
+ // See https://github.com/twbs/bootstrap/issues/19398.
70
+ color: $input-color;
71
+ background-color: $input-bg;
72
+ }
73
+ }
64
74
 
65
75
  // Make file inputs better match text inputs by forcing them to new lines.
66
76
  .form-control-file,
@@ -75,42 +85,36 @@
75
85
 
76
86
  // For use with horizontal and inline forms, when you need the label text to
77
87
  // align with the form controls.
78
- .form-control-label {
79
- padding: $input-padding-y $input-padding-x;
88
+ .col-form-label {
89
+ padding-top: $input-padding-y;
90
+ padding-bottom: $input-padding-y;
80
91
  margin-bottom: 0; // Override the `<label>` default
81
92
  }
82
93
 
94
+ .col-form-label-lg {
95
+ padding-top: $input-padding-y-lg;
96
+ padding-bottom: $input-padding-y-lg;
97
+ font-size: $font-size-lg;
98
+ }
99
+
100
+ .col-form-label-sm {
101
+ padding-top: $input-padding-y-sm;
102
+ padding-bottom: $input-padding-y-sm;
103
+ font-size: $font-size-sm;
104
+ }
83
105
 
84
- // Todo: clear this up
85
106
 
86
- // Special styles for iOS temporal inputs
87
107
  //
88
- // In Mobile Safari, setting `display: block` on temporal inputs causes the
89
- // text within the input to become vertically misaligned. As a workaround, we
90
- // set a pixel line-height that matches the given height of the input, but only
91
- // for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
108
+ // Legends
92
109
  //
93
- // Note that as of 8.3, iOS doesn't support `datetime` or `week`.
94
-
95
- @media screen and (-webkit-min-device-pixel-ratio: 0) {
96
- input[type="date"],
97
- input[type="time"],
98
- input[type="datetime-local"],
99
- input[type="month"] {
100
- &.form-control {
101
- line-height: $input-height;
102
- }
103
110
 
104
- &.input-sm,
105
- .input-group-sm &.form-control {
106
- line-height: $input-height-sm;
107
- }
108
-
109
- &.input-lg,
110
- .input-group-lg &.form-control {
111
- line-height: $input-height-lg;
112
- }
113
- }
111
+ // For use with horizontal and inline forms, when you need the legend text to
112
+ // be the same size as regular labels, and to align with the form controls.
113
+ .col-form-legend {
114
+ padding-top: $input-padding-y;
115
+ padding-bottom: $input-padding-y;
116
+ margin-bottom: 0;
117
+ font-size: $font-size-base;
114
118
  }
115
119
 
116
120
 
@@ -144,21 +148,29 @@
144
148
  // issue documented in https://github.com/twbs/bootstrap/issues/15074.
145
149
 
146
150
  .form-control-sm {
147
- // height: $input-height-sm;
148
151
  padding: $input-padding-y-sm $input-padding-x-sm;
149
152
  font-size: $font-size-sm;
150
- line-height: $line-height-sm;
151
153
  @include border-radius($input-border-radius-sm);
152
154
  }
153
155
 
156
+ select.form-control-sm {
157
+ &:not([size]):not([multiple]) {
158
+ height: $input-height-sm;
159
+ }
160
+ }
161
+
154
162
  .form-control-lg {
155
- // height: $input-height-lg;
156
163
  padding: $input-padding-y-lg $input-padding-x-lg;
157
164
  font-size: $font-size-lg;
158
- line-height: $line-height-lg;
159
165
  @include border-radius($input-border-radius-lg);
160
166
  }
161
167
 
168
+ select.form-control-lg {
169
+ &:not([size]):not([multiple]) {
170
+ height: $input-height-lg;
171
+ }
172
+ }
173
+
162
174
 
163
175
  // Form groups
164
176
  //
@@ -169,103 +181,84 @@
169
181
  margin-bottom: $form-group-margin-bottom;
170
182
  }
171
183
 
184
+ .form-text {
185
+ display: block;
186
+ margin-top: ($spacer * .25);
187
+ }
188
+
172
189
 
173
190
  // Checkboxes and radios
174
191
  //
175
192
  // Indent the labels to position radios/checkboxes as hanging controls.
176
193
 
177
- .radio,
178
- .checkbox {
194
+ .form-check {
179
195
  position: relative;
180
196
  display: block;
181
- // margin-top: ($spacer * .75);
182
197
  margin-bottom: ($spacer * .75);
183
198
 
184
- label {
185
- padding-left: 1.25rem;
186
- margin-bottom: 0;
187
- font-weight: normal;
188
- cursor: pointer;
199
+ // Move up sibling radios or checkboxes for tighter spacing
200
+ + .form-check {
201
+ margin-top: -.25rem;
202
+ }
189
203
 
190
- // When there's no labels, don't position the input.
191
- input:only-child {
192
- position: static;
204
+ &.disabled {
205
+ .form-check-label {
206
+ color: $text-muted;
207
+ cursor: $cursor-disabled;
193
208
  }
194
209
  }
195
210
  }
196
- .radio input[type="radio"],
197
- .radio-inline input[type="radio"],
198
- .checkbox input[type="checkbox"],
199
- .checkbox-inline input[type="checkbox"] {
211
+
212
+ .form-check-label {
213
+ padding-left: 1.25rem;
214
+ margin-bottom: 0; // Override default `<label>` bottom margin
215
+ cursor: pointer;
216
+ }
217
+
218
+ .form-check-input {
200
219
  position: absolute;
201
220
  margin-top: .25rem;
202
- // margin-top: 4px \9;
203
221
  margin-left: -1.25rem;
204
- }
205
222
 
206
- .radio + .radio,
207
- .checkbox + .checkbox {
208
- // Move up sibling radios or checkboxes for tighter spacing
209
- margin-top: -.25rem;
223
+ &:only-child {
224
+ position: static;
225
+ }
210
226
  }
211
227
 
212
228
  // Radios and checkboxes on same line
213
- .radio-inline,
214
- .checkbox-inline {
229
+ .form-check-inline {
215
230
  position: relative;
216
231
  display: inline-block;
217
232
  padding-left: 1.25rem;
218
- margin-bottom: 0;
219
- font-weight: normal;
233
+ margin-bottom: 0; // Override default `<label>` bottom margin
220
234
  vertical-align: middle;
221
235
  cursor: pointer;
222
- }
223
- .radio-inline + .radio-inline,
224
- .checkbox-inline + .checkbox-inline {
225
- margin-top: 0;
226
- margin-left: .75rem;
227
- }
228
236
 
229
- // Apply same disabled cursor tweak as for inputs
230
- // Some special care is needed because <label>s don't inherit their parent's `cursor`.
231
- //
232
- // Note: Neither radios nor checkboxes can be readonly.
233
- input[type="radio"],
234
- input[type="checkbox"] {
235
- &:disabled,
236
- &.disabled {
237
- cursor: $cursor-disabled;
237
+ + .form-check-inline {
238
+ margin-left: .75rem;
238
239
  }
239
- }
240
- // These classes are used directly on <label>s
241
- .radio-inline,
242
- .checkbox-inline {
240
+
243
241
  &.disabled {
244
242
  cursor: $cursor-disabled;
245
243
  }
246
244
  }
247
- // These classes are used on elements with <label> descendants
248
- .radio,
249
- .checkbox {
250
- &.disabled {
251
- label {
252
- cursor: $cursor-disabled;
253
- }
254
- }
255
- }
256
245
 
257
246
 
258
247
  // Form control feedback states
259
248
  //
260
249
  // Apply contextual and semantic states to individual form controls.
261
250
 
251
+ .form-control-feedback {
252
+ margin-top: ($spacer * .25);
253
+ }
254
+
262
255
  .form-control-success,
263
256
  .form-control-warning,
264
257
  .form-control-danger {
265
258
  padding-right: ($input-padding-x * 3);
266
259
  background-repeat: no-repeat;
267
- background-position: center right ($input-height * .25);
268
- background-size: ($input-height * .65) ($input-height * .65);
260
+ background-position: center right ($input-height / 4);
261
+ background-size: ($input-height / 2) ($input-height / 2);
269
262
  }
270
263
 
271
264
  // Form validation states
@@ -273,7 +266,7 @@ input[type="checkbox"] {
273
266
  @include form-control-validation($brand-success);
274
267
 
275
268
  .form-control-success {
276
- background-image: url($form-icon-success);
269
+ background-image: $form-icon-success;
277
270
  }
278
271
  }
279
272
 
@@ -281,7 +274,7 @@ input[type="checkbox"] {
281
274
  @include form-control-validation($brand-warning);
282
275
 
283
276
  .form-control-warning {
284
- background-image: url($form-icon-warning);
277
+ background-image: $form-icon-warning;
285
278
  }
286
279
  }
287
280
 
@@ -289,89 +282,11 @@ input[type="checkbox"] {
289
282
  @include form-control-validation($brand-danger);
290
283
 
291
284
  .form-control-danger {
292
- background-image: url($form-icon-danger);
285
+ background-image: $form-icon-danger;
293
286
  }
294
287
  }
295
288
 
296
289
 
297
-
298
-
299
- // .form-control-success {
300
- // background-image: url("#{$form-icon-success}");
301
- // border-color: $brand-success;
302
- // }
303
- //
304
- // .form-control-warning {
305
- // background-image: url("#{$form-icon-warning}");
306
- // border-color: $brand-warning;
307
- // }
308
- //
309
- // .form-control-error {
310
- // background-image: url("#{$form-icon-danger}");
311
- // border-color: $brand-danger;
312
- // }
313
-
314
-
315
- // .has-feedback {
316
- // // Enable absolute positioning
317
- // position: relative;
318
- //
319
- // // Ensure icons don't overlap text
320
- // .form-control {
321
- // padding-right: ($input-height * 1.25);
322
- // }
323
- // }
324
- // // Feedback icon
325
- // .form-control-feedback {
326
- // position: absolute;
327
- // top: 0;
328
- // right: 0;
329
- // z-index: 2; // Ensure icon is above input groups
330
- // display: block;
331
- // width: $input-height;
332
- // height: $input-height;
333
- // line-height: $input-height;
334
- // text-align: center;
335
- // pointer-events: none;
336
- // }
337
- // .input-lg + .form-control-feedback,
338
- // .input-group-lg + .form-control-feedback {
339
- // width: $input-height-lg;
340
- // height: $input-height-lg;
341
- // line-height: $input-height-lg;
342
- // }
343
- // .input-sm + .form-control-feedback,
344
- // .input-group-sm + .form-control-feedback {
345
- // width: $input-height-sm;
346
- // height: $input-height-sm;
347
- // line-height: $input-height-sm;
348
- // }
349
- //
350
- // // Form validation states
351
- // .has-success {
352
- // @include form-control-validation($state-success-text, $state-success-text, $state-success-bg);
353
- // }
354
- // .has-warning {
355
- // @include form-control-validation($state-warning-text, $state-warning-text, $state-warning-bg);
356
- // }
357
- // .has-danger {
358
- // @include form-control-validation($state-danger-text, $state-danger-text, $state-danger-bg);
359
- // }
360
- //
361
- // // Reposition feedback icon if input has visible label above
362
- // .has-feedback label {
363
- //
364
- // ~ .form-control-feedback {
365
- // // TODO: redo this since we nuked the `$line-height-computed`
366
- // top: 0; // Height of the `label` and its margin
367
- // }
368
- //
369
- // &.sr-only ~ .form-control-feedback {
370
- // top: 0;
371
- // }
372
- // }
373
-
374
-
375
290
  // Inline forms
376
291
  //
377
292
  // Make forms appear inline(-block) by adding the `.form-inline` class. Inline
@@ -427,19 +342,16 @@ input[type="checkbox"] {
427
342
 
428
343
  // Remove default margin on radios/checkboxes that were used for stacking, and
429
344
  // then undo the floating of radios and checkboxes to match.
430
- .radio,
431
- .checkbox {
345
+ .form-check {
432
346
  display: inline-block;
433
347
  margin-top: 0;
434
348
  margin-bottom: 0;
435
349
  vertical-align: middle;
436
-
437
- label {
438
- padding-left: 0;
439
- }
440
350
  }
441
- .radio input[type="radio"],
442
- .checkbox input[type="checkbox"] {
351
+ .form-check-label {
352
+ padding-left: 0;
353
+ }
354
+ .form-check-input {
443
355
  position: relative;
444
356
  margin-left: 0;
445
357
  }