bootstrap 4.4.1 → 4.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +11 -1
- data/README.md +1 -1
- data/assets/javascripts/bootstrap-sprockets.js +7 -7
- data/assets/javascripts/bootstrap.js +516 -617
- data/assets/javascripts/bootstrap.min.js +3 -3
- data/assets/javascripts/bootstrap/alert.js +19 -27
- data/assets/javascripts/bootstrap/button.js +50 -56
- data/assets/javascripts/bootstrap/carousel.js +88 -99
- data/assets/javascripts/bootstrap/collapse.js +43 -53
- data/assets/javascripts/bootstrap/dropdown.js +75 -93
- data/assets/javascripts/bootstrap/modal.js +87 -91
- data/assets/javascripts/bootstrap/popover.js +15 -21
- data/assets/javascripts/bootstrap/scrollspy.js +39 -53
- data/assets/javascripts/bootstrap/tab.js +44 -52
- data/assets/javascripts/bootstrap/toast.js +33 -41
- data/assets/javascripts/bootstrap/tooltip.js +53 -65
- data/assets/javascripts/bootstrap/util.js +9 -5
- data/assets/stylesheets/_bootstrap-grid.scss +3 -3
- data/assets/stylesheets/_bootstrap-reboot.scss +3 -3
- data/assets/stylesheets/_bootstrap.scss +3 -3
- data/assets/stylesheets/bootstrap/_breadcrumb.scss +2 -0
- data/assets/stylesheets/bootstrap/_buttons.scss +10 -7
- data/assets/stylesheets/bootstrap/_card.scss +11 -7
- data/assets/stylesheets/bootstrap/_close.scss +0 -1
- data/assets/stylesheets/bootstrap/_custom-forms.scss +2 -1
- data/assets/stylesheets/bootstrap/_dropdown.scss +2 -1
- data/assets/stylesheets/bootstrap/_forms.scss +9 -0
- data/assets/stylesheets/bootstrap/_functions.scss +12 -5
- data/assets/stylesheets/bootstrap/_grid.scss +9 -1
- data/assets/stylesheets/bootstrap/_input-group.scss +2 -1
- data/assets/stylesheets/bootstrap/_list-group.scss +9 -13
- data/assets/stylesheets/bootstrap/_modal.scss +2 -0
- data/assets/stylesheets/bootstrap/_nav.scss +1 -0
- data/assets/stylesheets/bootstrap/_pagination.scss +1 -0
- data/assets/stylesheets/bootstrap/_progress.scss +1 -0
- data/assets/stylesheets/bootstrap/_reboot.scss +10 -12
- data/assets/stylesheets/bootstrap/_spinners.scss +1 -0
- data/assets/stylesheets/bootstrap/_utilities.scss +2 -1
- data/assets/stylesheets/bootstrap/_variables.scss +4 -0
- data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +2 -1
- data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +26 -13
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +6 -6
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +25 -15
- data/assets/stylesheets/bootstrap/mixins/_transition.scss +17 -7
- data/assets/stylesheets/bootstrap/utilities/_background.scss +1 -1
- data/assets/stylesheets/bootstrap/utilities/_interactions.scss +5 -0
- data/assets/stylesheets/bootstrap/utilities/_text.scss +1 -2
- data/lib/bootstrap/version.rb +2 -2
- data/tasks/updater/network.rb +2 -2
- data/test/gemfiles/rails_6_0.gemfile +7 -0
- metadata +6 -3
@@ -16,10 +16,10 @@
|
|
16
16
|
background-color: $input-focus-bg;
|
17
17
|
border-color: $input-focus-border-color;
|
18
18
|
outline: 0;
|
19
|
-
// Avoid using mixin so we can pass custom focus shadow properly
|
20
19
|
@if $enable-shadows {
|
21
|
-
box-shadow
|
20
|
+
@include box-shadow($input-box-shadow, $input-focus-box-shadow);
|
22
21
|
} @else {
|
22
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
23
23
|
box-shadow: $input-focus-box-shadow;
|
24
24
|
}
|
25
25
|
}
|
@@ -15,12 +15,15 @@
|
|
15
15
|
@each $breakpoint in map-keys($breakpoints) {
|
16
16
|
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
@if $columns > 0 {
|
19
|
+
// Allow columns to stretch full width below their breakpoints
|
20
|
+
@for $i from 1 through $columns {
|
21
|
+
.col#{$infix}-#{$i} {
|
22
|
+
@extend %grid-column;
|
23
|
+
}
|
22
24
|
}
|
23
25
|
}
|
26
|
+
|
24
27
|
.col#{$infix},
|
25
28
|
.col#{$infix}-auto {
|
26
29
|
@extend %grid-column;
|
@@ -31,12 +34,15 @@
|
|
31
34
|
.col#{$infix} {
|
32
35
|
flex-basis: 0;
|
33
36
|
flex-grow: 1;
|
37
|
+
min-width: 0; // See https://github.com/twbs/bootstrap/issues/25410
|
34
38
|
max-width: 100%;
|
35
39
|
}
|
36
40
|
|
37
|
-
@
|
38
|
-
|
39
|
-
|
41
|
+
@if $grid-row-columns > 0 {
|
42
|
+
@for $i from 1 through $grid-row-columns {
|
43
|
+
.row-cols#{$infix}-#{$i} {
|
44
|
+
@include row-cols($i);
|
45
|
+
}
|
40
46
|
}
|
41
47
|
}
|
42
48
|
|
@@ -44,9 +50,11 @@
|
|
44
50
|
@include make-col-auto();
|
45
51
|
}
|
46
52
|
|
47
|
-
@
|
48
|
-
|
49
|
-
|
53
|
+
@if $columns > 0 {
|
54
|
+
@for $i from 1 through $columns {
|
55
|
+
.col#{$infix}-#{$i} {
|
56
|
+
@include make-col($i, $columns);
|
57
|
+
}
|
50
58
|
}
|
51
59
|
}
|
52
60
|
|
@@ -58,11 +66,13 @@
|
|
58
66
|
.order#{$infix}-#{$i} { order: $i; }
|
59
67
|
}
|
60
68
|
|
61
|
-
|
62
|
-
|
63
|
-
@
|
64
|
-
|
65
|
-
|
69
|
+
@if $columns > 0 {
|
70
|
+
// `$columns - 1` because offsetting by the width of an entire row isn't possible
|
71
|
+
@for $i from 0 through ($columns - 1) {
|
72
|
+
@if not ($infix == "" and $i == 0) { // Avoid emitting useless .offset-0
|
73
|
+
.offset#{$infix}-#{$i} {
|
74
|
+
@include make-col-offset($i, $columns);
|
75
|
+
}
|
66
76
|
}
|
67
77
|
}
|
68
78
|
}
|
@@ -1,16 +1,26 @@
|
|
1
1
|
// stylelint-disable property-blacklist
|
2
2
|
@mixin transition($transition...) {
|
3
|
+
@if length($transition) == 0 {
|
4
|
+
$transition: $transition-base;
|
5
|
+
}
|
6
|
+
|
7
|
+
@if length($transition) > 1 {
|
8
|
+
@each $value in $transition {
|
9
|
+
@if $value == null or $value == none {
|
10
|
+
@warn "The keyword 'none' or 'null' must be used as a single argument.";
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
3
15
|
@if $enable-transitions {
|
4
|
-
@if
|
5
|
-
transition: $transition-base;
|
6
|
-
} @else {
|
16
|
+
@if nth($transition, 1) != null {
|
7
17
|
transition: $transition;
|
8
18
|
}
|
9
|
-
}
|
10
19
|
|
11
|
-
|
12
|
-
|
13
|
-
|
20
|
+
@if $enable-prefers-reduced-motion-media-query and nth($transition, 1) != null and nth($transition, 1) != none {
|
21
|
+
@media (prefers-reduced-motion: reduce) {
|
22
|
+
transition: none;
|
23
|
+
}
|
14
24
|
}
|
15
25
|
}
|
16
26
|
}
|
data/lib/bootstrap/version.rb
CHANGED
data/tasks/updater/network.rb
CHANGED
@@ -25,7 +25,7 @@ class Updater
|
|
25
25
|
log_http_get_files files, path_url, false
|
26
26
|
files.map do |name|
|
27
27
|
Thread.start {
|
28
|
-
contents[name] = open("#{path_url}/#{name}").read
|
28
|
+
contents[name] = URI.open("#{path_url}/#{name}").read
|
29
29
|
WRITE_FILES_MUTEX.synchronize { write_cached_files path, name => contents[name] }
|
30
30
|
}
|
31
31
|
end.each(&:join)
|
@@ -62,7 +62,7 @@ class Updater
|
|
62
62
|
File.read(cache_path, mode: 'rb')
|
63
63
|
else
|
64
64
|
log_http_get_file url, false
|
65
|
-
content = open(url).read
|
65
|
+
content = URI.open(url).read
|
66
66
|
File.open(cache_path, 'wb') { |f| f.write content }
|
67
67
|
content
|
68
68
|
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.
|
4
|
+
version: 4.5.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:
|
11
|
+
date: 2020-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: popper_js
|
@@ -334,6 +334,7 @@ files:
|
|
334
334
|
- assets/stylesheets/bootstrap/utilities/_embed.scss
|
335
335
|
- assets/stylesheets/bootstrap/utilities/_flex.scss
|
336
336
|
- assets/stylesheets/bootstrap/utilities/_float.scss
|
337
|
+
- assets/stylesheets/bootstrap/utilities/_interactions.scss
|
337
338
|
- assets/stylesheets/bootstrap/utilities/_overflow.scss
|
338
339
|
- assets/stylesheets/bootstrap/utilities/_position.scss
|
339
340
|
- assets/stylesheets/bootstrap/utilities/_screenreaders.scss
|
@@ -386,6 +387,7 @@ files:
|
|
386
387
|
- test/gemfiles/rails_4_2.gemfile
|
387
388
|
- test/gemfiles/rails_5_0.gemfile
|
388
389
|
- test/gemfiles/rails_5_1.gemfile
|
390
|
+
- test/gemfiles/rails_6_0.gemfile
|
389
391
|
- test/rails_test.rb
|
390
392
|
- test/support/dummy_rails_integration.rb
|
391
393
|
- test/support/reporting.rb
|
@@ -410,7 +412,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
410
412
|
- !ruby/object:Gem::Version
|
411
413
|
version: '0'
|
412
414
|
requirements: []
|
413
|
-
rubygems_version: 3.
|
415
|
+
rubygems_version: 3.1.2
|
414
416
|
signing_key:
|
415
417
|
specification_version: 4
|
416
418
|
summary: The most popular HTML, CSS, and JavaScript framework for developing responsive,
|
@@ -449,6 +451,7 @@ test_files:
|
|
449
451
|
- test/gemfiles/rails_4_2.gemfile
|
450
452
|
- test/gemfiles/rails_5_0.gemfile
|
451
453
|
- test/gemfiles/rails_5_1.gemfile
|
454
|
+
- test/gemfiles/rails_6_0.gemfile
|
452
455
|
- test/rails_test.rb
|
453
456
|
- test/support/dummy_rails_integration.rb
|
454
457
|
- test/support/reporting.rb
|