bootstrap-scss 5.1.3 → 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/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/_card.scss
CHANGED
@@ -3,17 +3,37 @@
|
|
3
3
|
//
|
4
4
|
|
5
5
|
.card {
|
6
|
+
// scss-docs-start card-css-vars
|
7
|
+
--#{$prefix}card-spacer-y: #{$card-spacer-y};
|
8
|
+
--#{$prefix}card-spacer-x: #{$card-spacer-x};
|
9
|
+
--#{$prefix}card-title-spacer-y: #{$card-title-spacer-y};
|
10
|
+
--#{$prefix}card-border-width: #{$card-border-width};
|
11
|
+
--#{$prefix}card-border-color: #{$card-border-color};
|
12
|
+
--#{$prefix}card-border-radius: #{$card-border-radius};
|
13
|
+
--#{$prefix}card-box-shadow: #{$card-box-shadow};
|
14
|
+
--#{$prefix}card-inner-border-radius: #{$card-inner-border-radius};
|
15
|
+
--#{$prefix}card-cap-padding-y: #{$card-cap-padding-y};
|
16
|
+
--#{$prefix}card-cap-padding-x: #{$card-cap-padding-x};
|
17
|
+
--#{$prefix}card-cap-bg: #{$card-cap-bg};
|
18
|
+
--#{$prefix}card-cap-color: #{$card-cap-color};
|
19
|
+
--#{$prefix}card-height: #{$card-height};
|
20
|
+
--#{$prefix}card-color: #{$card-color};
|
21
|
+
--#{$prefix}card-bg: #{$card-bg};
|
22
|
+
--#{$prefix}card-img-overlay-padding: #{$card-img-overlay-padding};
|
23
|
+
--#{$prefix}card-group-margin: #{$card-group-margin};
|
24
|
+
// scss-docs-end card-css-vars
|
25
|
+
|
6
26
|
position: relative;
|
7
27
|
display: flex;
|
8
28
|
flex-direction: column;
|
9
29
|
min-width: 0; // See https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
|
10
|
-
height: $card-height;
|
30
|
+
height: var(--#{$prefix}card-height);
|
11
31
|
word-wrap: break-word;
|
12
|
-
background-color: $card-bg;
|
32
|
+
background-color: var(--#{$prefix}card-bg);
|
13
33
|
background-clip: border-box;
|
14
|
-
border: $card-border-width solid $card-border-color;
|
15
|
-
@include border-radius($card-border-radius);
|
16
|
-
@include box-shadow($card-box-shadow);
|
34
|
+
border: var(--#{$prefix}card-border-width) solid var(--#{$prefix}card-border-color);
|
35
|
+
@include border-radius(var(--#{$prefix}card-border-radius));
|
36
|
+
@include box-shadow(var(--#{$prefix}card-box-shadow));
|
17
37
|
|
18
38
|
> hr {
|
19
39
|
margin-right: 0;
|
@@ -26,12 +46,12 @@
|
|
26
46
|
|
27
47
|
&:first-child {
|
28
48
|
border-top-width: 0;
|
29
|
-
@include border-top-radius($card-inner-border-radius);
|
49
|
+
@include border-top-radius(var(--#{$prefix}card-inner-border-radius));
|
30
50
|
}
|
31
51
|
|
32
52
|
&:last-child {
|
33
53
|
border-bottom-width: 0;
|
34
|
-
@include border-bottom-radius($card-inner-border-radius);
|
54
|
+
@include border-bottom-radius(var(--#{$prefix}card-inner-border-radius));
|
35
55
|
}
|
36
56
|
}
|
37
57
|
|
@@ -47,16 +67,16 @@
|
|
47
67
|
// Enable `flex-grow: 1` for decks and groups so that card blocks take up
|
48
68
|
// as much space as possible, ensuring footers are aligned to the bottom.
|
49
69
|
flex: 1 1 auto;
|
50
|
-
padding: $card-spacer-y $card-spacer-x;
|
51
|
-
color: $card-color;
|
70
|
+
padding: var(--#{$prefix}card-spacer-y) var(--#{$prefix}card-spacer-x);
|
71
|
+
color: var(--#{$prefix}card-color);
|
52
72
|
}
|
53
73
|
|
54
74
|
.card-title {
|
55
|
-
margin-bottom: $card-title-spacer-y;
|
75
|
+
margin-bottom: var(--#{$prefix}card-title-spacer-y);
|
56
76
|
}
|
57
77
|
|
58
78
|
.card-subtitle {
|
59
|
-
margin-top:
|
79
|
+
margin-top: calc(-.5 * var(--#{$prefix}card-title-spacer-y)); // stylelint-disable-line function-disallowed-list
|
60
80
|
margin-bottom: 0;
|
61
81
|
}
|
62
82
|
|
@@ -70,7 +90,7 @@
|
|
70
90
|
}
|
71
91
|
|
72
92
|
+ .card-link {
|
73
|
-
margin-left: $card-spacer-x;
|
93
|
+
margin-left: var(--#{$prefix}card-spacer-x);
|
74
94
|
}
|
75
95
|
}
|
76
96
|
|
@@ -79,25 +99,25 @@
|
|
79
99
|
//
|
80
100
|
|
81
101
|
.card-header {
|
82
|
-
padding: $card-cap-padding-y $card-cap-padding-x;
|
102
|
+
padding: var(--#{$prefix}card-cap-padding-y) var(--#{$prefix}card-cap-padding-x);
|
83
103
|
margin-bottom: 0; // Removes the default margin-bottom of <hN>
|
84
|
-
color: $card-cap-color;
|
85
|
-
background-color: $card-cap-bg;
|
86
|
-
border-bottom: $card-border-width solid $card-border-color;
|
104
|
+
color: var(--#{$prefix}card-cap-color);
|
105
|
+
background-color: var(--#{$prefix}card-cap-bg);
|
106
|
+
border-bottom: var(--#{$prefix}card-border-width) solid var(--#{$prefix}card-border-color);
|
87
107
|
|
88
108
|
&:first-child {
|
89
|
-
@include border-radius($card-inner-border-radius $card-inner-border-radius 0 0);
|
109
|
+
@include border-radius(var(--#{$prefix}card-inner-border-radius) var(--#{$prefix}card-inner-border-radius) 0 0);
|
90
110
|
}
|
91
111
|
}
|
92
112
|
|
93
113
|
.card-footer {
|
94
|
-
padding: $card-cap-padding-y $card-cap-padding-x;
|
95
|
-
color: $card-cap-color;
|
96
|
-
background-color: $card-cap-bg;
|
97
|
-
border-top: $card-border-width solid $card-border-color;
|
114
|
+
padding: var(--#{$prefix}card-cap-padding-y) var(--#{$prefix}card-cap-padding-x);
|
115
|
+
color: var(--#{$prefix}card-cap-color);
|
116
|
+
background-color: var(--#{$prefix}card-cap-bg);
|
117
|
+
border-top: var(--#{$prefix}card-border-width) solid var(--#{$prefix}card-border-color);
|
98
118
|
|
99
119
|
&:last-child {
|
100
|
-
@include border-radius(0 0 $card-inner-border-radius $card-inner-border-radius);
|
120
|
+
@include border-radius(0 0 var(--#{$prefix}card-inner-border-radius) var(--#{$prefix}card-inner-border-radius));
|
101
121
|
}
|
102
122
|
}
|
103
123
|
|
@@ -107,22 +127,20 @@
|
|
107
127
|
//
|
108
128
|
|
109
129
|
.card-header-tabs {
|
110
|
-
margin-right:
|
111
|
-
margin-bottom:
|
112
|
-
margin-left:
|
130
|
+
margin-right: calc(-.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
|
131
|
+
margin-bottom: calc(-1 * var(--#{$prefix}card-cap-padding-y)); // stylelint-disable-line function-disallowed-list
|
132
|
+
margin-left: calc(-.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
|
113
133
|
border-bottom: 0;
|
114
134
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
border-bottom-color: $card-bg;
|
119
|
-
}
|
135
|
+
.nav-link.active {
|
136
|
+
background-color: var(--#{$prefix}card-bg);
|
137
|
+
border-bottom-color: var(--#{$prefix}card-bg);
|
120
138
|
}
|
121
139
|
}
|
122
140
|
|
123
141
|
.card-header-pills {
|
124
|
-
margin-right:
|
125
|
-
margin-left:
|
142
|
+
margin-right: calc(-.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
|
143
|
+
margin-left: calc(-.5 * var(--#{$prefix}card-cap-padding-x)); // stylelint-disable-line function-disallowed-list
|
126
144
|
}
|
127
145
|
|
128
146
|
// Card image
|
@@ -132,8 +150,8 @@
|
|
132
150
|
right: 0;
|
133
151
|
bottom: 0;
|
134
152
|
left: 0;
|
135
|
-
padding: $card-img-overlay-padding;
|
136
|
-
@include border-radius($card-inner-border-radius);
|
153
|
+
padding: var(--#{$prefix}card-img-overlay-padding);
|
154
|
+
@include border-radius(var(--#{$prefix}card-inner-border-radius));
|
137
155
|
}
|
138
156
|
|
139
157
|
.card-img,
|
@@ -144,12 +162,12 @@
|
|
144
162
|
|
145
163
|
.card-img,
|
146
164
|
.card-img-top {
|
147
|
-
@include border-top-radius($card-inner-border-radius);
|
165
|
+
@include border-top-radius(var(--#{$prefix}card-inner-border-radius));
|
148
166
|
}
|
149
167
|
|
150
168
|
.card-img,
|
151
169
|
.card-img-bottom {
|
152
|
-
@include border-bottom-radius($card-inner-border-radius);
|
170
|
+
@include border-bottom-radius(var(--#{$prefix}card-inner-border-radius));
|
153
171
|
}
|
154
172
|
|
155
173
|
|
@@ -161,7 +179,7 @@
|
|
161
179
|
// The child selector allows nested `.card` within `.card-group`
|
162
180
|
// to display properly.
|
163
181
|
> .card {
|
164
|
-
margin-bottom: $card-group-margin;
|
182
|
+
margin-bottom: var(--#{$prefix}card-group-margin);
|
165
183
|
}
|
166
184
|
|
167
185
|
@include media-breakpoint-up(sm) {
|
package/_close.scss
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
//
|
1
|
+
// Transparent background and border properties included for button version.
|
2
2
|
// iOS requires the button element instead of an anchor tag.
|
3
3
|
// If you want the anchor version, it requires `href="#"`.
|
4
4
|
// See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
|
package/_containers.scss
CHANGED