@coreui/coreui 5.3.1 → 5.4.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.
- package/README.md +2 -2
- package/dist/css/coreui-grid.css +1 -1
- package/dist/css/coreui-grid.css.map +1 -1
- package/dist/css/coreui-grid.min.css +1 -1
- package/dist/css/coreui-grid.min.css.map +1 -1
- package/dist/css/coreui-grid.rtl.css +1 -1
- package/dist/css/coreui-grid.rtl.css.map +1 -1
- package/dist/css/coreui-grid.rtl.min.css +1 -1
- package/dist/css/coreui-grid.rtl.min.css.map +1 -1
- package/dist/css/coreui-reboot.css +1 -1
- package/dist/css/coreui-reboot.css.map +1 -1
- package/dist/css/coreui-reboot.min.css +1 -1
- package/dist/css/coreui-reboot.min.css.map +1 -1
- package/dist/css/coreui-reboot.rtl.css +1 -1
- package/dist/css/coreui-reboot.rtl.css.map +1 -1
- package/dist/css/coreui-reboot.rtl.min.css +1 -1
- package/dist/css/coreui-reboot.rtl.min.css.map +1 -1
- package/dist/css/coreui-utilities.css +5 -1
- package/dist/css/coreui-utilities.css.map +1 -1
- package/dist/css/coreui-utilities.min.css +2 -2
- package/dist/css/coreui-utilities.min.css.map +1 -1
- package/dist/css/coreui-utilities.rtl.css +5 -1
- package/dist/css/coreui-utilities.rtl.css.map +1 -1
- package/dist/css/coreui-utilities.rtl.min.css +2 -2
- package/dist/css/coreui-utilities.rtl.min.css.map +1 -1
- package/dist/css/coreui.css +139 -101
- package/dist/css/coreui.css.map +1 -1
- package/dist/css/coreui.min.css +2 -2
- package/dist/css/coreui.min.css.map +1 -1
- package/dist/css/coreui.rtl.css +141 -71
- package/dist/css/coreui.rtl.css.map +1 -1
- package/dist/css/coreui.rtl.min.css +2 -2
- package/dist/css/coreui.rtl.min.css.map +1 -1
- package/dist/css/themes/bootstrap/bootstrap.css +139 -101
- package/dist/css/themes/bootstrap/bootstrap.css.map +1 -1
- package/dist/css/themes/bootstrap/bootstrap.min.css +2 -2
- package/dist/css/themes/bootstrap/bootstrap.min.css.map +1 -1
- package/dist/css/themes/bootstrap/bootstrap.rtl.css +141 -71
- package/dist/css/themes/bootstrap/bootstrap.rtl.css.map +1 -1
- package/dist/css/themes/bootstrap/bootstrap.rtl.min.css +2 -2
- package/dist/css/themes/bootstrap/bootstrap.rtl.min.css.map +1 -1
- package/dist/js/bootstrap.bundle.js +9 -9
- package/dist/js/bootstrap.bundle.js.map +1 -1
- package/dist/js/bootstrap.bundle.min.js +2 -2
- package/dist/js/bootstrap.bundle.min.js.map +1 -1
- package/dist/js/bootstrap.esm.js +9 -9
- package/dist/js/bootstrap.esm.js.map +1 -1
- package/dist/js/bootstrap.esm.min.js +2 -2
- package/dist/js/bootstrap.esm.min.js.map +1 -1
- package/dist/js/bootstrap.js +9 -9
- package/dist/js/bootstrap.js.map +1 -1
- package/dist/js/bootstrap.min.js +2 -2
- package/dist/js/bootstrap.min.js.map +1 -1
- package/dist/js/coreui.bundle.js +8 -8
- package/dist/js/coreui.bundle.js.map +1 -1
- package/dist/js/coreui.bundle.min.js +2 -2
- package/dist/js/coreui.bundle.min.js.map +1 -1
- package/dist/js/coreui.esm.js +8 -8
- package/dist/js/coreui.esm.js.map +1 -1
- package/dist/js/coreui.esm.min.js +2 -2
- package/dist/js/coreui.esm.min.js.map +1 -1
- package/dist/js/coreui.js +8 -8
- package/dist/js/coreui.js.map +1 -1
- package/dist/js/coreui.min.js +2 -2
- package/dist/js/coreui.min.js.map +1 -1
- package/js/dist/alert.js +1 -1
- package/js/dist/base-component.js +4 -2
- package/js/dist/base-component.js.map +1 -1
- package/js/dist/button.js +1 -1
- package/js/dist/carousel.js +1 -1
- package/js/dist/collapse.js +3 -3
- package/js/dist/collapse.js.map +1 -1
- package/js/dist/dom/data.js +1 -1
- package/js/dist/dom/event-handler.js +1 -1
- package/js/dist/dom/manipulator.js +1 -1
- package/js/dist/dom/selector-engine.js +1 -1
- package/js/dist/dropdown.js +2 -2
- package/js/dist/dropdown.js.map +1 -1
- package/js/dist/modal.js +1 -1
- package/js/dist/navigation.js +1 -1
- package/js/dist/offcanvas.js +1 -1
- package/js/dist/popover.js +1 -1
- package/js/dist/scrollspy.js +1 -1
- package/js/dist/sidebar.js +1 -1
- package/js/dist/tab.js +1 -1
- package/js/dist/toast.js +1 -2
- package/js/dist/toast.js.map +1 -1
- package/js/dist/tooltip.js +2 -3
- package/js/dist/tooltip.js.map +1 -1
- package/js/dist/util/backdrop.js +1 -1
- package/js/dist/util/component-functions.js +1 -1
- package/js/dist/util/config.js +1 -1
- package/js/dist/util/focustrap.js +1 -1
- package/js/dist/util/index.js +1 -1
- package/js/dist/util/sanitizer.js +1 -1
- package/js/dist/util/scrollbar.js +1 -1
- package/js/dist/util/swipe.js +1 -1
- package/js/dist/util/template-factory.js +1 -1
- package/js/src/base-component.js +2 -1
- package/js/src/collapse.js +1 -1
- package/js/src/dropdown.js +1 -1
- package/js/src/toast.js +0 -1
- package/js/src/tooltip.js +1 -2
- package/package.json +36 -30
- package/scss/_banner.scss +1 -1
- package/scss/_button-group.scss +3 -2
- package/scss/_buttons.scss +32 -0
- package/scss/_card.scss +8 -8
- package/scss/_carousel.scss +18 -34
- package/scss/_close.scss +10 -7
- package/scss/_header.scss +1 -1
- package/scss/_list-group.scss +27 -25
- package/scss/_modal.scss +2 -1
- package/scss/_nav.scss +53 -0
- package/scss/_offcanvas.scss +2 -1
- package/scss/_pagination.scss +1 -1
- package/scss/_progress.scss +1 -1
- package/scss/_variables-dark.scss +16 -0
- package/scss/_variables.scss +45 -7
- package/scss/forms/_floating-labels.scss +1 -0
- package/scss/forms/_input-group.scss +1 -1
- package/scss/mixins/_visually-hidden.scss +5 -0
- package/scss/sidebar/_sidebar-nav.scss +1 -1
package/scss/_carousel.scss
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
@use "functions/escape-svg" as *;
|
|
2
2
|
@use "mixins/clearfix" as *;
|
|
3
3
|
@use "mixins/color-mode" as *;
|
|
4
|
+
@use "mixins/ltr-rtl" as *;
|
|
4
5
|
@use "mixins/transition" as *;
|
|
5
6
|
@use "variables" as *;
|
|
7
|
+
@use "variables-dark" as *;
|
|
6
8
|
|
|
7
9
|
// Notes on the classes:
|
|
8
10
|
//
|
|
@@ -105,6 +107,7 @@
|
|
|
105
107
|
color: $carousel-control-color;
|
|
106
108
|
text-align: center;
|
|
107
109
|
background: none;
|
|
110
|
+
filter: var(--#{$prefix}carousel-control-icon-filter);
|
|
108
111
|
border: 0;
|
|
109
112
|
opacity: $carousel-control-opacity;
|
|
110
113
|
@include transition($carousel-control-transition);
|
|
@@ -138,19 +141,11 @@
|
|
|
138
141
|
background-size: 100% 100%;
|
|
139
142
|
}
|
|
140
143
|
|
|
141
|
-
/* rtl:options: {
|
|
142
|
-
"autoRename": true,
|
|
143
|
-
"stringMap":[ {
|
|
144
|
-
"name" : "prev-next",
|
|
145
|
-
"search" : "prev",
|
|
146
|
-
"replace" : "next"
|
|
147
|
-
} ]
|
|
148
|
-
} */
|
|
149
144
|
.carousel-control-prev-icon {
|
|
150
|
-
background-image
|
|
145
|
+
@include ltr-rtl-value-only("background-image", escape-svg($carousel-control-prev-icon-bg), escape-svg($carousel-control-next-icon-bg));
|
|
151
146
|
}
|
|
152
147
|
.carousel-control-next-icon {
|
|
153
|
-
background-image
|
|
148
|
+
@include ltr-rtl-value-only("background-image", escape-svg($carousel-control-next-icon-bg), escape-svg($carousel-control-prev-icon-bg));
|
|
154
149
|
}
|
|
155
150
|
|
|
156
151
|
// Optional indicator pips/controls
|
|
@@ -209,42 +204,31 @@
|
|
|
209
204
|
left: (100% - $carousel-caption-width) * .5;
|
|
210
205
|
padding-top: $carousel-caption-padding-y;
|
|
211
206
|
padding-bottom: $carousel-caption-padding-y;
|
|
212
|
-
color: $carousel-caption-color;
|
|
207
|
+
color: var(--#{$prefix}carousel-caption-color);
|
|
213
208
|
text-align: center;
|
|
214
209
|
}
|
|
215
210
|
|
|
216
211
|
// Dark mode carousel
|
|
217
212
|
|
|
218
213
|
@mixin carousel-dark() {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.carousel-indicators [data#{$data-infix}target] {
|
|
225
|
-
background-color: $carousel-dark-indicator-active-bg;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.carousel-caption {
|
|
229
|
-
color: $carousel-dark-caption-color;
|
|
230
|
-
}
|
|
214
|
+
--#{$prefix}carousel-indicator-active-bg: #{$carousel-indicator-active-bg-dark};
|
|
215
|
+
--#{$prefix}carousel-caption-color: #{$carousel-caption-color-dark};
|
|
216
|
+
--#{$prefix}carousel-control-icon-filter: #{$carousel-control-icon-filter-dark};
|
|
231
217
|
}
|
|
232
218
|
|
|
233
219
|
.carousel-dark {
|
|
234
220
|
@include carousel-dark();
|
|
235
221
|
}
|
|
236
222
|
|
|
223
|
+
:root,
|
|
224
|
+
[data#{$data-infix}theme="light"] {
|
|
225
|
+
--#{$prefix}carousel-indicator-active-bg: #{$carousel-indicator-active-bg};
|
|
226
|
+
--#{$prefix}carousel-caption-color: #{$carousel-caption-color};
|
|
227
|
+
--#{$prefix}carousel-control-icon-filter: #{$carousel-control-icon-filter};
|
|
228
|
+
}
|
|
229
|
+
|
|
237
230
|
@if $enable-dark-mode {
|
|
238
|
-
@include color-mode(dark) {
|
|
239
|
-
@
|
|
240
|
-
.carousel {
|
|
241
|
-
@include carousel-dark();
|
|
242
|
-
}
|
|
243
|
-
} @else {
|
|
244
|
-
.carousel,
|
|
245
|
-
&.carousel {
|
|
246
|
-
@include carousel-dark();
|
|
247
|
-
}
|
|
248
|
-
}
|
|
231
|
+
@include color-mode(dark, true) {
|
|
232
|
+
@include carousel-dark();
|
|
249
233
|
}
|
|
250
234
|
}
|
package/scss/_close.scss
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use "mixins/border-radius" as *;
|
|
3
3
|
@use "mixins/color-mode" as *;
|
|
4
4
|
@use "variables" as *;
|
|
5
|
+
@use "variables-dark" as *;
|
|
5
6
|
|
|
6
7
|
// Transparent background and border properties included for button version.
|
|
7
8
|
// iOS requires the button element instead of an anchor tag.
|
|
@@ -17,7 +18,6 @@
|
|
|
17
18
|
--#{$prefix}btn-close-focus-shadow: #{$btn-close-focus-shadow};
|
|
18
19
|
--#{$prefix}btn-close-focus-opacity: #{$btn-close-focus-opacity};
|
|
19
20
|
--#{$prefix}btn-close-disabled-opacity: #{$btn-close-disabled-opacity};
|
|
20
|
-
--#{$prefix}btn-close-white-filter: #{$btn-close-white-filter};
|
|
21
21
|
// scss-docs-end close-css-vars
|
|
22
22
|
|
|
23
23
|
box-sizing: content-box;
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
padding: $btn-close-padding-y $btn-close-padding-x;
|
|
27
27
|
color: var(--#{$prefix}btn-close-color);
|
|
28
28
|
background: transparent var(--#{$prefix}btn-close-bg) center / $btn-close-width auto no-repeat; // include transparent for button elements
|
|
29
|
+
filter: var(--#{$prefix}btn-close-filter);
|
|
29
30
|
border: 0; // for button elements
|
|
30
31
|
@include border-radius();
|
|
31
32
|
opacity: var(--#{$prefix}btn-close-opacity);
|
|
@@ -52,18 +53,20 @@
|
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
@mixin btn-close-white() {
|
|
55
|
-
|
|
56
|
+
--#{$prefix}btn-close-filter: #{$btn-close-filter-dark};
|
|
56
57
|
}
|
|
57
58
|
|
|
58
|
-
.btn-close[data#{$data-infix}theme="dark"],
|
|
59
59
|
.btn-close-white {
|
|
60
60
|
@include btn-close-white();
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
:root,
|
|
64
|
+
[data#{$data-infix}theme="light"] {
|
|
65
|
+
--#{$prefix}btn-close-filter: #{$btn-close-filter};
|
|
66
|
+
}
|
|
67
|
+
|
|
63
68
|
@if $enable-dark-mode {
|
|
64
|
-
@include color-mode(dark) {
|
|
65
|
-
|
|
66
|
-
@include btn-close-white();
|
|
67
|
-
}
|
|
69
|
+
@include color-mode(dark, true) {
|
|
70
|
+
@include btn-close-white();
|
|
68
71
|
}
|
|
69
72
|
}
|
package/scss/_header.scss
CHANGED
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
.header-divider {
|
|
76
76
|
flex-basis: calc(100% + (2 * var(--#{$prefix}header-padding-x))); // stylelint-disable-line function-disallowed-list
|
|
77
77
|
height: 0;
|
|
78
|
-
margin: var(--#{$prefix}header-padding-y) calc(var(--#{$prefix}header-padding-x)
|
|
78
|
+
margin: var(--#{$prefix}header-padding-y) calc(-1 * var(--#{$prefix}header-padding-x)); // stylelint-disable-line function-disallowed-list
|
|
79
79
|
border-top: var(--#{$prefix}header-divider-border);
|
|
80
80
|
}
|
|
81
81
|
|
package/scss/_list-group.scss
CHANGED
|
@@ -48,31 +48,6 @@
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
// Interactive list items
|
|
52
|
-
//
|
|
53
|
-
// Use anchor or button elements instead of `li`s or `div`s to create interactive
|
|
54
|
-
// list items. Includes an extra `.active` modifier class for selected items.
|
|
55
|
-
|
|
56
|
-
.list-group-item-action {
|
|
57
|
-
width: 100%; // For `<button>`s (anchors become 100% by default though)
|
|
58
|
-
color: var(--#{$prefix}list-group-action-color);
|
|
59
|
-
text-align: inherit; // For `<button>`s (anchors inherit)
|
|
60
|
-
|
|
61
|
-
// Hover state
|
|
62
|
-
&:hover,
|
|
63
|
-
&:focus {
|
|
64
|
-
z-index: 1; // Place hover/focus items above their siblings for proper border styling
|
|
65
|
-
color: var(--#{$prefix}list-group-action-hover-color);
|
|
66
|
-
text-decoration: none;
|
|
67
|
-
background-color: var(--#{$prefix}list-group-action-hover-bg);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&:active {
|
|
71
|
-
color: var(--#{$prefix}list-group-action-active-color);
|
|
72
|
-
background-color: var(--#{$prefix}list-group-action-active-bg);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
51
|
// Individual list items
|
|
77
52
|
//
|
|
78
53
|
// Use on `li`s or `div`s within the `.list-group` parent.
|
|
@@ -120,6 +95,33 @@
|
|
|
120
95
|
}
|
|
121
96
|
}
|
|
122
97
|
|
|
98
|
+
// Interactive list items
|
|
99
|
+
//
|
|
100
|
+
// Use anchor or button elements instead of `li`s or `div`s to create interactive
|
|
101
|
+
// list items. Includes an extra `.active` modifier class for selected items.
|
|
102
|
+
|
|
103
|
+
.list-group-item-action {
|
|
104
|
+
width: 100%; // For `<button>`s (anchors become 100% by default though)
|
|
105
|
+
color: var(--#{$prefix}list-group-action-color);
|
|
106
|
+
text-align: inherit; // For `<button>`s (anchors inherit)
|
|
107
|
+
|
|
108
|
+
&:not(.active) {
|
|
109
|
+
// Hover state
|
|
110
|
+
&:hover,
|
|
111
|
+
&:focus {
|
|
112
|
+
z-index: 1; // Place hover/focus items above their siblings for proper border styling
|
|
113
|
+
color: var(--#{$prefix}list-group-action-hover-color);
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
background-color: var(--#{$prefix}list-group-action-hover-bg);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&:active {
|
|
119
|
+
color: var(--#{$prefix}list-group-action-active-color);
|
|
120
|
+
background-color: var(--#{$prefix}list-group-action-active-bg);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
123
125
|
// Horizontal
|
|
124
126
|
//
|
|
125
127
|
// Change the layout of list group items from vertical (default) to horizontal.
|
package/scss/_modal.scss
CHANGED
|
@@ -139,7 +139,8 @@
|
|
|
139
139
|
|
|
140
140
|
.btn-close {
|
|
141
141
|
padding: calc(var(--#{$prefix}modal-header-padding-y) * .5) calc(var(--#{$prefix}modal-header-padding-x) * .5);
|
|
142
|
-
margin-inline: auto
|
|
142
|
+
margin-inline-start: auto;
|
|
143
|
+
margin-inline-end: calc(-.5 * var(--#{$prefix}modal-header-padding-x));
|
|
143
144
|
margin-top: calc(-.5 * var(--#{$prefix}modal-header-padding-y));
|
|
144
145
|
margin-bottom: calc(-.5 * var(--#{$prefix}modal-header-padding-y));
|
|
145
146
|
}
|
package/scss/_nav.scss
CHANGED
|
@@ -202,6 +202,59 @@
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
|
|
205
|
+
//
|
|
206
|
+
// Enclosed
|
|
207
|
+
//
|
|
208
|
+
|
|
209
|
+
.nav-enclosed {
|
|
210
|
+
--#{$prefix}nav-enclosed-padding: #{$nav-enclosed-padding};
|
|
211
|
+
--#{$prefix}nav-enclosed-bg: #{$nav-enclosed-bg};
|
|
212
|
+
--#{$prefix}nav-enclosed-border-radius: #{$nav-enclosed-border-radius};
|
|
213
|
+
--#{$prefix}nav-enclosed-link-padding-x: #{$nav-enclosed-link-padding-x};
|
|
214
|
+
--#{$prefix}nav-enclosed-link-padding-y: #{$nav-enclosed-link-padding-y};
|
|
215
|
+
--#{$prefix}nav-enclosed-link-color: #{$nav-enclosed-link-color};
|
|
216
|
+
--#{$prefix}nav-enclosed-link-border-width: #{$nav-enclosed-link-border-width};
|
|
217
|
+
--#{$prefix}nav-enclosed-link-active-color: #{$nav-enclosed-link-active-color};
|
|
218
|
+
--#{$prefix}nav-enclosed-link-active-bg: #{$nav-enclosed-link-active-bg};
|
|
219
|
+
--#{$prefix}nav-enclosed-link-active-border-color: #{$nav-enclosed-link-active-border-color};
|
|
220
|
+
--#{$prefix}nav-enclosed-link-hover-box-shadow: #{$nav-enclosed-link-hover-box-shadow};
|
|
221
|
+
--#{$prefix}nav-enclosed-link-disabled-color: #{$nav-enclosed-link-disabled-color};
|
|
222
|
+
|
|
223
|
+
display: inline-flex;
|
|
224
|
+
padding: var(--#{$prefix}nav-enclosed-padding);
|
|
225
|
+
background-color: var(--#{$prefix}nav-enclosed-bg);
|
|
226
|
+
@include border-radius(var(--#{$prefix}nav-enclosed-border-radius));
|
|
227
|
+
|
|
228
|
+
.nav-link {
|
|
229
|
+
padding: calc(var(--#{$prefix}nav-enclosed-link-padding-y) - var(--#{$prefix}nav-enclosed-link-border-width)) calc(var(--#{$prefix}nav-enclosed-link-padding-x) - var(--#{$prefix}nav-enclosed-link-border-width)); // stylelint-disable-line function-disallowed-list
|
|
230
|
+
color: var(--#{$prefix}nav-enclosed-link-color);
|
|
231
|
+
border: var(--#{$prefix}nav-enclosed-link-border-width) solid transparent;
|
|
232
|
+
@include border-radius(calc(var(--#{$prefix}nav-enclosed-border-radius) - var(--#{$prefix}nav-enclosed-padding)));
|
|
233
|
+
|
|
234
|
+
&.disabled {
|
|
235
|
+
color: var(--#{$prefix}nav-enclosed-link-disabled-color);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.nav-link.active,
|
|
240
|
+
.show > .nav-link {
|
|
241
|
+
color: var(--#{$prefix}nav-enclosed-link-active-color);
|
|
242
|
+
background-color: var(--#{$prefix}nav-enclosed-link-active-bg);
|
|
243
|
+
border: 1px solid var(--#{$prefix}nav-enclosed-link-active-border-color);
|
|
244
|
+
|
|
245
|
+
&:not(:focus-visible) {
|
|
246
|
+
box-shadow: var(--#{$prefix}nav-enclosed-link-hover-box-shadow);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// Enclosed pills
|
|
252
|
+
|
|
253
|
+
.nav-enclosed-pills {
|
|
254
|
+
--#{$prefix}nav-enclosed-border-radius: #{$border-radius-pill};
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
|
|
205
258
|
//
|
|
206
259
|
// Justified variants
|
|
207
260
|
//
|
package/scss/_offcanvas.scss
CHANGED
|
@@ -134,7 +134,8 @@
|
|
|
134
134
|
|
|
135
135
|
.btn-close {
|
|
136
136
|
padding: calc(var(--#{$prefix}offcanvas-padding-y) * .5) calc(var(--#{$prefix}offcanvas-padding-x) * .5);
|
|
137
|
-
margin-inline: auto
|
|
137
|
+
margin-inline-start: auto;
|
|
138
|
+
margin-inline-end: calc(-.5 * var(--#{$prefix}offcanvas-padding-x));
|
|
138
139
|
margin-top: calc(-.5 * var(--#{$prefix}offcanvas-padding-y));
|
|
139
140
|
margin-bottom: calc(-.5 * var(--#{$prefix}offcanvas-padding-y));
|
|
140
141
|
}
|
package/scss/_pagination.scss
CHANGED
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
margin-inline-start: $pagination-margin-start;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
@if $pagination-margin-start == calc(#{$pagination-border-width}
|
|
86
|
+
@if $pagination-margin-start == calc(-1 * #{$pagination-border-width}) {
|
|
87
87
|
&:first-child {
|
|
88
88
|
.page-link {
|
|
89
89
|
@include border-start-radius(var(--#{$prefix}pagination-border-radius));
|
package/scss/_progress.scss
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// scss-docs-start progress-keyframes
|
|
11
11
|
@if $enable-transitions {
|
|
12
12
|
@keyframes progress-bar-stripes {
|
|
13
|
-
0% { background-position-x: $progress-height; }
|
|
13
|
+
0% { background-position-x: var(--#{$prefix}progress-height); }
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
// scss-docs-end progress-keyframes
|
|
@@ -146,4 +146,20 @@ $accordion-icon-active-color-dark: $primary-text-emphasis-dark !default;
|
|
|
146
146
|
|
|
147
147
|
$accordion-button-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$accordion-icon-color-dark}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/></svg>") !default;
|
|
148
148
|
$accordion-button-active-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$accordion-icon-active-color-dark}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/></svg>") !default;
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
//
|
|
152
|
+
// Carousel
|
|
153
|
+
//
|
|
154
|
+
|
|
155
|
+
$carousel-indicator-active-bg-dark: $carousel-dark-indicator-active-bg !default;
|
|
156
|
+
$carousel-caption-color-dark: $carousel-dark-caption-color !default;
|
|
157
|
+
$carousel-control-icon-filter-dark: $carousel-dark-control-icon-filter !default;
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
//
|
|
161
|
+
// Close button
|
|
162
|
+
//
|
|
163
|
+
|
|
164
|
+
$btn-close-filter-dark: $btn-close-white-filter !default;
|
|
149
165
|
// scss-docs-end sass-dark-mode-vars
|
package/scss/_variables.scss
CHANGED
|
@@ -87,7 +87,7 @@ $colors: (
|
|
|
87
87
|
) !default;
|
|
88
88
|
// scss-docs-end colors-map
|
|
89
89
|
|
|
90
|
-
// The contrast ratio to reach against white, to determine if color changes from "light" to "dark". Acceptable values for WCAG 2.
|
|
90
|
+
// The contrast ratio to reach against white, to determine if color changes from "light" to "dark". Acceptable values for WCAG 2.2 are 3, 4.5 and 7.
|
|
91
91
|
// See https://www.w3.org/TR/WCAG/#contrast-minimum
|
|
92
92
|
$min-contrast-ratio: 4.5 !default;
|
|
93
93
|
|
|
@@ -915,6 +915,29 @@ $btn-active-border-shade-amount: 25% !default;
|
|
|
915
915
|
$btn-active-border-tint-amount: 10% !default;
|
|
916
916
|
// scss-docs-end btn-variables
|
|
917
917
|
|
|
918
|
+
// scss-docs-start btn-outline-variables
|
|
919
|
+
$btn-outline-color: var(--#{$prefix}secondary-color) !default;
|
|
920
|
+
$btn-outline-border-color: var(--#{$prefix}border-color) !default;
|
|
921
|
+
$btn-outline-active-color: var(--#{$prefix}body-color) !default;
|
|
922
|
+
$btn-outline-active-bg: var(--#{$prefix}tertiary-bg) !default;
|
|
923
|
+
$btn-outline-active-border-color: var(--#{$prefix}border-color) !default;
|
|
924
|
+
$btn-outline-disabled-color: var(--#{$prefix}secondary-color) !default;
|
|
925
|
+
$btn-outline-disabled-border-color: var(--#{$prefix}border-color) !default;
|
|
926
|
+
$btn-outline-hover-color: var(--#{$prefix}body-color) !default;
|
|
927
|
+
$btn-outline-hover-bg: var(--#{$prefix}tertiary-bg) !default;
|
|
928
|
+
$btn-outline-hover-border-color: var(--#{$prefix}border-color) !default;
|
|
929
|
+
$btn-outline-focus-shadow-rgb: var(--#{$prefix}tertiary-bg-rgb) !default;
|
|
930
|
+
// scss-docs-end btn-outline-variables
|
|
931
|
+
|
|
932
|
+
// scss-docs-start btn-ghost-variables
|
|
933
|
+
$btn-ghost-color: var(--#{$prefix}secondary-color) !default;
|
|
934
|
+
$btn-ghost-active-color: var(--#{$prefix}body-color) !default;
|
|
935
|
+
$btn-ghost-active-bg: var(--#{$prefix}tertiary-bg) !default;
|
|
936
|
+
$btn-ghost-disabled-color: var(--#{$prefix}secondary-color) !default;
|
|
937
|
+
$btn-ghost-hover-color: var(--#{$prefix}body-color) !default;
|
|
938
|
+
$btn-ghost-hover-bg: var(--#{$prefix}tertiary-bg) !default;
|
|
939
|
+
$btn-ghost-focus-shadow-rgb: var(--#{$prefix}tertiary-bg-rgb) !default;
|
|
940
|
+
// scss-docs-end btn-ghost-variables
|
|
918
941
|
|
|
919
942
|
// Forms
|
|
920
943
|
|
|
@@ -1258,6 +1281,19 @@ $nav-underline-border-link-padding-x: .5rem !default;
|
|
|
1258
1281
|
$nav-underline-border-link-color: var(--#{$prefix}secondary-color) !default;
|
|
1259
1282
|
$nav-underline-border-link-active-color: var(--#{$prefix}primary) !default;
|
|
1260
1283
|
$nav-underline-border-link-disabled-color: var(--#{$prefix}tertiary-color) !default;
|
|
1284
|
+
|
|
1285
|
+
$nav-enclosed-padding: .125rem !default;
|
|
1286
|
+
$nav-enclosed-bg: var(--#{$prefix}tertiary-bg) !default;
|
|
1287
|
+
$nav-enclosed-border-radius: $border-radius-lg !default;
|
|
1288
|
+
$nav-enclosed-link-padding-y: .375rem !default;
|
|
1289
|
+
$nav-enclosed-link-padding-x: .875rem !default;
|
|
1290
|
+
$nav-enclosed-link-color: var(--#{$prefix}body-color) !default;
|
|
1291
|
+
$nav-enclosed-link-border-width: 1px !default;
|
|
1292
|
+
$nav-enclosed-link-active-color: var(--#{$prefix}body-color) !default;
|
|
1293
|
+
$nav-enclosed-link-active-bg: var(--#{$prefix}body-bg) !default;
|
|
1294
|
+
$nav-enclosed-link-active-border-color: var(--#{$prefix}border-color) !default;
|
|
1295
|
+
$nav-enclosed-link-hover-box-shadow: var(--#{$prefix}box-shadow-sm) !default;
|
|
1296
|
+
$nav-enclosed-link-disabled-color: var(--#{$prefix}secondary-color) !default;
|
|
1261
1297
|
// scss-docs-end nav-variables
|
|
1262
1298
|
|
|
1263
1299
|
|
|
@@ -1379,7 +1415,7 @@ $pagination-color: var(--#{$prefix}link-color) !default;
|
|
|
1379
1415
|
$pagination-bg: var(--#{$prefix}body-bg) !default;
|
|
1380
1416
|
$pagination-border-radius: var(--#{$prefix}border-radius) !default;
|
|
1381
1417
|
$pagination-border-width: var(--#{$prefix}border-width) !default;
|
|
1382
|
-
$pagination-margin-start: calc(#{$pagination-border-width}
|
|
1418
|
+
$pagination-margin-start: calc(-1 * #{$pagination-border-width}) !default; // stylelint-disable-line function-disallowed-list
|
|
1383
1419
|
$pagination-border-color: var(--#{$prefix}border-color) !default;
|
|
1384
1420
|
|
|
1385
1421
|
$pagination-focus-color: var(--#{$prefix}link-hover-color) !default;
|
|
@@ -1588,7 +1624,7 @@ $modal-dialog-margin-y-sm-up: 1.75rem !default;
|
|
|
1588
1624
|
|
|
1589
1625
|
$modal-title-line-height: $line-height-base !default;
|
|
1590
1626
|
|
|
1591
|
-
$modal-content-color:
|
|
1627
|
+
$modal-content-color: var(--#{$prefix}body-color) !default;
|
|
1592
1628
|
$modal-content-bg: var(--#{$prefix}body-bg) !default;
|
|
1593
1629
|
$modal-content-border-color: var(--#{$prefix}border-color-translucent) !default;
|
|
1594
1630
|
$modal-content-border-width: var(--#{$prefix}border-width) !default;
|
|
@@ -1854,6 +1890,7 @@ $carousel-control-width: 15% !default;
|
|
|
1854
1890
|
$carousel-control-opacity: .5 !default;
|
|
1855
1891
|
$carousel-control-hover-opacity: .9 !default;
|
|
1856
1892
|
$carousel-control-transition: opacity .15s ease !default;
|
|
1893
|
+
$carousel-control-icon-filter: null !default;
|
|
1857
1894
|
|
|
1858
1895
|
$carousel-indicator-width: 30px !default;
|
|
1859
1896
|
$carousel-indicator-height: 3px !default;
|
|
@@ -1879,9 +1916,9 @@ $carousel-transition: transform $carousel-transition-duration eas
|
|
|
1879
1916
|
// scss-docs-end carousel-variables
|
|
1880
1917
|
|
|
1881
1918
|
// scss-docs-start carousel-dark-variables
|
|
1882
|
-
$carousel-dark-indicator-active-bg: $black !default;
|
|
1883
|
-
$carousel-dark-caption-color: $black !default;
|
|
1884
|
-
$carousel-dark-control-icon-filter: invert(1) grayscale(100) !default;
|
|
1919
|
+
$carousel-dark-indicator-active-bg: $black !default; // Deprecated in v5.3.2
|
|
1920
|
+
$carousel-dark-caption-color: $black !default; // Deprecated in v5.3.2
|
|
1921
|
+
$carousel-dark-control-icon-filter: invert(1) grayscale(100) !default; // Deprecated in v5.3.2
|
|
1885
1922
|
// scss-docs-end carousel-dark-variables
|
|
1886
1923
|
|
|
1887
1924
|
// scss-docs-start sidebar-variables
|
|
@@ -2031,7 +2068,8 @@ $btn-close-opacity: .5 !default;
|
|
|
2031
2068
|
$btn-close-hover-opacity: .75 !default;
|
|
2032
2069
|
$btn-close-focus-opacity: 1 !default;
|
|
2033
2070
|
$btn-close-disabled-opacity: .25 !default;
|
|
2034
|
-
$btn-close-
|
|
2071
|
+
$btn-close-filter: null !default;
|
|
2072
|
+
$btn-close-white-filter: invert(1) grayscale(100%) brightness(200%) !default; // Deprecated in v5.3.2
|
|
2035
2073
|
// scss-docs-end close-variables
|
|
2036
2074
|
|
|
2037
2075
|
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
> :not(:first-child):not(.dropdown-menu)#{$validation-messages} {
|
|
130
|
-
margin-inline-start: calc(#{$input-border-width}
|
|
130
|
+
margin-inline-start: calc(-1 * #{$input-border-width}); // stylelint-disable-line function-disallowed-list
|
|
131
131
|
@include border-start-radius(0);
|
|
132
132
|
}
|
|
133
133
|
|
|
@@ -19,6 +19,11 @@
|
|
|
19
19
|
&:not(caption) {
|
|
20
20
|
position: absolute !important;
|
|
21
21
|
}
|
|
22
|
+
|
|
23
|
+
// Fix to prevent overflowing children to become focusable
|
|
24
|
+
* {
|
|
25
|
+
overflow: hidden !important;
|
|
26
|
+
}
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
// Use to only display content when it's focused, or one of its child elements is focused
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
.nav-icon {
|
|
262
|
-
margin-inline-start: calc((var(--#{$prefix}sidebar-nav-link-icon-width) + var(--#{$prefix}sidebar-nav-link-icon-margin))
|
|
262
|
+
margin-inline-start: calc(-1 * (var(--#{$prefix}sidebar-nav-link-icon-width) + var(--#{$prefix}sidebar-nav-link-icon-margin))); // stylelint-disable-line function-disallowed-list
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
|