bootstrap 5.0.0 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/assets/javascripts/bootstrap-sprockets.js +8 -8
- data/assets/javascripts/bootstrap.js +329 -377
- data/assets/javascripts/bootstrap.min.js +2 -2
- data/assets/javascripts/bootstrap/alert.js +13 -73
- data/assets/javascripts/bootstrap/base-component.js +115 -10
- data/assets/javascripts/bootstrap/button.js +11 -17
- data/assets/javascripts/bootstrap/carousel.js +35 -85
- data/assets/javascripts/bootstrap/collapse.js +34 -82
- data/assets/javascripts/bootstrap/dom/data.js +2 -2
- data/assets/javascripts/bootstrap/dom/event-handler.js +2 -9
- data/assets/javascripts/bootstrap/dom/manipulator.js +2 -2
- data/assets/javascripts/bootstrap/dom/selector-engine.js +2 -2
- data/assets/javascripts/bootstrap/dropdown.js +41 -38
- data/assets/javascripts/bootstrap/modal.js +31 -43
- data/assets/javascripts/bootstrap/offcanvas.js +25 -25
- data/assets/javascripts/bootstrap/popover.js +11 -25
- data/assets/javascripts/bootstrap/scrollspy.js +26 -21
- data/assets/javascripts/bootstrap/tab.js +14 -68
- data/assets/javascripts/bootstrap/toast.js +69 -77
- data/assets/javascripts/bootstrap/tooltip.js +71 -135
- data/assets/stylesheets/_bootstrap-grid.scss +1 -1
- data/assets/stylesheets/_bootstrap-reboot.scss +1 -1
- data/assets/stylesheets/_bootstrap.scss +1 -1
- data/assets/stylesheets/bootstrap/_list-group.scss +5 -5
- data/assets/stylesheets/bootstrap/_modal.scss +2 -11
- data/assets/stylesheets/bootstrap/_tables.scss +1 -0
- data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +1 -1
- data/assets/stylesheets/bootstrap/forms/_form-control.scss +5 -5
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +8 -1
- data/lib/bootstrap/version.rb +2 -2
- metadata +2 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap Grid v5.0.
|
2
|
+
* Bootstrap Grid v5.0.1 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2021 The Bootstrap Authors
|
4
4
|
* Copyright 2011-2021 Twitter, Inc.
|
5
5
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap Reboot v5.0.
|
2
|
+
* Bootstrap Reboot v5.0.1 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2021 The Bootstrap Authors
|
4
4
|
* Copyright 2011-2021 Twitter, Inc.
|
5
5
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
@@ -163,12 +163,12 @@
|
|
163
163
|
// Organizationally, this must come after the `:hover` states.
|
164
164
|
|
165
165
|
@each $state, $value in $theme-colors {
|
166
|
-
$list-group-
|
167
|
-
$list-group-color: shift-color($value, $list-group-item-color-scale);
|
168
|
-
@if (contrast-ratio($list-group-
|
169
|
-
$list-group-color: mix($value, color-contrast($list-group-
|
166
|
+
$list-group-variant-bg: shift-color($value, $list-group-item-bg-scale);
|
167
|
+
$list-group-variant-color: shift-color($value, $list-group-item-color-scale);
|
168
|
+
@if (contrast-ratio($list-group-variant-bg, $list-group-variant-color) < $min-contrast-ratio) {
|
169
|
+
$list-group-variant-color: mix($value, color-contrast($list-group-variant-bg), abs($list-group-item-color-scale));
|
170
170
|
}
|
171
171
|
|
172
|
-
@include list-group-item-variant($state, $list-group-
|
172
|
+
@include list-group-item-variant($state, $list-group-variant-bg, $list-group-variant-color);
|
173
173
|
}
|
174
174
|
// scss-docs-end list-group-modifiers
|
@@ -4,16 +4,6 @@
|
|
4
4
|
// .modal-content - actual modal w/ bg and corners and stuff
|
5
5
|
|
6
6
|
|
7
|
-
.modal-open {
|
8
|
-
// Kill the scroll on the body
|
9
|
-
overflow: hidden;
|
10
|
-
|
11
|
-
.modal {
|
12
|
-
overflow-x: hidden;
|
13
|
-
overflow-y: auto;
|
14
|
-
}
|
15
|
-
}
|
16
|
-
|
17
7
|
// Container that the modal scrolls within
|
18
8
|
.modal {
|
19
9
|
position: fixed;
|
@@ -23,7 +13,8 @@
|
|
23
13
|
display: none;
|
24
14
|
width: 100%;
|
25
15
|
height: 100%;
|
26
|
-
overflow: hidden;
|
16
|
+
overflow-x: hidden;
|
17
|
+
overflow-y: auto;
|
27
18
|
// Prevent Chrome on Windows from adding a focus outline. For details, see
|
28
19
|
// https://github.com/twbs/bootstrap/pull/10951.
|
29
20
|
outline: 0;
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
.table {
|
6
6
|
--#{$variable-prefix}table-bg: #{$table-bg};
|
7
|
+
--#{$variable-prefix}table-accent-bg: #{$table-bg};
|
7
8
|
--#{$variable-prefix}table-striped-color: #{$table-striped-color};
|
8
9
|
--#{$variable-prefix}table-striped-bg: #{$table-striped-bg};
|
9
10
|
--#{$variable-prefix}table-active-color: #{$table-active-color};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap Utilities v5.0.
|
2
|
+
* Bootstrap Utilities v5.0.1 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2021 The Bootstrap Authors
|
4
4
|
* Copyright 2011-2021 Twitter, Inc.
|
5
5
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
@@ -25,7 +25,7 @@
|
|
25
25
|
&[type="file"] {
|
26
26
|
overflow: hidden; // prevent pseudo element button overlap
|
27
27
|
|
28
|
-
&:not(:disabled):not(
|
28
|
+
&:not(:disabled):not([readonly]) {
|
29
29
|
cursor: pointer;
|
30
30
|
}
|
31
31
|
}
|
@@ -65,7 +65,7 @@
|
|
65
65
|
// disabled if the fieldset is disabled. Due to implementation difficulty, we
|
66
66
|
// don't honor that edge case; we style them as disabled anyway.
|
67
67
|
&:disabled,
|
68
|
-
|
68
|
+
&[readonly] {
|
69
69
|
background-color: $input-disabled-bg;
|
70
70
|
border-color: $input-disabled-border-color;
|
71
71
|
// iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
|
@@ -88,7 +88,7 @@
|
|
88
88
|
@include transition($btn-transition);
|
89
89
|
}
|
90
90
|
|
91
|
-
&:hover:not(:disabled):not(
|
91
|
+
&:hover:not(:disabled):not([readonly])::file-selector-button {
|
92
92
|
background-color: $form-file-button-hover-bg;
|
93
93
|
}
|
94
94
|
|
@@ -107,7 +107,7 @@
|
|
107
107
|
@include transition($btn-transition);
|
108
108
|
}
|
109
109
|
|
110
|
-
&:hover:not(:disabled):not(
|
110
|
+
&:hover:not(:disabled):not([readonly])::-webkit-file-upload-button {
|
111
111
|
background-color: $form-file-button-hover-bg;
|
112
112
|
}
|
113
113
|
}
|
@@ -203,7 +203,7 @@ textarea {
|
|
203
203
|
height: auto; // Override fixed browser height
|
204
204
|
padding: $input-padding-y;
|
205
205
|
|
206
|
-
&:not(:disabled):not(
|
206
|
+
&:not(:disabled):not([readonly]) {
|
207
207
|
cursor: pointer;
|
208
208
|
}
|
209
209
|
|
@@ -130,7 +130,14 @@
|
|
130
130
|
.input-group .form-control,
|
131
131
|
.input-group .form-select {
|
132
132
|
@include form-validation-state-selector($state) {
|
133
|
-
|
133
|
+
@if $state == "valid" {
|
134
|
+
z-index: 1;
|
135
|
+
} @else if $state == "invalid" {
|
136
|
+
z-index: 2;
|
137
|
+
}
|
138
|
+
&:focus {
|
139
|
+
z-index: 3;
|
140
|
+
}
|
134
141
|
}
|
135
142
|
}
|
136
143
|
}
|
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: 5.0.
|
4
|
+
version: 5.0.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: 2021-05-
|
11
|
+
date: 2021-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: popper_js
|