bootstrap 4.6.0 → 5.0.0.beta2
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.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/README.md +7 -4
- 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 +14 -8
- data/assets/javascripts/bootstrap.js +2152 -1633
- data/assets/javascripts/bootstrap.min.js +2 -2
- data/assets/javascripts/bootstrap/alert.js +179 -64
- data/assets/javascripts/bootstrap/base-component.js +75 -0
- data/assets/javascripts/bootstrap/button.js +94 -143
- data/assets/javascripts/bootstrap/carousel.js +386 -202
- data/assets/javascripts/bootstrap/collapse.js +349 -132
- data/assets/javascripts/bootstrap/dom/data.js +81 -0
- data/assets/javascripts/bootstrap/dom/event-handler.js +310 -0
- data/assets/javascripts/bootstrap/dom/manipulator.js +86 -0
- data/assets/javascripts/bootstrap/dom/selector-engine.js +93 -0
- data/assets/javascripts/bootstrap/dropdown.js +387 -224
- data/assets/javascripts/bootstrap/modal.js +391 -220
- data/assets/javascripts/bootstrap/popover.js +94 -49
- data/assets/javascripts/bootstrap/scrollspy.js +212 -80
- data/assets/javascripts/bootstrap/tab.js +198 -79
- data/assets/javascripts/bootstrap/toast.js +211 -78
- data/assets/javascripts/bootstrap/tooltip.js +558 -300
- data/assets/stylesheets/_bootstrap-grid.scss +51 -16
- data/assets/stylesheets/_bootstrap-reboot.scss +4 -1
- data/assets/stylesheets/_bootstrap.scss +15 -8
- data/assets/stylesheets/bootstrap/_accordion.scss +126 -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 +27 -60
- data/assets/stylesheets/bootstrap/_card.scss +21 -92
- data/assets/stylesheets/bootstrap/_carousel.scss +65 -33
- data/assets/stylesheets/bootstrap/_close.scss +30 -30
- data/assets/stylesheets/bootstrap/_containers.scss +41 -0
- data/assets/stylesheets/bootstrap/_dropdown.scss +95 -38
- data/assets/stylesheets/bootstrap/_forms.scss +9 -347
- data/assets/stylesheets/bootstrap/_functions.scss +84 -23
- data/assets/stylesheets/bootstrap/_grid.scss +3 -54
- data/assets/stylesheets/bootstrap/_helpers.scss +7 -0
- data/assets/stylesheets/bootstrap/_list-group.scss +17 -8
- data/assets/stylesheets/bootstrap/_mixins.scss +7 -13
- data/assets/stylesheets/bootstrap/_modal.scss +41 -46
- data/assets/stylesheets/bootstrap/_nav.scss +16 -4
- data/assets/stylesheets/bootstrap/_navbar.scss +43 -71
- data/assets/stylesheets/bootstrap/_pagination.scss +10 -20
- data/assets/stylesheets/bootstrap/_popover.scss +15 -27
- data/assets/stylesheets/bootstrap/_progress.scss +2 -4
- data/assets/stylesheets/bootstrap/_reboot.scss +314 -163
- data/assets/stylesheets/bootstrap/_root.scss +5 -8
- data/assets/stylesheets/bootstrap/_spinners.scss +5 -5
- data/assets/stylesheets/bootstrap/_tables.scss +79 -114
- data/assets/stylesheets/bootstrap/_toasts.scss +20 -15
- data/assets/stylesheets/bootstrap/_tooltip.scss +17 -17
- data/assets/stylesheets/bootstrap/_transitions.scss +0 -1
- data/assets/stylesheets/bootstrap/_type.scss +38 -59
- data/assets/stylesheets/bootstrap/_utilities.scss +566 -18
- data/assets/stylesheets/bootstrap/_variables.scss +673 -463
- 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 +223 -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/{utilities → helpers}/_clearfix.scss +0 -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 +1 -5
- data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +8 -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 +65 -47
- data/assets/stylesheets/bootstrap/mixins/_caret.scss +8 -8
- data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +2 -0
- data/assets/stylesheets/bootstrap/mixins/_container.scss +9 -0
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +27 -88
- data/assets/stylesheets/bootstrap/mixins/_gradients.scss +13 -11
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +83 -32
- data/assets/stylesheets/bootstrap/mixins/_image.scss +1 -21
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +3 -2
- data/assets/stylesheets/bootstrap/mixins/_lists.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_pagination.scss +15 -8
- data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +2 -2
- 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 +234 -126
- data/bootstrap.gemspec +1 -3
- data/lib/bootstrap/version.rb +2 -2
- data/tasks/updater/js.rb +20 -5
- 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 +44 -75
- data/assets/javascripts/bootstrap/util.js +0 -192
- 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 -208
- data/assets/stylesheets/bootstrap/_jumbotron.scss +0 -17
- data/assets/stylesheets/bootstrap/_media.scss +0 -8
- data/assets/stylesheets/bootstrap/_print.scss +0 -141
- 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
|
@@ -14,10 +14,16 @@
|
|
|
14
14
|
.nav-link {
|
|
15
15
|
display: block;
|
|
16
16
|
padding: $nav-link-padding-y $nav-link-padding-x;
|
|
17
|
+
@include font-size($nav-link-font-size);
|
|
18
|
+
font-weight: $nav-link-font-weight;
|
|
19
|
+
color: $nav-link-color;
|
|
17
20
|
text-decoration: if($link-decoration == none, null, none);
|
|
21
|
+
@include transition($nav-link-transition);
|
|
18
22
|
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
&:hover,
|
|
24
|
+
&:focus {
|
|
25
|
+
color: $nav-link-hover-color;
|
|
26
|
+
text-decoration: if($link-hover-decoration == underline, none, null);
|
|
21
27
|
}
|
|
22
28
|
|
|
23
29
|
// Disabled state lightens text
|
|
@@ -37,11 +43,15 @@
|
|
|
37
43
|
|
|
38
44
|
.nav-link {
|
|
39
45
|
margin-bottom: -$nav-tabs-border-width;
|
|
46
|
+
background: none;
|
|
40
47
|
border: $nav-tabs-border-width solid transparent;
|
|
41
48
|
@include border-top-radius($nav-tabs-border-radius);
|
|
42
49
|
|
|
43
|
-
|
|
50
|
+
&:hover,
|
|
51
|
+
&:focus {
|
|
44
52
|
border-color: $nav-tabs-link-hover-border-color;
|
|
53
|
+
// Prevents active .nav-link tab overlapping focus outline of previous/next .nav-link
|
|
54
|
+
isolation: isolate;
|
|
45
55
|
}
|
|
46
56
|
|
|
47
57
|
&.disabled {
|
|
@@ -73,13 +83,15 @@
|
|
|
73
83
|
|
|
74
84
|
.nav-pills {
|
|
75
85
|
.nav-link {
|
|
86
|
+
background: none;
|
|
87
|
+
border: 0;
|
|
76
88
|
@include border-radius($nav-pills-border-radius);
|
|
77
89
|
}
|
|
78
90
|
|
|
79
91
|
.nav-link.active,
|
|
80
92
|
.show > .nav-link {
|
|
81
93
|
color: $nav-pills-link-active-color;
|
|
82
|
-
|
|
94
|
+
@include gradient-bg($nav-pills-link-active-bg);
|
|
83
95
|
}
|
|
84
96
|
}
|
|
85
97
|
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
// Navbar brand
|
|
5
5
|
// Navbar nav
|
|
6
6
|
// Navbar text
|
|
7
|
-
// Navbar divider
|
|
8
7
|
// Responsive navbar
|
|
9
8
|
// Navbar position
|
|
10
9
|
// Navbar themes
|
|
@@ -21,19 +20,24 @@
|
|
|
21
20
|
flex-wrap: wrap; // allow us to do the line break for collapsing content
|
|
22
21
|
align-items: center;
|
|
23
22
|
justify-content: space-between; // space out brand from logo
|
|
24
|
-
padding: $navbar-padding-y
|
|
23
|
+
padding-top: $navbar-padding-y;
|
|
24
|
+
padding-right: $navbar-padding-x; // default: null
|
|
25
|
+
padding-bottom: $navbar-padding-y;
|
|
26
|
+
padding-left: $navbar-padding-x; // default: null
|
|
27
|
+
@include gradient-bg();
|
|
25
28
|
|
|
26
29
|
// Because flex properties aren't inherited, we need to redeclare these first
|
|
27
30
|
// few properties so that content nested within behave properly.
|
|
31
|
+
// The `flex-wrap` property is inherited to simplify the expanded navbars
|
|
28
32
|
%container-flex-properties {
|
|
29
33
|
display: flex;
|
|
30
|
-
flex-wrap:
|
|
34
|
+
flex-wrap: inherit;
|
|
31
35
|
align-items: center;
|
|
32
36
|
justify-content: space-between;
|
|
33
37
|
}
|
|
34
38
|
|
|
35
|
-
.container,
|
|
36
|
-
.container-fluid {
|
|
39
|
+
> .container,
|
|
40
|
+
> .container-fluid {
|
|
37
41
|
@extend %container-flex-properties;
|
|
38
42
|
}
|
|
39
43
|
|
|
@@ -50,16 +54,16 @@
|
|
|
50
54
|
// Used for brand, project, or site names.
|
|
51
55
|
|
|
52
56
|
.navbar-brand {
|
|
53
|
-
display: inline-block;
|
|
54
57
|
padding-top: $navbar-brand-padding-y;
|
|
55
58
|
padding-bottom: $navbar-brand-padding-y;
|
|
56
|
-
margin-right: $navbar-
|
|
59
|
+
margin-right: $navbar-brand-margin-end;
|
|
57
60
|
@include font-size($navbar-brand-font-size);
|
|
58
|
-
|
|
61
|
+
text-decoration: if($link-decoration == none, null, none);
|
|
59
62
|
white-space: nowrap;
|
|
60
63
|
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
&:hover,
|
|
65
|
+
&:focus {
|
|
66
|
+
text-decoration: if($link-hover-decoration == underline, none, null);
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
69
|
|
|
@@ -82,7 +86,6 @@
|
|
|
82
86
|
|
|
83
87
|
.dropdown-menu {
|
|
84
88
|
position: static;
|
|
85
|
-
float: none;
|
|
86
89
|
}
|
|
87
90
|
}
|
|
88
91
|
|
|
@@ -92,7 +95,6 @@
|
|
|
92
95
|
//
|
|
93
96
|
|
|
94
97
|
.navbar-text {
|
|
95
|
-
display: inline-block;
|
|
96
98
|
padding-top: $nav-link-padding-y;
|
|
97
99
|
padding-bottom: $nav-link-padding-y;
|
|
98
100
|
}
|
|
@@ -122,10 +124,17 @@
|
|
|
122
124
|
background-color: transparent; // remove default button style
|
|
123
125
|
border: $border-width solid transparent; // remove default button style
|
|
124
126
|
@include border-radius($navbar-toggler-border-radius);
|
|
127
|
+
@include transition($navbar-toggler-transition);
|
|
125
128
|
|
|
126
|
-
|
|
129
|
+
&:hover {
|
|
127
130
|
text-decoration: none;
|
|
128
131
|
}
|
|
132
|
+
|
|
133
|
+
&:focus {
|
|
134
|
+
text-decoration: none;
|
|
135
|
+
outline: 0;
|
|
136
|
+
box-shadow: 0 0 0 $navbar-toggler-focus-width;
|
|
137
|
+
}
|
|
129
138
|
}
|
|
130
139
|
|
|
131
140
|
// Keep as a separate element so folks can easily override it with another icon
|
|
@@ -135,12 +144,13 @@
|
|
|
135
144
|
width: 1.5em;
|
|
136
145
|
height: 1.5em;
|
|
137
146
|
vertical-align: middle;
|
|
138
|
-
|
|
139
|
-
background:
|
|
147
|
+
background-repeat: no-repeat;
|
|
148
|
+
background-position: center;
|
|
149
|
+
background-size: 100%;
|
|
140
150
|
}
|
|
141
151
|
|
|
142
152
|
.navbar-nav-scroll {
|
|
143
|
-
max-height: $
|
|
153
|
+
max-height: var(--#{$variable-prefix}scroll-height, 75vh);
|
|
144
154
|
overflow-y: auto;
|
|
145
155
|
}
|
|
146
156
|
|
|
@@ -151,27 +161,10 @@
|
|
|
151
161
|
$next: breakpoint-next($breakpoint, $grid-breakpoints);
|
|
152
162
|
$infix: breakpoint-infix($next, $grid-breakpoints);
|
|
153
163
|
|
|
164
|
+
// stylelint-disable-next-line scss/selector-no-union-class-name
|
|
154
165
|
&#{$infix} {
|
|
155
|
-
@include media-breakpoint-down($breakpoint) {
|
|
156
|
-
%container-navbar-expand-#{$breakpoint} {
|
|
157
|
-
padding-right: 0;
|
|
158
|
-
padding-left: 0;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
> .container,
|
|
162
|
-
> .container-fluid {
|
|
163
|
-
@extend %container-navbar-expand-#{$breakpoint};
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
@each $size, $container-max-width in $container-max-widths {
|
|
167
|
-
> .container#{breakpoint-infix($size, $container-max-widths)} {
|
|
168
|
-
@extend %container-navbar-expand-#{$breakpoint};
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
166
|
@include media-breakpoint-up($next) {
|
|
174
|
-
flex-
|
|
167
|
+
flex-wrap: nowrap;
|
|
175
168
|
justify-content: flex-start;
|
|
176
169
|
|
|
177
170
|
.navbar-nav {
|
|
@@ -187,30 +180,12 @@
|
|
|
187
180
|
}
|
|
188
181
|
}
|
|
189
182
|
|
|
190
|
-
// For nesting containers, have to redeclare for alignment purposes
|
|
191
|
-
%container-nesting-#{$breakpoint} {
|
|
192
|
-
flex-wrap: nowrap;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
> .container,
|
|
196
|
-
> .container-fluid {
|
|
197
|
-
@extend %container-nesting-#{$breakpoint};
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
@each $size, $container-max-width in $container-max-widths {
|
|
201
|
-
> .container#{breakpoint-infix($size, $container-max-widths)} {
|
|
202
|
-
@extend %container-nesting-#{$breakpoint};
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
183
|
.navbar-nav-scroll {
|
|
207
184
|
overflow: visible;
|
|
208
185
|
}
|
|
209
186
|
|
|
210
187
|
.navbar-collapse {
|
|
211
188
|
display: flex !important; // stylelint-disable-line declaration-no-important
|
|
212
|
-
|
|
213
|
-
// Changes flex-bases to auto because of an IE10 bug
|
|
214
189
|
flex-basis: auto;
|
|
215
190
|
}
|
|
216
191
|
|
|
@@ -232,7 +207,8 @@
|
|
|
232
207
|
.navbar-brand {
|
|
233
208
|
color: $navbar-light-brand-color;
|
|
234
209
|
|
|
235
|
-
|
|
210
|
+
&:hover,
|
|
211
|
+
&:focus {
|
|
236
212
|
color: $navbar-light-brand-hover-color;
|
|
237
213
|
}
|
|
238
214
|
}
|
|
@@ -241,7 +217,8 @@
|
|
|
241
217
|
.nav-link {
|
|
242
218
|
color: $navbar-light-color;
|
|
243
219
|
|
|
244
|
-
|
|
220
|
+
&:hover,
|
|
221
|
+
&:focus {
|
|
245
222
|
color: $navbar-light-hover-color;
|
|
246
223
|
}
|
|
247
224
|
|
|
@@ -251,8 +228,6 @@
|
|
|
251
228
|
}
|
|
252
229
|
|
|
253
230
|
.show > .nav-link,
|
|
254
|
-
.active > .nav-link,
|
|
255
|
-
.nav-link.show,
|
|
256
231
|
.nav-link.active {
|
|
257
232
|
color: $navbar-light-active-color;
|
|
258
233
|
}
|
|
@@ -269,12 +244,11 @@
|
|
|
269
244
|
|
|
270
245
|
.navbar-text {
|
|
271
246
|
color: $navbar-light-color;
|
|
272
|
-
a {
|
|
273
|
-
color: $navbar-light-active-color;
|
|
274
247
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
248
|
+
a,
|
|
249
|
+
a:hover,
|
|
250
|
+
a:focus {
|
|
251
|
+
color: $navbar-light-active-color;
|
|
278
252
|
}
|
|
279
253
|
}
|
|
280
254
|
}
|
|
@@ -284,7 +258,8 @@
|
|
|
284
258
|
.navbar-brand {
|
|
285
259
|
color: $navbar-dark-brand-color;
|
|
286
260
|
|
|
287
|
-
|
|
261
|
+
&:hover,
|
|
262
|
+
&:focus {
|
|
288
263
|
color: $navbar-dark-brand-hover-color;
|
|
289
264
|
}
|
|
290
265
|
}
|
|
@@ -293,7 +268,8 @@
|
|
|
293
268
|
.nav-link {
|
|
294
269
|
color: $navbar-dark-color;
|
|
295
270
|
|
|
296
|
-
|
|
271
|
+
&:hover,
|
|
272
|
+
&:focus {
|
|
297
273
|
color: $navbar-dark-hover-color;
|
|
298
274
|
}
|
|
299
275
|
|
|
@@ -303,8 +279,6 @@
|
|
|
303
279
|
}
|
|
304
280
|
|
|
305
281
|
.show > .nav-link,
|
|
306
|
-
.active > .nav-link,
|
|
307
|
-
.nav-link.show,
|
|
308
282
|
.nav-link.active {
|
|
309
283
|
color: $navbar-dark-active-color;
|
|
310
284
|
}
|
|
@@ -321,12 +295,10 @@
|
|
|
321
295
|
|
|
322
296
|
.navbar-text {
|
|
323
297
|
color: $navbar-dark-color;
|
|
324
|
-
a
|
|
298
|
+
a,
|
|
299
|
+
a:hover,
|
|
300
|
+
a:focus {
|
|
325
301
|
color: $navbar-dark-active-color;
|
|
326
|
-
|
|
327
|
-
@include hover-focus() {
|
|
328
|
-
color: $navbar-dark-active-color;
|
|
329
|
-
}
|
|
330
302
|
}
|
|
331
303
|
}
|
|
332
304
|
}
|
|
@@ -1,60 +1,49 @@
|
|
|
1
1
|
.pagination {
|
|
2
2
|
display: flex;
|
|
3
3
|
@include list-unstyled();
|
|
4
|
-
@include border-radius();
|
|
5
4
|
}
|
|
6
5
|
|
|
7
6
|
.page-link {
|
|
8
7
|
position: relative;
|
|
9
8
|
display: block;
|
|
10
|
-
padding: $pagination-padding-y $pagination-padding-x;
|
|
11
|
-
margin-left: -$pagination-border-width;
|
|
12
|
-
line-height: $pagination-line-height;
|
|
13
9
|
color: $pagination-color;
|
|
14
10
|
text-decoration: if($link-decoration == none, null, none);
|
|
15
11
|
background-color: $pagination-bg;
|
|
16
12
|
border: $pagination-border-width solid $pagination-border-color;
|
|
13
|
+
@include transition($pagination-transition);
|
|
17
14
|
|
|
18
15
|
&:hover {
|
|
19
16
|
z-index: 2;
|
|
20
17
|
color: $pagination-hover-color;
|
|
21
|
-
text-decoration: none;
|
|
18
|
+
text-decoration: if($link-hover-decoration == underline, none, null);
|
|
22
19
|
background-color: $pagination-hover-bg;
|
|
23
20
|
border-color: $pagination-hover-border-color;
|
|
24
21
|
}
|
|
25
22
|
|
|
26
23
|
&:focus {
|
|
27
24
|
z-index: 3;
|
|
25
|
+
color: $pagination-focus-color;
|
|
26
|
+
background-color: $pagination-focus-bg;
|
|
28
27
|
outline: $pagination-focus-outline;
|
|
29
28
|
box-shadow: $pagination-focus-box-shadow;
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
.page-item {
|
|
34
|
-
&:first-child {
|
|
35
|
-
|
|
36
|
-
margin-left: 0;
|
|
37
|
-
@include border-left-radius($border-radius);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
&:last-child {
|
|
41
|
-
.page-link {
|
|
42
|
-
@include border-right-radius($border-radius);
|
|
43
|
-
}
|
|
33
|
+
&:not(:first-child) .page-link {
|
|
34
|
+
margin-left: $pagination-margin-start;
|
|
44
35
|
}
|
|
45
36
|
|
|
46
37
|
&.active .page-link {
|
|
47
38
|
z-index: 3;
|
|
48
39
|
color: $pagination-active-color;
|
|
49
|
-
|
|
40
|
+
@include gradient-bg($pagination-active-bg);
|
|
50
41
|
border-color: $pagination-active-border-color;
|
|
51
42
|
}
|
|
52
43
|
|
|
53
44
|
&.disabled .page-link {
|
|
54
45
|
color: $pagination-disabled-color;
|
|
55
46
|
pointer-events: none;
|
|
56
|
-
// Opinionated: remove the "hand" cursor set previously for .page-link
|
|
57
|
-
cursor: auto;
|
|
58
47
|
background-color: $pagination-disabled-bg;
|
|
59
48
|
border-color: $pagination-disabled-border-color;
|
|
60
49
|
}
|
|
@@ -64,11 +53,12 @@
|
|
|
64
53
|
//
|
|
65
54
|
// Sizing
|
|
66
55
|
//
|
|
56
|
+
@include pagination-size($pagination-padding-y, $pagination-padding-x, null, $pagination-border-radius);
|
|
67
57
|
|
|
68
58
|
.pagination-lg {
|
|
69
|
-
@include pagination-size($pagination-padding-y-lg, $pagination-padding-x-lg, $font-size-lg, $
|
|
59
|
+
@include pagination-size($pagination-padding-y-lg, $pagination-padding-x-lg, $font-size-lg, $pagination-border-radius-lg);
|
|
70
60
|
}
|
|
71
61
|
|
|
72
62
|
.pagination-sm {
|
|
73
|
-
@include pagination-size($pagination-padding-y-sm, $pagination-padding-x-sm, $font-size-sm, $
|
|
63
|
+
@include pagination-size($pagination-padding-y-sm, $pagination-padding-x-sm, $font-size-sm, $pagination-border-radius-sm);
|
|
74
64
|
}
|
|
@@ -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,9 +35,7 @@
|
|
|
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 {
|
|
@@ -55,14 +52,11 @@
|
|
|
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;
|
|
@@ -79,9 +73,7 @@
|
|
|
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 {
|
|
@@ -110,14 +102,11 @@
|
|
|
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;
|
|
@@ -134,21 +123,20 @@
|
|
|
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 {
|