bootstrap 5.0.0.alpha2 → 5.0.0

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 (96) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/README.md +7 -4
  4. data/assets/javascripts/bootstrap-global-this-define.js +6 -0
  5. data/assets/javascripts/bootstrap-global-this-undefine.js +2 -0
  6. data/assets/javascripts/bootstrap-sprockets.js +10 -7
  7. data/assets/javascripts/bootstrap.js +2554 -2564
  8. data/assets/javascripts/bootstrap.min.js +3 -3
  9. data/assets/javascripts/bootstrap/alert.js +119 -115
  10. data/assets/javascripts/bootstrap/base-component.js +63 -0
  11. data/assets/javascripts/bootstrap/button.js +67 -69
  12. data/assets/javascripts/bootstrap/carousel.js +340 -331
  13. data/assets/javascripts/bootstrap/collapse.js +214 -209
  14. data/assets/javascripts/bootstrap/dom/data.js +35 -48
  15. data/assets/javascripts/bootstrap/dom/event-handler.js +105 -98
  16. data/assets/javascripts/bootstrap/dom/manipulator.js +26 -34
  17. data/assets/javascripts/bootstrap/dom/selector-engine.js +28 -41
  18. data/assets/javascripts/bootstrap/dropdown.js +392 -325
  19. data/assets/javascripts/bootstrap/modal.js +492 -434
  20. data/assets/javascripts/bootstrap/offcanvas.js +671 -0
  21. data/assets/javascripts/bootstrap/popover.js +114 -132
  22. data/assets/javascripts/bootstrap/scrollspy.js +172 -180
  23. data/assets/javascripts/bootstrap/tab.js +168 -144
  24. data/assets/javascripts/bootstrap/toast.js +141 -150
  25. data/assets/javascripts/bootstrap/tooltip.js +466 -452
  26. data/assets/stylesheets/_bootstrap-grid.scss +9 -9
  27. data/assets/stylesheets/_bootstrap-reboot.scss +3 -3
  28. data/assets/stylesheets/_bootstrap.scss +5 -3
  29. data/assets/stylesheets/bootstrap/_accordion.scss +118 -0
  30. data/assets/stylesheets/bootstrap/_alert.scss +10 -3
  31. data/assets/stylesheets/bootstrap/_breadcrumb.scss +2 -4
  32. data/assets/stylesheets/bootstrap/_button-group.scss +5 -7
  33. data/assets/stylesheets/bootstrap/_buttons.scss +2 -15
  34. data/assets/stylesheets/bootstrap/_card.scss +2 -29
  35. data/assets/stylesheets/bootstrap/_carousel.scss +35 -18
  36. data/assets/stylesheets/bootstrap/_close.scss +2 -3
  37. data/assets/stylesheets/bootstrap/_dropdown.scss +33 -29
  38. data/assets/stylesheets/bootstrap/_forms.scss +1 -1
  39. data/assets/stylesheets/bootstrap/_functions.scss +11 -12
  40. data/assets/stylesheets/bootstrap/_list-group.scss +23 -6
  41. data/assets/stylesheets/bootstrap/_mixins.scss +1 -0
  42. data/assets/stylesheets/bootstrap/_modal.scss +2 -9
  43. data/assets/stylesheets/bootstrap/_nav.scss +12 -0
  44. data/assets/stylesheets/bootstrap/_navbar.scss +15 -2
  45. data/assets/stylesheets/bootstrap/_offcanvas.scss +77 -0
  46. data/assets/stylesheets/bootstrap/_pagination.scss +3 -3
  47. data/assets/stylesheets/bootstrap/_popover.scss +10 -22
  48. data/assets/stylesheets/bootstrap/_progress.scss +4 -1
  49. data/assets/stylesheets/bootstrap/_reboot.scss +48 -44
  50. data/assets/stylesheets/bootstrap/_root.scss +5 -5
  51. data/assets/stylesheets/bootstrap/_spinners.scss +18 -5
  52. data/assets/stylesheets/bootstrap/_tables.scss +15 -16
  53. data/assets/stylesheets/bootstrap/_toasts.scss +15 -12
  54. data/assets/stylesheets/bootstrap/_tooltip.scss +12 -12
  55. data/assets/stylesheets/bootstrap/_transitions.scss +2 -0
  56. data/assets/stylesheets/bootstrap/_utilities.scss +133 -70
  57. data/assets/stylesheets/bootstrap/_variables.scss +363 -207
  58. data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +5 -5
  59. data/assets/stylesheets/bootstrap/forms/_floating-labels.scss +61 -0
  60. data/assets/stylesheets/bootstrap/forms/_form-check.scss +21 -11
  61. data/assets/stylesheets/bootstrap/forms/_form-control.scss +112 -9
  62. data/assets/stylesheets/bootstrap/forms/_form-range.scss +1 -46
  63. data/assets/stylesheets/bootstrap/forms/_form-select.scss +1 -16
  64. data/assets/stylesheets/bootstrap/forms/_input-group.scss +21 -40
  65. data/assets/stylesheets/bootstrap/forms/_validation.scss +1 -1
  66. data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +2 -2
  67. data/assets/stylesheets/bootstrap/helpers/_ratio.scss +2 -2
  68. data/assets/stylesheets/bootstrap/helpers/_visually-hidden.scss +1 -1
  69. data/assets/stylesheets/bootstrap/mixins/_alert.scss +3 -1
  70. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +8 -6
  71. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +10 -5
  72. data/assets/stylesheets/bootstrap/mixins/_caret.scss +8 -6
  73. data/assets/stylesheets/bootstrap/mixins/_color-scheme.scss +7 -0
  74. data/assets/stylesheets/bootstrap/mixins/_container.scss +2 -4
  75. data/assets/stylesheets/bootstrap/mixins/_forms.scss +26 -22
  76. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +5 -1
  77. data/assets/stylesheets/bootstrap/mixins/_grid.scss +18 -13
  78. data/assets/stylesheets/bootstrap/mixins/_list-group.scss +3 -1
  79. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +5 -3
  80. data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +7 -7
  81. data/assets/stylesheets/bootstrap/mixins/_utilities.scss +19 -0
  82. data/assets/stylesheets/bootstrap/mixins/_visually-hidden.scss +3 -2
  83. data/assets/stylesheets/bootstrap/utilities/_api.scss +1 -1
  84. data/bootstrap.gemspec +1 -3
  85. data/lib/bootstrap/version.rb +2 -2
  86. data/tasks/updater/js.rb +20 -5
  87. data/tasks/updater/network.rb +7 -1
  88. data/test/dummy_rails/app/assets/javascripts/application.js +4 -3
  89. data/test/dummy_rails/app/views/layouts/application.html.erb +3 -1
  90. data/test/dummy_rails/app/views/pages/root.html +89 -0
  91. data/test/dummy_rails/config/application.rb +0 -3
  92. data/test/gemfiles/rails_6_1.gemfile +7 -0
  93. metadata +20 -40
  94. data/assets/javascripts/bootstrap/dom/polyfill.js +0 -110
  95. data/assets/stylesheets/bootstrap/forms/_form-file.scss +0 -91
  96. data/test/dummy_rails/app/views/pages/root.html.slim +0 -58
@@ -31,7 +31,7 @@
31
31
 
32
32
  .page-item {
33
33
  &:not(:first-child) .page-link {
34
- margin-left: $pagination-margin-left;
34
+ margin-left: $pagination-margin-start;
35
35
  }
36
36
 
37
37
  &.active .page-link {
@@ -56,9 +56,9 @@
56
56
  @include pagination-size($pagination-padding-y, $pagination-padding-x, null, $pagination-border-radius);
57
57
 
58
58
  .pagination-lg {
59
- @include pagination-size($pagination-padding-y-lg, $pagination-padding-x-lg, $font-size-lg, $border-radius-lg);
59
+ @include pagination-size($pagination-padding-y-lg, $pagination-padding-x-lg, $font-size-lg, $pagination-border-radius-lg);
60
60
  }
61
61
 
62
62
  .pagination-sm {
63
- @include pagination-size($pagination-padding-y-sm, $pagination-padding-x-sm, $font-size-sm, $border-radius-sm);
63
+ @include pagination-size($pagination-padding-y-sm, $pagination-padding-x-sm, $font-size-sm, $pagination-border-radius-sm);
64
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;
@@ -22,7 +22,6 @@
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,8 +35,6 @@
36
35
  }
37
36
 
38
37
  .bs-popover-top {
39
- margin-bottom: $popover-arrow-height;
40
-
41
38
  > .popover-arrow {
42
39
  bottom: subtract(-$popover-arrow-height, $popover-border-width);
43
40
 
@@ -55,14 +52,11 @@
55
52
  }
56
53
  }
57
54
 
58
- .bs-popover-right {
59
- margin-left: $popover-arrow-height;
60
-
55
+ .bs-popover-end {
61
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,8 +73,6 @@
79
73
  }
80
74
 
81
75
  .bs-popover-bottom {
82
- margin-top: $popover-arrow-height;
83
-
84
76
  > .popover-arrow {
85
77
  top: subtract(-$popover-arrow-height, $popover-border-width);
86
78
 
@@ -110,14 +102,11 @@
110
102
  }
111
103
  }
112
104
 
113
- .bs-popover-left {
114
- margin-right: $popover-arrow-height;
115
-
105
+ .bs-popover-start {
116
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
- &[x-placement^="top"] {
126
+ &[data-popper-placement^="top"] {
138
127
  @extend .bs-popover-top;
139
128
  }
140
- &[x-placement^="right"] {
141
- @extend .bs-popover-right;
129
+ &[data-popper-placement^="right"] {
130
+ @extend .bs-popover-end;
142
131
  }
143
- &[x-placement^="bottom"] {
132
+ &[data-popper-placement^="bottom"] {
144
133
  @extend .bs-popover-bottom;
145
134
  }
146
- &[x-placement^="left"] {
147
- @extend .bs-popover-left;
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 darken($popover-header-bg, 5%);
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,9 +1,12 @@
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
6
  0% { background-position-x: $progress-height; }
5
7
  }
6
8
  }
9
+ // scss-docs-end progress-keyframes
7
10
 
8
11
  .progress {
9
12
  display: flex;
@@ -34,7 +37,7 @@
34
37
 
35
38
  @if $enable-transitions {
36
39
  .progress-bar-animated {
37
- animation: progress-bar-stripes $progress-bar-animation-timing;
40
+ animation: $progress-bar-animation-timing progress-bar-stripes;
38
41
 
39
42
  @if $enable-reduced-motion {
40
43
  @media (prefers-reduced-motion: reduce) {
@@ -1,4 +1,4 @@
1
- // stylelint-disable at-rule-no-vendor-prefix, declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
1
+ // stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
2
2
 
3
3
 
4
4
  // Reboot
@@ -27,6 +27,12 @@
27
27
 
28
28
  :root {
29
29
  font-size: $font-size-root;
30
+
31
+ @if $enable-smooth-scroll {
32
+ @media (prefers-reduced-motion: no-preference) {
33
+ scroll-behavior: smooth;
34
+ }
35
+ }
30
36
  }
31
37
 
32
38
 
@@ -51,20 +57,6 @@ body {
51
57
  }
52
58
 
53
59
 
54
- // Future-proof rule: in browsers that support :focus-visible, suppress the focus outline
55
- // on elements that programmatically receive focus but wouldn't normally show a visible
56
- // focus outline. In general, this would mean that the outline is only applied if the
57
- // interaction that led to the element receiving programmatic focus was a keyboard interaction,
58
- // or the browser has somehow determined that the user is primarily a keyboard user and/or
59
- // wants focus outlines to always be presented.
60
- // See https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible
61
- // and https://developer.paciellogroup.com/blog/2018/03/focus-visible-and-backwards-compatibility/
62
-
63
- [tabindex="-1"]:focus:not(:focus-visible) {
64
- outline: 0 !important;
65
- }
66
-
67
-
68
60
  // Content grouping
69
61
  //
70
62
  // 1. Reset Firefox's gray color
@@ -143,14 +135,13 @@ p {
143
135
 
144
136
  // Abbreviations
145
137
  //
146
- // 1. Duplicate behavior to the data-* attribute for our tooltip plugin
138
+ // 1. Duplicate behavior to the data-bs-* attribute for our tooltip plugin
147
139
  // 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
148
140
  // 3. Add explicit cursor to indicate changed behavior.
149
141
  // 4. Prevent the text-decoration to be skipped.
150
142
 
151
143
  abbr[title],
152
- abbr[data-original-title] { // 1
153
- text-decoration: underline; // 2
144
+ abbr[data-bs-original-title] { // 1
154
145
  text-decoration: underline dotted; // 2
155
146
  cursor: help; // 3
156
147
  text-decoration-skip-ink: none; // 4
@@ -284,13 +275,13 @@ kbd,
284
275
  samp {
285
276
  font-family: $font-family-code;
286
277
  @include font-size(1em); // Correct the odd `em` font sizing in all browsers.
278
+ direction: ltr #{"/* rtl:ignore */"};
279
+ unicode-bidi: bidi-override;
287
280
  }
288
281
 
289
282
  // 1. Remove browser default top margin
290
283
  // 2. Reset browser default of `1em` to use `rem`s
291
284
  // 3. Don't allow content to break outside
292
- // 4. Disable auto-hiding scrollbar in legacy Edge to avoid overlap,
293
- // making it impossible to interact with the content
294
285
 
295
286
  pre {
296
287
  display: block;
@@ -299,7 +290,6 @@ pre {
299
290
  overflow: auto; // 3
300
291
  @include font-size($code-font-size);
301
292
  color: $pre-color;
302
- -ms-overflow-style: scrollbar; // 4
303
293
 
304
294
  // Account for some code outputs that place code tags in pre tags
305
295
  code {
@@ -406,13 +396,13 @@ button {
406
396
  border-radius: 0;
407
397
  }
408
398
 
409
- // Work around a Firefox bug where the transparent `button` background
410
- // results in a loss of the default `button` focus styles.
411
- // Credit https://github.com/suitcss/base/
399
+ // Explicitly remove focus outline in Chromium when it shouldn't be
400
+ // visible (e.g. as result of mouse click or touch tap). It already
401
+ // should be doing this automatically, but seems to currently be
402
+ // confused and applies its very visible two-tone outline anyway.
412
403
 
413
- button:focus {
414
- outline: 1px dotted;
415
- outline: 5px auto -webkit-focus-ring-color;
404
+ button:focus:not(:focus-visible) {
405
+ outline: 0;
416
406
  }
417
407
 
418
408
  // 1. Remove the margin in Firefox and Safari
@@ -428,20 +418,11 @@ textarea {
428
418
  line-height: inherit;
429
419
  }
430
420
 
431
- // Show the overflow in Edge
432
-
433
- button,
434
- input {
435
- overflow: visible;
436
- }
437
-
438
421
  // Remove the inheritance of text transform in Firefox
439
-
440
422
  button,
441
423
  select {
442
424
  text-transform: none;
443
425
  }
444
-
445
426
  // Set the cursor for non-`<button>` buttons
446
427
  //
447
428
  // Details at https://github.com/twbs/bootstrap/pull/30562
@@ -449,11 +430,15 @@ select {
449
430
  cursor: pointer;
450
431
  }
451
432
 
452
- // Remove the inheritance of word-wrap in Safari.
453
- // See https://github.com/twbs/bootstrap/issues/24990
454
-
455
433
  select {
434
+ // Remove the inheritance of word-wrap in Safari.
435
+ // See https://github.com/twbs/bootstrap/issues/24990
456
436
  word-wrap: normal;
437
+
438
+ // Undo the opacity change from Chrome
439
+ &:disabled {
440
+ opacity: 1;
441
+ }
457
442
  }
458
443
 
459
444
  // Remove the dropdown arrow in Chrome from inputs built with datalists.
@@ -510,8 +495,7 @@ fieldset {
510
495
 
511
496
  // 1. By using `float: left`, the legend will behave like a block element.
512
497
  // This way the border of a fieldset wraps around the legend if present.
513
- // 2. Correct the text wrapping in Edge.
514
- // 3. Fix wrapping bug.
498
+ // 2. Fix wrapping bug.
515
499
  // See https://github.com/twbs/bootstrap/issues/29712
516
500
 
517
501
  legend {
@@ -522,10 +506,9 @@ legend {
522
506
  @include font-size($legend-font-size);
523
507
  font-weight: $legend-font-weight;
524
508
  line-height: inherit;
525
- white-space: normal; // 2
526
509
 
527
510
  + * {
528
- clear: left; // 3
511
+ clear: left; // 2
529
512
  }
530
513
  }
531
514
 
@@ -557,6 +540,20 @@ legend {
557
540
  -webkit-appearance: textfield; // 2
558
541
  }
559
542
 
543
+ // 1. A few input types should stay LTR
544
+ // See https://rtlstyling.com/posts/rtl-styling#form-inputs
545
+ // 2. RTL only output
546
+ // See https://rtlcss.com/learn/usage-guide/control-directives/#raw
547
+
548
+ /* rtl:raw:
549
+ [type="tel"],
550
+ [type="url"],
551
+ [type="email"],
552
+ [type="number"] {
553
+ direction: ltr;
554
+ }
555
+ */
556
+
560
557
  // Remove the inner padding in Chrome and Safari on macOS.
561
558
 
562
559
  ::-webkit-search-decoration {
@@ -569,7 +566,14 @@ legend {
569
566
  padding: 0;
570
567
  }
571
568
 
572
- // 1. Change font properties to `inherit` in Safari.
569
+
570
+ // Inherit font family and line height for file input buttons
571
+
572
+ ::file-selector-button {
573
+ font: inherit;
574
+ }
575
+
576
+ // 1. Change font properties to `inherit`
573
577
  // 2. Correct the inability to style clickable types in iOS and Safari.
574
578
 
575
579
  ::-webkit-file-upload-button {
@@ -1,16 +1,16 @@
1
1
  :root {
2
2
  // Custom variable values only support SassScript inside `#{}`.
3
3
  @each $color, $value in $colors {
4
- --bs-#{$color}: #{$value};
4
+ --#{$variable-prefix}#{$color}: #{$value};
5
5
  }
6
6
 
7
7
  @each $color, $value in $theme-colors {
8
- --bs-#{$color}: #{$value};
8
+ --#{$variable-prefix}#{$color}: #{$value};
9
9
  }
10
10
 
11
11
  // Use `inspect` for lists so that quoted items keep the quotes.
12
12
  // See https://github.com/sass/sass/issues/2383#issuecomment-336349172
13
- --bs-font-sans-serif: #{inspect($font-family-sans-serif)};
14
- --bs-font-monospace: #{inspect($font-family-monospace)};
15
- --bs-gradient: #{$gradient};
13
+ --#{$variable-prefix}font-sans-serif: #{inspect($font-family-sans-serif)};
14
+ --#{$variable-prefix}font-monospace: #{inspect($font-family-monospace)};
15
+ --#{$variable-prefix}gradient: #{$gradient};
16
16
  }
@@ -2,20 +2,22 @@
2
2
  // Rotating border
3
3
  //
4
4
 
5
+ // scss-docs-start spinner-border-keyframes
5
6
  @keyframes spinner-border {
6
- to { transform: rotate(360deg); }
7
+ to { transform: rotate(360deg) #{"/* rtl:ignore */"}; }
7
8
  }
9
+ // scss-docs-end spinner-border-keyframes
8
10
 
9
11
  .spinner-border {
10
12
  display: inline-block;
11
13
  width: $spinner-width;
12
14
  height: $spinner-height;
13
- vertical-align: text-bottom;
15
+ vertical-align: $spinner-vertical-align;
14
16
  border: $spinner-border-width solid currentColor;
15
17
  border-right-color: transparent;
16
18
  // stylelint-disable-next-line property-disallowed-list
17
19
  border-radius: 50%;
18
- animation: spinner-border $spinner-animation-speed linear infinite;
20
+ animation: $spinner-animation-speed linear infinite spinner-border;
19
21
  }
20
22
 
21
23
  .spinner-border-sm {
@@ -28,6 +30,7 @@
28
30
  // Growing circle
29
31
  //
30
32
 
33
+ // scss-docs-start spinner-grow-keyframes
31
34
  @keyframes spinner-grow {
32
35
  0% {
33
36
  transform: scale(0);
@@ -37,20 +40,30 @@
37
40
  transform: none;
38
41
  }
39
42
  }
43
+ // scss-docs-end spinner-grow-keyframes
40
44
 
41
45
  .spinner-grow {
42
46
  display: inline-block;
43
47
  width: $spinner-width;
44
48
  height: $spinner-height;
45
- vertical-align: text-bottom;
49
+ vertical-align: $spinner-vertical-align;
46
50
  background-color: currentColor;
47
51
  // stylelint-disable-next-line property-disallowed-list
48
52
  border-radius: 50%;
49
53
  opacity: 0;
50
- animation: spinner-grow $spinner-animation-speed linear infinite;
54
+ animation: $spinner-animation-speed linear infinite spinner-grow;
51
55
  }
52
56
 
53
57
  .spinner-grow-sm {
54
58
  width: $spinner-width-sm;
55
59
  height: $spinner-height-sm;
56
60
  }
61
+
62
+ @if $enable-reduced-motion {
63
+ @media (prefers-reduced-motion: reduce) {
64
+ .spinner-border,
65
+ .spinner-grow {
66
+ animation-duration: $spinner-animation-speed * 2;
67
+ }
68
+ }
69
+ }
@@ -3,14 +3,13 @@
3
3
  //
4
4
 
5
5
  .table {
6
- --bs-table-bg: #{$table-bg};
7
- --bs-table-accent-bg: transparent;
8
- --bs-table-striped-color: #{$table-striped-color};
9
- --bs-table-striped-bg: #{$table-striped-bg};
10
- --bs-table-active-color: #{$table-active-color};
11
- --bs-table-active-bg: #{$table-active-bg};
12
- --bs-table-hover-color: #{$table-hover-color};
13
- --bs-table-hover-bg: #{$table-hover-bg};
6
+ --#{$variable-prefix}table-bg: #{$table-bg};
7
+ --#{$variable-prefix}table-striped-color: #{$table-striped-color};
8
+ --#{$variable-prefix}table-striped-bg: #{$table-striped-bg};
9
+ --#{$variable-prefix}table-active-color: #{$table-active-color};
10
+ --#{$variable-prefix}table-active-bg: #{$table-active-bg};
11
+ --#{$variable-prefix}table-hover-color: #{$table-hover-color};
12
+ --#{$variable-prefix}table-hover-bg: #{$table-hover-bg};
14
13
 
15
14
  width: 100%;
16
15
  margin-bottom: $spacer;
@@ -25,9 +24,9 @@
25
24
  // stylelint-disable-next-line selector-max-universal
26
25
  > :not(caption) > * > * {
27
26
  padding: $table-cell-padding-y $table-cell-padding-x;
28
- background-color: var(--bs-table-bg);
29
- background-image: linear-gradient(var(--bs-table-accent-bg), var(--bs-table-accent-bg));
27
+ background-color: var(--#{$variable-prefix}table-bg);
30
28
  border-bottom-width: $table-border-width;
29
+ box-shadow: inset 0 0 0 9999px var(--#{$variable-prefix}table-accent-bg);
31
30
  }
32
31
 
33
32
  > tbody {
@@ -99,8 +98,8 @@
99
98
 
100
99
  .table-striped {
101
100
  > tbody > tr:nth-of-type(#{$table-striped-order}) {
102
- --bs-table-accent-bg: var(--bs-table-striped-bg);
103
- color: var(--bs-table-striped-color);
101
+ --#{$variable-prefix}table-accent-bg: var(--#{$variable-prefix}table-striped-bg);
102
+ color: var(--#{$variable-prefix}table-striped-color);
104
103
  }
105
104
  }
106
105
 
@@ -109,8 +108,8 @@
109
108
  // The `.table-active` class can be added to highlight rows or cells
110
109
 
111
110
  .table-active {
112
- --bs-table-accent-bg: var(--bs-table-active-bg);
113
- color: var(--bs-table-active-color);
111
+ --#{$variable-prefix}table-accent-bg: var(--#{$variable-prefix}table-active-bg);
112
+ color: var(--#{$variable-prefix}table-active-color);
114
113
  }
115
114
 
116
115
  // Hover effect
@@ -119,8 +118,8 @@
119
118
 
120
119
  .table-hover {
121
120
  > tbody > tr:hover {
122
- --bs-table-accent-bg: var(--bs-table-hover-bg);
123
- color: var(--bs-table-hover-color);
121
+ --#{$variable-prefix}table-accent-bg: var(--#{$variable-prefix}table-hover-bg);
122
+ color: var(--#{$variable-prefix}table-hover-color);
124
123
  }
125
124
  }
126
125