bootstrap 4.5.2 → 5.0.0.beta1

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.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/README.md +5 -2
  4. data/assets/javascripts/bootstrap-sprockets.js +11 -8
  5. data/assets/javascripts/bootstrap.js +2170 -1572
  6. data/assets/javascripts/bootstrap.min.js +2 -2
  7. data/assets/javascripts/bootstrap/alert.js +195 -66
  8. data/assets/javascripts/bootstrap/button.js +120 -136
  9. data/assets/javascripts/bootstrap/carousel.js +390 -184
  10. data/assets/javascripts/bootstrap/collapse.js +364 -133
  11. data/assets/javascripts/bootstrap/dom/data.js +81 -0
  12. data/assets/javascripts/bootstrap/dom/event-handler.js +309 -0
  13. data/assets/javascripts/bootstrap/dom/manipulator.js +86 -0
  14. data/assets/javascripts/bootstrap/dom/selector-engine.js +98 -0
  15. data/assets/javascripts/bootstrap/dropdown.js +357 -232
  16. data/assets/javascripts/bootstrap/modal.js +406 -211
  17. data/assets/javascripts/bootstrap/popover.js +82 -50
  18. data/assets/javascripts/bootstrap/scrollspy.js +226 -80
  19. data/assets/javascripts/bootstrap/tab.js +215 -77
  20. data/assets/javascripts/bootstrap/toast.js +239 -79
  21. data/assets/javascripts/bootstrap/tooltip.js +529 -258
  22. data/assets/stylesheets/_bootstrap-grid.scss +51 -15
  23. data/assets/stylesheets/_bootstrap-reboot.scss +4 -1
  24. data/assets/stylesheets/_bootstrap.scss +15 -8
  25. data/assets/stylesheets/bootstrap/_accordion.scss +125 -0
  26. data/assets/stylesheets/bootstrap/_alert.scss +15 -9
  27. data/assets/stylesheets/bootstrap/_badge.scss +2 -27
  28. data/assets/stylesheets/bootstrap/_breadcrumb.scss +4 -20
  29. data/assets/stylesheets/bootstrap/_button-group.scss +21 -45
  30. data/assets/stylesheets/bootstrap/_buttons.scss +27 -60
  31. data/assets/stylesheets/bootstrap/_card.scss +25 -96
  32. data/assets/stylesheets/bootstrap/_carousel.scss +54 -28
  33. data/assets/stylesheets/bootstrap/_close.scss +30 -30
  34. data/assets/stylesheets/bootstrap/_containers.scss +41 -0
  35. data/assets/stylesheets/bootstrap/_dropdown.scss +74 -31
  36. data/assets/stylesheets/bootstrap/_forms.scss +9 -347
  37. data/assets/stylesheets/bootstrap/_functions.scss +87 -23
  38. data/assets/stylesheets/bootstrap/_grid.scss +3 -54
  39. data/assets/stylesheets/bootstrap/_helpers.scss +7 -0
  40. data/assets/stylesheets/bootstrap/_list-group.scss +18 -9
  41. data/assets/stylesheets/bootstrap/_mixins.scss +7 -13
  42. data/assets/stylesheets/bootstrap/_modal.scss +41 -46
  43. data/assets/stylesheets/bootstrap/_nav.scss +12 -8
  44. data/assets/stylesheets/bootstrap/_navbar.scss +43 -74
  45. data/assets/stylesheets/bootstrap/_pagination.scss +10 -20
  46. data/assets/stylesheets/bootstrap/_popover.scss +23 -20
  47. data/assets/stylesheets/bootstrap/_progress.scss +3 -5
  48. data/assets/stylesheets/bootstrap/_reboot.scss +328 -173
  49. data/assets/stylesheets/bootstrap/_root.scss +5 -9
  50. data/assets/stylesheets/bootstrap/_spinners.scss +14 -5
  51. data/assets/stylesheets/bootstrap/_tables.scss +79 -114
  52. data/assets/stylesheets/bootstrap/_toasts.scss +19 -15
  53. data/assets/stylesheets/bootstrap/_tooltip.scss +17 -17
  54. data/assets/stylesheets/bootstrap/_transitions.scss +0 -1
  55. data/assets/stylesheets/bootstrap/_type.scss +38 -59
  56. data/assets/stylesheets/bootstrap/_utilities.scss +560 -18
  57. data/assets/stylesheets/bootstrap/_variables.scss +652 -459
  58. data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +18 -0
  59. data/assets/stylesheets/bootstrap/forms/_floating-labels.scss +61 -0
  60. data/assets/stylesheets/bootstrap/forms/_form-check.scss +151 -0
  61. data/assets/stylesheets/bootstrap/forms/_form-control.scss +223 -0
  62. data/assets/stylesheets/bootstrap/forms/_form-range.scss +91 -0
  63. data/assets/stylesheets/bootstrap/forms/_form-select.scss +68 -0
  64. data/assets/stylesheets/bootstrap/forms/_form-text.scss +11 -0
  65. data/assets/stylesheets/bootstrap/forms/_input-group.scss +121 -0
  66. data/assets/stylesheets/bootstrap/forms/_labels.scss +36 -0
  67. data/assets/stylesheets/bootstrap/forms/_validation.scss +12 -0
  68. data/assets/stylesheets/bootstrap/{utilities → helpers}/_clearfix.scss +0 -0
  69. data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +12 -0
  70. data/assets/stylesheets/bootstrap/helpers/_position.scss +30 -0
  71. data/assets/stylesheets/bootstrap/helpers/_ratio.scss +26 -0
  72. data/assets/stylesheets/bootstrap/helpers/_stretched-link.scss +15 -0
  73. data/assets/stylesheets/bootstrap/helpers/_text-truncation.scss +7 -0
  74. data/assets/stylesheets/bootstrap/helpers/_visually-hidden.scss +8 -0
  75. data/assets/stylesheets/bootstrap/mixins/_alert.scss +1 -5
  76. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +9 -9
  77. data/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +7 -9
  78. data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +14 -10
  79. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +65 -47
  80. data/assets/stylesheets/bootstrap/mixins/_caret.scss +8 -8
  81. data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +2 -0
  82. data/assets/stylesheets/bootstrap/mixins/_container.scss +9 -0
  83. data/assets/stylesheets/bootstrap/mixins/_forms.scss +17 -78
  84. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +9 -11
  85. data/assets/stylesheets/bootstrap/mixins/_grid.scss +84 -33
  86. data/assets/stylesheets/bootstrap/mixins/_image.scss +1 -21
  87. data/assets/stylesheets/bootstrap/mixins/_list-group.scss +3 -2
  88. data/assets/stylesheets/bootstrap/mixins/_lists.scss +1 -1
  89. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +15 -8
  90. data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +2 -2
  91. data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +21 -0
  92. data/assets/stylesheets/bootstrap/mixins/_transition.scss +2 -2
  93. data/assets/stylesheets/bootstrap/mixins/_utilities.scss +68 -0
  94. data/assets/stylesheets/bootstrap/mixins/_visually-hidden.scss +28 -0
  95. data/assets/stylesheets/bootstrap/utilities/_api.scss +47 -0
  96. data/assets/stylesheets/bootstrap/vendor/_rfs.scss +234 -126
  97. data/lib/bootstrap/version.rb +2 -2
  98. data/tasks/updater/js.rb +6 -4
  99. metadata +33 -41
  100. data/assets/javascripts/bootstrap/util.js +0 -192
  101. data/assets/stylesheets/bootstrap/_code.scss +0 -48
  102. data/assets/stylesheets/bootstrap/_custom-forms.scss +0 -523
  103. data/assets/stylesheets/bootstrap/_input-group.scss +0 -192
  104. data/assets/stylesheets/bootstrap/_jumbotron.scss +0 -17
  105. data/assets/stylesheets/bootstrap/_media.scss +0 -8
  106. data/assets/stylesheets/bootstrap/_print.scss +0 -141
  107. data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -23
  108. data/assets/stylesheets/bootstrap/mixins/_badge.scss +0 -17
  109. data/assets/stylesheets/bootstrap/mixins/_float.scss +0 -14
  110. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -80
  111. data/assets/stylesheets/bootstrap/mixins/_hover.scss +0 -37
  112. data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -11
  113. data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +0 -34
  114. data/assets/stylesheets/bootstrap/mixins/_size.scss +0 -7
  115. data/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -39
  116. data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -17
  117. data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +0 -11
  118. data/assets/stylesheets/bootstrap/mixins/_visibility.scss +0 -8
  119. data/assets/stylesheets/bootstrap/utilities/_align.scss +0 -8
  120. data/assets/stylesheets/bootstrap/utilities/_background.scss +0 -19
  121. data/assets/stylesheets/bootstrap/utilities/_borders.scss +0 -75
  122. data/assets/stylesheets/bootstrap/utilities/_display.scss +0 -26
  123. data/assets/stylesheets/bootstrap/utilities/_embed.scss +0 -39
  124. data/assets/stylesheets/bootstrap/utilities/_flex.scss +0 -51
  125. data/assets/stylesheets/bootstrap/utilities/_float.scss +0 -11
  126. data/assets/stylesheets/bootstrap/utilities/_interactions.scss +0 -5
  127. data/assets/stylesheets/bootstrap/utilities/_overflow.scss +0 -5
  128. data/assets/stylesheets/bootstrap/utilities/_position.scss +0 -32
  129. data/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +0 -11
  130. data/assets/stylesheets/bootstrap/utilities/_shadows.scss +0 -6
  131. data/assets/stylesheets/bootstrap/utilities/_sizing.scss +0 -20
  132. data/assets/stylesheets/bootstrap/utilities/_spacing.scss +0 -73
  133. data/assets/stylesheets/bootstrap/utilities/_stretched-link.scss +0 -19
  134. data/assets/stylesheets/bootstrap/utilities/_text.scss +0 -72
  135. data/assets/stylesheets/bootstrap/utilities/_visibility.scss +0 -13
@@ -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
- @include hover-focus() {
20
- text-decoration: none;
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
@@ -35,15 +41,13 @@
35
41
  .nav-tabs {
36
42
  border-bottom: $nav-tabs-border-width solid $nav-tabs-border-color;
37
43
 
38
- .nav-item {
39
- margin-bottom: -$nav-tabs-border-width;
40
- }
41
-
42
44
  .nav-link {
45
+ margin-bottom: -$nav-tabs-border-width;
43
46
  border: $nav-tabs-border-width solid transparent;
44
47
  @include border-top-radius($nav-tabs-border-radius);
45
48
 
46
- @include hover-focus() {
49
+ &:hover,
50
+ &:focus {
47
51
  border-color: $nav-tabs-link-hover-border-color;
48
52
  }
49
53
 
@@ -82,7 +86,7 @@
82
86
  .nav-link.active,
83
87
  .show > .nav-link {
84
88
  color: $nav-pills-link-active-color;
85
- background-color: $nav-pills-link-active-bg;
89
+ @include gradient-bg($nav-pills-link-active-bg);
86
90
  }
87
91
  }
88
92
 
@@ -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 $navbar-padding-x;
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: 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-padding-x;
59
+ margin-right: $navbar-brand-margin-end;
57
60
  @include font-size($navbar-brand-font-size);
58
- line-height: inherit;
61
+ text-decoration: if($link-decoration == none, null, none);
59
62
  white-space: nowrap;
60
63
 
61
- @include hover-focus() {
62
- text-decoration: none;
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
  }
@@ -107,11 +109,10 @@
107
109
  // the default flexbox row orientation. Requires the use of `flex-wrap: wrap`
108
110
  // on the `.navbar` parent.
109
111
  .navbar-collapse {
110
- flex-basis: 100%;
111
- flex-grow: 1;
112
112
  // For always expanded or extra full navbars, ensure content aligns itself
113
113
  // properly vertically. Can be easily overridden with flex utilities.
114
114
  align-items: center;
115
+ width: 100%;
115
116
  }
116
117
 
117
118
  // Button for toggling the navbar when in its collapsed state
@@ -122,10 +123,17 @@
122
123
  background-color: transparent; // remove default button style
123
124
  border: $border-width solid transparent; // remove default button style
124
125
  @include border-radius($navbar-toggler-border-radius);
126
+ @include transition($navbar-toggler-transition);
125
127
 
126
- @include hover-focus() {
128
+ &:hover {
127
129
  text-decoration: none;
128
130
  }
131
+
132
+ &:focus {
133
+ text-decoration: none;
134
+ outline: 0;
135
+ box-shadow: 0 0 0 $navbar-toggler-focus-width;
136
+ }
129
137
  }
130
138
 
131
139
  // Keep as a separate element so folks can easily override it with another icon
@@ -135,9 +143,9 @@
135
143
  width: 1.5em;
136
144
  height: 1.5em;
137
145
  vertical-align: middle;
138
- content: "";
139
- background: no-repeat center center;
140
- background-size: 100% 100%;
146
+ background-repeat: no-repeat;
147
+ background-position: center;
148
+ background-size: 100%;
141
149
  }
142
150
 
143
151
  // Generate series of `.navbar-expand-*` responsive classes for configuring
@@ -147,27 +155,10 @@
147
155
  $next: breakpoint-next($breakpoint, $grid-breakpoints);
148
156
  $infix: breakpoint-infix($next, $grid-breakpoints);
149
157
 
158
+ // stylelint-disable-next-line scss/selector-no-union-class-name
150
159
  &#{$infix} {
151
- @include media-breakpoint-down($breakpoint) {
152
- %container-navbar-expand-#{$breakpoint} {
153
- padding-right: 0;
154
- padding-left: 0;
155
- }
156
-
157
- > .container,
158
- > .container-fluid {
159
- @extend %container-navbar-expand-#{$breakpoint};
160
- }
161
-
162
- @each $size, $container-max-width in $container-max-widths {
163
- > .container#{breakpoint-infix($size, $container-max-widths)} {
164
- @extend %container-navbar-expand-#{$breakpoint};
165
- }
166
- }
167
- }
168
-
169
160
  @include media-breakpoint-up($next) {
170
- flex-flow: row nowrap;
161
+ flex-wrap: nowrap;
171
162
  justify-content: flex-start;
172
163
 
173
164
  .navbar-nav {
@@ -183,27 +174,8 @@
183
174
  }
184
175
  }
185
176
 
186
- // For nesting containers, have to redeclare for alignment purposes
187
- %container-nesting-#{$breakpoint} {
188
- flex-wrap: nowrap;
189
- }
190
-
191
- > .container,
192
- > .container-fluid {
193
- @extend %container-nesting-#{$breakpoint};
194
- }
195
-
196
- @each $size, $container-max-width in $container-max-widths {
197
- > .container#{breakpoint-infix($size, $container-max-widths)} {
198
- @extend %container-nesting-#{$breakpoint};
199
- }
200
- }
201
-
202
177
  .navbar-collapse {
203
178
  display: flex !important; // stylelint-disable-line declaration-no-important
204
-
205
- // Changes flex-bases to auto because of an IE10 bug
206
- flex-basis: auto;
207
179
  }
208
180
 
209
181
  .navbar-toggler {
@@ -224,7 +196,8 @@
224
196
  .navbar-brand {
225
197
  color: $navbar-light-brand-color;
226
198
 
227
- @include hover-focus() {
199
+ &:hover,
200
+ &:focus {
228
201
  color: $navbar-light-brand-hover-color;
229
202
  }
230
203
  }
@@ -233,7 +206,8 @@
233
206
  .nav-link {
234
207
  color: $navbar-light-color;
235
208
 
236
- @include hover-focus() {
209
+ &:hover,
210
+ &:focus {
237
211
  color: $navbar-light-hover-color;
238
212
  }
239
213
 
@@ -243,8 +217,6 @@
243
217
  }
244
218
 
245
219
  .show > .nav-link,
246
- .active > .nav-link,
247
- .nav-link.show,
248
220
  .nav-link.active {
249
221
  color: $navbar-light-active-color;
250
222
  }
@@ -261,12 +233,11 @@
261
233
 
262
234
  .navbar-text {
263
235
  color: $navbar-light-color;
264
- a {
265
- color: $navbar-light-active-color;
266
236
 
267
- @include hover-focus() {
268
- color: $navbar-light-active-color;
269
- }
237
+ a,
238
+ a:hover,
239
+ a:focus {
240
+ color: $navbar-light-active-color;
270
241
  }
271
242
  }
272
243
  }
@@ -276,7 +247,8 @@
276
247
  .navbar-brand {
277
248
  color: $navbar-dark-brand-color;
278
249
 
279
- @include hover-focus() {
250
+ &:hover,
251
+ &:focus {
280
252
  color: $navbar-dark-brand-hover-color;
281
253
  }
282
254
  }
@@ -285,7 +257,8 @@
285
257
  .nav-link {
286
258
  color: $navbar-dark-color;
287
259
 
288
- @include hover-focus() {
260
+ &:hover,
261
+ &:focus {
289
262
  color: $navbar-dark-hover-color;
290
263
  }
291
264
 
@@ -295,8 +268,6 @@
295
268
  }
296
269
 
297
270
  .show > .nav-link,
298
- .active > .nav-link,
299
- .nav-link.show,
300
271
  .nav-link.active {
301
272
  color: $navbar-dark-active-color;
302
273
  }
@@ -313,12 +284,10 @@
313
284
 
314
285
  .navbar-text {
315
286
  color: $navbar-dark-color;
316
- a {
287
+ a,
288
+ a:hover,
289
+ a:focus {
317
290
  color: $navbar-dark-active-color;
318
-
319
- @include hover-focus() {
320
- color: $navbar-dark-active-color;
321
- }
322
291
  }
323
292
  }
324
293
  }
@@ -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
- .page-link {
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
- background-color: $pagination-active-bg;
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, $line-height-lg, $border-radius-lg);
59
+ @include pagination-size($pagination-padding-y-lg, $pagination-padding-x-lg, $font-size-lg, $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, $line-height-sm, $border-radius-sm);
63
+ @include pagination-size($pagination-padding-y-sm, $pagination-padding-x-sm, $font-size-sm, $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,7 +17,7 @@
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;
@@ -36,9 +36,10 @@
36
36
  }
37
37
 
38
38
  .bs-popover-top {
39
- margin-bottom: $popover-arrow-height;
39
+ // Overrule margin set by popper.js
40
+ margin-bottom: $popover-arrow-height !important; // stylelint-disable-line declaration-no-important
40
41
 
41
- > .arrow {
42
+ > .popover-arrow {
42
43
  bottom: subtract(-$popover-arrow-height, $popover-border-width);
43
44
 
44
45
  &::before {
@@ -55,10 +56,11 @@
55
56
  }
56
57
  }
57
58
 
58
- .bs-popover-right {
59
- margin-left: $popover-arrow-height;
59
+ .bs-popover-end {
60
+ // Overrule margin set by popper.js
61
+ margin-left: $popover-arrow-height !important; // stylelint-disable-line declaration-no-important
60
62
 
61
- > .arrow {
63
+ > .popover-arrow {
62
64
  left: subtract(-$popover-arrow-height, $popover-border-width);
63
65
  width: $popover-arrow-height;
64
66
  height: $popover-arrow-width;
@@ -79,9 +81,10 @@
79
81
  }
80
82
 
81
83
  .bs-popover-bottom {
82
- margin-top: $popover-arrow-height;
84
+ // Overrule margin set by popper.js
85
+ margin-top: $popover-arrow-height !important; // stylelint-disable-line declaration-no-important
83
86
 
84
- > .arrow {
87
+ > .popover-arrow {
85
88
  top: subtract(-$popover-arrow-height, $popover-border-width);
86
89
 
87
90
  &::before {
@@ -110,10 +113,11 @@
110
113
  }
111
114
  }
112
115
 
113
- .bs-popover-left {
114
- margin-right: $popover-arrow-height;
116
+ .bs-popover-start {
117
+ // Overrule margin set by popper.js
118
+ margin-right: $popover-arrow-height !important; // stylelint-disable-line declaration-no-important
115
119
 
116
- > .arrow {
120
+ > .popover-arrow {
117
121
  right: subtract(-$popover-arrow-height, $popover-border-width);
118
122
  width: $popover-arrow-height;
119
123
  height: $popover-arrow-width;
@@ -134,21 +138,20 @@
134
138
  }
135
139
 
136
140
  .bs-popover-auto {
137
- &[x-placement^="top"] {
141
+ &[data-popper-placement^="top"] {
138
142
  @extend .bs-popover-top;
139
143
  }
140
- &[x-placement^="right"] {
141
- @extend .bs-popover-right;
144
+ &[data-popper-placement^="right"] {
145
+ @extend .bs-popover-end;
142
146
  }
143
- &[x-placement^="bottom"] {
147
+ &[data-popper-placement^="bottom"] {
144
148
  @extend .bs-popover-bottom;
145
149
  }
146
- &[x-placement^="left"] {
147
- @extend .bs-popover-left;
150
+ &[data-popper-placement^="left"] {
151
+ @extend .bs-popover-start;
148
152
  }
149
153
  }
150
154
 
151
-
152
155
  // Offset the popover to account for the popover arrow
153
156
  .popover-header {
154
157
  padding: $popover-header-padding-y $popover-header-padding-x;
@@ -156,7 +159,7 @@
156
159
  @include font-size($font-size-base);
157
160
  color: $popover-header-color;
158
161
  background-color: $popover-header-bg;
159
- border-bottom: $popover-border-width solid darken($popover-header-bg, 5%);
162
+ border-bottom: $popover-border-width solid shade-color($popover-header-bg, 10%);
160
163
  @include border-top-radius($popover-inner-border-radius);
161
164
 
162
165
  &:empty {