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.
Files changed (86) hide show
  1. package/README.md +1 -1
  2. package/_accordion.scss +7 -4
  3. package/_alert.scss +71 -71
  4. package/_badge.scss +38 -38
  5. package/_breadcrumb.scss +40 -40
  6. package/_button-group.scss +1 -1
  7. package/_buttons.scss +23 -8
  8. package/_card.scss +234 -234
  9. package/_carousel.scss +229 -229
  10. package/_close.scss +40 -40
  11. package/_containers.scss +41 -41
  12. package/_dropdown.scss +2 -1
  13. package/_forms.scss +9 -9
  14. package/_functions.scss +1 -1
  15. package/_grid.scss +33 -33
  16. package/_helpers.scss +10 -10
  17. package/_list-group.scss +6 -5
  18. package/_maps.scss +54 -54
  19. package/_mixins.scss +43 -43
  20. package/_modal.scss +1 -1
  21. package/_nav.scss +2 -2
  22. package/_navbar.scss +2 -0
  23. package/_offcanvas.scss +5 -4
  24. package/_pagination.scss +1 -1
  25. package/_placeholders.scss +51 -51
  26. package/_popover.scss +5 -5
  27. package/_progress.scss +59 -59
  28. package/_reboot.scss +610 -610
  29. package/_root.scss +73 -73
  30. package/_spinners.scss +85 -85
  31. package/_tables.scss +164 -164
  32. package/_toasts.scss +3 -2
  33. package/_tooltip.scss +120 -120
  34. package/_transitions.scss +27 -27
  35. package/_type.scss +106 -106
  36. package/_utilities.scss +647 -647
  37. package/_variables.scss +17 -16
  38. package/bootstrap-grid.scss +64 -64
  39. package/bootstrap-reboot.scss +9 -9
  40. package/bootstrap-utilities.scss +15 -15
  41. package/bootstrap.scss +51 -51
  42. package/forms/_floating-labels.scss +1 -0
  43. package/forms/_form-check.scss +175 -175
  44. package/forms/_form-control.scss +194 -194
  45. package/forms/_form-range.scss +91 -91
  46. package/forms/_form-select.scss +71 -71
  47. package/forms/_form-text.scss +11 -11
  48. package/forms/_input-group.scss +7 -4
  49. package/forms/_labels.scss +36 -36
  50. package/forms/_validation.scss +12 -12
  51. package/helpers/_clearfix.scss +3 -3
  52. package/helpers/_color-bg.scss +10 -10
  53. package/helpers/_colored-links.scss +12 -12
  54. package/helpers/_position.scss +36 -36
  55. package/helpers/_ratio.scss +26 -26
  56. package/helpers/_stacks.scss +15 -15
  57. package/helpers/_stretched-link.scss +15 -15
  58. package/helpers/_text-truncation.scss +7 -7
  59. package/helpers/_visually-hidden.scss +8 -8
  60. package/helpers/_vr.scss +8 -8
  61. package/mixins/_alert.scss +15 -15
  62. package/mixins/_backdrop.scss +14 -14
  63. package/mixins/_banner.scss +2 -2
  64. package/mixins/_border-radius.scss +78 -78
  65. package/mixins/_box-shadow.scss +18 -18
  66. package/mixins/_breakpoints.scss +127 -127
  67. package/mixins/_buttons.scss +70 -70
  68. package/mixins/_caret.scss +64 -64
  69. package/mixins/_clearfix.scss +9 -9
  70. package/mixins/_color-scheme.scss +7 -7
  71. package/mixins/_container.scss +11 -11
  72. package/mixins/_forms.scss +10 -10
  73. package/mixins/_gradients.scss +47 -47
  74. package/mixins/_grid.scss +151 -151
  75. package/mixins/_image.scss +16 -16
  76. package/mixins/_list-group.scss +24 -24
  77. package/mixins/_lists.scss +7 -7
  78. package/mixins/_pagination.scss +10 -10
  79. package/mixins/_reset-text.scss +17 -17
  80. package/mixins/_table-variants.scss +24 -24
  81. package/mixins/_transition.scss +26 -26
  82. package/mixins/_utilities.scss +1 -1
  83. package/mixins/_visually-hidden.scss +29 -29
  84. package/package.json +1 -1
  85. package/utilities/_api.scss +47 -47
  86. package/vendor/_rfs.scss +354 -354
package/_card.scss CHANGED
@@ -1,234 +1,234 @@
1
- //
2
- // Base styles
3
- //
4
-
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
-
26
- position: relative;
27
- display: flex;
28
- flex-direction: column;
29
- min-width: 0; // See https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
30
- height: var(--#{$prefix}card-height);
31
- word-wrap: break-word;
32
- background-color: var(--#{$prefix}card-bg);
33
- background-clip: border-box;
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));
37
-
38
- > hr {
39
- margin-right: 0;
40
- margin-left: 0;
41
- }
42
-
43
- > .list-group {
44
- border-top: inherit;
45
- border-bottom: inherit;
46
-
47
- &:first-child {
48
- border-top-width: 0;
49
- @include border-top-radius(var(--#{$prefix}card-inner-border-radius));
50
- }
51
-
52
- &:last-child {
53
- border-bottom-width: 0;
54
- @include border-bottom-radius(var(--#{$prefix}card-inner-border-radius));
55
- }
56
- }
57
-
58
- // Due to specificity of the above selector (`.card > .list-group`), we must
59
- // use a child selector here to prevent double borders.
60
- > .card-header + .list-group,
61
- > .list-group + .card-footer {
62
- border-top: 0;
63
- }
64
- }
65
-
66
- .card-body {
67
- // Enable `flex-grow: 1` for decks and groups so that card blocks take up
68
- // as much space as possible, ensuring footers are aligned to the bottom.
69
- flex: 1 1 auto;
70
- padding: var(--#{$prefix}card-spacer-y) var(--#{$prefix}card-spacer-x);
71
- color: var(--#{$prefix}card-color);
72
- }
73
-
74
- .card-title {
75
- margin-bottom: var(--#{$prefix}card-title-spacer-y);
76
- }
77
-
78
- .card-subtitle {
79
- margin-top: calc(-.5 * var(--#{$prefix}card-title-spacer-y)); // stylelint-disable-line function-disallowed-list
80
- margin-bottom: 0;
81
- }
82
-
83
- .card-text:last-child {
84
- margin-bottom: 0;
85
- }
86
-
87
- .card-link {
88
- &:hover {
89
- text-decoration: if($link-hover-decoration == underline, none, null);
90
- }
91
-
92
- + .card-link {
93
- margin-left: var(--#{$prefix}card-spacer-x);
94
- }
95
- }
96
-
97
- //
98
- // Optional textual caps
99
- //
100
-
101
- .card-header {
102
- padding: var(--#{$prefix}card-cap-padding-y) var(--#{$prefix}card-cap-padding-x);
103
- margin-bottom: 0; // Removes the default margin-bottom of <hN>
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);
107
-
108
- &:first-child {
109
- @include border-radius(var(--#{$prefix}card-inner-border-radius) var(--#{$prefix}card-inner-border-radius) 0 0);
110
- }
111
- }
112
-
113
- .card-footer {
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);
118
-
119
- &:last-child {
120
- @include border-radius(0 0 var(--#{$prefix}card-inner-border-radius) var(--#{$prefix}card-inner-border-radius));
121
- }
122
- }
123
-
124
-
125
- //
126
- // Header navs
127
- //
128
-
129
- .card-header-tabs {
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
133
- border-bottom: 0;
134
-
135
- .nav-link.active {
136
- background-color: var(--#{$prefix}card-bg);
137
- border-bottom-color: var(--#{$prefix}card-bg);
138
- }
139
- }
140
-
141
- .card-header-pills {
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
144
- }
145
-
146
- // Card image
147
- .card-img-overlay {
148
- position: absolute;
149
- top: 0;
150
- right: 0;
151
- bottom: 0;
152
- left: 0;
153
- padding: var(--#{$prefix}card-img-overlay-padding);
154
- @include border-radius(var(--#{$prefix}card-inner-border-radius));
155
- }
156
-
157
- .card-img,
158
- .card-img-top,
159
- .card-img-bottom {
160
- width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
161
- }
162
-
163
- .card-img,
164
- .card-img-top {
165
- @include border-top-radius(var(--#{$prefix}card-inner-border-radius));
166
- }
167
-
168
- .card-img,
169
- .card-img-bottom {
170
- @include border-bottom-radius(var(--#{$prefix}card-inner-border-radius));
171
- }
172
-
173
-
174
- //
175
- // Card groups
176
- //
177
-
178
- .card-group {
179
- // The child selector allows nested `.card` within `.card-group`
180
- // to display properly.
181
- > .card {
182
- margin-bottom: var(--#{$prefix}card-group-margin);
183
- }
184
-
185
- @include media-breakpoint-up(sm) {
186
- display: flex;
187
- flex-flow: row wrap;
188
- // The child selector allows nested `.card` within `.card-group`
189
- // to display properly.
190
- > .card {
191
- // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
192
- flex: 1 0 0%;
193
- margin-bottom: 0;
194
-
195
- + .card {
196
- margin-left: 0;
197
- border-left: 0;
198
- }
199
-
200
- // Handle rounded corners
201
- @if $enable-rounded {
202
- &:not(:last-child) {
203
- @include border-end-radius(0);
204
-
205
- .card-img-top,
206
- .card-header {
207
- // stylelint-disable-next-line property-disallowed-list
208
- border-top-right-radius: 0;
209
- }
210
- .card-img-bottom,
211
- .card-footer {
212
- // stylelint-disable-next-line property-disallowed-list
213
- border-bottom-right-radius: 0;
214
- }
215
- }
216
-
217
- &:not(:first-child) {
218
- @include border-start-radius(0);
219
-
220
- .card-img-top,
221
- .card-header {
222
- // stylelint-disable-next-line property-disallowed-list
223
- border-top-left-radius: 0;
224
- }
225
- .card-img-bottom,
226
- .card-footer {
227
- // stylelint-disable-next-line property-disallowed-list
228
- border-bottom-left-radius: 0;
229
- }
230
- }
231
- }
232
- }
233
- }
234
- }
1
+ //
2
+ // Base styles
3
+ //
4
+
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
+
26
+ position: relative;
27
+ display: flex;
28
+ flex-direction: column;
29
+ min-width: 0; // See https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
30
+ height: var(--#{$prefix}card-height);
31
+ word-wrap: break-word;
32
+ background-color: var(--#{$prefix}card-bg);
33
+ background-clip: border-box;
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));
37
+
38
+ > hr {
39
+ margin-right: 0;
40
+ margin-left: 0;
41
+ }
42
+
43
+ > .list-group {
44
+ border-top: inherit;
45
+ border-bottom: inherit;
46
+
47
+ &:first-child {
48
+ border-top-width: 0;
49
+ @include border-top-radius(var(--#{$prefix}card-inner-border-radius));
50
+ }
51
+
52
+ &:last-child {
53
+ border-bottom-width: 0;
54
+ @include border-bottom-radius(var(--#{$prefix}card-inner-border-radius));
55
+ }
56
+ }
57
+
58
+ // Due to specificity of the above selector (`.card > .list-group`), we must
59
+ // use a child selector here to prevent double borders.
60
+ > .card-header + .list-group,
61
+ > .list-group + .card-footer {
62
+ border-top: 0;
63
+ }
64
+ }
65
+
66
+ .card-body {
67
+ // Enable `flex-grow: 1` for decks and groups so that card blocks take up
68
+ // as much space as possible, ensuring footers are aligned to the bottom.
69
+ flex: 1 1 auto;
70
+ padding: var(--#{$prefix}card-spacer-y) var(--#{$prefix}card-spacer-x);
71
+ color: var(--#{$prefix}card-color);
72
+ }
73
+
74
+ .card-title {
75
+ margin-bottom: var(--#{$prefix}card-title-spacer-y);
76
+ }
77
+
78
+ .card-subtitle {
79
+ margin-top: calc(-.5 * var(--#{$prefix}card-title-spacer-y)); // stylelint-disable-line function-disallowed-list
80
+ margin-bottom: 0;
81
+ }
82
+
83
+ .card-text:last-child {
84
+ margin-bottom: 0;
85
+ }
86
+
87
+ .card-link {
88
+ &:hover {
89
+ text-decoration: if($link-hover-decoration == underline, none, null);
90
+ }
91
+
92
+ + .card-link {
93
+ margin-left: var(--#{$prefix}card-spacer-x);
94
+ }
95
+ }
96
+
97
+ //
98
+ // Optional textual caps
99
+ //
100
+
101
+ .card-header {
102
+ padding: var(--#{$prefix}card-cap-padding-y) var(--#{$prefix}card-cap-padding-x);
103
+ margin-bottom: 0; // Removes the default margin-bottom of <hN>
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);
107
+
108
+ &:first-child {
109
+ @include border-radius(var(--#{$prefix}card-inner-border-radius) var(--#{$prefix}card-inner-border-radius) 0 0);
110
+ }
111
+ }
112
+
113
+ .card-footer {
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);
118
+
119
+ &:last-child {
120
+ @include border-radius(0 0 var(--#{$prefix}card-inner-border-radius) var(--#{$prefix}card-inner-border-radius));
121
+ }
122
+ }
123
+
124
+
125
+ //
126
+ // Header navs
127
+ //
128
+
129
+ .card-header-tabs {
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
133
+ border-bottom: 0;
134
+
135
+ .nav-link.active {
136
+ background-color: var(--#{$prefix}card-bg);
137
+ border-bottom-color: var(--#{$prefix}card-bg);
138
+ }
139
+ }
140
+
141
+ .card-header-pills {
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
144
+ }
145
+
146
+ // Card image
147
+ .card-img-overlay {
148
+ position: absolute;
149
+ top: 0;
150
+ right: 0;
151
+ bottom: 0;
152
+ left: 0;
153
+ padding: var(--#{$prefix}card-img-overlay-padding);
154
+ @include border-radius(var(--#{$prefix}card-inner-border-radius));
155
+ }
156
+
157
+ .card-img,
158
+ .card-img-top,
159
+ .card-img-bottom {
160
+ width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
161
+ }
162
+
163
+ .card-img,
164
+ .card-img-top {
165
+ @include border-top-radius(var(--#{$prefix}card-inner-border-radius));
166
+ }
167
+
168
+ .card-img,
169
+ .card-img-bottom {
170
+ @include border-bottom-radius(var(--#{$prefix}card-inner-border-radius));
171
+ }
172
+
173
+
174
+ //
175
+ // Card groups
176
+ //
177
+
178
+ .card-group {
179
+ // The child selector allows nested `.card` within `.card-group`
180
+ // to display properly.
181
+ > .card {
182
+ margin-bottom: var(--#{$prefix}card-group-margin);
183
+ }
184
+
185
+ @include media-breakpoint-up(sm) {
186
+ display: flex;
187
+ flex-flow: row wrap;
188
+ // The child selector allows nested `.card` within `.card-group`
189
+ // to display properly.
190
+ > .card {
191
+ // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
192
+ flex: 1 0 0%;
193
+ margin-bottom: 0;
194
+
195
+ + .card {
196
+ margin-left: 0;
197
+ border-left: 0;
198
+ }
199
+
200
+ // Handle rounded corners
201
+ @if $enable-rounded {
202
+ &:not(:last-child) {
203
+ @include border-end-radius(0);
204
+
205
+ .card-img-top,
206
+ .card-header {
207
+ // stylelint-disable-next-line property-disallowed-list
208
+ border-top-right-radius: 0;
209
+ }
210
+ .card-img-bottom,
211
+ .card-footer {
212
+ // stylelint-disable-next-line property-disallowed-list
213
+ border-bottom-right-radius: 0;
214
+ }
215
+ }
216
+
217
+ &:not(:first-child) {
218
+ @include border-start-radius(0);
219
+
220
+ .card-img-top,
221
+ .card-header {
222
+ // stylelint-disable-next-line property-disallowed-list
223
+ border-top-left-radius: 0;
224
+ }
225
+ .card-img-bottom,
226
+ .card-footer {
227
+ // stylelint-disable-next-line property-disallowed-list
228
+ border-bottom-left-radius: 0;
229
+ }
230
+ }
231
+ }
232
+ }
233
+ }
234
+ }