bootstrap 4.1.3 → 4.2.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.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +1 -1
- data/Rakefile +2 -2
- data/assets/javascripts/bootstrap-sprockets.js +6 -5
- data/assets/javascripts/bootstrap.js +3290 -2985
- data/assets/javascripts/bootstrap.min.js +2 -2
- data/assets/javascripts/bootstrap/alert.js +127 -132
- data/assets/javascripts/bootstrap/button.js +119 -124
- data/assets/javascripts/bootstrap/carousel.js +492 -393
- data/assets/javascripts/bootstrap/collapse.js +276 -279
- data/assets/javascripts/bootstrap/dropdown.js +413 -374
- data/assets/javascripts/bootstrap/modal.js +455 -445
- data/assets/javascripts/bootstrap/popover.js +155 -160
- data/assets/javascripts/bootstrap/scrollspy.js +246 -250
- data/assets/javascripts/bootstrap/tab.js +180 -192
- data/assets/javascripts/bootstrap/toast.js +277 -0
- data/assets/javascripts/bootstrap/tooltip.js +533 -522
- data/assets/javascripts/bootstrap/util.js +140 -116
- data/assets/stylesheets/_bootstrap-grid.scss +2 -5
- data/assets/stylesheets/_bootstrap-reboot.scss +1 -1
- data/assets/stylesheets/_bootstrap.scss +3 -1
- data/assets/stylesheets/bootstrap/_alert.scss +1 -1
- data/assets/stylesheets/bootstrap/_badge.scss +6 -0
- data/assets/stylesheets/bootstrap/_button-group.scss +9 -18
- data/assets/stylesheets/bootstrap/_buttons.scss +7 -10
- data/assets/stylesheets/bootstrap/_card.scss +30 -21
- data/assets/stylesheets/bootstrap/_carousel.scss +36 -74
- data/assets/stylesheets/bootstrap/_close.scss +15 -6
- data/assets/stylesheets/bootstrap/_custom-forms.scss +103 -29
- data/assets/stylesheets/bootstrap/_dropdown.scss +30 -5
- data/assets/stylesheets/bootstrap/_forms.scss +12 -11
- data/assets/stylesheets/bootstrap/_functions.scss +4 -4
- data/assets/stylesheets/bootstrap/_images.scss +1 -1
- data/assets/stylesheets/bootstrap/_input-group.scss +24 -4
- data/assets/stylesheets/bootstrap/_list-group.scss +6 -0
- data/assets/stylesheets/bootstrap/_modal.scss +16 -10
- data/assets/stylesheets/bootstrap/_nav.scss +2 -0
- data/assets/stylesheets/bootstrap/_navbar.scss +4 -4
- data/assets/stylesheets/bootstrap/_popover.scss +1 -1
- data/assets/stylesheets/bootstrap/_reboot.scss +14 -35
- data/assets/stylesheets/bootstrap/_spinners.scss +53 -0
- data/assets/stylesheets/bootstrap/_tables.scss +2 -2
- data/assets/stylesheets/bootstrap/_toasts.scss +43 -0
- data/assets/stylesheets/bootstrap/_type.scss +2 -2
- data/assets/stylesheets/bootstrap/_utilities.scss +1 -0
- data/assets/stylesheets/bootstrap/_variables.scss +220 -81
- data/assets/stylesheets/bootstrap/mixins/_badge.scss +1 -2
- data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +9 -7
- data/assets/stylesheets/bootstrap/mixins/_caret.scss +0 -4
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +61 -10
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +3 -4
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +9 -10
- data/assets/stylesheets/bootstrap/mixins/_table-row.scss +10 -1
- data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_transition.scss +5 -2
- data/assets/stylesheets/bootstrap/utilities/_borders.scss +4 -0
- data/assets/stylesheets/bootstrap/utilities/_embed.scss +7 -20
- data/assets/stylesheets/bootstrap/utilities/_overflow.scss +5 -0
- data/assets/stylesheets/bootstrap/utilities/_position.scss +0 -5
- data/assets/stylesheets/bootstrap/utilities/_sizing.scss +8 -0
- data/assets/stylesheets/bootstrap/utilities/_spacing.scss +23 -1
- data/assets/stylesheets/bootstrap/utilities/_text.scss +13 -4
- data/bootstrap.gemspec +6 -3
- data/lib/bootstrap.rb +10 -7
- data/lib/bootstrap/engine.rb +3 -0
- data/lib/bootstrap/version.rb +4 -2
- metadata +15 -11
@@ -9,6 +9,7 @@
|
|
9
9
|
// Alignment
|
10
10
|
|
11
11
|
.text-justify { text-align: justify !important; }
|
12
|
+
.text-wrap { white-space: normal !important; }
|
12
13
|
.text-nowrap { white-space: nowrap !important; }
|
13
14
|
.text-truncate { @include text-truncate; }
|
14
15
|
|
@@ -32,10 +33,12 @@
|
|
32
33
|
|
33
34
|
// Weight and italics
|
34
35
|
|
35
|
-
.font-weight-light
|
36
|
-
.font-weight-
|
37
|
-
.font-weight-
|
38
|
-
.font-
|
36
|
+
.font-weight-light { font-weight: $font-weight-light !important; }
|
37
|
+
.font-weight-lighter { font-weight: $font-weight-lighter !important; }
|
38
|
+
.font-weight-normal { font-weight: $font-weight-normal !important; }
|
39
|
+
.font-weight-bold { font-weight: $font-weight-bold !important; }
|
40
|
+
.font-weight-bolder { font-weight: $font-weight-bolder !important; }
|
41
|
+
.font-italic { font-style: italic !important; }
|
39
42
|
|
40
43
|
// Contextual colors
|
41
44
|
|
@@ -56,3 +59,9 @@
|
|
56
59
|
.text-hide {
|
57
60
|
@include text-hide($ignore-warning: true);
|
58
61
|
}
|
62
|
+
|
63
|
+
.text-decoration-none { text-decoration: none !important; }
|
64
|
+
|
65
|
+
// Reset
|
66
|
+
|
67
|
+
.text-reset { color: inherit !important; }
|
data/bootstrap.gemspec
CHANGED
@@ -11,10 +11,13 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.homepage = 'https://github.com/twbs/bootstrap-rubygem'
|
12
12
|
s.license = 'MIT'
|
13
13
|
|
14
|
-
|
14
|
+
# SassC requires Ruby 2.3.3. Also specify here to make it obvious.
|
15
|
+
s.required_ruby_version = '>= 2.3.3'
|
15
16
|
|
16
|
-
s.add_runtime_dependency '
|
17
|
-
|
17
|
+
s.add_runtime_dependency 'popper_js', '>= 1.14.3', '< 2'
|
18
|
+
|
19
|
+
s.add_runtime_dependency 'sassc-rails', '>= 2.0.0'
|
20
|
+
s.add_runtime_dependency 'autoprefixer-rails', '>= 9.1.0'
|
18
21
|
|
19
22
|
# Testing dependencies
|
20
23
|
s.add_development_dependency 'minitest', '~> 5.8.0'
|
data/lib/bootstrap.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'bootstrap/version'
|
2
4
|
require 'popper_js'
|
3
5
|
|
@@ -11,9 +13,16 @@ module Bootstrap
|
|
11
13
|
register_hanami
|
12
14
|
elsif sprockets?
|
13
15
|
register_sprockets
|
16
|
+
elsif defined?(::Sass) && ::Sass.respond_to?(:load_paths)
|
17
|
+
# The deprecated `sass` gem:
|
18
|
+
::Sass.load_paths << stylesheets_path
|
14
19
|
end
|
15
20
|
|
16
|
-
|
21
|
+
if defined?(::Sass::Script::Value::Number)
|
22
|
+
# Set precision to 6 as per:
|
23
|
+
# https://github.com/twbs/bootstrap/blob/da717b03e6e72d7a61c007acb9223b9626ae5ee5/package.json#L28
|
24
|
+
::Sass::Script::Value::Number.precision = [6, ::Sass::Script::Value::Number.precision].max
|
25
|
+
end
|
17
26
|
end
|
18
27
|
|
19
28
|
# Paths
|
@@ -48,12 +57,6 @@ module Bootstrap
|
|
48
57
|
|
49
58
|
private
|
50
59
|
|
51
|
-
def configure_sass
|
52
|
-
require 'sass'
|
53
|
-
|
54
|
-
::Sass.load_paths << stylesheets_path
|
55
|
-
end
|
56
|
-
|
57
60
|
def register_rails_engine
|
58
61
|
require 'bootstrap/engine'
|
59
62
|
end
|
data/lib/bootstrap/engine.rb
CHANGED
data/lib/bootstrap/version.rb
CHANGED
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.1
|
4
|
+
version: 4.2.1
|
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-
|
11
|
+
date: 2018-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: popper_js
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.14.3
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '2'
|
@@ -26,38 +26,38 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.
|
29
|
+
version: 1.14.3
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
34
|
+
name: sassc-rails
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: 2.0.0
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
46
|
+
version: 2.0.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: autoprefixer-rails
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: 9.1.0
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
60
|
+
version: 9.1.0
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -252,6 +252,7 @@ files:
|
|
252
252
|
- assets/javascripts/bootstrap/popover.js
|
253
253
|
- assets/javascripts/bootstrap/scrollspy.js
|
254
254
|
- assets/javascripts/bootstrap/tab.js
|
255
|
+
- assets/javascripts/bootstrap/toast.js
|
255
256
|
- assets/javascripts/bootstrap/tooltip.js
|
256
257
|
- assets/javascripts/bootstrap/util.js
|
257
258
|
- assets/stylesheets/_bootstrap-grid.scss
|
@@ -286,7 +287,9 @@ files:
|
|
286
287
|
- assets/stylesheets/bootstrap/_progress.scss
|
287
288
|
- assets/stylesheets/bootstrap/_reboot.scss
|
288
289
|
- assets/stylesheets/bootstrap/_root.scss
|
290
|
+
- assets/stylesheets/bootstrap/_spinners.scss
|
289
291
|
- assets/stylesheets/bootstrap/_tables.scss
|
292
|
+
- assets/stylesheets/bootstrap/_toasts.scss
|
290
293
|
- assets/stylesheets/bootstrap/_tooltip.scss
|
291
294
|
- assets/stylesheets/bootstrap/_transitions.scss
|
292
295
|
- assets/stylesheets/bootstrap/_type.scss
|
@@ -330,6 +333,7 @@ files:
|
|
330
333
|
- assets/stylesheets/bootstrap/utilities/_embed.scss
|
331
334
|
- assets/stylesheets/bootstrap/utilities/_flex.scss
|
332
335
|
- assets/stylesheets/bootstrap/utilities/_float.scss
|
336
|
+
- assets/stylesheets/bootstrap/utilities/_overflow.scss
|
333
337
|
- assets/stylesheets/bootstrap/utilities/_position.scss
|
334
338
|
- assets/stylesheets/bootstrap/utilities/_screenreaders.scss
|
335
339
|
- assets/stylesheets/bootstrap/utilities/_shadows.scss
|
@@ -394,7 +398,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
394
398
|
requirements:
|
395
399
|
- - ">="
|
396
400
|
- !ruby/object:Gem::Version
|
397
|
-
version:
|
401
|
+
version: 2.3.3
|
398
402
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
399
403
|
requirements:
|
400
404
|
- - ">="
|
@@ -402,7 +406,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
402
406
|
version: '0'
|
403
407
|
requirements: []
|
404
408
|
rubyforge_project:
|
405
|
-
rubygems_version: 2.7.
|
409
|
+
rubygems_version: 2.7.8
|
406
410
|
signing_key:
|
407
411
|
specification_version: 4
|
408
412
|
summary: The most popular HTML, CSS, and JavaScript framework for developing responsive,
|