bootstrap-scss 5.2.3 → 5.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. package/LICENSE +1 -2
  2. package/README.md +4 -4
  3. package/_accordion.scss +9 -0
  4. package/_alert.scss +8 -11
  5. package/_button-group.scss +2 -2
  6. package/_buttons.scss +3 -3
  7. package/_card.scss +5 -0
  8. package/_carousel.scss +20 -2
  9. package/_close.scss +32 -9
  10. package/_dropdown.scss +1 -0
  11. package/_functions.scss +1 -1
  12. package/_grid.scss +6 -0
  13. package/_helpers.scss +2 -0
  14. package/_list-group.scss +12 -7
  15. package/_maps.scss +120 -0
  16. package/_mixins.scss +1 -2
  17. package/_nav.scss +42 -17
  18. package/_navbar.scss +15 -4
  19. package/_offcanvas.scss +4 -2
  20. package/_pagination.scss +1 -1
  21. package/_progress.scss +10 -1
  22. package/_reboot.scss +7 -7
  23. package/_root.scss +121 -10
  24. package/_tables.scss +18 -11
  25. package/_tooltip.scss +4 -5
  26. package/_utilities.scss +172 -13
  27. package/_variables-dark.scss +85 -0
  28. package/_variables.scss +268 -157
  29. package/bootstrap-grid.scss +1 -3
  30. package/bootstrap-reboot.scss +1 -0
  31. package/bootstrap-utilities.scss +1 -0
  32. package/bootstrap.scss +1 -0
  33. package/forms/_floating-labels.scss +23 -3
  34. package/forms/_form-check.scss +25 -12
  35. package/forms/_form-control.scss +24 -4
  36. package/forms/_form-range.scss +3 -3
  37. package/forms/_form-select.scss +12 -3
  38. package/forms/_input-group.scss +1 -1
  39. package/helpers/_color-bg.scss +1 -4
  40. package/helpers/_colored-links.scss +20 -2
  41. package/helpers/_focus-ring.scss +5 -0
  42. package/helpers/_icon-link.scss +25 -0
  43. package/helpers/_vr.scss +1 -1
  44. package/mixins/_alert.scss +4 -1
  45. package/mixins/_banner.scss +2 -4
  46. package/mixins/_caret.scss +30 -25
  47. package/mixins/_color-mode.scss +21 -0
  48. package/mixins/_forms.scss +8 -7
  49. package/mixins/_list-group.scss +2 -0
  50. package/mixins/_utilities.scss +1 -1
  51. package/mixins/_visually-hidden.scss +5 -1
  52. package/package.json +1 -1
  53. package/vendor/_rfs.scss +23 -29
@@ -6,7 +6,6 @@
6
6
  // See: https://kittygiraudel.com/2016/10/13/css-hide-and-seek/
7
7
 
8
8
  @mixin visually-hidden() {
9
- position: absolute !important;
10
9
  width: 1px !important;
11
10
  height: 1px !important;
12
11
  padding: 0 !important;
@@ -15,6 +14,11 @@
15
14
  clip: rect(0, 0, 0, 0) !important;
16
15
  white-space: nowrap !important;
17
16
  border: 0 !important;
17
+
18
+ // Fix for positioned table caption that could become anonymous cells
19
+ &:not(caption) {
20
+ position: absolute !important;
21
+ }
18
22
  }
19
23
 
20
24
  // Use to only display content when it's focused, or one of its child elements is focused
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bootstrap-scss",
3
- "version": "5.2.3",
3
+ "version": "5.3.1",
4
4
  "description": "Bootstrap's SCSS files (only)",
5
5
  "main": "bootstrap.scss",
6
6
  "repository": {
package/vendor/_rfs.scss CHANGED
@@ -1,4 +1,4 @@
1
- // stylelint-disable property-blacklist, scss/dollar-variable-default
1
+ // stylelint-disable scss/dimension-no-non-numeric-values
2
2
 
3
3
  // SCSS RFS mixin
4
4
  //
@@ -154,8 +154,7 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
154
154
  &.enable-rfs {
155
155
  @content;
156
156
  }
157
- }
158
- @else {
157
+ } @else {
159
158
  @content;
160
159
  }
161
160
  }
@@ -168,7 +167,7 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
168
167
  @content;
169
168
  }
170
169
 
171
- @include _rfs-media-query {
170
+ @include _rfs-media-query () {
172
171
  .enable-rfs &,
173
172
  &.enable-rfs {
174
173
  @content;
@@ -182,7 +181,7 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
182
181
  @content;
183
182
  }
184
183
  }
185
- @include _rfs-media-query {
184
+ @include _rfs-media-query () {
186
185
  @content;
187
186
  }
188
187
  }
@@ -193,12 +192,12 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
193
192
  // Convert to list
194
193
  $values: if(type-of($values) != list, ($values,), $values);
195
194
 
196
- $val: '';
195
+ $val: "";
197
196
 
198
197
  // Loop over each value and calculate value
199
198
  @each $value in $values {
200
199
  @if $value == 0 {
201
- $val: $val + ' 0';
200
+ $val: $val + " 0";
202
201
  }
203
202
  @else {
204
203
  // Cache $value unit
@@ -206,15 +205,14 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
206
205
 
207
206
  @if $unit == px {
208
207
  // Convert to rem if needed
209
- $val: $val + ' ' + if($rfs-unit == rem, #{divide($value, $value * 0 + $rfs-rem-value)}rem, $value);
208
+ $val: $val + " " + if($rfs-unit == rem, #{divide($value, $value * 0 + $rfs-rem-value)}rem, $value);
210
209
  }
211
210
  @else if $unit == rem {
212
211
  // Convert to px if needed
213
- $val: $val + ' ' + if($rfs-unit == px, #{divide($value, $value * 0 + 1) * $rfs-rem-value}px, $value);
214
- }
215
- @else {
212
+ $val: $val + " " + if($rfs-unit == px, #{divide($value, $value * 0 + 1) * $rfs-rem-value}px, $value);
213
+ } @else {
216
214
  // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
217
- $val: $val + ' ' + $value;
215
+ $val: $val + " " + $value;
218
216
  }
219
217
  }
220
218
  }
@@ -228,30 +226,26 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
228
226
  // Convert to list
229
227
  $values: if(type-of($values) != list, ($values,), $values);
230
228
 
231
- $val: '';
229
+ $val: "";
232
230
 
233
231
  // Loop over each value and calculate value
234
232
  @each $value in $values {
235
233
  @if $value == 0 {
236
- $val: $val + ' 0';
237
- }
238
-
239
- @else {
234
+ $val: $val + " 0";
235
+ } @else {
240
236
  // Cache $value unit
241
237
  $unit: if(type-of($value) == "number", unit($value), false);
242
238
 
243
239
  // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
244
240
  @if not $unit or $unit != px and $unit != rem {
245
- $val: $val + ' ' + $value;
246
- }
247
-
248
- @else {
241
+ $val: $val + " " + $value;
242
+ } @else {
249
243
  // Remove unit from $value for calculations
250
244
  $value: divide($value, $value * 0 + if($unit == px, 1, divide(1, $rfs-rem-value)));
251
245
 
252
246
  // Only add the media query if the value is greater than the minimum value
253
247
  @if abs($value) <= $rfs-base-value or not $enable-rfs {
254
- $val: $val + ' ' + if($rfs-unit == rem, #{divide($value, $rfs-rem-value)}rem, #{$value}px);
248
+ $val: $val + " " + if($rfs-unit == rem, #{divide($value, $rfs-rem-value)}rem, #{$value}px);
255
249
  }
256
250
  @else {
257
251
  // Calculate the minimum value
@@ -273,7 +267,7 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
273
267
  $variable-width: #{divide($value-diff * 100, $rfs-breakpoint)}#{$variable-unit};
274
268
 
275
269
  // Return the calculated value
276
- $val: $val + ' calc(' + $min-width + if($value < 0, ' - ', ' + ') + $variable-width + ')';
270
+ $val: $val + " calc(" + $min-width + if($value < 0, " - ", " + ") + $variable-width + ")";
277
271
  }
278
272
  }
279
273
  }
@@ -287,22 +281,22 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
287
281
  @mixin rfs($values, $property: font-size) {
288
282
  @if $values != null {
289
283
  $val: rfs-value($values);
290
- $fluidVal: rfs-fluid-value($values);
284
+ $fluid-val: rfs-fluid-value($values);
291
285
 
292
286
  // Do not print the media query if responsive & non-responsive values are the same
293
- @if $val == $fluidVal {
287
+ @if $val == $fluid-val {
294
288
  #{$property}: $val;
295
289
  }
296
290
  @else {
297
- @include _rfs-rule {
298
- #{$property}: if($rfs-mode == max-media-query, $val, $fluidVal);
291
+ @include _rfs-rule () {
292
+ #{$property}: if($rfs-mode == max-media-query, $val, $fluid-val);
299
293
 
300
294
  // Include safari iframe resize fix if needed
301
295
  min-width: if($rfs-safari-iframe-resize-bug-fix, (0 * 1vw), null);
302
296
  }
303
297
 
304
- @include _rfs-media-query-rule {
305
- #{$property}: if($rfs-mode == max-media-query, $fluidVal, $val);
298
+ @include _rfs-media-query-rule () {
299
+ #{$property}: if($rfs-mode == max-media-query, $fluid-val, $val);
306
300
  }
307
301
  }
308
302
  }