bootstrap-scss 5.3.0 → 5.3.2

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 CHANGED
@@ -77,7 +77,7 @@ For simplicity, this project will use the same version numbers as Bootstrap.
77
77
 
78
78
  ## Changelog
79
79
 
80
- https://github.com/twbs/bootstrap/releases/tag/v5.3.0
80
+ https://github.com/twbs/bootstrap/releases/tag/v5.3.2
81
81
 
82
82
  ## Copyright and license
83
83
 
package/_buttons.scss CHANGED
@@ -170,7 +170,7 @@
170
170
  --#{$prefix}btn-disabled-color: #{$btn-link-disabled-color};
171
171
  --#{$prefix}btn-disabled-border-color: transparent;
172
172
  --#{$prefix}btn-box-shadow: 0 0 0 #000; // Can't use `none` as keyword negates all values when used with multiple shadows
173
- --#{$prefix}btn-focus-shadow-rgb: #{to-rgb(mix(color-contrast($link-color), $link-color, 15%))};
173
+ --#{$prefix}btn-focus-shadow-rgb: #{$btn-link-focus-shadow-rgb};
174
174
 
175
175
  text-decoration: $link-decoration;
176
176
  @if $enable-gradients {
package/_nav.scss CHANGED
@@ -44,7 +44,8 @@
44
44
  }
45
45
 
46
46
  // Disabled state lightens text
47
- &.disabled {
47
+ &.disabled,
48
+ &:disabled {
48
49
  color: var(--#{$prefix}nav-link-disabled-color);
49
50
  pointer-events: none;
50
51
  cursor: default;
@@ -79,13 +80,6 @@
79
80
  isolation: isolate;
80
81
  border-color: var(--#{$prefix}nav-tabs-link-hover-border-color);
81
82
  }
82
-
83
- &.disabled,
84
- &:disabled {
85
- color: var(--#{$prefix}nav-link-disabled-color);
86
- background-color: transparent;
87
- border-color: transparent;
88
- }
89
83
  }
90
84
 
91
85
  .nav-link.active,
@@ -117,12 +111,6 @@
117
111
 
118
112
  .nav-link {
119
113
  @include border-radius(var(--#{$prefix}nav-pills-border-radius));
120
-
121
- &:disabled {
122
- color: var(--#{$prefix}nav-link-disabled-color);
123
- background-color: transparent;
124
- border-color: transparent;
125
- }
126
114
  }
127
115
 
128
116
  .nav-link.active,
package/_reboot.scss CHANGED
@@ -217,6 +217,7 @@ small {
217
217
 
218
218
  mark {
219
219
  padding: $mark-padding;
220
+ color: var(--#{$prefix}highlight-color);
220
221
  background-color: var(--#{$prefix}highlight-bg);
221
222
  }
222
223
 
@@ -524,15 +525,15 @@ legend {
524
525
  height: auto;
525
526
  }
526
527
 
527
- // 1. Correct the outline style in Safari.
528
- // 2. This overrides the extra rounded corners on search inputs in iOS so that our
528
+ // 1. This overrides the extra rounded corners on search inputs in iOS so that our
529
529
  // `.form-control` class can properly style them. Note that this cannot simply
530
530
  // be added to `.form-control` as it's not specific enough. For details, see
531
531
  // https://github.com/twbs/bootstrap/issues/11586.
532
+ // 2. Correct the outline style in Safari.
532
533
 
533
534
  [type="search"] {
534
- outline-offset: -2px; // 1
535
- -webkit-appearance: textfield; // 2
535
+ -webkit-appearance: textfield; // 1
536
+ outline-offset: -2px; // 2
536
537
  }
537
538
 
538
539
  // 1. A few input types should stay LTR
package/_root.scss CHANGED
@@ -91,6 +91,7 @@
91
91
  }
92
92
 
93
93
  --#{$prefix}code-color: #{$code-color};
94
+ --#{$prefix}highlight-color: #{$mark-color};
94
95
  --#{$prefix}highlight-bg: #{$mark-bg};
95
96
 
96
97
  // scss-docs-start root-border-var
@@ -171,6 +172,8 @@
171
172
  --#{$prefix}link-hover-color-rgb: #{to-rgb($link-hover-color-dark)};
172
173
 
173
174
  --#{$prefix}code-color: #{$code-color-dark};
175
+ --#{$prefix}highlight-color: #{$mark-color-dark};
176
+ --#{$prefix}highlight-bg: #{$mark-bg-dark};
174
177
 
175
178
  --#{$prefix}border-color: #{$border-color-dark};
176
179
  --#{$prefix}border-color-translucent: #{$border-color-translucent-dark};
package/_utilities.scss CHANGED
@@ -77,9 +77,9 @@ $utilities: map-merge(
77
77
  property: box-shadow,
78
78
  class: shadow,
79
79
  values: (
80
- null: $box-shadow,
81
- sm: $box-shadow-sm,
82
- lg: $box-shadow-lg,
80
+ null: var(--#{$prefix}box-shadow),
81
+ sm: var(--#{$prefix}box-shadow-sm),
82
+ lg: var(--#{$prefix}box-shadow-lg),
83
83
  none: none,
84
84
  )
85
85
  ),
@@ -40,7 +40,7 @@ $light-border-subtle-dark: $gray-700 !default;
40
40
  $dark-border-subtle-dark: $gray-800 !default;
41
41
  // scss-docs-end theme-border-subtle-dark-variables
42
42
 
43
- $body-color-dark: $gray-500 !default;
43
+ $body-color-dark: $gray-300 !default;
44
44
  $body-bg-dark: $gray-900 !default;
45
45
  $body-secondary-color-dark: rgba($body-color-dark, .75) !default;
46
46
  $body-secondary-bg-dark: $gray-800 !default;
@@ -53,6 +53,8 @@ $headings-color-dark: inherit !default;
53
53
  $link-color-dark: tint-color($primary, 40%) !default;
54
54
  $link-hover-color-dark: shift-color($link-color-dark, -$link-shade-percentage) !default;
55
55
  $code-color-dark: tint-color($code-color, 40%) !default;
56
+ $mark-color-dark: $body-color-dark !default;
57
+ $mark-bg-dark: $yellow-800 !default;
56
58
 
57
59
 
58
60
  //
package/_variables.scss CHANGED
@@ -705,6 +705,10 @@ $hr-border-color: null !default; // Allows for inherited colors
705
705
  $hr-border-width: var(--#{$prefix}border-width) !default;
706
706
  $hr-opacity: .25 !default;
707
707
 
708
+ // scss-docs-start vr-variables
709
+ $vr-border-width: var(--#{$prefix}border-width) !default;
710
+ // scss-docs-end vr-variables
711
+
708
712
  $legend-margin-bottom: .5rem !default;
709
713
  $legend-font-size: 1.5rem !default;
710
714
  $legend-font-weight: null !default;
@@ -714,6 +718,7 @@ $dt-font-weight: $font-weight-bold !default;
714
718
  $list-inline-padding: .5rem !default;
715
719
 
716
720
  $mark-padding: .1875em !default;
721
+ $mark-color: $body-color !default;
717
722
  $mark-bg: $yellow-100 !default;
718
723
  // scss-docs-end type-variables
719
724
 
@@ -730,7 +735,7 @@ $table-cell-padding-x-sm: .25rem !default;
730
735
 
731
736
  $table-cell-vertical-align: top !default;
732
737
 
733
- $table-color: var(--#{$prefix}body-color) !default;
738
+ $table-color: var(--#{$prefix}emphasis-color) !default;
734
739
  $table-bg: var(--#{$prefix}body-bg) !default;
735
740
  $table-accent-bg: transparent !default;
736
741
 
@@ -738,17 +743,17 @@ $table-th-font-weight: null !default;
738
743
 
739
744
  $table-striped-color: $table-color !default;
740
745
  $table-striped-bg-factor: .05 !default;
741
- $table-striped-bg: rgba($black, $table-striped-bg-factor) !default;
746
+ $table-striped-bg: rgba(var(--#{$prefix}emphasis-color-rgb), $table-striped-bg-factor) !default;
742
747
 
743
748
  $table-active-color: $table-color !default;
744
749
  $table-active-bg-factor: .1 !default;
745
- $table-active-bg: rgba($black, $table-active-bg-factor) !default;
750
+ $table-active-bg: rgba(var(--#{$prefix}emphasis-color-rgb), $table-active-bg-factor) !default;
746
751
 
747
752
  $table-hover-color: $table-color !default;
748
753
  $table-hover-bg-factor: .075 !default;
749
- $table-hover-bg: rgba($black, $table-hover-bg-factor) !default;
754
+ $table-hover-bg: rgba(var(--#{$prefix}emphasis-color-rgb), $table-hover-bg-factor) !default;
750
755
 
751
- $table-border-factor: .1 !default;
756
+ $table-border-factor: .2 !default;
752
757
  $table-border-width: var(--#{$prefix}border-width) !default;
753
758
  $table-border-color: var(--#{$prefix}border-color) !default;
754
759
 
@@ -838,6 +843,7 @@ $btn-active-box-shadow: inset 0 3px 5px rgba($black, .125) !default;
838
843
  $btn-link-color: var(--#{$prefix}link-color) !default;
839
844
  $btn-link-hover-color: var(--#{$prefix}link-hover-color) !default;
840
845
  $btn-link-disabled-color: $gray-600 !default;
846
+ $btn-link-focus-shadow-rgb: to-rgb(mix(color-contrast($link-color), $link-color, 15%)) !default;
841
847
 
842
848
  // Allows for customizing button radius independently from global border radius
843
849
  $btn-border-radius: var(--#{$prefix}border-radius) !default;
@@ -899,7 +905,7 @@ $input-disabled-border-color: null !default;
899
905
  $input-color: var(--#{$prefix}body-color) !default;
900
906
  $input-border-color: var(--#{$prefix}border-color) !default;
901
907
  $input-border-width: $input-btn-border-width !default;
902
- $input-box-shadow: $box-shadow-inset !default;
908
+ $input-box-shadow: var(--#{$prefix}box-shadow-inset) !default;
903
909
 
904
910
  $input-border-radius: var(--#{$prefix}border-radius) !default;
905
911
  $input-border-radius-sm: var(--#{$prefix}border-radius-sm) !default;
@@ -1015,7 +1021,7 @@ $form-select-feedback-icon-size: $input-height-inner-half $input-height-i
1015
1021
  $form-select-border-width: $input-border-width !default;
1016
1022
  $form-select-border-color: $input-border-color !default;
1017
1023
  $form-select-border-radius: $input-border-radius !default;
1018
- $form-select-box-shadow: $box-shadow-inset !default;
1024
+ $form-select-box-shadow: var(--#{$prefix}box-shadow-inset) !default;
1019
1025
 
1020
1026
  $form-select-focus-border-color: $input-focus-border-color !default;
1021
1027
  $form-select-focus-width: $input-focus-width !default;
@@ -1038,9 +1044,9 @@ $form-select-transition: $input-transition !default;
1038
1044
  $form-range-track-width: 100% !default;
1039
1045
  $form-range-track-height: .5rem !default;
1040
1046
  $form-range-track-cursor: pointer !default;
1041
- $form-range-track-bg: var(--#{$prefix}tertiary-bg) !default;
1047
+ $form-range-track-bg: var(--#{$prefix}secondary-bg) !default;
1042
1048
  $form-range-track-border-radius: 1rem !default;
1043
- $form-range-track-box-shadow: $box-shadow-inset !default;
1049
+ $form-range-track-box-shadow: var(--#{$prefix}box-shadow-inset) !default;
1044
1050
 
1045
1051
  $form-range-thumb-width: 1rem !default;
1046
1052
  $form-range-thumb-height: $form-range-thumb-width !default;
@@ -1216,7 +1222,8 @@ $navbar-dark-color: rgba($white, .55) !default;
1216
1222
  $navbar-dark-hover-color: rgba($white, .75) !default;
1217
1223
  $navbar-dark-active-color: $white !default;
1218
1224
  $navbar-dark-disabled-color: rgba($white, .25) !default;
1219
- $navbar-dark-toggler-icon-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='#{$navbar-dark-color}' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/></svg>") !default;
1225
+ $navbar-dark-icon-color: $navbar-dark-color !default;
1226
+ $navbar-dark-toggler-icon-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='#{$navbar-dark-icon-color}' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/></svg>") !default;
1220
1227
  $navbar-dark-toggler-border-color: rgba($white, .1) !default;
1221
1228
  $navbar-dark-brand-color: $navbar-dark-active-color !default;
1222
1229
  $navbar-dark-brand-hover-color: $navbar-dark-active-color !default;
@@ -1241,7 +1248,7 @@ $dropdown-border-width: var(--#{$prefix}border-width) !default;
1241
1248
  $dropdown-inner-border-radius: calc(#{$dropdown-border-radius} - #{$dropdown-border-width}) !default; // stylelint-disable-line function-disallowed-list
1242
1249
  $dropdown-divider-bg: $dropdown-border-color !default;
1243
1250
  $dropdown-divider-margin-y: $spacer * .5 !default;
1244
- $dropdown-box-shadow: $box-shadow !default;
1251
+ $dropdown-box-shadow: var(--#{$prefix}box-shadow) !default;
1245
1252
 
1246
1253
  $dropdown-link-color: var(--#{$prefix}body-color) !default;
1247
1254
  $dropdown-link-hover-color: $dropdown-link-color !default;
@@ -1430,7 +1437,7 @@ $popover-border-width: var(--#{$prefix}border-width) !default;
1430
1437
  $popover-border-color: var(--#{$prefix}border-color-translucent) !default;
1431
1438
  $popover-border-radius: var(--#{$prefix}border-radius-lg) !default;
1432
1439
  $popover-inner-border-radius: calc(#{$popover-border-radius} - #{$popover-border-width}) !default; // stylelint-disable-line function-disallowed-list
1433
- $popover-box-shadow: $box-shadow !default;
1440
+ $popover-box-shadow: var(--#{$prefix}box-shadow) !default;
1434
1441
 
1435
1442
  $popover-header-font-size: $font-size-base !default;
1436
1443
  $popover-header-bg: var(--#{$prefix}secondary-bg) !default;
@@ -1504,8 +1511,8 @@ $modal-content-border-color: var(--#{$prefix}border-color-translucent) !d
1504
1511
  $modal-content-border-width: var(--#{$prefix}border-width) !default;
1505
1512
  $modal-content-border-radius: var(--#{$prefix}border-radius-lg) !default;
1506
1513
  $modal-content-inner-border-radius: subtract($modal-content-border-radius, $modal-content-border-width) !default;
1507
- $modal-content-box-shadow-xs: $box-shadow-sm !default;
1508
- $modal-content-box-shadow-sm-up: $box-shadow !default;
1514
+ $modal-content-box-shadow-xs: var(--#{$prefix}box-shadow-sm) !default;
1515
+ $modal-content-box-shadow-sm-up: var(--#{$prefix}box-shadow) !default;
1509
1516
 
1510
1517
  $modal-backdrop-bg: $black !default;
1511
1518
  $modal-backdrop-opacity: .5 !default;
@@ -1543,9 +1550,6 @@ $alert-margin-bottom: 1rem !default;
1543
1550
  $alert-border-radius: var(--#{$prefix}border-radius) !default;
1544
1551
  $alert-link-font-weight: $font-weight-bold !default;
1545
1552
  $alert-border-width: var(--#{$prefix}border-width) !default;
1546
- $alert-bg-scale: -80% !default;
1547
- $alert-border-scale: -70% !default;
1548
- $alert-color-scale: 40% !default;
1549
1553
  $alert-dismissible-padding-r: $alert-padding-x * 3 !default; // 3x covers width of x plus default padding on either side
1550
1554
  // scss-docs-end alert-variables
1551
1555
 
@@ -84,7 +84,8 @@
84
84
  }
85
85
  }
86
86
 
87
- > :disabled ~ label {
87
+ > :disabled ~ label,
88
+ > .form-control:disabled ~ label { // Required for `.form-control`s because of specificity
88
89
  color: $form-floating-label-disabled-color;
89
90
 
90
91
  &::after {
@@ -29,17 +29,18 @@
29
29
  .form-check-input {
30
30
  --#{$prefix}form-check-bg: #{$form-check-input-bg};
31
31
 
32
+ flex-shrink: 0;
32
33
  width: $form-check-input-width;
33
34
  height: $form-check-input-width;
34
35
  margin-top: ($line-height-base - $form-check-input-width) * .5; // line-height minus check height
35
36
  vertical-align: top;
37
+ appearance: none;
36
38
  background-color: var(--#{$prefix}form-check-bg);
37
39
  background-image: var(--#{$prefix}form-check-bg-image);
38
40
  background-repeat: no-repeat;
39
41
  background-position: center;
40
42
  background-size: contain;
41
43
  border: $form-check-input-border;
42
- appearance: none;
43
44
  print-color-adjust: exact; // Keep themed appearance for print
44
45
  @include transition($form-check-transition);
45
46
 
@@ -11,10 +11,10 @@
11
11
  font-weight: $input-font-weight;
12
12
  line-height: $input-line-height;
13
13
  color: $input-color;
14
+ appearance: none; // Fix appearance for date inputs in Safari
14
15
  background-color: $input-bg;
15
16
  background-clip: padding-box;
16
17
  border: $input-border-width solid $input-border-color;
17
- appearance: none; // Fix appearance for date inputs in Safari
18
18
 
19
19
  // Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
20
20
  @include border-radius($input-border-radius, 0);
@@ -8,8 +8,8 @@
8
8
  width: 100%;
9
9
  height: add($form-range-thumb-height, $form-range-thumb-focus-box-shadow-width * 2);
10
10
  padding: 0; // Need to reset padding
11
- background-color: transparent;
12
11
  appearance: none;
12
+ background-color: transparent;
13
13
 
14
14
  &:focus {
15
15
  outline: 0;
@@ -28,12 +28,12 @@
28
28
  width: $form-range-thumb-width;
29
29
  height: $form-range-thumb-height;
30
30
  margin-top: ($form-range-track-height - $form-range-thumb-height) * .5; // Webkit specific
31
+ appearance: none;
31
32
  @include gradient-bg($form-range-thumb-bg);
32
33
  border: $form-range-thumb-border;
33
34
  @include border-radius($form-range-thumb-border-radius);
34
35
  @include box-shadow($form-range-thumb-box-shadow);
35
36
  @include transition($form-range-thumb-transition);
36
- appearance: none;
37
37
 
38
38
  &:active {
39
39
  @include gradient-bg($form-range-thumb-active-bg);
@@ -54,12 +54,12 @@
54
54
  &::-moz-range-thumb {
55
55
  width: $form-range-thumb-width;
56
56
  height: $form-range-thumb-height;
57
+ appearance: none;
57
58
  @include gradient-bg($form-range-thumb-bg);
58
59
  border: $form-range-thumb-border;
59
60
  @include border-radius($form-range-thumb-border-radius);
60
61
  @include box-shadow($form-range-thumb-box-shadow);
61
62
  @include transition($form-range-thumb-transition);
62
- appearance: none;
63
63
 
64
64
  &:active {
65
65
  @include gradient-bg($form-range-thumb-active-bg);
@@ -14,6 +14,7 @@
14
14
  font-weight: $form-select-font-weight;
15
15
  line-height: $form-select-line-height;
16
16
  color: $form-select-color;
17
+ appearance: none;
17
18
  background-color: $form-select-bg;
18
19
  background-image: var(--#{$prefix}form-select-bg-img), var(--#{$prefix}form-select-bg-icon, none);
19
20
  background-repeat: no-repeat;
@@ -23,7 +24,6 @@
23
24
  @include border-radius($form-select-border-radius, 0);
24
25
  @include box-shadow($form-select-box-shadow);
25
26
  @include transition($form-select-transition);
26
- appearance: none;
27
27
 
28
28
  &:focus {
29
29
  border-color: $form-select-focus-border-color;
@@ -1,8 +1,7 @@
1
1
  // All-caps `RGBA()` function used because of this Sass bug: https://github.com/sass/node-sass/issues/2251
2
2
  @each $color, $value in $theme-colors {
3
- $color-rgb: to-rgb($value);
4
3
  .text-bg-#{$color} {
5
4
  color: color-contrast($value) if($enable-important-utilities, !important, null);
6
- background-color: RGBA($color-rgb, var(--#{$prefix}bg-opacity, 1)) if($enable-important-utilities, !important, null);
5
+ background-color: RGBA(var(--#{$prefix}#{$color}-rgb), var(--#{$prefix}bg-opacity, 1)) if($enable-important-utilities, !important, null);
7
6
  }
8
7
  }
package/helpers/_vr.scss CHANGED
@@ -1,7 +1,7 @@
1
1
  .vr {
2
2
  display: inline-block;
3
3
  align-self: stretch;
4
- width: 1px;
4
+ width: $vr-border-width;
5
5
  min-height: 1em;
6
6
  background-color: currentcolor;
7
7
  opacity: $hr-opacity;
@@ -1,6 +1,6 @@
1
1
  @mixin bsBanner($file) {
2
2
  /*!
3
- * Bootstrap #{$file} v5.3.0 (https://getbootstrap.com/)
3
+ * Bootstrap #{$file} v5.3.2 (https://getbootstrap.com/)
4
4
  * Copyright 2011-2023 The Bootstrap Authors
5
5
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
6
6
  */
package/mixins/_grid.scss CHANGED
@@ -56,7 +56,7 @@
56
56
  @mixin row-cols($count) {
57
57
  > * {
58
58
  flex: 0 0 auto;
59
- width: divide(100%, $count);
59
+ width: percentage(divide(1, $count));
60
60
  }
61
61
  }
62
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bootstrap-scss",
3
- "version": "5.3.0",
3
+ "version": "5.3.2",
4
4
  "description": "Bootstrap's SCSS files (only)",
5
5
  "main": "bootstrap.scss",
6
6
  "repository": {