bootstrap-scss 5.1.3 → 5.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +2 -2
- package/README.md +5 -5
- package/_accordion.scss +149 -118
- package/_alert.scss +18 -4
- package/_badge.scss +14 -5
- package/_breadcrumb.scss +22 -10
- package/_button-group.scss +142 -139
- package/_buttons.scss +201 -111
- package/_card.scss +55 -37
- package/_close.scss +1 -1
- package/_containers.scss +1 -1
- package/_dropdown.scss +249 -240
- package/_functions.scss +302 -302
- package/_grid.scss +3 -3
- package/_helpers.scss +1 -0
- package/_list-group.scss +192 -174
- package/_maps.scss +54 -0
- package/_modal.scss +237 -209
- package/_nav.scss +172 -139
- package/_navbar.scss +278 -335
- package/_offcanvas.scss +144 -83
- package/_pagination.scss +109 -64
- package/_placeholders.scss +1 -1
- package/_popover.scss +196 -158
- package/_progress.scss +20 -9
- package/_reboot.scss +25 -40
- package/_root.scss +40 -21
- package/_spinners.scss +38 -22
- package/_tables.scss +32 -23
- package/_toasts.scss +71 -51
- package/_tooltip.scss +61 -56
- package/_type.scss +2 -0
- package/_utilities.scss +43 -26
- package/_variables.scss +1634 -1641
- package/bootstrap-grid.scss +3 -6
- package/bootstrap-reboot.scss +3 -7
- package/bootstrap-utilities.scss +3 -6
- package/bootstrap.scss +4 -6
- package/forms/_floating-labels.scss +75 -63
- package/forms/_form-check.scss +28 -5
- package/forms/_form-control.scss +12 -37
- package/forms/_form-select.scss +0 -1
- package/forms/_input-group.scss +132 -121
- package/helpers/_color-bg.scss +10 -0
- package/helpers/_colored-links.scss +2 -2
- package/helpers/_position.scss +7 -1
- package/helpers/_ratio.scss +2 -2
- package/helpers/_vr.scss +1 -1
- package/mixins/_alert.scss +7 -3
- package/mixins/_banner.scss +9 -0
- package/mixins/_breakpoints.scss +8 -8
- package/mixins/_buttons.scss +32 -95
- package/mixins/_container.scss +4 -2
- package/mixins/_forms.scss +152 -144
- package/mixins/_gradients.scss +1 -1
- package/mixins/_grid.scss +12 -12
- package/mixins/_pagination.scss +4 -25
- package/mixins/_reset-text.scss +1 -1
- package/mixins/_table-variants.scss +12 -9
- package/mixins/_utilities.scss +97 -89
- package/package.json +1 -1
package/_spinners.scss
CHANGED
@@ -2,6 +2,17 @@
|
|
2
2
|
// Rotating border
|
3
3
|
//
|
4
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
|
+
|
5
16
|
// scss-docs-start spinner-border-keyframes
|
6
17
|
@keyframes spinner-border {
|
7
18
|
to { transform: rotate(360deg) #{"/* rtl:ignore */"}; }
|
@@ -9,21 +20,25 @@
|
|
9
20
|
// scss-docs-end spinner-border-keyframes
|
10
21
|
|
11
22
|
.spinner-border {
|
12
|
-
|
13
|
-
width: $spinner-width;
|
14
|
-
height: $spinner-height;
|
15
|
-
vertical-align: $spinner-vertical-align;
|
16
|
-
border: $spinner-border-width
|
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;
|
17
33
|
border-right-color: transparent;
|
18
|
-
// stylelint-disable-next-line property-disallowed-list
|
19
|
-
border-radius: 50%;
|
20
|
-
animation: $spinner-animation-speed linear infinite spinner-border;
|
21
34
|
}
|
22
35
|
|
23
36
|
.spinner-border-sm {
|
24
|
-
|
25
|
-
|
26
|
-
|
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
|
27
42
|
}
|
28
43
|
|
29
44
|
//
|
@@ -43,27 +58,28 @@
|
|
43
58
|
// scss-docs-end spinner-grow-keyframes
|
44
59
|
|
45
60
|
.spinner-grow {
|
46
|
-
|
47
|
-
width: $spinner-width;
|
48
|
-
height: $spinner-height;
|
49
|
-
vertical-align: $spinner-vertical-align;
|
50
|
-
|
51
|
-
|
52
|
-
|
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;
|
53
70
|
opacity: 0;
|
54
|
-
animation: $spinner-animation-speed linear infinite spinner-grow;
|
55
71
|
}
|
56
72
|
|
57
73
|
.spinner-grow-sm {
|
58
|
-
width: $spinner-width-sm;
|
59
|
-
height: $spinner-height-sm;
|
74
|
+
--#{$prefix}spinner-width: #{$spinner-width-sm};
|
75
|
+
--#{$prefix}spinner-height: #{$spinner-height-sm};
|
60
76
|
}
|
61
77
|
|
62
78
|
@if $enable-reduced-motion {
|
63
79
|
@media (prefers-reduced-motion: reduce) {
|
64
80
|
.spinner-border,
|
65
81
|
.spinner-grow {
|
66
|
-
animation-
|
82
|
+
--#{$prefix}spinner-animation-speed: #{$spinner-animation-speed * 2};
|
67
83
|
}
|
68
84
|
}
|
69
85
|
}
|
package/_tables.scss
CHANGED
@@ -3,20 +3,22 @@
|
|
3
3
|
//
|
4
4
|
|
5
5
|
.table {
|
6
|
-
--#{$
|
7
|
-
--#{$
|
8
|
-
--#{$
|
9
|
-
--#{$
|
10
|
-
--#{$
|
11
|
-
--#{$
|
12
|
-
--#{$
|
13
|
-
--#{$
|
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};
|
14
16
|
|
15
17
|
width: 100%;
|
16
18
|
margin-bottom: $spacer;
|
17
|
-
color: $table-color;
|
19
|
+
color: var(--#{$prefix}table-color);
|
18
20
|
vertical-align: $table-cell-vertical-align;
|
19
|
-
border-color: $table-border-color;
|
21
|
+
border-color: var(--#{$prefix}table-border-color);
|
20
22
|
|
21
23
|
// Target th & td
|
22
24
|
// We need the child combinator to prevent styles leaking to nested tables which doesn't have a `.table` class.
|
@@ -25,9 +27,9 @@
|
|
25
27
|
// stylelint-disable-next-line selector-max-universal
|
26
28
|
> :not(caption) > * > * {
|
27
29
|
padding: $table-cell-padding-y $table-cell-padding-x;
|
28
|
-
background-color: var(--#{$
|
30
|
+
background-color: var(--#{$prefix}table-bg);
|
29
31
|
border-bottom-width: $table-border-width;
|
30
|
-
box-shadow: inset 0 0 0 9999px var(--#{$
|
32
|
+
box-shadow: inset 0 0 0 9999px var(--#{$prefix}table-accent-bg);
|
31
33
|
}
|
32
34
|
|
33
35
|
> tbody {
|
@@ -37,13 +39,11 @@
|
|
37
39
|
> thead {
|
38
40
|
vertical-align: bottom;
|
39
41
|
}
|
40
|
-
|
41
|
-
// Highlight border color between thead, tbody and tfoot.
|
42
|
-
> :not(:first-child) {
|
43
|
-
border-top: (2 * $table-border-width) solid $table-group-separator-color;
|
44
|
-
}
|
45
42
|
}
|
46
43
|
|
44
|
+
.table-group-divider {
|
45
|
+
border-top: ($table-border-width * 2) solid $table-group-separator-color;
|
46
|
+
}
|
47
47
|
|
48
48
|
//
|
49
49
|
// Change placement of captions with a class
|
@@ -101,10 +101,19 @@
|
|
101
101
|
//
|
102
102
|
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
103
103
|
|
104
|
+
// For rows
|
104
105
|
.table-striped {
|
105
106
|
> tbody > tr:nth-of-type(#{$table-striped-order}) > * {
|
106
|
-
--#{$
|
107
|
-
color: var(--#{$
|
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);
|
108
117
|
}
|
109
118
|
}
|
110
119
|
|
@@ -113,8 +122,8 @@
|
|
113
122
|
// The `.table-active` class can be added to highlight rows or cells
|
114
123
|
|
115
124
|
.table-active {
|
116
|
-
--#{$
|
117
|
-
color: var(--#{$
|
125
|
+
--#{$prefix}table-accent-bg: var(--#{$prefix}table-active-bg);
|
126
|
+
color: var(--#{$prefix}table-active-color);
|
118
127
|
}
|
119
128
|
|
120
129
|
// Hover effect
|
@@ -123,8 +132,8 @@
|
|
123
132
|
|
124
133
|
.table-hover {
|
125
134
|
> tbody > tr:hover > * {
|
126
|
-
--#{$
|
127
|
-
color: var(--#{$
|
135
|
+
--#{$prefix}table-accent-bg: var(--#{$prefix}table-hover-bg);
|
136
|
+
color: var(--#{$prefix}table-hover-color);
|
128
137
|
}
|
129
138
|
}
|
130
139
|
|
package/_toasts.scss
CHANGED
@@ -1,51 +1,71 @@
|
|
1
|
-
.toast {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
}
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
}
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
}
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
1
|
+
.toast {
|
2
|
+
// scss-docs-start toast-css-vars
|
3
|
+
--#{$prefix}toast-zindex: #{$zindex-toast};
|
4
|
+
--#{$prefix}toast-padding-x: #{$toast-padding-x};
|
5
|
+
--#{$prefix}toast-padding-y: #{$toast-padding-y};
|
6
|
+
--#{$prefix}toast-spacing: #{$toast-spacing};
|
7
|
+
--#{$prefix}toast-max-width: #{$toast-max-width};
|
8
|
+
@include rfs($toast-font-size, --#{$prefix}toast-font-size);
|
9
|
+
--#{$prefix}toast-color: #{$toast-color};
|
10
|
+
--#{$prefix}toast-bg: #{$toast-background-color};
|
11
|
+
--#{$prefix}toast-border-width: #{$toast-border-width};
|
12
|
+
--#{$prefix}toast-border-color: #{$toast-border-color};
|
13
|
+
--#{$prefix}toast-border-radius: #{$toast-border-radius};
|
14
|
+
--#{$prefix}toast-box-shadow: #{$toast-box-shadow};
|
15
|
+
--#{$prefix}toast-header-color: #{$toast-header-color};
|
16
|
+
--#{$prefix}toast-header-bg: #{$toast-header-background-color};
|
17
|
+
--#{$prefix}toast-header-border-color: #{$toast-header-border-color};
|
18
|
+
// scss-docs-end toast-css-vars
|
19
|
+
|
20
|
+
width: var(--#{$prefix}toast-max-width);
|
21
|
+
max-width: 100%;
|
22
|
+
@include font-size(var(--#{$prefix}toast-font-size));
|
23
|
+
color: var(--#{$prefix}toast-color);
|
24
|
+
pointer-events: auto;
|
25
|
+
background-color: var(--#{$prefix}toast-bg);
|
26
|
+
background-clip: padding-box;
|
27
|
+
border: var(--#{$prefix}toast-border-width) solid var(--#{$prefix}toast-border-color);
|
28
|
+
box-shadow: var(--#{$prefix}toast-box-shadow);
|
29
|
+
@include border-radius(var(--#{$prefix}toast-border-radius));
|
30
|
+
|
31
|
+
&.showing {
|
32
|
+
opacity: 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
&:not(.show) {
|
36
|
+
display: none;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
.toast-container {
|
41
|
+
position: absolute;
|
42
|
+
z-index: var(--#{$prefix}toast-zindex);
|
43
|
+
width: max-content;
|
44
|
+
max-width: 100%;
|
45
|
+
pointer-events: none;
|
46
|
+
|
47
|
+
> :not(:last-child) {
|
48
|
+
margin-bottom: var(--#{$prefix}toast-spacing);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
.toast-header {
|
53
|
+
display: flex;
|
54
|
+
align-items: center;
|
55
|
+
padding: var(--#{$prefix}toast-padding-y) var(--#{$prefix}toast-padding-x);
|
56
|
+
color: var(--#{$prefix}toast-header-color);
|
57
|
+
background-color: var(--#{$prefix}toast-header-bg);
|
58
|
+
background-clip: padding-box;
|
59
|
+
border-bottom: var(--#{$prefix}toast-border-width) solid var(--#{$prefix}toast-header-border-color);
|
60
|
+
@include border-top-radius(calc(var(--#{$prefix}toast-border-radius) - var(--#{$prefix}toast-border-width)));
|
61
|
+
|
62
|
+
.btn-close {
|
63
|
+
margin-right: calc(-.5 * var(--#{$prefix}toast-padding-x)); // stylelint-disable-line function-disallowed-list
|
64
|
+
margin-left: var(--#{$prefix}toast-padding-x);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
.toast-body {
|
69
|
+
padding: var(--#{$prefix}toast-padding-x);
|
70
|
+
word-wrap: break-word;
|
71
|
+
}
|
package/_tooltip.scss
CHANGED
@@ -1,24 +1,39 @@
|
|
1
1
|
// Base class
|
2
2
|
.tooltip {
|
3
|
-
|
4
|
-
|
3
|
+
// scss-docs-start tooltip-css-vars
|
4
|
+
--#{$prefix}tooltip-zindex: #{$zindex-tooltip};
|
5
|
+
--#{$prefix}tooltip-max-width: #{$tooltip-max-width};
|
6
|
+
--#{$prefix}tooltip-padding-x: #{$tooltip-padding-x};
|
7
|
+
--#{$prefix}tooltip-padding-y: #{$tooltip-padding-y};
|
8
|
+
--#{$prefix}tooltip-margin: #{$tooltip-margin};
|
9
|
+
@include rfs($tooltip-font-size, --#{$prefix}tooltip-font-size);
|
10
|
+
--#{$prefix}tooltip-color: #{$tooltip-color};
|
11
|
+
--#{$prefix}tooltip-bg: #{$tooltip-bg};
|
12
|
+
--#{$prefix}tooltip-border-radius: #{$tooltip-border-radius};
|
13
|
+
--#{$prefix}tooltip-opacity: #{$tooltip-opacity};
|
14
|
+
--#{$prefix}tooltip-arrow-width: #{$tooltip-arrow-width};
|
15
|
+
--#{$prefix}tooltip-arrow-height: #{$tooltip-arrow-height};
|
16
|
+
// scss-docs-end tooltip-css-vars
|
17
|
+
|
18
|
+
z-index: var(--#{$prefix}tooltip-zindex);
|
5
19
|
display: block;
|
6
|
-
|
20
|
+
padding: var(--#{$prefix}tooltip-arrow-height);
|
21
|
+
margin: var(--#{$prefix}tooltip-margin);
|
22
|
+
@include deprecate("`$tooltip-margin`", "v5", "v5.x", true);
|
7
23
|
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
8
24
|
// So reset our font and text properties to avoid inheriting weird values.
|
9
25
|
@include reset-text();
|
10
|
-
@include font-size($tooltip-font-size);
|
26
|
+
@include font-size(var(--#{$prefix}tooltip-font-size));
|
11
27
|
// Allow breaking very long words so they don't overflow the tooltip's bounds
|
12
28
|
word-wrap: break-word;
|
13
29
|
opacity: 0;
|
14
30
|
|
15
|
-
&.show { opacity: $tooltip-opacity; }
|
31
|
+
&.show { opacity: var(--#{$prefix}tooltip-opacity); }
|
16
32
|
|
17
33
|
.tooltip-arrow {
|
18
|
-
position: absolute;
|
19
34
|
display: block;
|
20
|
-
width: $tooltip-arrow-width;
|
21
|
-
height: $tooltip-arrow-height;
|
35
|
+
width: var(--#{$prefix}tooltip-arrow-width);
|
36
|
+
height: var(--#{$prefix}tooltip-arrow-height);
|
22
37
|
|
23
38
|
&::before {
|
24
39
|
position: absolute;
|
@@ -29,66 +44,56 @@
|
|
29
44
|
}
|
30
45
|
}
|
31
46
|
|
32
|
-
.bs-tooltip-top {
|
33
|
-
|
47
|
+
.bs-tooltip-top .tooltip-arrow {
|
48
|
+
bottom: 0;
|
34
49
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
top: -1px;
|
40
|
-
border-width: $tooltip-arrow-height ($tooltip-arrow-width * .5) 0;
|
41
|
-
border-top-color: $tooltip-arrow-color;
|
42
|
-
}
|
50
|
+
&::before {
|
51
|
+
top: -1px;
|
52
|
+
border-width: var(--#{$prefix}tooltip-arrow-height) calc(var(--#{$prefix}tooltip-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
|
53
|
+
border-top-color: var(--#{$prefix}tooltip-bg);
|
43
54
|
}
|
44
55
|
}
|
45
56
|
|
46
|
-
|
47
|
-
|
57
|
+
/* rtl:begin:ignore */
|
58
|
+
.bs-tooltip-end .tooltip-arrow {
|
59
|
+
left: 0;
|
60
|
+
width: var(--#{$prefix}tooltip-arrow-height);
|
61
|
+
height: var(--#{$prefix}tooltip-arrow-width);
|
48
62
|
|
49
|
-
|
50
|
-
|
51
|
-
width: $tooltip-arrow-height;
|
52
|
-
|
53
|
-
|
54
|
-
&::before {
|
55
|
-
right: -1px;
|
56
|
-
border-width: ($tooltip-arrow-width * .5) $tooltip-arrow-height ($tooltip-arrow-width * .5) 0;
|
57
|
-
border-right-color: $tooltip-arrow-color;
|
58
|
-
}
|
63
|
+
&::before {
|
64
|
+
right: -1px;
|
65
|
+
border-width: calc(var(--#{$prefix}tooltip-arrow-width) * .5) var(--#{$prefix}tooltip-arrow-height) calc(var(--#{$prefix}tooltip-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
|
66
|
+
border-right-color: var(--#{$prefix}tooltip-bg);
|
59
67
|
}
|
60
68
|
}
|
61
69
|
|
62
|
-
|
63
|
-
padding: $tooltip-arrow-height 0;
|
70
|
+
/* rtl:end:ignore */
|
64
71
|
|
65
|
-
|
66
|
-
|
72
|
+
.bs-tooltip-bottom .tooltip-arrow {
|
73
|
+
top: 0;
|
67
74
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
}
|
75
|
+
&::before {
|
76
|
+
bottom: -1px;
|
77
|
+
border-width: 0 calc(var(--#{$prefix}tooltip-arrow-width) * .5) var(--#{$prefix}tooltip-arrow-height); // stylelint-disable-line function-disallowed-list
|
78
|
+
border-bottom-color: var(--#{$prefix}tooltip-bg);
|
73
79
|
}
|
74
80
|
}
|
75
81
|
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
width: $tooltip-arrow-height;
|
82
|
-
height: $tooltip-arrow-width;
|
82
|
+
/* rtl:begin:ignore */
|
83
|
+
.bs-tooltip-start .tooltip-arrow {
|
84
|
+
right: 0;
|
85
|
+
width: var(--#{$prefix}tooltip-arrow-height);
|
86
|
+
height: var(--#{$prefix}tooltip-arrow-width);
|
83
87
|
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
}
|
88
|
+
&::before {
|
89
|
+
left: -1px;
|
90
|
+
border-width: calc(var(--#{$prefix}tooltip-arrow-width) * .5) 0 calc(var(--#{$prefix}tooltip-arrow-width) * .5) var(--#{$prefix}tooltip-arrow-height); // stylelint-disable-line function-disallowed-list
|
91
|
+
border-left-color: var(--#{$prefix}tooltip-bg);
|
89
92
|
}
|
90
93
|
}
|
91
94
|
|
95
|
+
/* rtl:end:ignore */
|
96
|
+
|
92
97
|
.bs-tooltip-auto {
|
93
98
|
&[data-popper-placement^="top"] {
|
94
99
|
@extend .bs-tooltip-top;
|
@@ -106,10 +111,10 @@
|
|
106
111
|
|
107
112
|
// Wrapper for the tooltip content
|
108
113
|
.tooltip-inner {
|
109
|
-
max-width: $tooltip-max-width;
|
110
|
-
padding: $tooltip-padding-y $tooltip-padding-x;
|
111
|
-
color: $tooltip-color;
|
114
|
+
max-width: var(--#{$prefix}tooltip-max-width);
|
115
|
+
padding: var(--#{$prefix}tooltip-padding-y) var(--#{$prefix}tooltip-padding-x);
|
116
|
+
color: var(--#{$prefix}tooltip-color);
|
112
117
|
text-align: center;
|
113
|
-
background-color: $tooltip-bg;
|
114
|
-
@include border-radius($tooltip-border-radius);
|
118
|
+
background-color: var(--#{$prefix}tooltip-bg);
|
119
|
+
@include border-radius(var(--#{$prefix}tooltip-border-radius));
|
115
120
|
}
|
package/_type.scss
CHANGED
@@ -35,6 +35,8 @@
|
|
35
35
|
@each $display, $font-size in $display-font-sizes {
|
36
36
|
.display-#{$display} {
|
37
37
|
@include font-size($font-size);
|
38
|
+
font-family: $display-font-family;
|
39
|
+
font-style: $display-font-style;
|
38
40
|
font-weight: $display-font-weight;
|
39
41
|
line-height: $display-line-height;
|
40
42
|
}
|
package/_utilities.scss
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
// stylelint-disable indentation
|
2
|
-
|
3
1
|
// Utilities
|
4
2
|
|
5
3
|
$utilities: () !default;
|
@@ -101,14 +99,14 @@ $utilities: map-merge(
|
|
101
99
|
"border": (
|
102
100
|
property: border,
|
103
101
|
values: (
|
104
|
-
null: $border-width
|
102
|
+
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
|
105
103
|
0: 0,
|
106
104
|
)
|
107
105
|
),
|
108
106
|
"border-top": (
|
109
107
|
property: border-top,
|
110
108
|
values: (
|
111
|
-
null: $border-width
|
109
|
+
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
|
112
110
|
0: 0,
|
113
111
|
)
|
114
112
|
),
|
@@ -116,14 +114,14 @@ $utilities: map-merge(
|
|
116
114
|
property: border-right,
|
117
115
|
class: border-end,
|
118
116
|
values: (
|
119
|
-
null: $border-width
|
117
|
+
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
|
120
118
|
0: 0,
|
121
119
|
)
|
122
120
|
),
|
123
121
|
"border-bottom": (
|
124
122
|
property: border-bottom,
|
125
123
|
values: (
|
126
|
-
null: $border-width
|
124
|
+
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
|
127
125
|
0: 0,
|
128
126
|
)
|
129
127
|
),
|
@@ -131,20 +129,35 @@ $utilities: map-merge(
|
|
131
129
|
property: border-left,
|
132
130
|
class: border-start,
|
133
131
|
values: (
|
134
|
-
null: $border-width
|
132
|
+
null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
|
135
133
|
0: 0,
|
136
134
|
)
|
137
135
|
),
|
138
136
|
"border-color": (
|
139
137
|
property: border-color,
|
140
138
|
class: border,
|
141
|
-
|
139
|
+
local-vars: (
|
140
|
+
"border-opacity": 1
|
141
|
+
),
|
142
|
+
values: $utilities-border-colors
|
142
143
|
),
|
143
144
|
"border-width": (
|
144
|
-
|
145
|
+
css-var: true,
|
146
|
+
css-variable-name: border-width,
|
145
147
|
class: border,
|
146
148
|
values: $border-widths
|
147
149
|
),
|
150
|
+
"border-opacity": (
|
151
|
+
css-var: true,
|
152
|
+
class: border-opacity,
|
153
|
+
values: (
|
154
|
+
10: .1,
|
155
|
+
25: .25,
|
156
|
+
50: .5,
|
157
|
+
75: .75,
|
158
|
+
100: 1
|
159
|
+
)
|
160
|
+
),
|
148
161
|
// scss-docs-end utils-borders
|
149
162
|
// Sizing utilities
|
150
163
|
// scss-docs-start utils-sizing
|
@@ -238,12 +251,6 @@ $utilities: map-merge(
|
|
238
251
|
class: flex,
|
239
252
|
values: wrap nowrap wrap-reverse
|
240
253
|
),
|
241
|
-
"gap": (
|
242
|
-
responsive: true,
|
243
|
-
property: gap,
|
244
|
-
class: gap,
|
245
|
-
values: $spacers
|
246
|
-
),
|
247
254
|
"justify-content": (
|
248
255
|
responsive: true,
|
249
256
|
property: justify-content,
|
@@ -436,13 +443,20 @@ $utilities: map-merge(
|
|
436
443
|
class: ps,
|
437
444
|
values: $spacers
|
438
445
|
),
|
446
|
+
// Gap utility
|
447
|
+
"gap": (
|
448
|
+
responsive: true,
|
449
|
+
property: gap,
|
450
|
+
class: gap,
|
451
|
+
values: $spacers
|
452
|
+
),
|
439
453
|
// scss-docs-end utils-spacing
|
440
454
|
// Text
|
441
455
|
// scss-docs-start utils-text
|
442
456
|
"font-family": (
|
443
457
|
property: font-family,
|
444
458
|
class: font,
|
445
|
-
values: (monospace: var(--#{$
|
459
|
+
values: (monospace: var(--#{$prefix}font-monospace))
|
446
460
|
),
|
447
461
|
"font-size": (
|
448
462
|
rfs: true,
|
@@ -463,6 +477,7 @@ $utilities: map-merge(
|
|
463
477
|
lighter: $font-weight-lighter,
|
464
478
|
normal: $font-weight-normal,
|
465
479
|
bold: $font-weight-bold,
|
480
|
+
semibold: $font-weight-semibold,
|
466
481
|
bolder: $font-weight-bolder
|
467
482
|
)
|
468
483
|
),
|
@@ -567,7 +582,7 @@ $utilities: map-merge(
|
|
567
582
|
"gradient": (
|
568
583
|
property: background-image,
|
569
584
|
class: bg,
|
570
|
-
values: (gradient: var(--#{$
|
585
|
+
values: (gradient: var(--#{$prefix}gradient))
|
571
586
|
),
|
572
587
|
// scss-docs-start utils-interaction
|
573
588
|
"user-select": (
|
@@ -585,34 +600,36 @@ $utilities: map-merge(
|
|
585
600
|
property: border-radius,
|
586
601
|
class: rounded,
|
587
602
|
values: (
|
588
|
-
null: $border-radius,
|
603
|
+
null: var(--#{$prefix}border-radius),
|
589
604
|
0: 0,
|
590
|
-
1: $border-radius-sm,
|
591
|
-
2: $border-radius,
|
592
|
-
3: $border-radius-lg,
|
605
|
+
1: var(--#{$prefix}border-radius-sm),
|
606
|
+
2: var(--#{$prefix}border-radius),
|
607
|
+
3: var(--#{$prefix}border-radius-lg),
|
608
|
+
4: var(--#{$prefix}border-radius-xl),
|
609
|
+
5: var(--#{$prefix}border-radius-2xl),
|
593
610
|
circle: 50%,
|
594
|
-
pill: $border-radius-pill
|
611
|
+
pill: var(--#{$prefix}border-radius-pill)
|
595
612
|
)
|
596
613
|
),
|
597
614
|
"rounded-top": (
|
598
615
|
property: border-top-left-radius border-top-right-radius,
|
599
616
|
class: rounded-top,
|
600
|
-
values: (null: $border-radius)
|
617
|
+
values: (null: var(--#{$prefix}border-radius))
|
601
618
|
),
|
602
619
|
"rounded-end": (
|
603
620
|
property: border-top-right-radius border-bottom-right-radius,
|
604
621
|
class: rounded-end,
|
605
|
-
values: (null: $border-radius)
|
622
|
+
values: (null: var(--#{$prefix}border-radius))
|
606
623
|
),
|
607
624
|
"rounded-bottom": (
|
608
625
|
property: border-bottom-right-radius border-bottom-left-radius,
|
609
626
|
class: rounded-bottom,
|
610
|
-
values: (null: $border-radius)
|
627
|
+
values: (null: var(--#{$prefix}border-radius))
|
611
628
|
),
|
612
629
|
"rounded-start": (
|
613
630
|
property: border-bottom-left-radius border-top-left-radius,
|
614
631
|
class: rounded-start,
|
615
|
-
values: (null: $border-radius)
|
632
|
+
values: (null: var(--#{$prefix}border-radius))
|
616
633
|
),
|
617
634
|
// scss-docs-end utils-border-radius
|
618
635
|
// scss-docs-start utils-visibility
|