@openeuropa/bcl-bootstrap 1.10.1 → 1.10.2
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/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/event-handler.js +1 -1
- package/js/dist/dom/manipulator.js +1 -1
- package/js/dist/dom/manipulator.js.map +1 -1
- package/js/dist/dom/selector-engine.js +1 -1
- package/js/dist/dropdown.js +6 -3
- package/js/dist/dropdown.js.map +1 -1
- package/js/dist/modal.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/tab.js +1 -1
- package/js/dist/toast.js +1 -2
- package/js/dist/toast.js.map +1 -1
- package/js/dist/tooltip.js +4 -5
- 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 +2 -2
- package/js/dist/util/index.js.map +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 +2 -2
- package/js/dist/util/template-factory.js.map +1 -1
- package/js/src/base-component.js +2 -1
- package/js/src/collapse.js +1 -1
- package/js/src/dom/manipulator.js +1 -1
- package/js/src/dropdown.js +5 -2
- package/js/src/toast.js +0 -1
- package/js/src/tooltip.js +3 -4
- package/js/src/util/index.js +2 -2
- package/js/src/util/template-factory.js +1 -1
- package/package.json +5 -5
- package/scss/_accordion.scss +4 -9
- package/scss/_button-group.scss +8 -3
- package/scss/_card.scss +9 -10
- package/scss/_carousel.scss +15 -25
- package/scss/_close.scss +9 -6
- package/scss/_functions.scss +1 -1
- package/scss/_list-group.scss +27 -25
- package/scss/_modal.scss +6 -2
- package/scss/_nav.scss +1 -1
- package/scss/_navbar.scss +1 -1
- package/scss/_offcanvas.scss +5 -1
- package/scss/_pagination.scss +1 -1
- package/scss/_progress.scss +1 -1
- package/scss/_reboot.scss +1 -1
- package/scss/_type.scss +1 -1
- package/scss/_variables-dark.scss +17 -2
- package/scss/_variables.scss +16 -14
- package/scss/forms/_floating-labels.scss +18 -16
- package/scss/forms/_input-group.scss +1 -1
- package/scss/mixins/_banner.scss +2 -2
- package/scss/mixins/_grid.scss +1 -1
- package/scss/mixins/_visually-hidden.scss +6 -1
package/js/src/dropdown.js
CHANGED
|
@@ -207,6 +207,9 @@ class Dropdown extends BaseComponent {
|
|
|
207
207
|
this._element.setAttribute('aria-expanded', 'false')
|
|
208
208
|
Manipulator.removeDataAttribute(this._menu, 'popper')
|
|
209
209
|
EventHandler.trigger(this._element, EVENT_HIDDEN, relatedTarget)
|
|
210
|
+
|
|
211
|
+
// Explicitly return focus to the trigger element
|
|
212
|
+
this._element.focus()
|
|
210
213
|
}
|
|
211
214
|
|
|
212
215
|
_getConfig(config) {
|
|
@@ -224,7 +227,7 @@ class Dropdown extends BaseComponent {
|
|
|
224
227
|
|
|
225
228
|
_createPopper() {
|
|
226
229
|
if (typeof Popper === 'undefined') {
|
|
227
|
-
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)')
|
|
230
|
+
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org/docs/v2/)')
|
|
228
231
|
}
|
|
229
232
|
|
|
230
233
|
let referenceElement = this._element
|
|
@@ -320,7 +323,7 @@ class Dropdown extends BaseComponent {
|
|
|
320
323
|
|
|
321
324
|
return {
|
|
322
325
|
...defaultBsPopperConfig,
|
|
323
|
-
...execute(this._config.popperConfig, [defaultBsPopperConfig])
|
|
326
|
+
...execute(this._config.popperConfig, [undefined, defaultBsPopperConfig])
|
|
324
327
|
}
|
|
325
328
|
}
|
|
326
329
|
|
package/js/src/toast.js
CHANGED
package/js/src/tooltip.js
CHANGED
|
@@ -105,7 +105,7 @@ const DefaultType = {
|
|
|
105
105
|
class Tooltip extends BaseComponent {
|
|
106
106
|
constructor(element, config) {
|
|
107
107
|
if (typeof Popper === 'undefined') {
|
|
108
|
-
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)')
|
|
108
|
+
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org/docs/v2/)')
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
super(element, config)
|
|
@@ -160,7 +160,6 @@ class Tooltip extends BaseComponent {
|
|
|
160
160
|
return
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
this._activeTrigger.click = !this._activeTrigger.click
|
|
164
163
|
if (this._isShown()) {
|
|
165
164
|
this._leave()
|
|
166
165
|
return
|
|
@@ -392,7 +391,7 @@ class Tooltip extends BaseComponent {
|
|
|
392
391
|
}
|
|
393
392
|
|
|
394
393
|
_resolvePossibleFunction(arg) {
|
|
395
|
-
return execute(arg, [this._element])
|
|
394
|
+
return execute(arg, [this._element, this._element])
|
|
396
395
|
}
|
|
397
396
|
|
|
398
397
|
_getPopperConfig(attachment) {
|
|
@@ -438,7 +437,7 @@ class Tooltip extends BaseComponent {
|
|
|
438
437
|
|
|
439
438
|
return {
|
|
440
439
|
...defaultBsPopperConfig,
|
|
441
|
-
...execute(this._config.popperConfig, [defaultBsPopperConfig])
|
|
440
|
+
...execute(this._config.popperConfig, [undefined, defaultBsPopperConfig])
|
|
442
441
|
}
|
|
443
442
|
}
|
|
444
443
|
|
package/js/src/util/index.js
CHANGED
|
@@ -170,7 +170,7 @@ const noop = () => {}
|
|
|
170
170
|
* @param {HTMLElement} element
|
|
171
171
|
* @return void
|
|
172
172
|
*
|
|
173
|
-
* @see https://www.
|
|
173
|
+
* @see https://www.harrytheo.com/blog/2021/02/restart-a-css-animation-with-javascript/#restarting-a-css-animation
|
|
174
174
|
*/
|
|
175
175
|
const reflow = element => {
|
|
176
176
|
element.offsetHeight // eslint-disable-line no-unused-expressions
|
|
@@ -223,7 +223,7 @@ const defineJQueryPlugin = plugin => {
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
const execute = (possibleCallback, args = [], defaultValue = possibleCallback) => {
|
|
226
|
-
return typeof possibleCallback === 'function' ? possibleCallback(...args) : defaultValue
|
|
226
|
+
return typeof possibleCallback === 'function' ? possibleCallback.call(...args) : defaultValue
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
const executeAfterTransition = (callback, transitionElement, waitForTransition = true) => {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-bootstrap",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "1.10.
|
|
5
|
+
"version": "1.10.2",
|
|
6
6
|
"description": "OE - BCL bootstrap 5 sources",
|
|
7
7
|
"bin": {
|
|
8
8
|
"plugins-builder": "./bin/build-plugins.js"
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"prepublish": "npm-run-all clean 'copy-*' replace-icons build-plugins"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@babel/core": "^7.
|
|
24
|
+
"@babel/core": "^7.27.1",
|
|
25
25
|
"@popperjs/core": "^2.11.8",
|
|
26
26
|
"@rollup/plugin-babel": "6.0.4",
|
|
27
|
-
"bootstrap": "5.3.
|
|
27
|
+
"bootstrap": "5.3.6",
|
|
28
28
|
"bootstrap-icons": "1.11.3",
|
|
29
29
|
"copyfiles": "2.4.1",
|
|
30
|
-
"eslint": "^9.
|
|
30
|
+
"eslint": "^9.26.0",
|
|
31
31
|
"npm-run-all": "4.1.5",
|
|
32
32
|
"rimraf": "6.0.1"
|
|
33
33
|
},
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"design-system",
|
|
49
49
|
"twig"
|
|
50
50
|
],
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "d4bb50f58dd038748c618cc2f7bff2674f0b1f2a"
|
|
52
52
|
}
|
package/scss/_accordion.scss
CHANGED
|
@@ -134,17 +134,12 @@
|
|
|
134
134
|
&:last-child { border-bottom: 0; }
|
|
135
135
|
|
|
136
136
|
// stylelint-disable selector-max-class
|
|
137
|
-
> .accordion-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
@include border-radius(0);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
// stylelint-enable selector-max-class
|
|
144
|
-
|
|
145
|
-
> .accordion-collapse {
|
|
137
|
+
> .accordion-collapse,
|
|
138
|
+
> .accordion-header .accordion-button,
|
|
139
|
+
> .accordion-header .accordion-button.collapsed {
|
|
146
140
|
@include border-radius(0);
|
|
147
141
|
}
|
|
142
|
+
// stylelint-enable selector-max-class
|
|
148
143
|
}
|
|
149
144
|
}
|
|
150
145
|
|
package/scss/_button-group.scss
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
// Prevent double borders when buttons are next to each other
|
|
40
40
|
> :not(.btn-check:first-child) + .btn,
|
|
41
41
|
> .btn-group:not(:first-child) {
|
|
42
|
-
margin-left: calc(#{$btn-border-width}
|
|
42
|
+
margin-left: calc(-1 * #{$btn-border-width}); // stylelint-disable-line function-disallowed-list
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
// Reset rounded corners
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
|
|
127
127
|
> .btn:not(:first-child),
|
|
128
128
|
> .btn-group:not(:first-child) {
|
|
129
|
-
margin-top: calc(#{$btn-border-width}
|
|
129
|
+
margin-top: calc(-1 * #{$btn-border-width}); // stylelint-disable-line function-disallowed-list
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
// Reset rounded corners
|
|
@@ -135,7 +135,12 @@
|
|
|
135
135
|
@include border-bottom-radius(0);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
// The top radius should be 0 if the button is:
|
|
139
|
+
// - the "third or more" child
|
|
140
|
+
// - the second child and the previous element isn't `.btn-check` (making it the first child visually)
|
|
141
|
+
// - part of a btn-group which isn't the first child
|
|
142
|
+
> .btn:nth-child(n + 3),
|
|
143
|
+
> :not(.btn-check) + .btn,
|
|
139
144
|
> .btn-group:not(:first-child) > .btn {
|
|
140
145
|
@include border-top-radius(0);
|
|
141
146
|
}
|
package/scss/_card.scss
CHANGED
|
@@ -193,8 +193,7 @@
|
|
|
193
193
|
// The child selector allows nested `.card` within `.card-group`
|
|
194
194
|
// to display properly.
|
|
195
195
|
> .card {
|
|
196
|
-
|
|
197
|
-
flex: 1 0 0%;
|
|
196
|
+
flex: 1 0 0;
|
|
198
197
|
margin-bottom: 0;
|
|
199
198
|
|
|
200
199
|
+ .card {
|
|
@@ -207,13 +206,13 @@
|
|
|
207
206
|
&:not(:last-child) {
|
|
208
207
|
@include border-end-radius(0);
|
|
209
208
|
|
|
210
|
-
.card-img-top,
|
|
211
|
-
.card-header {
|
|
209
|
+
> .card-img-top,
|
|
210
|
+
> .card-header {
|
|
212
211
|
// stylelint-disable-next-line property-disallowed-list
|
|
213
212
|
border-top-right-radius: 0;
|
|
214
213
|
}
|
|
215
|
-
.card-img-bottom,
|
|
216
|
-
.card-footer {
|
|
214
|
+
> .card-img-bottom,
|
|
215
|
+
> .card-footer {
|
|
217
216
|
// stylelint-disable-next-line property-disallowed-list
|
|
218
217
|
border-bottom-right-radius: 0;
|
|
219
218
|
}
|
|
@@ -222,13 +221,13 @@
|
|
|
222
221
|
&:not(:first-child) {
|
|
223
222
|
@include border-start-radius(0);
|
|
224
223
|
|
|
225
|
-
.card-img-top,
|
|
226
|
-
.card-header {
|
|
224
|
+
> .card-img-top,
|
|
225
|
+
> .card-header {
|
|
227
226
|
// stylelint-disable-next-line property-disallowed-list
|
|
228
227
|
border-top-left-radius: 0;
|
|
229
228
|
}
|
|
230
|
-
.card-img-bottom,
|
|
231
|
-
.card-footer {
|
|
229
|
+
> .card-img-bottom,
|
|
230
|
+
> .card-footer {
|
|
232
231
|
// stylelint-disable-next-line property-disallowed-list
|
|
233
232
|
border-bottom-left-radius: 0;
|
|
234
233
|
}
|
package/scss/_carousel.scss
CHANGED
|
@@ -99,6 +99,7 @@
|
|
|
99
99
|
color: $carousel-control-color;
|
|
100
100
|
text-align: center;
|
|
101
101
|
background: none;
|
|
102
|
+
filter: var(--#{$prefix}carousel-control-icon-filter);
|
|
102
103
|
border: 0;
|
|
103
104
|
opacity: $carousel-control-opacity;
|
|
104
105
|
@include transition($carousel-control-transition);
|
|
@@ -168,7 +169,7 @@
|
|
|
168
169
|
margin-left: $carousel-indicator-spacer;
|
|
169
170
|
text-indent: -999px;
|
|
170
171
|
cursor: pointer;
|
|
171
|
-
background-color: $carousel-indicator-active-bg;
|
|
172
|
+
background-color: var(--#{$prefix}carousel-indicator-active-bg);
|
|
172
173
|
background-clip: padding-box;
|
|
173
174
|
border: 0;
|
|
174
175
|
// Use transparent borders to increase the hit area by 10px on top and bottom.
|
|
@@ -195,42 +196,31 @@
|
|
|
195
196
|
left: (100% - $carousel-caption-width) * .5;
|
|
196
197
|
padding-top: $carousel-caption-padding-y;
|
|
197
198
|
padding-bottom: $carousel-caption-padding-y;
|
|
198
|
-
color: $carousel-caption-color;
|
|
199
|
+
color: var(--#{$prefix}carousel-caption-color);
|
|
199
200
|
text-align: center;
|
|
200
201
|
}
|
|
201
202
|
|
|
202
203
|
// Dark mode carousel
|
|
203
204
|
|
|
204
205
|
@mixin carousel-dark() {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.carousel-indicators [data-bs-target] {
|
|
211
|
-
background-color: $carousel-dark-indicator-active-bg;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.carousel-caption {
|
|
215
|
-
color: $carousel-dark-caption-color;
|
|
216
|
-
}
|
|
206
|
+
--#{$prefix}carousel-indicator-active-bg: #{$carousel-indicator-active-bg-dark};
|
|
207
|
+
--#{$prefix}carousel-caption-color: #{$carousel-caption-color-dark};
|
|
208
|
+
--#{$prefix}carousel-control-icon-filter: #{$carousel-control-icon-filter-dark};
|
|
217
209
|
}
|
|
218
210
|
|
|
219
211
|
.carousel-dark {
|
|
220
212
|
@include carousel-dark();
|
|
221
213
|
}
|
|
222
214
|
|
|
215
|
+
:root,
|
|
216
|
+
[data-bs-theme="light"] {
|
|
217
|
+
--#{$prefix}carousel-indicator-active-bg: #{$carousel-indicator-active-bg};
|
|
218
|
+
--#{$prefix}carousel-caption-color: #{$carousel-caption-color};
|
|
219
|
+
--#{$prefix}carousel-control-icon-filter: #{$carousel-control-icon-filter};
|
|
220
|
+
}
|
|
221
|
+
|
|
223
222
|
@if $enable-dark-mode {
|
|
224
|
-
@include color-mode(dark) {
|
|
225
|
-
@
|
|
226
|
-
.carousel {
|
|
227
|
-
@include carousel-dark();
|
|
228
|
-
}
|
|
229
|
-
} @else {
|
|
230
|
-
.carousel,
|
|
231
|
-
&.carousel {
|
|
232
|
-
@include carousel-dark();
|
|
233
|
-
}
|
|
234
|
-
}
|
|
223
|
+
@include color-mode(dark, true) {
|
|
224
|
+
@include carousel-dark();
|
|
235
225
|
}
|
|
236
226
|
}
|
package/scss/_close.scss
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
--#{$prefix}btn-close-focus-shadow: #{$btn-close-focus-shadow};
|
|
13
13
|
--#{$prefix}btn-close-focus-opacity: #{$btn-close-focus-opacity};
|
|
14
14
|
--#{$prefix}btn-close-disabled-opacity: #{$btn-close-disabled-opacity};
|
|
15
|
-
--#{$prefix}btn-close-white-filter: #{$btn-close-white-filter};
|
|
16
15
|
// scss-docs-end close-css-vars
|
|
17
16
|
|
|
18
17
|
box-sizing: content-box;
|
|
@@ -21,6 +20,7 @@
|
|
|
21
20
|
padding: $btn-close-padding-y $btn-close-padding-x;
|
|
22
21
|
color: var(--#{$prefix}btn-close-color);
|
|
23
22
|
background: transparent var(--#{$prefix}btn-close-bg) center / $btn-close-width auto no-repeat; // include transparent for button elements
|
|
23
|
+
filter: var(--#{$prefix}btn-close-filter);
|
|
24
24
|
border: 0; // for button elements
|
|
25
25
|
@include border-radius();
|
|
26
26
|
opacity: var(--#{$prefix}btn-close-opacity);
|
|
@@ -47,17 +47,20 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
@mixin btn-close-white() {
|
|
50
|
-
|
|
50
|
+
--#{$prefix}btn-close-filter: #{$btn-close-filter-dark};
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.btn-close-white {
|
|
54
54
|
@include btn-close-white();
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
:root,
|
|
58
|
+
[data-bs-theme="light"] {
|
|
59
|
+
--#{$prefix}btn-close-filter: #{$btn-close-filter};
|
|
60
|
+
}
|
|
61
|
+
|
|
57
62
|
@if $enable-dark-mode {
|
|
58
|
-
@include color-mode(dark) {
|
|
59
|
-
|
|
60
|
-
@include btn-close-white();
|
|
61
|
-
}
|
|
63
|
+
@include color-mode(dark, true) {
|
|
64
|
+
@include btn-close-white();
|
|
62
65
|
}
|
|
63
66
|
}
|
package/scss/_functions.scss
CHANGED
|
@@ -177,7 +177,7 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003
|
|
|
177
177
|
@return if($l1 > $l2, divide($l1 + .05, $l2 + .05), divide($l2 + .05, $l1 + .05));
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
// Return WCAG2.
|
|
180
|
+
// Return WCAG2.2 relative luminance
|
|
181
181
|
// See https://www.w3.org/TR/WCAG/#dfn-relative-luminance
|
|
182
182
|
// See https://www.w3.org/TR/WCAG/#dfn-contrast-ratio
|
|
183
183
|
@function luminance($color) {
|
package/scss/_list-group.scss
CHANGED
|
@@ -43,31 +43,6 @@
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
// Interactive list items
|
|
47
|
-
//
|
|
48
|
-
// Use anchor or button elements instead of `li`s or `div`s to create interactive
|
|
49
|
-
// list items. Includes an extra `.active` modifier class for selected items.
|
|
50
|
-
|
|
51
|
-
.list-group-item-action {
|
|
52
|
-
width: 100%; // For `<button>`s (anchors become 100% by default though)
|
|
53
|
-
color: var(--#{$prefix}list-group-action-color);
|
|
54
|
-
text-align: inherit; // For `<button>`s (anchors inherit)
|
|
55
|
-
|
|
56
|
-
// Hover state
|
|
57
|
-
&:hover,
|
|
58
|
-
&:focus {
|
|
59
|
-
z-index: 1; // Place hover/focus items above their siblings for proper border styling
|
|
60
|
-
color: var(--#{$prefix}list-group-action-hover-color);
|
|
61
|
-
text-decoration: none;
|
|
62
|
-
background-color: var(--#{$prefix}list-group-action-hover-bg);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&:active {
|
|
66
|
-
color: var(--#{$prefix}list-group-action-active-color);
|
|
67
|
-
background-color: var(--#{$prefix}list-group-action-active-bg);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
46
|
// Individual list items
|
|
72
47
|
//
|
|
73
48
|
// Use on `li`s or `div`s within the `.list-group` parent.
|
|
@@ -115,6 +90,33 @@
|
|
|
115
90
|
}
|
|
116
91
|
}
|
|
117
92
|
|
|
93
|
+
// Interactive list items
|
|
94
|
+
//
|
|
95
|
+
// Use anchor or button elements instead of `li`s or `div`s to create interactive
|
|
96
|
+
// list items. Includes an extra `.active` modifier class for selected items.
|
|
97
|
+
|
|
98
|
+
.list-group-item-action {
|
|
99
|
+
width: 100%; // For `<button>`s (anchors become 100% by default though)
|
|
100
|
+
color: var(--#{$prefix}list-group-action-color);
|
|
101
|
+
text-align: inherit; // For `<button>`s (anchors inherit)
|
|
102
|
+
|
|
103
|
+
&:not(.active) {
|
|
104
|
+
// Hover state
|
|
105
|
+
&:hover,
|
|
106
|
+
&:focus {
|
|
107
|
+
z-index: 1; // Place hover/focus items above their siblings for proper border styling
|
|
108
|
+
color: var(--#{$prefix}list-group-action-hover-color);
|
|
109
|
+
text-decoration: none;
|
|
110
|
+
background-color: var(--#{$prefix}list-group-action-hover-bg);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&:active {
|
|
114
|
+
color: var(--#{$prefix}list-group-action-active-color);
|
|
115
|
+
background-color: var(--#{$prefix}list-group-action-active-bg);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
118
120
|
// Horizontal
|
|
119
121
|
//
|
|
120
122
|
// Change the layout of list group items from vertical (default) to horizontal.
|
package/scss/_modal.scss
CHANGED
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
|
|
60
60
|
// When fading in the modal, animate it to slide down
|
|
61
61
|
.modal.fade & {
|
|
62
|
-
@include transition($modal-transition);
|
|
63
62
|
transform: $modal-fade-transform;
|
|
63
|
+
@include transition($modal-transition);
|
|
64
64
|
}
|
|
65
65
|
.modal.show & {
|
|
66
66
|
transform: $modal-show-transform;
|
|
@@ -132,7 +132,11 @@
|
|
|
132
132
|
|
|
133
133
|
.btn-close {
|
|
134
134
|
padding: calc(var(--#{$prefix}modal-header-padding-y) * .5) calc(var(--#{$prefix}modal-header-padding-x) * .5);
|
|
135
|
-
|
|
135
|
+
// Split properties to avoid invalid calc() function if value is 0
|
|
136
|
+
margin-top: calc(-.5 * var(--#{$prefix}modal-header-padding-y));
|
|
137
|
+
margin-right: calc(-.5 * var(--#{$prefix}modal-header-padding-x));
|
|
138
|
+
margin-bottom: calc(-.5 * var(--#{$prefix}modal-header-padding-y));
|
|
139
|
+
margin-left: auto;
|
|
136
140
|
}
|
|
137
141
|
}
|
|
138
142
|
|
package/scss/_nav.scss
CHANGED
package/scss/_navbar.scss
CHANGED
|
@@ -139,8 +139,8 @@
|
|
|
139
139
|
// the default flexbox row orientation. Requires the use of `flex-wrap: wrap`
|
|
140
140
|
// on the `.navbar` parent.
|
|
141
141
|
.navbar-collapse {
|
|
142
|
-
flex-basis: 100%;
|
|
143
142
|
flex-grow: 1;
|
|
143
|
+
flex-basis: 100%;
|
|
144
144
|
// For always expanded or extra full navbars, ensure content aligns itself
|
|
145
145
|
// properly vertically. Can be easily overridden with flex utilities.
|
|
146
146
|
align-items: center;
|
package/scss/_offcanvas.scss
CHANGED
|
@@ -127,7 +127,11 @@
|
|
|
127
127
|
|
|
128
128
|
.btn-close {
|
|
129
129
|
padding: calc(var(--#{$prefix}offcanvas-padding-y) * .5) calc(var(--#{$prefix}offcanvas-padding-x) * .5);
|
|
130
|
-
|
|
130
|
+
// Split properties to avoid invalid calc() function if value is 0
|
|
131
|
+
margin-top: calc(-.5 * var(--#{$prefix}offcanvas-padding-y));
|
|
132
|
+
margin-right: calc(-.5 * var(--#{$prefix}offcanvas-padding-x));
|
|
133
|
+
margin-bottom: calc(-.5 * var(--#{$prefix}offcanvas-padding-y));
|
|
134
|
+
margin-left: auto;
|
|
131
135
|
}
|
|
132
136
|
}
|
|
133
137
|
|
package/scss/_pagination.scss
CHANGED
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
margin-left: $pagination-margin-start;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
@if $pagination-margin-start == calc(#{$pagination-border-width}
|
|
78
|
+
@if $pagination-margin-start == calc(-1 * #{$pagination-border-width}) {
|
|
79
79
|
&:first-child {
|
|
80
80
|
.page-link {
|
|
81
81
|
@include border-start-radius(var(--#{$prefix}pagination-border-radius));
|
package/scss/_progress.scss
CHANGED
package/scss/_reboot.scss
CHANGED
|
@@ -499,9 +499,9 @@ legend {
|
|
|
499
499
|
width: 100%;
|
|
500
500
|
padding: 0;
|
|
501
501
|
margin-bottom: $legend-margin-bottom;
|
|
502
|
-
@include font-size($legend-font-size);
|
|
503
502
|
font-weight: $legend-font-weight;
|
|
504
503
|
line-height: inherit;
|
|
504
|
+
@include font-size($legend-font-size);
|
|
505
505
|
|
|
506
506
|
+ * {
|
|
507
507
|
clear: left; // 2
|
package/scss/_type.scss
CHANGED
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
// Type display classes
|
|
35
35
|
@each $display, $font-size in $display-font-sizes {
|
|
36
36
|
.display-#{$display} {
|
|
37
|
-
@include font-size($font-size);
|
|
38
37
|
font-family: $display-font-family;
|
|
39
38
|
font-style: $display-font-style;
|
|
40
39
|
font-weight: $display-font-weight;
|
|
41
40
|
line-height: $display-line-height;
|
|
41
|
+
@include font-size($font-size);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -82,6 +82,21 @@ $form-invalid-border-color-dark: $red-300 !default;
|
|
|
82
82
|
$accordion-icon-color-dark: $primary-text-emphasis-dark !default;
|
|
83
83
|
$accordion-icon-active-color-dark: $primary-text-emphasis-dark !default;
|
|
84
84
|
|
|
85
|
-
$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-.
|
|
86
|
-
$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-.
|
|
85
|
+
$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;
|
|
86
|
+
$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;
|
|
87
87
|
// scss-docs-end sass-dark-mode-vars
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
//
|
|
91
|
+
// Carousel
|
|
92
|
+
//
|
|
93
|
+
|
|
94
|
+
$carousel-indicator-active-bg-dark: $carousel-dark-indicator-active-bg !default;
|
|
95
|
+
$carousel-caption-color-dark: $carousel-dark-caption-color !default;
|
|
96
|
+
$carousel-control-icon-filter-dark: $carousel-dark-control-icon-filter !default;
|
|
97
|
+
|
|
98
|
+
//
|
|
99
|
+
// Close button
|
|
100
|
+
//
|
|
101
|
+
|
|
102
|
+
$btn-close-filter-dark: $btn-close-white-filter !default;
|