bootstrap 5.2.0 → 5.3.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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +55 -0
- data/README.md +25 -5
- data/assets/javascripts/bootstrap/alert.js +22 -32
- data/assets/javascripts/bootstrap/base-component.js +22 -38
- data/assets/javascripts/bootstrap/button.js +19 -22
- data/assets/javascripts/bootstrap/carousel.js +52 -135
- data/assets/javascripts/bootstrap/collapse.js +40 -102
- data/assets/javascripts/bootstrap/dom/data.js +8 -12
- data/assets/javascripts/bootstrap/dom/event-handler.js +19 -66
- data/assets/javascripts/bootstrap/dom/manipulator.js +4 -17
- data/assets/javascripts/bootstrap/dom/selector-engine.js +42 -24
- data/assets/javascripts/bootstrap/dropdown.js +74 -143
- data/assets/javascripts/bootstrap/modal.js +66 -143
- data/assets/javascripts/bootstrap/offcanvas.js +50 -102
- data/assets/javascripts/bootstrap/popover.js +23 -29
- data/assets/javascripts/bootstrap/scrollspy.js +64 -97
- data/assets/javascripts/bootstrap/tab.js +55 -112
- data/assets/javascripts/bootstrap/toast.js +39 -77
- data/assets/javascripts/bootstrap/tooltip.js +99 -216
- data/assets/javascripts/bootstrap/util/backdrop.js +28 -54
- data/assets/javascripts/bootstrap/util/component-functions.js +13 -18
- data/assets/javascripts/bootstrap/util/config.js +15 -27
- data/assets/javascripts/bootstrap/util/focustrap.js +20 -36
- data/assets/javascripts/bootstrap/util/index.js +42 -111
- data/assets/javascripts/bootstrap/util/sanitizer.js +30 -42
- data/assets/javascripts/bootstrap/util/scrollbar.js +24 -50
- data/assets/javascripts/bootstrap/util/swipe.js +27 -48
- data/assets/javascripts/bootstrap/util/template-factory.js +25 -52
- data/assets/javascripts/bootstrap-sprockets.js +12 -12
- data/assets/javascripts/bootstrap.js +764 -1529
- data/assets/javascripts/bootstrap.min.js +3 -3
- data/assets/stylesheets/_bootstrap-grid.scss +1 -3
- data/assets/stylesheets/_bootstrap-reboot.scss +1 -0
- data/assets/stylesheets/_bootstrap.scss +1 -0
- data/assets/stylesheets/bootstrap/_accordion.scss +16 -4
- data/assets/stylesheets/bootstrap/_alert.scss +8 -11
- data/assets/stylesheets/bootstrap/_button-group.scss +3 -3
- data/assets/stylesheets/bootstrap/_buttons.scss +31 -10
- data/assets/stylesheets/bootstrap/_card.scss +5 -0
- data/assets/stylesheets/bootstrap/_carousel.scss +20 -5
- data/assets/stylesheets/bootstrap/_close.scss +32 -9
- data/assets/stylesheets/bootstrap/_dropdown.scss +3 -1
- data/assets/stylesheets/bootstrap/_functions.scss +3 -3
- data/assets/stylesheets/bootstrap/_grid.scss +6 -0
- data/assets/stylesheets/bootstrap/_helpers.scss +2 -0
- data/assets/stylesheets/bootstrap/_list-group.scss +18 -12
- data/assets/stylesheets/bootstrap/_maps.scss +120 -0
- data/assets/stylesheets/bootstrap/_mixins.scss +1 -2
- data/assets/stylesheets/bootstrap/_modal.scss +1 -1
- data/assets/stylesheets/bootstrap/_nav.scss +42 -5
- data/assets/stylesheets/bootstrap/_navbar.scss +17 -4
- data/assets/stylesheets/bootstrap/_offcanvas.scss +9 -6
- data/assets/stylesheets/bootstrap/_pagination.scss +1 -1
- data/assets/stylesheets/bootstrap/_popover.scss +5 -5
- data/assets/stylesheets/bootstrap/_progress.scss +10 -1
- data/assets/stylesheets/bootstrap/_reboot.scss +3 -3
- data/assets/stylesheets/bootstrap/_root.scss +121 -10
- data/assets/stylesheets/bootstrap/_tables.scss +18 -11
- data/assets/stylesheets/bootstrap/_toasts.scss +5 -2
- data/assets/stylesheets/bootstrap/_tooltip.scss +4 -5
- data/assets/stylesheets/bootstrap/_utilities.scss +172 -13
- data/assets/stylesheets/bootstrap/_variables-dark.scss +85 -0
- data/assets/stylesheets/bootstrap/_variables.scss +272 -162
- data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +4 -0
- data/assets/stylesheets/bootstrap/forms/_floating-labels.scss +23 -3
- data/assets/stylesheets/bootstrap/forms/_form-check.scss +24 -11
- data/assets/stylesheets/bootstrap/forms/_form-control.scss +23 -3
- data/assets/stylesheets/bootstrap/forms/_form-select.scss +11 -2
- data/assets/stylesheets/bootstrap/forms/_input-group.scss +7 -4
- data/assets/stylesheets/bootstrap/helpers/_color-bg.scss +0 -2
- data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +20 -2
- data/assets/stylesheets/bootstrap/helpers/_focus-ring.scss +5 -0
- data/assets/stylesheets/bootstrap/helpers/_icon-link.scss +25 -0
- data/assets/stylesheets/bootstrap/mixins/_alert.scss +4 -1
- data/assets/stylesheets/bootstrap/mixins/_banner.scss +3 -5
- data/assets/stylesheets/bootstrap/mixins/_caret.scss +30 -25
- data/assets/stylesheets/bootstrap/mixins/_color-mode.scss +21 -0
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +18 -17
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +2 -0
- data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_utilities.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_visually-hidden.scss +5 -1
- data/assets/stylesheets/bootstrap/vendor/_rfs.scss +23 -29
- data/bootstrap.gemspec +1 -1
- data/lib/bootstrap/version.rb +2 -2
- data/tasks/updater/js.rb +2 -2
- data/tasks/updater/network.rb +2 -2
- data/tasks/updater/scss.rb +1 -1
- data/tasks/updater.rb +2 -2
- data/test/gemfiles/rails_5_2.gemfile +8 -0
- data/test/gemfiles/rails_7_0.gemfile +7 -0
- data/test/test_helper.rb +3 -2
- metadata +17 -9
- data/.travis.yml +0 -32
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
.bs-popover-top {
|
|
58
58
|
> .popover-arrow {
|
|
59
|
-
bottom: calc((var(--#{$prefix}popover-arrow-height)
|
|
59
|
+
bottom: calc(-1 * (var(--#{$prefix}popover-arrow-height)) - var(--#{$prefix}popover-border-width)); // stylelint-disable-line function-disallowed-list
|
|
60
60
|
|
|
61
61
|
&::before,
|
|
62
62
|
&::after {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
/* rtl:begin:ignore */
|
|
79
79
|
.bs-popover-end {
|
|
80
80
|
> .popover-arrow {
|
|
81
|
-
left: calc((var(--#{$prefix}popover-arrow-height)
|
|
81
|
+
left: calc(-1 * (var(--#{$prefix}popover-arrow-height)) - var(--#{$prefix}popover-border-width)); // stylelint-disable-line function-disallowed-list
|
|
82
82
|
width: var(--#{$prefix}popover-arrow-height);
|
|
83
83
|
height: var(--#{$prefix}popover-arrow-width);
|
|
84
84
|
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
|
|
104
104
|
.bs-popover-bottom {
|
|
105
105
|
> .popover-arrow {
|
|
106
|
-
top: calc((var(--#{$prefix}popover-arrow-height)
|
|
106
|
+
top: calc(-1 * (var(--#{$prefix}popover-arrow-height)) - var(--#{$prefix}popover-border-width)); // stylelint-disable-line function-disallowed-list
|
|
107
107
|
|
|
108
108
|
&::before,
|
|
109
109
|
&::after {
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
left: 50%;
|
|
129
129
|
display: block;
|
|
130
130
|
width: var(--#{$prefix}popover-arrow-width);
|
|
131
|
-
margin-left: calc(var(--#{$prefix}popover-arrow-width)
|
|
131
|
+
margin-left: calc(-.5 * var(--#{$prefix}popover-arrow-width)); // stylelint-disable-line function-disallowed-list
|
|
132
132
|
content: "";
|
|
133
133
|
border-bottom: var(--#{$prefix}popover-border-width) solid var(--#{$prefix}popover-header-bg);
|
|
134
134
|
}
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
/* rtl:begin:ignore */
|
|
138
138
|
.bs-popover-start {
|
|
139
139
|
> .popover-arrow {
|
|
140
|
-
right: calc((var(--#{$prefix}popover-arrow-height)
|
|
140
|
+
right: calc(-1 * (var(--#{$prefix}popover-arrow-height)) - var(--#{$prefix}popover-border-width)); // stylelint-disable-line function-disallowed-list
|
|
141
141
|
width: var(--#{$prefix}popover-arrow-height);
|
|
142
142
|
height: var(--#{$prefix}popover-arrow-width);
|
|
143
143
|
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
// scss-docs-end progress-keyframes
|
|
10
10
|
|
|
11
|
-
.progress
|
|
11
|
+
.progress,
|
|
12
|
+
.progress-stacked {
|
|
12
13
|
// scss-docs-start progress-css-vars
|
|
13
14
|
--#{$prefix}progress-height: #{$progress-height};
|
|
14
15
|
@include rfs($progress-font-size, --#{$prefix}progress-font-size);
|
|
@@ -46,6 +47,14 @@
|
|
|
46
47
|
background-size: var(--#{$prefix}progress-height) var(--#{$prefix}progress-height);
|
|
47
48
|
}
|
|
48
49
|
|
|
50
|
+
.progress-stacked > .progress {
|
|
51
|
+
overflow: visible;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.progress-stacked > .progress > .progress-bar {
|
|
55
|
+
width: 100%;
|
|
56
|
+
}
|
|
57
|
+
|
|
49
58
|
@if $enable-transitions {
|
|
50
59
|
.progress-bar-animated {
|
|
51
60
|
animation: $progress-bar-animation-timing progress-bar-stripes;
|
|
@@ -87,7 +87,7 @@ hr {
|
|
|
87
87
|
font-style: $headings-font-style;
|
|
88
88
|
font-weight: $headings-font-weight;
|
|
89
89
|
line-height: $headings-line-height;
|
|
90
|
-
color: $
|
|
90
|
+
color: var(--#{$prefix}heading-color);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
h1 {
|
|
@@ -241,11 +241,11 @@ sup { top: -.5em; }
|
|
|
241
241
|
// Links
|
|
242
242
|
|
|
243
243
|
a {
|
|
244
|
-
color: var(--#{$prefix}link-color);
|
|
244
|
+
color: rgba(var(--#{$prefix}link-color-rgb), var(--#{$prefix}link-opacity, 1));
|
|
245
245
|
text-decoration: $link-decoration;
|
|
246
246
|
|
|
247
247
|
&:hover {
|
|
248
|
-
color: var(--#{$prefix}link-hover-color);
|
|
248
|
+
--#{$prefix}link-color-rgb: var(--#{$prefix}link-hover-color-rgb);
|
|
249
249
|
text-decoration: $link-hover-decoration;
|
|
250
250
|
}
|
|
251
251
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
:root
|
|
1
|
+
:root,
|
|
2
|
+
[data-bs-theme="light"] {
|
|
2
3
|
// Note: Custom variable values only support SassScript inside `#{}`.
|
|
3
4
|
|
|
4
5
|
// Colors
|
|
@@ -21,10 +22,20 @@
|
|
|
21
22
|
--#{$prefix}#{$color}-rgb: #{$value};
|
|
22
23
|
}
|
|
23
24
|
|
|
25
|
+
@each $color, $value in $theme-colors-text {
|
|
26
|
+
--#{$prefix}#{$color}-text-emphasis: #{$value};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@each $color, $value in $theme-colors-bg-subtle {
|
|
30
|
+
--#{$prefix}#{$color}-bg-subtle: #{$value};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@each $color, $value in $theme-colors-border-subtle {
|
|
34
|
+
--#{$prefix}#{$color}-border-subtle: #{$value};
|
|
35
|
+
}
|
|
36
|
+
|
|
24
37
|
--#{$prefix}white-rgb: #{to-rgb($white)};
|
|
25
38
|
--#{$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
39
|
|
|
29
40
|
// Fonts
|
|
30
41
|
|
|
@@ -39,17 +50,49 @@
|
|
|
39
50
|
@if $font-size-root != null {
|
|
40
51
|
--#{$prefix}root-font-size: #{$font-size-root};
|
|
41
52
|
}
|
|
42
|
-
--#{$prefix}body-font-family: #{$font-family-base};
|
|
53
|
+
--#{$prefix}body-font-family: #{inspect($font-family-base)};
|
|
43
54
|
@include rfs($font-size-base, --#{$prefix}body-font-size);
|
|
44
55
|
--#{$prefix}body-font-weight: #{$font-weight-base};
|
|
45
56
|
--#{$prefix}body-line-height: #{$line-height-base};
|
|
46
|
-
--#{$prefix}body-color: #{$body-color};
|
|
47
57
|
@if $body-text-align != null {
|
|
48
58
|
--#{$prefix}body-text-align: #{$body-text-align};
|
|
49
59
|
}
|
|
60
|
+
|
|
61
|
+
--#{$prefix}body-color: #{$body-color};
|
|
62
|
+
--#{$prefix}body-color-rgb: #{to-rgb($body-color)};
|
|
50
63
|
--#{$prefix}body-bg: #{$body-bg};
|
|
64
|
+
--#{$prefix}body-bg-rgb: #{to-rgb($body-bg)};
|
|
65
|
+
|
|
66
|
+
--#{$prefix}emphasis-color: #{$body-emphasis-color};
|
|
67
|
+
--#{$prefix}emphasis-color-rgb: #{to-rgb($body-emphasis-color)};
|
|
68
|
+
|
|
69
|
+
--#{$prefix}secondary-color: #{$body-secondary-color};
|
|
70
|
+
--#{$prefix}secondary-color-rgb: #{to-rgb($body-secondary-color)};
|
|
71
|
+
--#{$prefix}secondary-bg: #{$body-secondary-bg};
|
|
72
|
+
--#{$prefix}secondary-bg-rgb: #{to-rgb($body-secondary-bg)};
|
|
73
|
+
|
|
74
|
+
--#{$prefix}tertiary-color: #{$body-tertiary-color};
|
|
75
|
+
--#{$prefix}tertiary-color-rgb: #{to-rgb($body-tertiary-color)};
|
|
76
|
+
--#{$prefix}tertiary-bg: #{$body-tertiary-bg};
|
|
77
|
+
--#{$prefix}tertiary-bg-rgb: #{to-rgb($body-tertiary-bg)};
|
|
51
78
|
// scss-docs-end root-body-variables
|
|
52
79
|
|
|
80
|
+
--#{$prefix}heading-color: #{$headings-color};
|
|
81
|
+
|
|
82
|
+
--#{$prefix}link-color: #{$link-color};
|
|
83
|
+
--#{$prefix}link-color-rgb: #{to-rgb($link-color)};
|
|
84
|
+
--#{$prefix}link-decoration: #{$link-decoration};
|
|
85
|
+
|
|
86
|
+
--#{$prefix}link-hover-color: #{$link-hover-color};
|
|
87
|
+
--#{$prefix}link-hover-color-rgb: #{to-rgb($link-hover-color)};
|
|
88
|
+
|
|
89
|
+
@if $link-hover-decoration != null {
|
|
90
|
+
--#{$prefix}link-hover-decoration: #{$link-hover-decoration};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
--#{$prefix}code-color: #{$code-color};
|
|
94
|
+
--#{$prefix}highlight-bg: #{$mark-bg};
|
|
95
|
+
|
|
53
96
|
// scss-docs-start root-border-var
|
|
54
97
|
--#{$prefix}border-width: #{$border-width};
|
|
55
98
|
--#{$prefix}border-style: #{$border-style};
|
|
@@ -60,14 +103,82 @@
|
|
|
60
103
|
--#{$prefix}border-radius-sm: #{$border-radius-sm};
|
|
61
104
|
--#{$prefix}border-radius-lg: #{$border-radius-lg};
|
|
62
105
|
--#{$prefix}border-radius-xl: #{$border-radius-xl};
|
|
63
|
-
--#{$prefix}border-radius-
|
|
106
|
+
--#{$prefix}border-radius-xxl: #{$border-radius-xxl};
|
|
107
|
+
--#{$prefix}border-radius-2xl: var(--#{$prefix}border-radius-xxl); // Deprecated in v5.3.0 for consistency
|
|
64
108
|
--#{$prefix}border-radius-pill: #{$border-radius-pill};
|
|
65
109
|
// scss-docs-end root-border-var
|
|
66
110
|
|
|
67
|
-
--#{$prefix}
|
|
68
|
-
--#{$prefix}
|
|
111
|
+
--#{$prefix}box-shadow: #{$box-shadow};
|
|
112
|
+
--#{$prefix}box-shadow-sm: #{$box-shadow-sm};
|
|
113
|
+
--#{$prefix}box-shadow-lg: #{$box-shadow-lg};
|
|
114
|
+
--#{$prefix}box-shadow-inset: #{$box-shadow-inset};
|
|
69
115
|
|
|
70
|
-
|
|
116
|
+
// Focus styles
|
|
117
|
+
// scss-docs-start root-focus-variables
|
|
118
|
+
--#{$prefix}focus-ring-width: #{$focus-ring-width};
|
|
119
|
+
--#{$prefix}focus-ring-opacity: #{$focus-ring-opacity};
|
|
120
|
+
--#{$prefix}focus-ring-color: #{$focus-ring-color};
|
|
121
|
+
// scss-docs-end root-focus-variables
|
|
71
122
|
|
|
72
|
-
|
|
123
|
+
// scss-docs-start root-form-validation-variables
|
|
124
|
+
--#{$prefix}form-valid-color: #{$form-valid-color};
|
|
125
|
+
--#{$prefix}form-valid-border-color: #{$form-valid-border-color};
|
|
126
|
+
--#{$prefix}form-invalid-color: #{$form-invalid-color};
|
|
127
|
+
--#{$prefix}form-invalid-border-color: #{$form-invalid-border-color};
|
|
128
|
+
// scss-docs-end root-form-validation-variables
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@if $enable-dark-mode {
|
|
132
|
+
@include color-mode(dark, true) {
|
|
133
|
+
color-scheme: dark;
|
|
134
|
+
|
|
135
|
+
// scss-docs-start root-dark-mode-vars
|
|
136
|
+
--#{$prefix}body-color: #{$body-color-dark};
|
|
137
|
+
--#{$prefix}body-color-rgb: #{to-rgb($body-color-dark)};
|
|
138
|
+
--#{$prefix}body-bg: #{$body-bg-dark};
|
|
139
|
+
--#{$prefix}body-bg-rgb: #{to-rgb($body-bg-dark)};
|
|
140
|
+
|
|
141
|
+
--#{$prefix}emphasis-color: #{$body-emphasis-color-dark};
|
|
142
|
+
--#{$prefix}emphasis-color-rgb: #{to-rgb($body-emphasis-color-dark)};
|
|
143
|
+
|
|
144
|
+
--#{$prefix}secondary-color: #{$body-secondary-color-dark};
|
|
145
|
+
--#{$prefix}secondary-color-rgb: #{to-rgb($body-secondary-color-dark)};
|
|
146
|
+
--#{$prefix}secondary-bg: #{$body-secondary-bg-dark};
|
|
147
|
+
--#{$prefix}secondary-bg-rgb: #{to-rgb($body-secondary-bg-dark)};
|
|
148
|
+
|
|
149
|
+
--#{$prefix}tertiary-color: #{$body-tertiary-color-dark};
|
|
150
|
+
--#{$prefix}tertiary-color-rgb: #{to-rgb($body-tertiary-color-dark)};
|
|
151
|
+
--#{$prefix}tertiary-bg: #{$body-tertiary-bg-dark};
|
|
152
|
+
--#{$prefix}tertiary-bg-rgb: #{to-rgb($body-tertiary-bg-dark)};
|
|
153
|
+
|
|
154
|
+
@each $color, $value in $theme-colors-text-dark {
|
|
155
|
+
--#{$prefix}#{$color}-text-emphasis: #{$value};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@each $color, $value in $theme-colors-bg-subtle-dark {
|
|
159
|
+
--#{$prefix}#{$color}-bg-subtle: #{$value};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@each $color, $value in $theme-colors-border-subtle-dark {
|
|
163
|
+
--#{$prefix}#{$color}-border-subtle: #{$value};
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
--#{$prefix}heading-color: #{$headings-color-dark};
|
|
167
|
+
|
|
168
|
+
--#{$prefix}link-color: #{$link-color-dark};
|
|
169
|
+
--#{$prefix}link-hover-color: #{$link-hover-color-dark};
|
|
170
|
+
--#{$prefix}link-color-rgb: #{to-rgb($link-color-dark)};
|
|
171
|
+
--#{$prefix}link-hover-color-rgb: #{to-rgb($link-hover-color-dark)};
|
|
172
|
+
|
|
173
|
+
--#{$prefix}code-color: #{$code-color-dark};
|
|
174
|
+
|
|
175
|
+
--#{$prefix}border-color: #{$border-color-dark};
|
|
176
|
+
--#{$prefix}border-color-translucent: #{$border-color-translucent-dark};
|
|
177
|
+
|
|
178
|
+
--#{$prefix}form-valid-color: #{$form-valid-color-dark};
|
|
179
|
+
--#{$prefix}form-valid-border-color: #{$form-valid-border-color-dark};
|
|
180
|
+
--#{$prefix}form-invalid-color: #{$form-invalid-color-dark};
|
|
181
|
+
--#{$prefix}form-invalid-border-color: #{$form-invalid-border-color-dark};
|
|
182
|
+
// scss-docs-end root-dark-mode-vars
|
|
183
|
+
}
|
|
73
184
|
}
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
.table {
|
|
6
|
+
// Reset needed for nesting tables
|
|
7
|
+
--#{$prefix}table-color-type: initial;
|
|
8
|
+
--#{$prefix}table-bg-type: initial;
|
|
9
|
+
--#{$prefix}table-color-state: initial;
|
|
10
|
+
--#{$prefix}table-bg-state: initial;
|
|
11
|
+
// End of reset
|
|
6
12
|
--#{$prefix}table-color: #{$table-color};
|
|
7
13
|
--#{$prefix}table-bg: #{$table-bg};
|
|
8
14
|
--#{$prefix}table-border-color: #{$table-border-color};
|
|
@@ -16,7 +22,6 @@
|
|
|
16
22
|
|
|
17
23
|
width: 100%;
|
|
18
24
|
margin-bottom: $spacer;
|
|
19
|
-
color: var(--#{$prefix}table-color);
|
|
20
25
|
vertical-align: $table-cell-vertical-align;
|
|
21
26
|
border-color: var(--#{$prefix}table-border-color);
|
|
22
27
|
|
|
@@ -27,9 +32,11 @@
|
|
|
27
32
|
// stylelint-disable-next-line selector-max-universal
|
|
28
33
|
> :not(caption) > * > * {
|
|
29
34
|
padding: $table-cell-padding-y $table-cell-padding-x;
|
|
35
|
+
// Following the precept of cascades: https://codepen.io/miriamsuzanne/full/vYNgodb
|
|
36
|
+
color: var(--#{$prefix}table-color-state, var(--#{$prefix}table-color-type, var(--#{$prefix}table-color)));
|
|
30
37
|
background-color: var(--#{$prefix}table-bg);
|
|
31
38
|
border-bottom-width: $table-border-width;
|
|
32
|
-
box-shadow: inset 0 0 0 9999px var(--#{$prefix}table-accent-bg);
|
|
39
|
+
box-shadow: inset 0 0 0 9999px var(--#{$prefix}table-bg-state, var(--#{$prefix}table-bg-type, var(--#{$prefix}table-accent-bg)));
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
> tbody {
|
|
@@ -42,7 +49,7 @@
|
|
|
42
49
|
}
|
|
43
50
|
|
|
44
51
|
.table-group-divider {
|
|
45
|
-
border-top: ($table-border-width * 2) solid $table-group-separator-color;
|
|
52
|
+
border-top: calc(#{$table-border-width} * 2) solid $table-group-separator-color; // stylelint-disable-line function-disallowed-list
|
|
46
53
|
}
|
|
47
54
|
|
|
48
55
|
//
|
|
@@ -104,16 +111,16 @@
|
|
|
104
111
|
// For rows
|
|
105
112
|
.table-striped {
|
|
106
113
|
> tbody > tr:nth-of-type(#{$table-striped-order}) > * {
|
|
107
|
-
--#{$prefix}table-
|
|
108
|
-
|
|
114
|
+
--#{$prefix}table-color-type: var(--#{$prefix}table-striped-color);
|
|
115
|
+
--#{$prefix}table-bg-type: var(--#{$prefix}table-striped-bg);
|
|
109
116
|
}
|
|
110
117
|
}
|
|
111
118
|
|
|
112
119
|
// For columns
|
|
113
120
|
.table-striped-columns {
|
|
114
121
|
> :not(caption) > tr > :nth-child(#{$table-striped-columns-order}) {
|
|
115
|
-
--#{$prefix}table-
|
|
116
|
-
|
|
122
|
+
--#{$prefix}table-color-type: var(--#{$prefix}table-striped-color);
|
|
123
|
+
--#{$prefix}table-bg-type: var(--#{$prefix}table-striped-bg);
|
|
117
124
|
}
|
|
118
125
|
}
|
|
119
126
|
|
|
@@ -122,8 +129,8 @@
|
|
|
122
129
|
// The `.table-active` class can be added to highlight rows or cells
|
|
123
130
|
|
|
124
131
|
.table-active {
|
|
125
|
-
--#{$prefix}table-
|
|
126
|
-
|
|
132
|
+
--#{$prefix}table-color-state: var(--#{$prefix}table-active-color);
|
|
133
|
+
--#{$prefix}table-bg-state: var(--#{$prefix}table-active-bg);
|
|
127
134
|
}
|
|
128
135
|
|
|
129
136
|
// Hover effect
|
|
@@ -132,8 +139,8 @@
|
|
|
132
139
|
|
|
133
140
|
.table-hover {
|
|
134
141
|
> tbody > tr:hover > * {
|
|
135
|
-
--#{$prefix}table-
|
|
136
|
-
|
|
142
|
+
--#{$prefix}table-color-state: var(--#{$prefix}table-hover-color);
|
|
143
|
+
--#{$prefix}table-bg-state: var(--#{$prefix}table-hover-bg);
|
|
137
144
|
}
|
|
138
145
|
}
|
|
139
146
|
|
|
@@ -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};
|
|
@@ -37,8 +38,10 @@
|
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
.toast-container {
|
|
41
|
+
--#{$prefix}toast-zindex: #{$zindex-toast};
|
|
42
|
+
|
|
40
43
|
position: absolute;
|
|
41
|
-
z-index: $zindex
|
|
44
|
+
z-index: var(--#{$prefix}toast-zindex);
|
|
42
45
|
width: max-content;
|
|
43
46
|
max-width: 100%;
|
|
44
47
|
pointer-events: none;
|
|
@@ -59,7 +62,7 @@
|
|
|
59
62
|
@include border-top-radius(calc(var(--#{$prefix}toast-border-radius) - var(--#{$prefix}toast-border-width)));
|
|
60
63
|
|
|
61
64
|
.btn-close {
|
|
62
|
-
margin-right: calc(var(--#{$prefix}toast-padding-x)
|
|
65
|
+
margin-right: calc(-.5 * var(--#{$prefix}toast-padding-x)); // stylelint-disable-line function-disallowed-list
|
|
63
66
|
margin-left: var(--#{$prefix}toast-padding-x);
|
|
64
67
|
}
|
|
65
68
|
}
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
|
|
18
18
|
z-index: var(--#{$prefix}tooltip-zindex);
|
|
19
19
|
display: block;
|
|
20
|
-
padding: var(--#{$prefix}tooltip-arrow-height);
|
|
21
20
|
margin: var(--#{$prefix}tooltip-margin);
|
|
22
21
|
@include deprecate("`$tooltip-margin`", "v5", "v5.x", true);
|
|
23
22
|
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
|
@@ -45,7 +44,7 @@
|
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
.bs-tooltip-top .tooltip-arrow {
|
|
48
|
-
bottom:
|
|
47
|
+
bottom: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
|
|
49
48
|
|
|
50
49
|
&::before {
|
|
51
50
|
top: -1px;
|
|
@@ -56,7 +55,7 @@
|
|
|
56
55
|
|
|
57
56
|
/* rtl:begin:ignore */
|
|
58
57
|
.bs-tooltip-end .tooltip-arrow {
|
|
59
|
-
left:
|
|
58
|
+
left: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
|
|
60
59
|
width: var(--#{$prefix}tooltip-arrow-height);
|
|
61
60
|
height: var(--#{$prefix}tooltip-arrow-width);
|
|
62
61
|
|
|
@@ -70,7 +69,7 @@
|
|
|
70
69
|
/* rtl:end:ignore */
|
|
71
70
|
|
|
72
71
|
.bs-tooltip-bottom .tooltip-arrow {
|
|
73
|
-
top:
|
|
72
|
+
top: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
|
|
74
73
|
|
|
75
74
|
&::before {
|
|
76
75
|
bottom: -1px;
|
|
@@ -81,7 +80,7 @@
|
|
|
81
80
|
|
|
82
81
|
/* rtl:begin:ignore */
|
|
83
82
|
.bs-tooltip-start .tooltip-arrow {
|
|
84
|
-
right:
|
|
83
|
+
right: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
|
|
85
84
|
width: var(--#{$prefix}tooltip-arrow-height);
|
|
86
85
|
height: var(--#{$prefix}tooltip-arrow-width);
|
|
87
86
|
|