bootstrap-scss 5.2.0 → 5.2.1
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 +1 -1
- package/_accordion.scss +7 -4
- package/_alert.scss +71 -71
- package/_badge.scss +38 -38
- package/_breadcrumb.scss +40 -40
- package/_button-group.scss +1 -1
- package/_buttons.scss +23 -8
- package/_card.scss +234 -234
- package/_carousel.scss +229 -229
- package/_close.scss +40 -40
- package/_containers.scss +41 -41
- package/_dropdown.scss +2 -1
- package/_forms.scss +9 -9
- package/_functions.scss +1 -1
- package/_grid.scss +33 -33
- package/_helpers.scss +10 -10
- package/_list-group.scss +6 -5
- package/_maps.scss +54 -54
- package/_mixins.scss +43 -43
- package/_modal.scss +1 -1
- package/_nav.scss +2 -2
- package/_navbar.scss +2 -0
- package/_offcanvas.scss +5 -4
- package/_pagination.scss +1 -1
- package/_placeholders.scss +51 -51
- package/_popover.scss +5 -5
- package/_progress.scss +59 -59
- package/_reboot.scss +610 -610
- package/_root.scss +73 -73
- package/_spinners.scss +85 -85
- package/_tables.scss +164 -164
- package/_toasts.scss +3 -2
- package/_tooltip.scss +120 -120
- package/_transitions.scss +27 -27
- package/_type.scss +106 -106
- package/_utilities.scss +647 -647
- package/_variables.scss +17 -16
- package/bootstrap-grid.scss +64 -64
- package/bootstrap-reboot.scss +9 -9
- package/bootstrap-utilities.scss +15 -15
- package/bootstrap.scss +51 -51
- package/forms/_floating-labels.scss +1 -0
- package/forms/_form-check.scss +175 -175
- package/forms/_form-control.scss +194 -194
- package/forms/_form-range.scss +91 -91
- package/forms/_form-select.scss +71 -71
- package/forms/_form-text.scss +11 -11
- package/forms/_input-group.scss +7 -4
- package/forms/_labels.scss +36 -36
- package/forms/_validation.scss +12 -12
- package/helpers/_clearfix.scss +3 -3
- package/helpers/_color-bg.scss +10 -10
- package/helpers/_colored-links.scss +12 -12
- package/helpers/_position.scss +36 -36
- package/helpers/_ratio.scss +26 -26
- package/helpers/_stacks.scss +15 -15
- package/helpers/_stretched-link.scss +15 -15
- package/helpers/_text-truncation.scss +7 -7
- package/helpers/_visually-hidden.scss +8 -8
- package/helpers/_vr.scss +8 -8
- package/mixins/_alert.scss +15 -15
- package/mixins/_backdrop.scss +14 -14
- package/mixins/_banner.scss +2 -2
- package/mixins/_border-radius.scss +78 -78
- package/mixins/_box-shadow.scss +18 -18
- package/mixins/_breakpoints.scss +127 -127
- package/mixins/_buttons.scss +70 -70
- package/mixins/_caret.scss +64 -64
- package/mixins/_clearfix.scss +9 -9
- package/mixins/_color-scheme.scss +7 -7
- package/mixins/_container.scss +11 -11
- package/mixins/_forms.scss +10 -10
- package/mixins/_gradients.scss +47 -47
- package/mixins/_grid.scss +151 -151
- package/mixins/_image.scss +16 -16
- package/mixins/_list-group.scss +24 -24
- package/mixins/_lists.scss +7 -7
- package/mixins/_pagination.scss +10 -10
- package/mixins/_reset-text.scss +17 -17
- package/mixins/_table-variants.scss +24 -24
- package/mixins/_transition.scss +26 -26
- package/mixins/_utilities.scss +1 -1
- package/mixins/_visually-hidden.scss +29 -29
- package/package.json +1 -1
- package/utilities/_api.scss +47 -47
- 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
|
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)
|
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
|
}
|