bootstrap 4.6.2 → 5.0.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 +2 -1
- data/README.md +7 -4
- data/assets/javascripts/bootstrap/alert.js +192 -115
- data/assets/javascripts/bootstrap/base-component.js +63 -0
- data/assets/javascripts/bootstrap/button.js +96 -179
- data/assets/javascripts/bootstrap/carousel.js +472 -359
- data/assets/javascripts/bootstrap/collapse.js +379 -225
- data/assets/javascripts/bootstrap/dom/data.js +68 -0
- data/assets/javascripts/bootstrap/dom/event-handler.js +322 -0
- data/assets/javascripts/bootstrap/dom/manipulator.js +88 -0
- data/assets/javascripts/bootstrap/dom/selector-engine.js +85 -0
- data/assets/javascripts/bootstrap/dropdown.js +472 -355
- data/assets/javascripts/bootstrap/modal.js +612 -438
- data/assets/javascripts/bootstrap/offcanvas.js +671 -0
- data/assets/javascripts/bootstrap/popover.js +138 -167
- data/assets/javascripts/bootstrap/scrollspy.js +250 -192
- data/assets/javascripts/bootstrap/tab.js +241 -144
- data/assets/javascripts/bootstrap/toast.js +223 -157
- data/assets/javascripts/bootstrap/tooltip.js +651 -487
- data/assets/javascripts/bootstrap-global-this-define.js +6 -0
- data/assets/javascripts/bootstrap-global-this-undefine.js +2 -0
- data/assets/javascripts/bootstrap-sprockets.js +8 -1
- data/assets/javascripts/bootstrap.js +3277 -2590
- data/assets/javascripts/bootstrap.min.js +3 -3
- data/assets/stylesheets/_bootstrap-grid.scss +53 -18
- data/assets/stylesheets/_bootstrap-reboot.scss +6 -3
- data/assets/stylesheets/_bootstrap.scss +18 -10
- data/assets/stylesheets/bootstrap/_accordion.scss +118 -0
- data/assets/stylesheets/bootstrap/_alert.scss +15 -10
- data/assets/stylesheets/bootstrap/_badge.scss +2 -27
- data/assets/stylesheets/bootstrap/_breadcrumb.scss +3 -17
- data/assets/stylesheets/bootstrap/_button-group.scss +21 -45
- data/assets/stylesheets/bootstrap/_buttons.scss +29 -60
- data/assets/stylesheets/bootstrap/_card.scss +20 -91
- data/assets/stylesheets/bootstrap/_carousel.scss +64 -35
- data/assets/stylesheets/bootstrap/_close.scss +30 -30
- data/assets/stylesheets/bootstrap/_containers.scss +41 -0
- data/assets/stylesheets/bootstrap/_dropdown.scss +84 -36
- data/assets/stylesheets/bootstrap/_forms.scss +9 -347
- data/assets/stylesheets/bootstrap/_functions.scss +84 -69
- data/assets/stylesheets/bootstrap/_grid.scss +3 -54
- data/assets/stylesheets/bootstrap/_helpers.scss +7 -0
- data/assets/stylesheets/bootstrap/_images.scss +1 -1
- data/assets/stylesheets/bootstrap/_list-group.scss +28 -8
- data/assets/stylesheets/bootstrap/_mixins.scss +8 -13
- data/assets/stylesheets/bootstrap/_modal.scss +45 -57
- data/assets/stylesheets/bootstrap/_nav.scss +20 -6
- data/assets/stylesheets/bootstrap/_navbar.scss +45 -71
- data/assets/stylesheets/bootstrap/_offcanvas.scss +77 -0
- data/assets/stylesheets/bootstrap/_pagination.scss +10 -20
- data/assets/stylesheets/bootstrap/_popover.scss +24 -36
- data/assets/stylesheets/bootstrap/_progress.scss +5 -4
- data/assets/stylesheets/bootstrap/_reboot.scss +316 -179
- data/assets/stylesheets/bootstrap/_root.scss +5 -8
- data/assets/stylesheets/bootstrap/_spinners.scss +11 -7
- data/assets/stylesheets/bootstrap/_tables.scss +79 -114
- data/assets/stylesheets/bootstrap/_toasts.scss +20 -15
- data/assets/stylesheets/bootstrap/_tooltip.scss +21 -21
- data/assets/stylesheets/bootstrap/_transitions.scss +2 -7
- data/assets/stylesheets/bootstrap/_type.scss +38 -59
- data/assets/stylesheets/bootstrap/_utilities.scss +594 -18
- data/assets/stylesheets/bootstrap/_variables.scss +800 -485
- data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +18 -0
- data/assets/stylesheets/bootstrap/forms/_floating-labels.scss +61 -0
- data/assets/stylesheets/bootstrap/forms/_form-check.scss +152 -0
- data/assets/stylesheets/bootstrap/forms/_form-control.scss +219 -0
- data/assets/stylesheets/bootstrap/forms/_form-range.scss +91 -0
- data/assets/stylesheets/bootstrap/forms/_form-select.scss +67 -0
- data/assets/stylesheets/bootstrap/forms/_form-text.scss +11 -0
- data/assets/stylesheets/bootstrap/forms/_input-group.scss +121 -0
- data/assets/stylesheets/bootstrap/forms/_labels.scss +36 -0
- data/assets/stylesheets/bootstrap/forms/_validation.scss +12 -0
- data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +12 -0
- data/assets/stylesheets/bootstrap/helpers/_position.scss +30 -0
- data/assets/stylesheets/bootstrap/helpers/_ratio.scss +26 -0
- data/assets/stylesheets/bootstrap/helpers/_stretched-link.scss +15 -0
- data/assets/stylesheets/bootstrap/helpers/_text-truncation.scss +7 -0
- data/assets/stylesheets/bootstrap/helpers/_visually-hidden.scss +8 -0
- data/assets/stylesheets/bootstrap/mixins/_alert.scss +3 -5
- data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +10 -8
- data/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +7 -9
- data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +14 -10
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +71 -48
- data/assets/stylesheets/bootstrap/mixins/_caret.scss +10 -8
- data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +2 -0
- data/assets/stylesheets/bootstrap/mixins/_color-scheme.scss +7 -0
- data/assets/stylesheets/bootstrap/mixins/_container.scss +9 -0
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +39 -97
- data/assets/stylesheets/bootstrap/mixins/_gradients.scss +13 -11
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +90 -34
- data/assets/stylesheets/bootstrap/mixins/_image.scss +1 -21
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +5 -2
- data/assets/stylesheets/bootstrap/mixins/_lists.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_pagination.scss +17 -8
- data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +3 -3
- data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +21 -0
- data/assets/stylesheets/bootstrap/mixins/_transition.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_utilities.scss +68 -0
- data/assets/stylesheets/bootstrap/mixins/_visually-hidden.scss +29 -0
- data/assets/stylesheets/bootstrap/utilities/_api.scss +47 -0
- data/assets/stylesheets/bootstrap/vendor/_rfs.scss +214 -130
- data/bootstrap.gemspec +1 -3
- data/lib/bootstrap/version.rb +2 -2
- data/tasks/updater/js.rb +19 -16
- data/test/dummy_rails/app/assets/javascripts/application.js +4 -3
- data/test/dummy_rails/app/views/layouts/application.html.erb +3 -1
- data/test/dummy_rails/app/views/pages/root.html +89 -0
- data/test/dummy_rails/config/application.rb +0 -3
- data/test/gemfiles/rails_6_1.gemfile +7 -0
- metadata +45 -73
- data/assets/javascripts/bootstrap/util.js +0 -189
- data/assets/stylesheets/bootstrap/_code.scss +0 -48
- data/assets/stylesheets/bootstrap/_custom-forms.scss +0 -526
- data/assets/stylesheets/bootstrap/_input-group.scss +0 -211
- data/assets/stylesheets/bootstrap/_jumbotron.scss +0 -17
- data/assets/stylesheets/bootstrap/_media.scss +0 -8
- data/assets/stylesheets/bootstrap/_print.scss +0 -132
- data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -23
- data/assets/stylesheets/bootstrap/mixins/_badge.scss +0 -17
- data/assets/stylesheets/bootstrap/mixins/_float.scss +0 -14
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -80
- data/assets/stylesheets/bootstrap/mixins/_hover.scss +0 -37
- data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -11
- data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +0 -34
- data/assets/stylesheets/bootstrap/mixins/_size.scss +0 -7
- data/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -39
- data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -17
- data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +0 -11
- data/assets/stylesheets/bootstrap/mixins/_visibility.scss +0 -8
- data/assets/stylesheets/bootstrap/utilities/_align.scss +0 -8
- data/assets/stylesheets/bootstrap/utilities/_background.scss +0 -19
- data/assets/stylesheets/bootstrap/utilities/_borders.scss +0 -75
- data/assets/stylesheets/bootstrap/utilities/_display.scss +0 -26
- data/assets/stylesheets/bootstrap/utilities/_embed.scss +0 -39
- data/assets/stylesheets/bootstrap/utilities/_flex.scss +0 -51
- data/assets/stylesheets/bootstrap/utilities/_float.scss +0 -11
- data/assets/stylesheets/bootstrap/utilities/_interactions.scss +0 -5
- data/assets/stylesheets/bootstrap/utilities/_overflow.scss +0 -5
- data/assets/stylesheets/bootstrap/utilities/_position.scss +0 -32
- data/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +0 -11
- data/assets/stylesheets/bootstrap/utilities/_shadows.scss +0 -6
- data/assets/stylesheets/bootstrap/utilities/_sizing.scss +0 -20
- data/assets/stylesheets/bootstrap/utilities/_spacing.scss +0 -73
- data/assets/stylesheets/bootstrap/utilities/_stretched-link.scss +0 -19
- data/assets/stylesheets/bootstrap/utilities/_text.scss +0 -72
- data/assets/stylesheets/bootstrap/utilities/_visibility.scss +0 -13
- data/test/dummy_rails/app/views/pages/root.html.slim +0 -58
- /data/assets/stylesheets/bootstrap/{utilities → helpers}/_clearfix.scss +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
.popover {
|
2
2
|
position: absolute;
|
3
3
|
top: 0;
|
4
|
-
left: 0;
|
4
|
+
left: 0 #{"/* rtl:ignore */"};
|
5
5
|
z-index: $zindex-popover;
|
6
6
|
display: block;
|
7
7
|
max-width: $popover-max-width;
|
@@ -17,12 +17,11 @@
|
|
17
17
|
@include border-radius($popover-border-radius);
|
18
18
|
@include box-shadow($popover-box-shadow);
|
19
19
|
|
20
|
-
.arrow {
|
20
|
+
.popover-arrow {
|
21
21
|
position: absolute;
|
22
22
|
display: block;
|
23
23
|
width: $popover-arrow-width;
|
24
24
|
height: $popover-arrow-height;
|
25
|
-
margin: 0 $popover-border-radius;
|
26
25
|
|
27
26
|
&::before,
|
28
27
|
&::after {
|
@@ -36,63 +35,56 @@
|
|
36
35
|
}
|
37
36
|
|
38
37
|
.bs-popover-top {
|
39
|
-
|
40
|
-
|
41
|
-
> .arrow {
|
38
|
+
> .popover-arrow {
|
42
39
|
bottom: subtract(-$popover-arrow-height, $popover-border-width);
|
43
40
|
|
44
41
|
&::before {
|
45
42
|
bottom: 0;
|
46
|
-
border-width: $popover-arrow-height ($popover-arrow-width
|
43
|
+
border-width: $popover-arrow-height ($popover-arrow-width / 2) 0;
|
47
44
|
border-top-color: $popover-arrow-outer-color;
|
48
45
|
}
|
49
46
|
|
50
47
|
&::after {
|
51
48
|
bottom: $popover-border-width;
|
52
|
-
border-width: $popover-arrow-height ($popover-arrow-width
|
49
|
+
border-width: $popover-arrow-height ($popover-arrow-width / 2) 0;
|
53
50
|
border-top-color: $popover-arrow-color;
|
54
51
|
}
|
55
52
|
}
|
56
53
|
}
|
57
54
|
|
58
|
-
.bs-popover-
|
59
|
-
|
60
|
-
|
61
|
-
> .arrow {
|
55
|
+
.bs-popover-end {
|
56
|
+
> .popover-arrow {
|
62
57
|
left: subtract(-$popover-arrow-height, $popover-border-width);
|
63
58
|
width: $popover-arrow-height;
|
64
59
|
height: $popover-arrow-width;
|
65
|
-
margin: $popover-border-radius 0; // make sure the arrow does not touch the popover's rounded corners
|
66
60
|
|
67
61
|
&::before {
|
68
62
|
left: 0;
|
69
|
-
border-width: ($popover-arrow-width
|
63
|
+
border-width: ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2) 0;
|
70
64
|
border-right-color: $popover-arrow-outer-color;
|
71
65
|
}
|
72
66
|
|
73
67
|
&::after {
|
74
68
|
left: $popover-border-width;
|
75
|
-
border-width: ($popover-arrow-width
|
69
|
+
border-width: ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2) 0;
|
76
70
|
border-right-color: $popover-arrow-color;
|
77
71
|
}
|
78
72
|
}
|
79
73
|
}
|
80
74
|
|
81
75
|
.bs-popover-bottom {
|
82
|
-
|
83
|
-
|
84
|
-
> .arrow {
|
76
|
+
> .popover-arrow {
|
85
77
|
top: subtract(-$popover-arrow-height, $popover-border-width);
|
86
78
|
|
87
79
|
&::before {
|
88
80
|
top: 0;
|
89
|
-
border-width: 0 ($popover-arrow-width
|
81
|
+
border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2);
|
90
82
|
border-bottom-color: $popover-arrow-outer-color;
|
91
83
|
}
|
92
84
|
|
93
85
|
&::after {
|
94
86
|
top: $popover-border-width;
|
95
|
-
border-width: 0 ($popover-arrow-width
|
87
|
+
border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2);
|
96
88
|
border-bottom-color: $popover-arrow-color;
|
97
89
|
}
|
98
90
|
}
|
@@ -104,51 +96,47 @@
|
|
104
96
|
left: 50%;
|
105
97
|
display: block;
|
106
98
|
width: $popover-arrow-width;
|
107
|
-
margin-left: -$popover-arrow-width
|
99
|
+
margin-left: -$popover-arrow-width / 2;
|
108
100
|
content: "";
|
109
101
|
border-bottom: $popover-border-width solid $popover-header-bg;
|
110
102
|
}
|
111
103
|
}
|
112
104
|
|
113
|
-
.bs-popover-
|
114
|
-
|
115
|
-
|
116
|
-
> .arrow {
|
105
|
+
.bs-popover-start {
|
106
|
+
> .popover-arrow {
|
117
107
|
right: subtract(-$popover-arrow-height, $popover-border-width);
|
118
108
|
width: $popover-arrow-height;
|
119
109
|
height: $popover-arrow-width;
|
120
|
-
margin: $popover-border-radius 0; // make sure the arrow does not touch the popover's rounded corners
|
121
110
|
|
122
111
|
&::before {
|
123
112
|
right: 0;
|
124
|
-
border-width: ($popover-arrow-width
|
113
|
+
border-width: ($popover-arrow-width / 2) 0 ($popover-arrow-width / 2) $popover-arrow-height;
|
125
114
|
border-left-color: $popover-arrow-outer-color;
|
126
115
|
}
|
127
116
|
|
128
117
|
&::after {
|
129
118
|
right: $popover-border-width;
|
130
|
-
border-width: ($popover-arrow-width
|
119
|
+
border-width: ($popover-arrow-width / 2) 0 ($popover-arrow-width / 2) $popover-arrow-height;
|
131
120
|
border-left-color: $popover-arrow-color;
|
132
121
|
}
|
133
122
|
}
|
134
123
|
}
|
135
124
|
|
136
125
|
.bs-popover-auto {
|
137
|
-
&[
|
126
|
+
&[data-popper-placement^="top"] {
|
138
127
|
@extend .bs-popover-top;
|
139
128
|
}
|
140
|
-
&[
|
141
|
-
@extend .bs-popover-
|
129
|
+
&[data-popper-placement^="right"] {
|
130
|
+
@extend .bs-popover-end;
|
142
131
|
}
|
143
|
-
&[
|
132
|
+
&[data-popper-placement^="bottom"] {
|
144
133
|
@extend .bs-popover-bottom;
|
145
134
|
}
|
146
|
-
&[
|
147
|
-
@extend .bs-popover-
|
135
|
+
&[data-popper-placement^="left"] {
|
136
|
+
@extend .bs-popover-start;
|
148
137
|
}
|
149
138
|
}
|
150
139
|
|
151
|
-
|
152
140
|
// Offset the popover to account for the popover arrow
|
153
141
|
.popover-header {
|
154
142
|
padding: $popover-header-padding-y $popover-header-padding-x;
|
@@ -156,7 +144,7 @@
|
|
156
144
|
@include font-size($font-size-base);
|
157
145
|
color: $popover-header-color;
|
158
146
|
background-color: $popover-header-bg;
|
159
|
-
border-bottom: $popover-border-width solid
|
147
|
+
border-bottom: $popover-border-width solid shade-color($popover-header-bg, 10%);
|
160
148
|
@include border-top-radius($popover-inner-border-radius);
|
161
149
|
|
162
150
|
&:empty {
|
@@ -1,16 +1,17 @@
|
|
1
1
|
// Disable animation if transitions are disabled
|
2
|
+
|
3
|
+
// scss-docs-start progress-keyframes
|
2
4
|
@if $enable-transitions {
|
3
5
|
@keyframes progress-bar-stripes {
|
4
|
-
|
5
|
-
to { background-position: 0 0; }
|
6
|
+
0% { background-position-x: $progress-height; }
|
6
7
|
}
|
7
8
|
}
|
9
|
+
// scss-docs-end progress-keyframes
|
8
10
|
|
9
11
|
.progress {
|
10
12
|
display: flex;
|
11
13
|
height: $progress-height;
|
12
14
|
overflow: hidden; // force rounded corners by cropping it
|
13
|
-
line-height: 0;
|
14
15
|
@include font-size($progress-font-size);
|
15
16
|
background-color: $progress-bg;
|
16
17
|
@include border-radius($progress-border-radius);
|
@@ -38,7 +39,7 @@
|
|
38
39
|
.progress-bar-animated {
|
39
40
|
animation: $progress-bar-animation-timing progress-bar-stripes;
|
40
41
|
|
41
|
-
@if $enable-
|
42
|
+
@if $enable-reduced-motion {
|
42
43
|
@media (prefers-reduced-motion: reduce) {
|
43
44
|
animation: none;
|
44
45
|
}
|