bootstrap 4.0.0.alpha4 → 4.0.0.alpha5

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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/assets/javascripts/bootstrap.js +1625 -1768
  4. data/assets/javascripts/bootstrap.min.js +3 -3
  5. data/assets/javascripts/bootstrap/alert.js +83 -96
  6. data/assets/javascripts/bootstrap/button.js +61 -68
  7. data/assets/javascripts/bootstrap/carousel.js +250 -270
  8. data/assets/javascripts/bootstrap/collapse.js +176 -190
  9. data/assets/javascripts/bootstrap/dropdown.js +143 -155
  10. data/assets/javascripts/bootstrap/modal.js +286 -310
  11. data/assets/javascripts/bootstrap/popover.js +61 -69
  12. data/assets/javascripts/bootstrap/scrollspy.js +145 -157
  13. data/assets/javascripts/bootstrap/tab.js +122 -132
  14. data/assets/javascripts/bootstrap/tooltip.js +313 -341
  15. data/assets/javascripts/bootstrap/util.js +9 -16
  16. data/assets/stylesheets/_bootstrap.scss +1 -1
  17. data/assets/stylesheets/bootstrap/_alert.scss +3 -3
  18. data/assets/stylesheets/bootstrap/_animation.scss +12 -3
  19. data/assets/stylesheets/bootstrap/_button-group.scss +1 -0
  20. data/assets/stylesheets/bootstrap/_card.scss +3 -1
  21. data/assets/stylesheets/bootstrap/_custom-forms.scss +7 -10
  22. data/assets/stylesheets/bootstrap/_dropdown.scss +1 -0
  23. data/assets/stylesheets/bootstrap/_forms.scss +16 -6
  24. data/assets/stylesheets/bootstrap/_images.scss +2 -11
  25. data/assets/stylesheets/bootstrap/_list-group.scss +2 -0
  26. data/assets/stylesheets/bootstrap/_mixins.scss +1 -1
  27. data/assets/stylesheets/bootstrap/_modal.scss +4 -2
  28. data/assets/stylesheets/bootstrap/_navbar.scss +72 -13
  29. data/assets/stylesheets/bootstrap/_normalize.scss +51 -53
  30. data/assets/stylesheets/bootstrap/_popover.scss +74 -50
  31. data/assets/stylesheets/bootstrap/_print.scss +8 -2
  32. data/assets/stylesheets/bootstrap/_reboot.scss +7 -12
  33. data/assets/stylesheets/bootstrap/_tables.scss +1 -1
  34. data/assets/stylesheets/bootstrap/_tooltip.scss +15 -12
  35. data/assets/stylesheets/bootstrap/_utilities.scss +3 -1
  36. data/assets/stylesheets/bootstrap/_variables.scss +56 -28
  37. data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -1
  38. data/assets/stylesheets/bootstrap/mixins/{_pulls.scss → _float.scss} +2 -2
  39. data/assets/stylesheets/bootstrap/mixins/_forms.scss +6 -11
  40. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +8 -9
  41. data/assets/stylesheets/bootstrap/mixins/_grid.scss +31 -8
  42. data/assets/stylesheets/bootstrap/mixins/_hover.scss +1 -1
  43. data/assets/stylesheets/bootstrap/mixins/_image.scss +6 -4
  44. data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +1 -1
  45. data/assets/stylesheets/bootstrap/utilities/_align.scss +6 -0
  46. data/assets/stylesheets/bootstrap/utilities/_borders.scss +30 -0
  47. data/assets/stylesheets/bootstrap/utilities/_float.scss +13 -0
  48. data/assets/stylesheets/bootstrap/utilities/_spacing.scss +10 -9
  49. data/assets/stylesheets/bootstrap/utilities/_text.scss +8 -0
  50. data/lib/bootstrap/version.rb +2 -2
  51. data/templates/project/_bootstrap-variables.scss +55 -27
  52. metadata +6 -4
  53. data/assets/stylesheets/bootstrap/utilities/_pulls.scss +0 -13
@@ -1,14 +1,16 @@
1
- /*! normalize.css v4.0.0 | MIT License | github.com/necolas/normalize.css */
1
+ /*! normalize.css v4.2.0 | MIT License | github.com/necolas/normalize.css */
2
2
 
3
3
  //
4
4
  // 1. Change the default font family in all browsers (opinionated).
5
- // 2. Prevent adjustments of font size after orientation changes in IE and iOS.
5
+ // 2. Correct the line height in all browsers.
6
+ // 3. Prevent adjustments of font size after orientation changes in IE and iOS.
6
7
  //
7
8
 
8
9
  html {
9
10
  font-family: sans-serif; // 1
10
- -ms-text-size-adjust: 100%; // 2
11
- -webkit-text-size-adjust: 100%; // 2
11
+ line-height: 1.15; // 2
12
+ -ms-text-size-adjust: 100%; // 3
13
+ -webkit-text-size-adjust: 100%; // 3
12
14
  }
13
15
 
14
16
  //
@@ -76,7 +78,7 @@ progress {
76
78
  // 1. Add the correct display in IE.
77
79
  //
78
80
 
79
- template, // 2
81
+ template, // 1
80
82
  [hidden] {
81
83
  display: none;
82
84
  }
@@ -85,11 +87,13 @@ template, // 2
85
87
  // ==========================================================================
86
88
 
87
89
  //
88
- // Remove the gray background on active links in IE 10.
90
+ // 1. Remove the gray background on active links in IE 10.
91
+ // 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
89
92
  //
90
93
 
91
94
  a {
92
- background-color: transparent;
95
+ background-color: transparent; // 1
96
+ -webkit-text-decoration-skip: objects; // 2
93
97
  }
94
98
 
95
99
  //
@@ -248,14 +252,17 @@ hr {
248
252
  // ==========================================================================
249
253
 
250
254
  //
251
- // Change font properties to `inherit` in all browsers (opinionated).
255
+ // 1. Change font properties to `inherit` in all browsers (opinionated).
256
+ // 2. Remove the margin in Firefox and Safari.
252
257
  //
253
258
 
254
259
  button,
255
260
  input,
261
+ optgroup,
256
262
  select,
257
263
  textarea {
258
- font: inherit;
264
+ font: inherit; // 1
265
+ margin: 0; // 2
259
266
  }
260
267
 
261
268
  //
@@ -269,30 +276,16 @@ optgroup {
269
276
  //
270
277
  // Show the overflow in IE.
271
278
  // 1. Show the overflow in Edge.
272
- // 2. Show the overflow in Edge, Firefox, and IE.
273
279
  //
274
280
 
275
281
  button,
276
- input, // 1
277
- select { // 2
282
+ input { // 1
278
283
  overflow: visible;
279
284
  }
280
285
 
281
286
  //
282
- // Remove the margin in Safari.
283
- // 1. Remove the margin in Firefox and Safari.
284
- //
285
-
286
- button,
287
- input,
288
- select,
289
- textarea { // 1
290
- margin: 0;
291
- }
292
-
293
- //
294
- // Remove the inheritence of text transform in Edge, Firefox, and IE.
295
- // 1. Remove the inheritence of text transform in Firefox.
287
+ // Remove the inheritance of text transform in Edge, Firefox, and IE.
288
+ // 1. Remove the inheritance of text transform in Firefox.
296
289
  //
297
290
 
298
291
  button,
@@ -300,29 +293,10 @@ select { // 1
300
293
  text-transform: none;
301
294
  }
302
295
 
303
- //
304
- // Change the cursor in all browsers (opinionated).
305
- //
306
-
307
- button,
308
- [type="button"],
309
- [type="reset"],
310
- [type="submit"] {
311
- cursor: pointer;
312
- }
313
-
314
- //
315
- // Restore the default cursor to disabled elements unset by the previous rule.
316
- //
317
-
318
- [disabled] {
319
- cursor: default;
320
- }
321
-
322
296
  //
323
297
  // 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
324
298
  // controls in Android 4.
325
- // 2. Correct the inability to style clickable types in iOS.
299
+ // 2. Correct the inability to style clickable types in iOS and Safari.
326
300
  //
327
301
 
328
302
  button,
@@ -337,8 +311,10 @@ html [type="button"], // 1
337
311
  //
338
312
 
339
313
  button::-moz-focus-inner,
340
- input::-moz-focus-inner {
341
- border: 0;
314
+ [type="button"]::-moz-focus-inner,
315
+ [type="reset"]::-moz-focus-inner,
316
+ [type="submit"]::-moz-focus-inner {
317
+ border-style: none;
342
318
  padding: 0;
343
319
  }
344
320
 
@@ -347,7 +323,9 @@ input::-moz-focus-inner {
347
323
  //
348
324
 
349
325
  button:-moz-focusring,
350
- input:-moz-focusring {
326
+ [type="button"]:-moz-focusring,
327
+ [type="reset"]:-moz-focusring,
328
+ [type="submit"]:-moz-focusring {
351
329
  outline: 1px dotted ButtonText;
352
330
  }
353
331
 
@@ -406,19 +384,39 @@ textarea {
406
384
  }
407
385
 
408
386
  //
409
- // Correct the odd appearance of search inputs in Chrome and Safari.
387
+ // 1. Correct the odd appearance in Chrome and Safari.
388
+ // 2. Correct the outline style in Safari.
410
389
  //
411
390
 
412
391
  [type="search"] {
413
- -webkit-appearance: textfield;
392
+ -webkit-appearance: textfield; // 1
393
+ outline-offset: -2px; // 2
414
394
  }
415
395
 
416
396
  //
417
- // Remove the inner padding and cancel buttons in Chrome on OS X and
418
- // Safari on OS X.
397
+ // Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
419
398
  //
420
399
 
421
400
  [type="search"]::-webkit-search-cancel-button,
422
401
  [type="search"]::-webkit-search-decoration {
423
402
  -webkit-appearance: none;
424
403
  }
404
+
405
+ //
406
+ // Correct the text style of placeholders in Chrome, Edge, and Safari.
407
+ //
408
+
409
+ ::-webkit-input-placeholder {
410
+ color: inherit;
411
+ opacity: 0.54;
412
+ }
413
+
414
+ //
415
+ // 1. Correct the inability to style clickable types in iOS and Safari.
416
+ // 2. Change font properties to `inherit` in Safari.
417
+ //
418
+
419
+ ::-webkit-file-upload-button {
420
+ -webkit-appearance: button; // 1
421
+ font: inherit; // 2
422
+ }
@@ -25,19 +25,22 @@
25
25
  &.bs-tether-element-attached-bottom {
26
26
  margin-top: -$popover-arrow-width;
27
27
 
28
- .popover-arrow {
29
- bottom: -$popover-arrow-outer-width;
28
+ &::before,
29
+ &::after {
30
30
  left: 50%;
31
+ border-bottom-width: 0;
32
+ }
33
+
34
+ &::before {
35
+ bottom: -$popover-arrow-outer-width;
31
36
  margin-left: -$popover-arrow-outer-width;
32
37
  border-top-color: $popover-arrow-outer-color;
33
- border-bottom-width: 0;
34
- &::after {
35
- bottom: 1px;
36
- margin-left: -$popover-arrow-width;
37
- content: "";
38
- border-top-color: $popover-arrow-color;
39
- border-bottom-width: 0;
40
- }
38
+ }
39
+
40
+ &::after {
41
+ bottom: -($popover-arrow-outer-width - 1);
42
+ margin-left: -$popover-arrow-width;
43
+ border-top-color: $popover-arrow-color;
41
44
  }
42
45
  }
43
46
 
@@ -45,19 +48,22 @@
45
48
  &.bs-tether-element-attached-left {
46
49
  margin-left: $popover-arrow-width;
47
50
 
48
- .popover-arrow {
51
+ &::before,
52
+ &::after {
49
53
  top: 50%;
54
+ border-left-width: 0;
55
+ }
56
+
57
+ &::before {
50
58
  left: -$popover-arrow-outer-width;
51
59
  margin-top: -$popover-arrow-outer-width;
52
60
  border-right-color: $popover-arrow-outer-color;
53
- border-left-width: 0;
54
- &::after {
55
- bottom: -$popover-arrow-width;
56
- left: 1px;
57
- content: "";
58
- border-right-color: $popover-arrow-color;
59
- border-left-width: 0;
60
- }
61
+ }
62
+
63
+ &::after {
64
+ left: -($popover-arrow-outer-width - 1);
65
+ margin-top: -($popover-arrow-outer-width - 1);
66
+ border-right-color: $popover-arrow-color;
61
67
  }
62
68
  }
63
69
 
@@ -65,19 +71,34 @@
65
71
  &.bs-tether-element-attached-top {
66
72
  margin-top: $popover-arrow-width;
67
73
 
68
- .popover-arrow {
69
- top: -$popover-arrow-outer-width;
74
+ &::before,
75
+ &::after {
70
76
  left: 50%;
71
- margin-left: -$popover-arrow-outer-width;
72
77
  border-top-width: 0;
78
+ }
79
+
80
+ &::before {
81
+ top: -$popover-arrow-outer-width;
82
+ margin-left: -$popover-arrow-outer-width;
73
83
  border-bottom-color: $popover-arrow-outer-color;
74
- &::after {
75
- top: 1px;
76
- margin-left: -$popover-arrow-width;
77
- content: "";
78
- border-top-width: 0;
79
- border-bottom-color: $popover-arrow-color;
80
- }
84
+ }
85
+
86
+ &::after {
87
+ top: -($popover-arrow-outer-width - 1);
88
+ margin-left: -$popover-arrow-width;
89
+ border-bottom-color: $popover-title-bg;
90
+ }
91
+
92
+ // This will remove the popover-title's border just below the arrow
93
+ .popover-title::before {
94
+ position: absolute;
95
+ top: 0;
96
+ left: 50%;
97
+ display: block;
98
+ width: 20px;
99
+ margin-left: -10px;
100
+ content: "";
101
+ border-bottom: 1px solid $popover-title-bg;
81
102
  }
82
103
  }
83
104
 
@@ -85,19 +106,22 @@
85
106
  &.bs-tether-element-attached-right {
86
107
  margin-left: -$popover-arrow-width;
87
108
 
88
- .popover-arrow {
109
+ &::before,
110
+ &::after {
89
111
  top: 50%;
112
+ border-right-width: 0;
113
+ }
114
+
115
+ &::before {
90
116
  right: -$popover-arrow-outer-width;
91
117
  margin-top: -$popover-arrow-outer-width;
92
- border-right-width: 0;
93
118
  border-left-color: $popover-arrow-outer-color;
94
- &::after {
95
- right: 1px;
96
- bottom: -$popover-arrow-width;
97
- content: "";
98
- border-right-width: 0;
99
- border-left-color: $popover-arrow-color;
100
- }
119
+ }
120
+
121
+ &::after {
122
+ right: -($popover-arrow-outer-width - 1);
123
+ margin-top: -($popover-arrow-outer-width - 1);
124
+ border-left-color: $popover-arrow-color;
101
125
  }
102
126
  }
103
127
  }
@@ -127,21 +151,21 @@
127
151
  //
128
152
  // .popover-arrow is outer, .popover-arrow::after is inner
129
153
 
130
- .popover-arrow {
131
- &,
132
- &::after {
133
- position: absolute;
134
- display: block;
135
- width: 0;
136
- height: 0;
137
- border-color: transparent;
138
- border-style: solid;
139
- }
154
+ .popover::before,
155
+ .popover::after {
156
+ position: absolute;
157
+ display: block;
158
+ width: 0;
159
+ height: 0;
160
+ border-color: transparent;
161
+ border-style: solid;
140
162
  }
141
- .popover-arrow {
163
+
164
+ .popover::before {
165
+ content: "";
142
166
  border-width: $popover-arrow-outer-width;
143
167
  }
144
- .popover-arrow::after {
168
+ .popover::after {
145
169
  content: "";
146
170
  border-width: $popover-arrow-width;
147
171
  }
@@ -14,7 +14,10 @@
14
14
  *::before,
15
15
  *::after,
16
16
  *::first-letter,
17
- *::first-line {
17
+ p::first-line,
18
+ div::first-line,
19
+ blockquote::first-line,
20
+ li::first-line {
18
21
  // Bootstrap specific; comment out `color` and `background`
19
22
  //color: #000 !important; // Black prints faster:
20
23
  // http://www.sanbeiji.com/archives/953
@@ -45,9 +48,12 @@
45
48
 
46
49
  //a[href^="#"]::after,
47
50
  //a[href^="javascript:"]::after {
48
- // content: "";
51
+ // content: "";
49
52
  //}
50
53
 
54
+ pre {
55
+ white-space: pre-wrap !important;
56
+ }
51
57
  pre,
52
58
  blockquote {
53
59
  border: $border-width solid #999; // Bootstrap custom code; using `$border-width` instead of 1px
@@ -15,7 +15,7 @@
15
15
  //
16
16
  // Heads up! This reset may cause conflicts with some third-party widgets. For
17
17
  // recommendations on resolving such conflicts, see
18
- // http://getbootstrap.com/getting-started/#third-box-sizing.
18
+ // https://getbootstrap.com/getting-started/#third-box-sizing.
19
19
  //
20
20
  // Credit: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
21
21
 
@@ -33,15 +33,15 @@ html {
33
33
  // Make viewport responsive
34
34
  //
35
35
  // @viewport is needed because IE 10+ doesn't honor <meta name="viewport"> in
36
- // some cases. See http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/.
36
+ // some cases. See https://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/.
37
37
  // Eventually @viewport will replace <meta name="viewport">.
38
38
  //
39
39
  // However, `device-width` is broken on IE 10 on Windows (Phone) 8,
40
- // (see http://timkadlec.com/2013/01/windows-phone-8-and-device-width/ and https://github.com/twbs/bootstrap/issues/10497)
40
+ // (see https://timkadlec.com/2013/01/windows-phone-8-and-device-width/ and https://github.com/twbs/bootstrap/issues/10497)
41
41
  // and the fix for that involves a snippet of JavaScript to sniff the user agent
42
42
  // and apply some conditional CSS.
43
43
  //
44
- // See http://getbootstrap.com/getting-started/#support-ie10-width for the relevant hack.
44
+ // See https://getbootstrap.com/getting-started/#support-ie10-width for the relevant hack.
45
45
  //
46
46
  // Wrap `@viewport` with `@at-root` for when folks do a nested import (e.g.,
47
47
  // `.class-name { @import "bootstrap"; }`).
@@ -247,9 +247,9 @@ img {
247
247
  // DON'T remove the click delay when `<meta name="viewport" content="width=device-width">` is present.
248
248
  // However, they DO support removing the click delay via `touch-action: manipulation`.
249
249
  // See:
250
- // * http://v4-alpha.getbootstrap.com/content/reboot/#click-delay-optimization-for-touch
250
+ // * https://v4-alpha.getbootstrap.com/content/reboot/#click-delay-optimization-for-touch
251
251
  // * http://caniuse.com/#feat=css-touch-action
252
- // * http://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay
252
+ // * https://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay
253
253
 
254
254
  a,
255
255
  area,
@@ -312,14 +312,9 @@ input,
312
312
  button,
313
313
  select,
314
314
  textarea {
315
- // Remove all `margin`s so our classes don't have to do it themselves.
316
- margin: 0;
317
315
  // Normalize includes `font: inherit;`, so `font-family`. `font-size`, etc are
318
- // properly inherited. However, `line-height` isn't addressed there. Using this
319
- // ensures we don't need to unnecessarily redeclare the global font stack.
316
+ // properly inherited. However, `line-height` isn't inherited there.
320
317
  line-height: inherit;
321
- // iOS adds rounded borders by default
322
- border-radius: 0;
323
318
  }
324
319
 
325
320
  input[type="radio"],
@@ -143,7 +143,7 @@
143
143
  .table-responsive {
144
144
  display: block;
145
145
  width: 100%;
146
- min-height: .01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)
146
+ min-height: 0%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)
147
147
  overflow-x: auto;
148
148
 
149
149
  // TODO: find out if we need this still.