bootstrap-scss 5.2.0 → 5.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. package/README.md +1 -1
  2. package/_accordion.scss +7 -4
  3. package/_alert.scss +71 -71
  4. package/_badge.scss +38 -38
  5. package/_breadcrumb.scss +40 -40
  6. package/_button-group.scss +1 -1
  7. package/_buttons.scss +23 -8
  8. package/_card.scss +234 -234
  9. package/_carousel.scss +229 -229
  10. package/_close.scss +40 -40
  11. package/_containers.scss +41 -41
  12. package/_dropdown.scss +2 -1
  13. package/_forms.scss +9 -9
  14. package/_functions.scss +1 -1
  15. package/_grid.scss +33 -33
  16. package/_helpers.scss +10 -10
  17. package/_list-group.scss +6 -5
  18. package/_maps.scss +54 -54
  19. package/_mixins.scss +43 -43
  20. package/_modal.scss +1 -1
  21. package/_nav.scss +2 -2
  22. package/_navbar.scss +2 -0
  23. package/_offcanvas.scss +5 -4
  24. package/_pagination.scss +1 -1
  25. package/_placeholders.scss +51 -51
  26. package/_popover.scss +5 -5
  27. package/_progress.scss +59 -59
  28. package/_reboot.scss +610 -610
  29. package/_root.scss +73 -73
  30. package/_spinners.scss +85 -85
  31. package/_tables.scss +164 -164
  32. package/_toasts.scss +3 -2
  33. package/_tooltip.scss +120 -120
  34. package/_transitions.scss +27 -27
  35. package/_type.scss +106 -106
  36. package/_utilities.scss +647 -647
  37. package/_variables.scss +17 -16
  38. package/bootstrap-grid.scss +64 -64
  39. package/bootstrap-reboot.scss +9 -9
  40. package/bootstrap-utilities.scss +15 -15
  41. package/bootstrap.scss +51 -51
  42. package/forms/_floating-labels.scss +1 -0
  43. package/forms/_form-check.scss +175 -175
  44. package/forms/_form-control.scss +194 -194
  45. package/forms/_form-range.scss +91 -91
  46. package/forms/_form-select.scss +71 -71
  47. package/forms/_form-text.scss +11 -11
  48. package/forms/_input-group.scss +7 -4
  49. package/forms/_labels.scss +36 -36
  50. package/forms/_validation.scss +12 -12
  51. package/helpers/_clearfix.scss +3 -3
  52. package/helpers/_color-bg.scss +10 -10
  53. package/helpers/_colored-links.scss +12 -12
  54. package/helpers/_position.scss +36 -36
  55. package/helpers/_ratio.scss +26 -26
  56. package/helpers/_stacks.scss +15 -15
  57. package/helpers/_stretched-link.scss +15 -15
  58. package/helpers/_text-truncation.scss +7 -7
  59. package/helpers/_visually-hidden.scss +8 -8
  60. package/helpers/_vr.scss +8 -8
  61. package/mixins/_alert.scss +15 -15
  62. package/mixins/_backdrop.scss +14 -14
  63. package/mixins/_banner.scss +2 -2
  64. package/mixins/_border-radius.scss +78 -78
  65. package/mixins/_box-shadow.scss +18 -18
  66. package/mixins/_breakpoints.scss +127 -127
  67. package/mixins/_buttons.scss +70 -70
  68. package/mixins/_caret.scss +64 -64
  69. package/mixins/_clearfix.scss +9 -9
  70. package/mixins/_color-scheme.scss +7 -7
  71. package/mixins/_container.scss +11 -11
  72. package/mixins/_forms.scss +10 -10
  73. package/mixins/_gradients.scss +47 -47
  74. package/mixins/_grid.scss +151 -151
  75. package/mixins/_image.scss +16 -16
  76. package/mixins/_list-group.scss +24 -24
  77. package/mixins/_lists.scss +7 -7
  78. package/mixins/_pagination.scss +10 -10
  79. package/mixins/_reset-text.scss +17 -17
  80. package/mixins/_table-variants.scss +24 -24
  81. package/mixins/_transition.scss +26 -26
  82. package/mixins/_utilities.scss +1 -1
  83. package/mixins/_visually-hidden.scss +29 -29
  84. package/package.json +1 -1
  85. package/utilities/_api.scss +47 -47
  86. package/vendor/_rfs.scss +354 -354
package/_root.scss CHANGED
@@ -1,73 +1,73 @@
1
- :root {
2
- // Note: Custom variable values only support SassScript inside `#{}`.
3
-
4
- // Colors
5
- //
6
- // Generate palettes for full colors, grays, and theme colors.
7
-
8
- @each $color, $value in $colors {
9
- --#{$prefix}#{$color}: #{$value};
10
- }
11
-
12
- @each $color, $value in $grays {
13
- --#{$prefix}gray-#{$color}: #{$value};
14
- }
15
-
16
- @each $color, $value in $theme-colors {
17
- --#{$prefix}#{$color}: #{$value};
18
- }
19
-
20
- @each $color, $value in $theme-colors-rgb {
21
- --#{$prefix}#{$color}-rgb: #{$value};
22
- }
23
-
24
- --#{$prefix}white-rgb: #{to-rgb($white)};
25
- --#{$prefix}black-rgb: #{to-rgb($black)};
26
- --#{$prefix}body-color-rgb: #{to-rgb($body-color)};
27
- --#{$prefix}body-bg-rgb: #{to-rgb($body-bg)};
28
-
29
- // Fonts
30
-
31
- // Note: Use `inspect` for lists so that quoted items keep the quotes.
32
- // See https://github.com/sass/sass/issues/2383#issuecomment-336349172
33
- --#{$prefix}font-sans-serif: #{inspect($font-family-sans-serif)};
34
- --#{$prefix}font-monospace: #{inspect($font-family-monospace)};
35
- --#{$prefix}gradient: #{$gradient};
36
-
37
- // Root and body
38
- // scss-docs-start root-body-variables
39
- @if $font-size-root != null {
40
- --#{$prefix}root-font-size: #{$font-size-root};
41
- }
42
- --#{$prefix}body-font-family: #{$font-family-base};
43
- @include rfs($font-size-base, --#{$prefix}body-font-size);
44
- --#{$prefix}body-font-weight: #{$font-weight-base};
45
- --#{$prefix}body-line-height: #{$line-height-base};
46
- --#{$prefix}body-color: #{$body-color};
47
- @if $body-text-align != null {
48
- --#{$prefix}body-text-align: #{$body-text-align};
49
- }
50
- --#{$prefix}body-bg: #{$body-bg};
51
- // scss-docs-end root-body-variables
52
-
53
- // scss-docs-start root-border-var
54
- --#{$prefix}border-width: #{$border-width};
55
- --#{$prefix}border-style: #{$border-style};
56
- --#{$prefix}border-color: #{$border-color};
57
- --#{$prefix}border-color-translucent: #{$border-color-translucent};
58
-
59
- --#{$prefix}border-radius: #{$border-radius};
60
- --#{$prefix}border-radius-sm: #{$border-radius-sm};
61
- --#{$prefix}border-radius-lg: #{$border-radius-lg};
62
- --#{$prefix}border-radius-xl: #{$border-radius-xl};
63
- --#{$prefix}border-radius-2xl: #{$border-radius-2xl};
64
- --#{$prefix}border-radius-pill: #{$border-radius-pill};
65
- // scss-docs-end root-border-var
66
-
67
- --#{$prefix}link-color: #{$link-color};
68
- --#{$prefix}link-hover-color: #{$link-hover-color};
69
-
70
- --#{$prefix}code-color: #{$code-color};
71
-
72
- --#{$prefix}highlight-bg: #{$mark-bg};
73
- }
1
+ :root {
2
+ // Note: Custom variable values only support SassScript inside `#{}`.
3
+
4
+ // Colors
5
+ //
6
+ // Generate palettes for full colors, grays, and theme colors.
7
+
8
+ @each $color, $value in $colors {
9
+ --#{$prefix}#{$color}: #{$value};
10
+ }
11
+
12
+ @each $color, $value in $grays {
13
+ --#{$prefix}gray-#{$color}: #{$value};
14
+ }
15
+
16
+ @each $color, $value in $theme-colors {
17
+ --#{$prefix}#{$color}: #{$value};
18
+ }
19
+
20
+ @each $color, $value in $theme-colors-rgb {
21
+ --#{$prefix}#{$color}-rgb: #{$value};
22
+ }
23
+
24
+ --#{$prefix}white-rgb: #{to-rgb($white)};
25
+ --#{$prefix}black-rgb: #{to-rgb($black)};
26
+ --#{$prefix}body-color-rgb: #{to-rgb($body-color)};
27
+ --#{$prefix}body-bg-rgb: #{to-rgb($body-bg)};
28
+
29
+ // Fonts
30
+
31
+ // Note: Use `inspect` for lists so that quoted items keep the quotes.
32
+ // See https://github.com/sass/sass/issues/2383#issuecomment-336349172
33
+ --#{$prefix}font-sans-serif: #{inspect($font-family-sans-serif)};
34
+ --#{$prefix}font-monospace: #{inspect($font-family-monospace)};
35
+ --#{$prefix}gradient: #{$gradient};
36
+
37
+ // Root and body
38
+ // scss-docs-start root-body-variables
39
+ @if $font-size-root != null {
40
+ --#{$prefix}root-font-size: #{$font-size-root};
41
+ }
42
+ --#{$prefix}body-font-family: #{$font-family-base};
43
+ @include rfs($font-size-base, --#{$prefix}body-font-size);
44
+ --#{$prefix}body-font-weight: #{$font-weight-base};
45
+ --#{$prefix}body-line-height: #{$line-height-base};
46
+ --#{$prefix}body-color: #{$body-color};
47
+ @if $body-text-align != null {
48
+ --#{$prefix}body-text-align: #{$body-text-align};
49
+ }
50
+ --#{$prefix}body-bg: #{$body-bg};
51
+ // scss-docs-end root-body-variables
52
+
53
+ // scss-docs-start root-border-var
54
+ --#{$prefix}border-width: #{$border-width};
55
+ --#{$prefix}border-style: #{$border-style};
56
+ --#{$prefix}border-color: #{$border-color};
57
+ --#{$prefix}border-color-translucent: #{$border-color-translucent};
58
+
59
+ --#{$prefix}border-radius: #{$border-radius};
60
+ --#{$prefix}border-radius-sm: #{$border-radius-sm};
61
+ --#{$prefix}border-radius-lg: #{$border-radius-lg};
62
+ --#{$prefix}border-radius-xl: #{$border-radius-xl};
63
+ --#{$prefix}border-radius-2xl: #{$border-radius-2xl};
64
+ --#{$prefix}border-radius-pill: #{$border-radius-pill};
65
+ // scss-docs-end root-border-var
66
+
67
+ --#{$prefix}link-color: #{$link-color};
68
+ --#{$prefix}link-hover-color: #{$link-hover-color};
69
+
70
+ --#{$prefix}code-color: #{$code-color};
71
+
72
+ --#{$prefix}highlight-bg: #{$mark-bg};
73
+ }
package/_spinners.scss CHANGED
@@ -1,85 +1,85 @@
1
- //
2
- // Rotating border
3
- //
4
-
5
- .spinner-grow,
6
- .spinner-border {
7
- display: inline-block;
8
- width: var(--#{$prefix}spinner-width);
9
- height: var(--#{$prefix}spinner-height);
10
- vertical-align: var(--#{$prefix}spinner-vertical-align);
11
- // stylelint-disable-next-line property-disallowed-list
12
- border-radius: 50%;
13
- animation: var(--#{$prefix}spinner-animation-speed) linear infinite var(--#{$prefix}spinner-animation-name);
14
- }
15
-
16
- // scss-docs-start spinner-border-keyframes
17
- @keyframes spinner-border {
18
- to { transform: rotate(360deg) #{"/* rtl:ignore */"}; }
19
- }
20
- // scss-docs-end spinner-border-keyframes
21
-
22
- .spinner-border {
23
- // scss-docs-start spinner-border-css-vars
24
- --#{$prefix}spinner-width: #{$spinner-width};
25
- --#{$prefix}spinner-height: #{$spinner-height};
26
- --#{$prefix}spinner-vertical-align: #{$spinner-vertical-align};
27
- --#{$prefix}spinner-border-width: #{$spinner-border-width};
28
- --#{$prefix}spinner-animation-speed: #{$spinner-animation-speed};
29
- --#{$prefix}spinner-animation-name: spinner-border;
30
- // scss-docs-end spinner-border-css-vars
31
-
32
- border: var(--#{$prefix}spinner-border-width) solid currentcolor;
33
- border-right-color: transparent;
34
- }
35
-
36
- .spinner-border-sm {
37
- // scss-docs-start spinner-border-sm-css-vars
38
- --#{$prefix}spinner-width: #{$spinner-width-sm};
39
- --#{$prefix}spinner-height: #{$spinner-height-sm};
40
- --#{$prefix}spinner-border-width: #{$spinner-border-width-sm};
41
- // scss-docs-end spinner-border-sm-css-vars
42
- }
43
-
44
- //
45
- // Growing circle
46
- //
47
-
48
- // scss-docs-start spinner-grow-keyframes
49
- @keyframes spinner-grow {
50
- 0% {
51
- transform: scale(0);
52
- }
53
- 50% {
54
- opacity: 1;
55
- transform: none;
56
- }
57
- }
58
- // scss-docs-end spinner-grow-keyframes
59
-
60
- .spinner-grow {
61
- // scss-docs-start spinner-grow-css-vars
62
- --#{$prefix}spinner-width: #{$spinner-width};
63
- --#{$prefix}spinner-height: #{$spinner-height};
64
- --#{$prefix}spinner-vertical-align: #{$spinner-vertical-align};
65
- --#{$prefix}spinner-animation-speed: #{$spinner-animation-speed};
66
- --#{$prefix}spinner-animation-name: spinner-grow;
67
- // scss-docs-end spinner-grow-css-vars
68
-
69
- background-color: currentcolor;
70
- opacity: 0;
71
- }
72
-
73
- .spinner-grow-sm {
74
- --#{$prefix}spinner-width: #{$spinner-width-sm};
75
- --#{$prefix}spinner-height: #{$spinner-height-sm};
76
- }
77
-
78
- @if $enable-reduced-motion {
79
- @media (prefers-reduced-motion: reduce) {
80
- .spinner-border,
81
- .spinner-grow {
82
- --#{$prefix}spinner-animation-speed: #{$spinner-animation-speed * 2};
83
- }
84
- }
85
- }
1
+ //
2
+ // Rotating border
3
+ //
4
+
5
+ .spinner-grow,
6
+ .spinner-border {
7
+ display: inline-block;
8
+ width: var(--#{$prefix}spinner-width);
9
+ height: var(--#{$prefix}spinner-height);
10
+ vertical-align: var(--#{$prefix}spinner-vertical-align);
11
+ // stylelint-disable-next-line property-disallowed-list
12
+ border-radius: 50%;
13
+ animation: var(--#{$prefix}spinner-animation-speed) linear infinite var(--#{$prefix}spinner-animation-name);
14
+ }
15
+
16
+ // scss-docs-start spinner-border-keyframes
17
+ @keyframes spinner-border {
18
+ to { transform: rotate(360deg) #{"/* rtl:ignore */"}; }
19
+ }
20
+ // scss-docs-end spinner-border-keyframes
21
+
22
+ .spinner-border {
23
+ // scss-docs-start spinner-border-css-vars
24
+ --#{$prefix}spinner-width: #{$spinner-width};
25
+ --#{$prefix}spinner-height: #{$spinner-height};
26
+ --#{$prefix}spinner-vertical-align: #{$spinner-vertical-align};
27
+ --#{$prefix}spinner-border-width: #{$spinner-border-width};
28
+ --#{$prefix}spinner-animation-speed: #{$spinner-animation-speed};
29
+ --#{$prefix}spinner-animation-name: spinner-border;
30
+ // scss-docs-end spinner-border-css-vars
31
+
32
+ border: var(--#{$prefix}spinner-border-width) solid currentcolor;
33
+ border-right-color: transparent;
34
+ }
35
+
36
+ .spinner-border-sm {
37
+ // scss-docs-start spinner-border-sm-css-vars
38
+ --#{$prefix}spinner-width: #{$spinner-width-sm};
39
+ --#{$prefix}spinner-height: #{$spinner-height-sm};
40
+ --#{$prefix}spinner-border-width: #{$spinner-border-width-sm};
41
+ // scss-docs-end spinner-border-sm-css-vars
42
+ }
43
+
44
+ //
45
+ // Growing circle
46
+ //
47
+
48
+ // scss-docs-start spinner-grow-keyframes
49
+ @keyframes spinner-grow {
50
+ 0% {
51
+ transform: scale(0);
52
+ }
53
+ 50% {
54
+ opacity: 1;
55
+ transform: none;
56
+ }
57
+ }
58
+ // scss-docs-end spinner-grow-keyframes
59
+
60
+ .spinner-grow {
61
+ // scss-docs-start spinner-grow-css-vars
62
+ --#{$prefix}spinner-width: #{$spinner-width};
63
+ --#{$prefix}spinner-height: #{$spinner-height};
64
+ --#{$prefix}spinner-vertical-align: #{$spinner-vertical-align};
65
+ --#{$prefix}spinner-animation-speed: #{$spinner-animation-speed};
66
+ --#{$prefix}spinner-animation-name: spinner-grow;
67
+ // scss-docs-end spinner-grow-css-vars
68
+
69
+ background-color: currentcolor;
70
+ opacity: 0;
71
+ }
72
+
73
+ .spinner-grow-sm {
74
+ --#{$prefix}spinner-width: #{$spinner-width-sm};
75
+ --#{$prefix}spinner-height: #{$spinner-height-sm};
76
+ }
77
+
78
+ @if $enable-reduced-motion {
79
+ @media (prefers-reduced-motion: reduce) {
80
+ .spinner-border,
81
+ .spinner-grow {
82
+ --#{$prefix}spinner-animation-speed: #{$spinner-animation-speed * 2};
83
+ }
84
+ }
85
+ }
package/_tables.scss CHANGED
@@ -1,164 +1,164 @@
1
- //
2
- // Basic Bootstrap table
3
- //
4
-
5
- .table {
6
- --#{$prefix}table-color: #{$table-color};
7
- --#{$prefix}table-bg: #{$table-bg};
8
- --#{$prefix}table-border-color: #{$table-border-color};
9
- --#{$prefix}table-accent-bg: #{$table-accent-bg};
10
- --#{$prefix}table-striped-color: #{$table-striped-color};
11
- --#{$prefix}table-striped-bg: #{$table-striped-bg};
12
- --#{$prefix}table-active-color: #{$table-active-color};
13
- --#{$prefix}table-active-bg: #{$table-active-bg};
14
- --#{$prefix}table-hover-color: #{$table-hover-color};
15
- --#{$prefix}table-hover-bg: #{$table-hover-bg};
16
-
17
- width: 100%;
18
- margin-bottom: $spacer;
19
- color: var(--#{$prefix}table-color);
20
- vertical-align: $table-cell-vertical-align;
21
- border-color: var(--#{$prefix}table-border-color);
22
-
23
- // Target th & td
24
- // We need the child combinator to prevent styles leaking to nested tables which doesn't have a `.table` class.
25
- // We use the universal selectors here to simplify the selector (else we would need 6 different selectors).
26
- // Another advantage is that this generates less code and makes the selector less specific making it easier to override.
27
- // stylelint-disable-next-line selector-max-universal
28
- > :not(caption) > * > * {
29
- padding: $table-cell-padding-y $table-cell-padding-x;
30
- background-color: var(--#{$prefix}table-bg);
31
- border-bottom-width: $table-border-width;
32
- box-shadow: inset 0 0 0 9999px var(--#{$prefix}table-accent-bg);
33
- }
34
-
35
- > tbody {
36
- vertical-align: inherit;
37
- }
38
-
39
- > thead {
40
- vertical-align: bottom;
41
- }
42
- }
43
-
44
- .table-group-divider {
45
- border-top: ($table-border-width * 2) solid $table-group-separator-color;
46
- }
47
-
48
- //
49
- // Change placement of captions with a class
50
- //
51
-
52
- .caption-top {
53
- caption-side: top;
54
- }
55
-
56
-
57
- //
58
- // Condensed table w/ half padding
59
- //
60
-
61
- .table-sm {
62
- // stylelint-disable-next-line selector-max-universal
63
- > :not(caption) > * > * {
64
- padding: $table-cell-padding-y-sm $table-cell-padding-x-sm;
65
- }
66
- }
67
-
68
-
69
- // Border versions
70
- //
71
- // Add or remove borders all around the table and between all the columns.
72
- //
73
- // When borders are added on all sides of the cells, the corners can render odd when
74
- // these borders do not have the same color or if they are semi-transparent.
75
- // Therefor we add top and border bottoms to the `tr`s and left and right borders
76
- // to the `td`s or `th`s
77
-
78
- .table-bordered {
79
- > :not(caption) > * {
80
- border-width: $table-border-width 0;
81
-
82
- // stylelint-disable-next-line selector-max-universal
83
- > * {
84
- border-width: 0 $table-border-width;
85
- }
86
- }
87
- }
88
-
89
- .table-borderless {
90
- // stylelint-disable-next-line selector-max-universal
91
- > :not(caption) > * > * {
92
- border-bottom-width: 0;
93
- }
94
-
95
- > :not(:first-child) {
96
- border-top-width: 0;
97
- }
98
- }
99
-
100
- // Zebra-striping
101
- //
102
- // Default zebra-stripe styles (alternating gray and transparent backgrounds)
103
-
104
- // For rows
105
- .table-striped {
106
- > tbody > tr:nth-of-type(#{$table-striped-order}) > * {
107
- --#{$prefix}table-accent-bg: var(--#{$prefix}table-striped-bg);
108
- color: var(--#{$prefix}table-striped-color);
109
- }
110
- }
111
-
112
- // For columns
113
- .table-striped-columns {
114
- > :not(caption) > tr > :nth-child(#{$table-striped-columns-order}) {
115
- --#{$prefix}table-accent-bg: var(--#{$prefix}table-striped-bg);
116
- color: var(--#{$prefix}table-striped-color);
117
- }
118
- }
119
-
120
- // Active table
121
- //
122
- // The `.table-active` class can be added to highlight rows or cells
123
-
124
- .table-active {
125
- --#{$prefix}table-accent-bg: var(--#{$prefix}table-active-bg);
126
- color: var(--#{$prefix}table-active-color);
127
- }
128
-
129
- // Hover effect
130
- //
131
- // Placed here since it has to come after the potential zebra striping
132
-
133
- .table-hover {
134
- > tbody > tr:hover > * {
135
- --#{$prefix}table-accent-bg: var(--#{$prefix}table-hover-bg);
136
- color: var(--#{$prefix}table-hover-color);
137
- }
138
- }
139
-
140
-
141
- // Table variants
142
- //
143
- // Table variants set the table cell backgrounds, border colors
144
- // and the colors of the striped, hovered & active tables
145
-
146
- @each $color, $value in $table-variants {
147
- @include table-variant($color, $value);
148
- }
149
-
150
- // Responsive tables
151
- //
152
- // Generate series of `.table-responsive-*` classes for configuring the screen
153
- // size of where your table will overflow.
154
-
155
- @each $breakpoint in map-keys($grid-breakpoints) {
156
- $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
157
-
158
- @include media-breakpoint-down($breakpoint) {
159
- .table-responsive#{$infix} {
160
- overflow-x: auto;
161
- -webkit-overflow-scrolling: touch;
162
- }
163
- }
164
- }
1
+ //
2
+ // Basic Bootstrap table
3
+ //
4
+
5
+ .table {
6
+ --#{$prefix}table-color: #{$table-color};
7
+ --#{$prefix}table-bg: #{$table-bg};
8
+ --#{$prefix}table-border-color: #{$table-border-color};
9
+ --#{$prefix}table-accent-bg: #{$table-accent-bg};
10
+ --#{$prefix}table-striped-color: #{$table-striped-color};
11
+ --#{$prefix}table-striped-bg: #{$table-striped-bg};
12
+ --#{$prefix}table-active-color: #{$table-active-color};
13
+ --#{$prefix}table-active-bg: #{$table-active-bg};
14
+ --#{$prefix}table-hover-color: #{$table-hover-color};
15
+ --#{$prefix}table-hover-bg: #{$table-hover-bg};
16
+
17
+ width: 100%;
18
+ margin-bottom: $spacer;
19
+ color: var(--#{$prefix}table-color);
20
+ vertical-align: $table-cell-vertical-align;
21
+ border-color: var(--#{$prefix}table-border-color);
22
+
23
+ // Target th & td
24
+ // We need the child combinator to prevent styles leaking to nested tables which doesn't have a `.table` class.
25
+ // We use the universal selectors here to simplify the selector (else we would need 6 different selectors).
26
+ // Another advantage is that this generates less code and makes the selector less specific making it easier to override.
27
+ // stylelint-disable-next-line selector-max-universal
28
+ > :not(caption) > * > * {
29
+ padding: $table-cell-padding-y $table-cell-padding-x;
30
+ background-color: var(--#{$prefix}table-bg);
31
+ border-bottom-width: $table-border-width;
32
+ box-shadow: inset 0 0 0 9999px var(--#{$prefix}table-accent-bg);
33
+ }
34
+
35
+ > tbody {
36
+ vertical-align: inherit;
37
+ }
38
+
39
+ > thead {
40
+ vertical-align: bottom;
41
+ }
42
+ }
43
+
44
+ .table-group-divider {
45
+ border-top: ($table-border-width * 2) solid $table-group-separator-color;
46
+ }
47
+
48
+ //
49
+ // Change placement of captions with a class
50
+ //
51
+
52
+ .caption-top {
53
+ caption-side: top;
54
+ }
55
+
56
+
57
+ //
58
+ // Condensed table w/ half padding
59
+ //
60
+
61
+ .table-sm {
62
+ // stylelint-disable-next-line selector-max-universal
63
+ > :not(caption) > * > * {
64
+ padding: $table-cell-padding-y-sm $table-cell-padding-x-sm;
65
+ }
66
+ }
67
+
68
+
69
+ // Border versions
70
+ //
71
+ // Add or remove borders all around the table and between all the columns.
72
+ //
73
+ // When borders are added on all sides of the cells, the corners can render odd when
74
+ // these borders do not have the same color or if they are semi-transparent.
75
+ // Therefor we add top and border bottoms to the `tr`s and left and right borders
76
+ // to the `td`s or `th`s
77
+
78
+ .table-bordered {
79
+ > :not(caption) > * {
80
+ border-width: $table-border-width 0;
81
+
82
+ // stylelint-disable-next-line selector-max-universal
83
+ > * {
84
+ border-width: 0 $table-border-width;
85
+ }
86
+ }
87
+ }
88
+
89
+ .table-borderless {
90
+ // stylelint-disable-next-line selector-max-universal
91
+ > :not(caption) > * > * {
92
+ border-bottom-width: 0;
93
+ }
94
+
95
+ > :not(:first-child) {
96
+ border-top-width: 0;
97
+ }
98
+ }
99
+
100
+ // Zebra-striping
101
+ //
102
+ // Default zebra-stripe styles (alternating gray and transparent backgrounds)
103
+
104
+ // For rows
105
+ .table-striped {
106
+ > tbody > tr:nth-of-type(#{$table-striped-order}) > * {
107
+ --#{$prefix}table-accent-bg: var(--#{$prefix}table-striped-bg);
108
+ color: var(--#{$prefix}table-striped-color);
109
+ }
110
+ }
111
+
112
+ // For columns
113
+ .table-striped-columns {
114
+ > :not(caption) > tr > :nth-child(#{$table-striped-columns-order}) {
115
+ --#{$prefix}table-accent-bg: var(--#{$prefix}table-striped-bg);
116
+ color: var(--#{$prefix}table-striped-color);
117
+ }
118
+ }
119
+
120
+ // Active table
121
+ //
122
+ // The `.table-active` class can be added to highlight rows or cells
123
+
124
+ .table-active {
125
+ --#{$prefix}table-accent-bg: var(--#{$prefix}table-active-bg);
126
+ color: var(--#{$prefix}table-active-color);
127
+ }
128
+
129
+ // Hover effect
130
+ //
131
+ // Placed here since it has to come after the potential zebra striping
132
+
133
+ .table-hover {
134
+ > tbody > tr:hover > * {
135
+ --#{$prefix}table-accent-bg: var(--#{$prefix}table-hover-bg);
136
+ color: var(--#{$prefix}table-hover-color);
137
+ }
138
+ }
139
+
140
+
141
+ // Table variants
142
+ //
143
+ // Table variants set the table cell backgrounds, border colors
144
+ // and the colors of the striped, hovered & active tables
145
+
146
+ @each $color, $value in $table-variants {
147
+ @include table-variant($color, $value);
148
+ }
149
+
150
+ // Responsive tables
151
+ //
152
+ // Generate series of `.table-responsive-*` classes for configuring the screen
153
+ // size of where your table will overflow.
154
+
155
+ @each $breakpoint in map-keys($grid-breakpoints) {
156
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
157
+
158
+ @include media-breakpoint-down($breakpoint) {
159
+ .table-responsive#{$infix} {
160
+ overflow-x: auto;
161
+ -webkit-overflow-scrolling: touch;
162
+ }
163
+ }
164
+ }
package/_toasts.scss CHANGED
@@ -1,5 +1,6 @@
1
1
  .toast {
2
2
  // scss-docs-start toast-css-vars
3
+ --#{$prefix}toast-zindex: #{$zindex-toast};
3
4
  --#{$prefix}toast-padding-x: #{$toast-padding-x};
4
5
  --#{$prefix}toast-padding-y: #{$toast-padding-y};
5
6
  --#{$prefix}toast-spacing: #{$toast-spacing};
@@ -38,7 +39,7 @@
38
39
 
39
40
  .toast-container {
40
41
  position: absolute;
41
- z-index: $zindex-toast;
42
+ z-index: var(--#{$prefix}toast-zindex);
42
43
  width: max-content;
43
44
  max-width: 100%;
44
45
  pointer-events: none;
@@ -59,7 +60,7 @@
59
60
  @include border-top-radius(calc(var(--#{$prefix}toast-border-radius) - var(--#{$prefix}toast-border-width)));
60
61
 
61
62
  .btn-close {
62
- margin-right: calc(var(--#{$prefix}toast-padding-x) * -.5); // stylelint-disable-line function-disallowed-list
63
+ margin-right: calc(-.5 * var(--#{$prefix}toast-padding-x)); // stylelint-disable-line function-disallowed-list
63
64
  margin-left: var(--#{$prefix}toast-padding-x);
64
65
  }
65
66
  }