bootstrap 4.0.0 → 4.1.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.

Potentially problematic release.


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

Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/Rakefile +2 -0
  5. data/assets/javascripts/bootstrap-sprockets.js +6 -6
  6. data/assets/javascripts/bootstrap.js +3075 -3044
  7. data/assets/javascripts/bootstrap.min.js +2 -2
  8. data/assets/javascripts/bootstrap/alert.js +5 -5
  9. data/assets/javascripts/bootstrap/button.js +2 -2
  10. data/assets/javascripts/bootstrap/carousel.js +13 -11
  11. data/assets/javascripts/bootstrap/collapse.js +11 -19
  12. data/assets/javascripts/bootstrap/dropdown.js +34 -16
  13. data/assets/javascripts/bootstrap/modal.js +27 -24
  14. data/assets/javascripts/bootstrap/popover.js +7 -5
  15. data/assets/javascripts/bootstrap/scrollspy.js +6 -4
  16. data/assets/javascripts/bootstrap/tab.js +5 -5
  17. data/assets/javascripts/bootstrap/tooltip.js +15 -12
  18. data/assets/javascripts/bootstrap/util.js +28 -35
  19. data/assets/stylesheets/_bootstrap-grid.scss +1 -1
  20. data/assets/stylesheets/_bootstrap-reboot.scss +1 -1
  21. data/assets/stylesheets/_bootstrap.scss +1 -1
  22. data/assets/stylesheets/bootstrap/_breadcrumb.scss +9 -6
  23. data/assets/stylesheets/bootstrap/_button-group.scss +7 -1
  24. data/assets/stylesheets/bootstrap/_buttons.scss +1 -0
  25. data/assets/stylesheets/bootstrap/_card.scss +33 -2
  26. data/assets/stylesheets/bootstrap/_carousel.scss +48 -4
  27. data/assets/stylesheets/bootstrap/_custom-forms.scss +126 -3
  28. data/assets/stylesheets/bootstrap/_dropdown.scss +36 -1
  29. data/assets/stylesheets/bootstrap/_forms.scss +3 -1
  30. data/assets/stylesheets/bootstrap/_functions.scss +1 -1
  31. data/assets/stylesheets/bootstrap/_input-group.scss +2 -2
  32. data/assets/stylesheets/bootstrap/_mixins.scss +0 -1
  33. data/assets/stylesheets/bootstrap/_modal.scss +2 -2
  34. data/assets/stylesheets/bootstrap/_navbar.scss +0 -12
  35. data/assets/stylesheets/bootstrap/_pagination.scss +2 -1
  36. data/assets/stylesheets/bootstrap/_print.scss +6 -6
  37. data/assets/stylesheets/bootstrap/_progress.scss +1 -0
  38. data/assets/stylesheets/bootstrap/_reboot.scss +3 -3
  39. data/assets/stylesheets/bootstrap/_tables.scss +11 -3
  40. data/assets/stylesheets/bootstrap/_transitions.scss +4 -18
  41. data/assets/stylesheets/bootstrap/_utilities.scss +1 -0
  42. data/assets/stylesheets/bootstrap/_variables.scss +75 -41
  43. data/assets/stylesheets/bootstrap/mixins/_caret.scss +1 -0
  44. data/assets/stylesheets/bootstrap/mixins/_forms.scss +1 -1
  45. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +7 -7
  46. data/assets/stylesheets/bootstrap/mixins/_hover.scss +1 -3
  47. data/assets/stylesheets/bootstrap/mixins/_list-group.scss +1 -1
  48. data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +2 -2
  49. data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +1 -3
  50. data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +2 -0
  51. data/assets/stylesheets/bootstrap/mixins/_transition.scss +4 -0
  52. data/assets/stylesheets/bootstrap/utilities/_flex.scss +5 -0
  53. data/assets/stylesheets/bootstrap/utilities/_position.scss +1 -0
  54. data/assets/stylesheets/bootstrap/utilities/_shadows.scss +6 -0
  55. data/assets/stylesheets/bootstrap/utilities/_text.scss +7 -1
  56. data/lib/bootstrap/version.rb +2 -2
  57. metadata +3 -3
  58. data/assets/stylesheets/bootstrap/mixins/_navbar-align.scss +0 -10
@@ -6,4 +6,6 @@
6
6
  text-shadow: none;
7
7
  background-color: transparent;
8
8
  border: 0;
9
+
10
+ @warn "The `text-hide()` mixin has been deprecated as of v4.1.0. It will be removed entirely in v5.";
9
11
  }
@@ -6,4 +6,8 @@
6
6
  transition: $transition;
7
7
  }
8
8
  }
9
+
10
+ @media screen and (prefers-reduced-motion: reduce) {
11
+ transition: none;
12
+ }
9
13
  }
@@ -16,6 +16,11 @@
16
16
  .flex#{$infix}-wrap { flex-wrap: wrap !important; }
17
17
  .flex#{$infix}-nowrap { flex-wrap: nowrap !important; }
18
18
  .flex#{$infix}-wrap-reverse { flex-wrap: wrap-reverse !important; }
19
+ .flex#{$infix}-fill { flex: 1 1 auto !important; }
20
+ .flex#{$infix}-grow-0 { flex-grow: 0 !important; }
21
+ .flex#{$infix}-grow-1 { flex-grow: 1 !important; }
22
+ .flex#{$infix}-shrink-0 { flex-shrink: 0 !important; }
23
+ .flex#{$infix}-shrink-1 { flex-shrink: 1 !important; }
19
24
 
20
25
  .justify-content#{$infix}-start { justify-content: flex-start !important; }
21
26
  .justify-content#{$infix}-end { justify-content: flex-end !important; }
@@ -3,6 +3,7 @@
3
3
  // Common values
4
4
 
5
5
  // Sass list not in variables since it's not intended for customization.
6
+ // stylelint-disable-next-line scss/dollar-variable-default
6
7
  $positions: static, relative, absolute, fixed, sticky;
7
8
 
8
9
  @each $position in $positions {
@@ -0,0 +1,6 @@
1
+ // stylelint-disable declaration-no-important
2
+
3
+ .shadow-sm { box-shadow: $box-shadow-sm !important; }
4
+ .shadow { box-shadow: $box-shadow !important; }
5
+ .shadow-lg { box-shadow: $box-shadow-lg !important; }
6
+ .shadow-none { box-shadow: none !important; }
@@ -4,6 +4,8 @@
4
4
  // Text
5
5
  //
6
6
 
7
+ .text-monospace { font-family: $font-family-monospace; }
8
+
7
9
  // Alignment
8
10
 
9
11
  .text-justify { text-align: justify !important; }
@@ -37,14 +39,18 @@
37
39
 
38
40
  // Contextual colors
39
41
 
40
- .text-white { color: #fff !important; }
42
+ .text-white { color: $white !important; }
41
43
 
42
44
  @each $color, $value in $theme-colors {
43
45
  @include text-emphasis-variant(".text-#{$color}", $value);
44
46
  }
45
47
 
48
+ .text-body { color: $body-color !important; }
46
49
  .text-muted { color: $text-muted !important; }
47
50
 
51
+ .text-black-50 { color: rgba($black, .5) !important; }
52
+ .text-white-50 { color: rgba($white, .5) !important; }
53
+
48
54
  // Misc
49
55
 
50
56
  .text-hide {
@@ -1,4 +1,4 @@
1
1
  module Bootstrap
2
- VERSION = '4.0.0'
3
- BOOTSTRAP_SHA = '8a628b943cf31ca0a002c08af661a95772480225'
2
+ VERSION = '4.1.0'
3
+ BOOTSTRAP_SHA = '8f7bd419935adfcd53c471a0202083464800619e'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twitter, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-18 00:00:00.000000000 Z
11
+ date: 2018-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: popper_js
@@ -311,7 +311,6 @@ files:
311
311
  - assets/stylesheets/bootstrap/mixins/_list-group.scss
312
312
  - assets/stylesheets/bootstrap/mixins/_lists.scss
313
313
  - assets/stylesheets/bootstrap/mixins/_nav-divider.scss
314
- - assets/stylesheets/bootstrap/mixins/_navbar-align.scss
315
314
  - assets/stylesheets/bootstrap/mixins/_pagination.scss
316
315
  - assets/stylesheets/bootstrap/mixins/_reset-text.scss
317
316
  - assets/stylesheets/bootstrap/mixins/_resize.scss
@@ -333,6 +332,7 @@ files:
333
332
  - assets/stylesheets/bootstrap/utilities/_float.scss
334
333
  - assets/stylesheets/bootstrap/utilities/_position.scss
335
334
  - assets/stylesheets/bootstrap/utilities/_screenreaders.scss
335
+ - assets/stylesheets/bootstrap/utilities/_shadows.scss
336
336
  - assets/stylesheets/bootstrap/utilities/_sizing.scss
337
337
  - assets/stylesheets/bootstrap/utilities/_spacing.scss
338
338
  - assets/stylesheets/bootstrap/utilities/_text.scss
@@ -1,10 +0,0 @@
1
- // Navbar vertical align
2
- //
3
- // Vertically center elements in the navbar.
4
- // Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);`
5
- // to calculate the appropriate top margin.
6
-
7
- // @mixin navbar-vertical-align($element-height) {
8
- // margin-top: (($navbar-height - $element-height) / 2);
9
- // margin-bottom: (($navbar-height - $element-height) / 2);
10
- // }