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/mixins/_grid.scss
CHANGED
@@ -3,17 +3,17 @@
|
|
3
3
|
// Generate semantic grid columns with these mixins.
|
4
4
|
|
5
5
|
@mixin make-row($gutter: $grid-gutter-width) {
|
6
|
-
--#{$
|
7
|
-
--#{$
|
6
|
+
--#{$prefix}gutter-x: #{$gutter};
|
7
|
+
--#{$prefix}gutter-y: 0;
|
8
8
|
display: flex;
|
9
9
|
flex-wrap: wrap;
|
10
10
|
// TODO: Revisit calc order after https://github.com/react-bootstrap/react-bootstrap/issues/6039 is fixed
|
11
|
-
margin-top: calc(-1 * var(--#{$
|
12
|
-
margin-right: calc(-.5 * var(--#{$
|
13
|
-
margin-left: calc(-.5 * var(--#{$
|
11
|
+
margin-top: calc(-1 * var(--#{$prefix}gutter-y)); // stylelint-disable-line function-disallowed-list
|
12
|
+
margin-right: calc(-.5 * var(--#{$prefix}gutter-x)); // stylelint-disable-line function-disallowed-list
|
13
|
+
margin-left: calc(-.5 * var(--#{$prefix}gutter-x)); // stylelint-disable-line function-disallowed-list
|
14
14
|
}
|
15
15
|
|
16
|
-
@mixin make-col-ready(
|
16
|
+
@mixin make-col-ready() {
|
17
17
|
// Add box sizing if only the grid is loaded
|
18
18
|
box-sizing: if(variable-exists(include-column-box-sizing) and $include-column-box-sizing, border-box, null);
|
19
19
|
// Prevent columns from becoming too narrow when at smaller grid tiers by
|
@@ -22,9 +22,9 @@
|
|
22
22
|
flex-shrink: 0;
|
23
23
|
width: 100%;
|
24
24
|
max-width: 100%; // Prevent `.col-auto`, `.col` (& responsive variants) from breaking out the grid
|
25
|
-
padding-right: calc(var(--#{$
|
26
|
-
padding-left: calc(var(--#{$
|
27
|
-
margin-top: var(--#{$
|
25
|
+
padding-right: calc(var(--#{$prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list
|
26
|
+
padding-left: calc(var(--#{$prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list
|
27
|
+
margin-top: var(--#{$prefix}gutter-y);
|
28
28
|
}
|
29
29
|
|
30
30
|
@mixin make-col($size: false, $columns: $grid-columns) {
|
@@ -51,7 +51,7 @@
|
|
51
51
|
// Row columns
|
52
52
|
//
|
53
53
|
// Specify on a parent element(e.g., .row) to force immediate children into NN
|
54
|
-
//
|
54
|
+
// number of columns. Supports wrapping to new lines, but does not do a Masonry
|
55
55
|
// style grid.
|
56
56
|
@mixin row-cols($count) {
|
57
57
|
> * {
|
@@ -114,12 +114,12 @@
|
|
114
114
|
@each $key, $value in $gutters {
|
115
115
|
.g#{$infix}-#{$key},
|
116
116
|
.gx#{$infix}-#{$key} {
|
117
|
-
--#{$
|
117
|
+
--#{$prefix}gutter-x: #{$value};
|
118
118
|
}
|
119
119
|
|
120
120
|
.g#{$infix}-#{$key},
|
121
121
|
.gy#{$infix}-#{$key} {
|
122
|
-
--#{$
|
122
|
+
--#{$prefix}gutter-y: #{$value};
|
123
123
|
}
|
124
124
|
}
|
125
125
|
}
|
package/mixins/_pagination.scss
CHANGED
@@ -2,30 +2,9 @@
|
|
2
2
|
|
3
3
|
// scss-docs-start pagination-mixin
|
4
4
|
@mixin pagination-size($padding-y, $padding-x, $font-size, $border-radius) {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
}
|
9
|
-
|
10
|
-
.page-item {
|
11
|
-
@if $pagination-margin-start == (-$pagination-border-width) {
|
12
|
-
&:first-child {
|
13
|
-
.page-link {
|
14
|
-
@include border-start-radius($border-radius);
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
|
-
&:last-child {
|
19
|
-
.page-link {
|
20
|
-
@include border-end-radius($border-radius);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
} @else {
|
24
|
-
//Add border-radius to all pageLinks in case they have left margin
|
25
|
-
.page-link {
|
26
|
-
@include border-radius($border-radius);
|
27
|
-
}
|
28
|
-
}
|
29
|
-
}
|
5
|
+
--#{$prefix}pagination-padding-x: #{$padding-x};
|
6
|
+
--#{$prefix}pagination-padding-y: #{$padding-y};
|
7
|
+
@include rfs($font-size, --#{$prefix}pagination-font-size);
|
8
|
+
--#{$prefix}pagination-border-radius: #{$border-radius};
|
30
9
|
}
|
31
10
|
// scss-docs-end pagination-mixin
|
package/mixins/_reset-text.scss
CHANGED
@@ -5,17 +5,20 @@
|
|
5
5
|
$hover-bg: mix($color, $background, percentage($table-hover-bg-factor));
|
6
6
|
$striped-bg: mix($color, $background, percentage($table-striped-bg-factor));
|
7
7
|
$active-bg: mix($color, $background, percentage($table-active-bg-factor));
|
8
|
+
$border-color: mix($color, $background, percentage($table-border-factor));
|
8
9
|
|
9
|
-
--#{$
|
10
|
-
--#{$
|
11
|
-
--#{$
|
12
|
-
--#{$
|
13
|
-
--#{$
|
14
|
-
--#{$
|
15
|
-
--#{$
|
10
|
+
--#{$prefix}table-color: #{$color};
|
11
|
+
--#{$prefix}table-bg: #{$background};
|
12
|
+
--#{$prefix}table-border-color: #{$border-color};
|
13
|
+
--#{$prefix}table-striped-bg: #{$striped-bg};
|
14
|
+
--#{$prefix}table-striped-color: #{color-contrast($striped-bg)};
|
15
|
+
--#{$prefix}table-active-bg: #{$active-bg};
|
16
|
+
--#{$prefix}table-active-color: #{color-contrast($active-bg)};
|
17
|
+
--#{$prefix}table-hover-bg: #{$hover-bg};
|
18
|
+
--#{$prefix}table-hover-color: #{color-contrast($hover-bg)};
|
16
19
|
|
17
|
-
color: $color;
|
18
|
-
border-color:
|
20
|
+
color: var(--#{$prefix}table-color);
|
21
|
+
border-color: var(--#{$prefix}table-border-color);
|
19
22
|
}
|
20
23
|
}
|
21
24
|
// scss-docs-end table-variant
|
package/mixins/_utilities.scss
CHANGED
@@ -1,89 +1,97 @@
|
|
1
|
-
// Utility generator
|
2
|
-
// Used to generate utilities & print utilities
|
3
|
-
@mixin generate-utility($utility, $infix, $is-rfs-media-query: false) {
|
4
|
-
$values: map-get($utility, values);
|
5
|
-
|
6
|
-
// If the values are a list or string, convert it into a map
|
7
|
-
@if type-of($values) == "string" or type-of(nth($values, 1)) != "list" {
|
8
|
-
$values: zip($values, $values);
|
9
|
-
}
|
10
|
-
|
11
|
-
@each $key, $value in $values {
|
12
|
-
$properties: map-get($utility, property);
|
13
|
-
|
14
|
-
// Multiple properties are possible, for example with vertical or horizontal margins or paddings
|
15
|
-
@if type-of($properties) == "string" {
|
16
|
-
$properties: append((), $properties);
|
17
|
-
}
|
18
|
-
|
19
|
-
// Use custom class if present
|
20
|
-
$property-class: if(map-has-key($utility, class), map-get($utility, class), nth($properties, 1));
|
21
|
-
$property-class: if($property-class == null, "", $property-class);
|
22
|
-
|
23
|
-
//
|
24
|
-
$
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
$
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
$
|
38
|
-
|
39
|
-
|
40
|
-
$value: rfs-fluid-value($value);
|
41
|
-
}
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
}
|
1
|
+
// Utility generator
|
2
|
+
// Used to generate utilities & print utilities
|
3
|
+
@mixin generate-utility($utility, $infix, $is-rfs-media-query: false) {
|
4
|
+
$values: map-get($utility, values);
|
5
|
+
|
6
|
+
// If the values are a list or string, convert it into a map
|
7
|
+
@if type-of($values) == "string" or type-of(nth($values, 1)) != "list" {
|
8
|
+
$values: zip($values, $values);
|
9
|
+
}
|
10
|
+
|
11
|
+
@each $key, $value in $values {
|
12
|
+
$properties: map-get($utility, property);
|
13
|
+
|
14
|
+
// Multiple properties are possible, for example with vertical or horizontal margins or paddings
|
15
|
+
@if type-of($properties) == "string" {
|
16
|
+
$properties: append((), $properties);
|
17
|
+
}
|
18
|
+
|
19
|
+
// Use custom class if present
|
20
|
+
$property-class: if(map-has-key($utility, class), map-get($utility, class), nth($properties, 1));
|
21
|
+
$property-class: if($property-class == null, "", $property-class);
|
22
|
+
|
23
|
+
// Use custom CSS variable name if present, otherwise default to `class`
|
24
|
+
$css-variable-name: if(map-has-key($utility, css-variable-name), map-get($utility, css-variable-name), map-get($utility, class));
|
25
|
+
|
26
|
+
// State params to generate pseudo-classes
|
27
|
+
$state: if(map-has-key($utility, state), map-get($utility, state), ());
|
28
|
+
|
29
|
+
$infix: if($property-class == "" and str-slice($infix, 1, 1) == "-", str-slice($infix, 2), $infix);
|
30
|
+
|
31
|
+
// Don't prefix if value key is null (e.g. with shadow class)
|
32
|
+
$property-class-modifier: if($key, if($property-class == "" and $infix == "", "", "-") + $key, "");
|
33
|
+
|
34
|
+
@if map-get($utility, rfs) {
|
35
|
+
// Inside the media query
|
36
|
+
@if $is-rfs-media-query {
|
37
|
+
$val: rfs-value($value);
|
38
|
+
|
39
|
+
// Do not render anything if fluid and non fluid values are the same
|
40
|
+
$value: if($val == rfs-fluid-value($value), null, $val);
|
41
|
+
}
|
42
|
+
@else {
|
43
|
+
$value: rfs-fluid-value($value);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
$is-css-var: map-get($utility, css-var);
|
48
|
+
$is-local-vars: map-get($utility, local-vars);
|
49
|
+
$is-rtl: map-get($utility, rtl);
|
50
|
+
|
51
|
+
@if $value != null {
|
52
|
+
@if $is-rtl == false {
|
53
|
+
/* rtl:begin:remove */
|
54
|
+
}
|
55
|
+
|
56
|
+
@if $is-css-var {
|
57
|
+
.#{$property-class + $infix + $property-class-modifier} {
|
58
|
+
--#{$prefix}#{$css-variable-name}: #{$value};
|
59
|
+
}
|
60
|
+
|
61
|
+
@each $pseudo in $state {
|
62
|
+
.#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} {
|
63
|
+
--#{$prefix}#{$css-variable-name}: #{$value};
|
64
|
+
}
|
65
|
+
}
|
66
|
+
} @else {
|
67
|
+
.#{$property-class + $infix + $property-class-modifier} {
|
68
|
+
@each $property in $properties {
|
69
|
+
@if $is-local-vars {
|
70
|
+
@each $local-var, $variable in $is-local-vars {
|
71
|
+
--#{$prefix}#{$local-var}: #{$variable};
|
72
|
+
}
|
73
|
+
}
|
74
|
+
#{$property}: $value if($enable-important-utilities, !important, null);
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
@each $pseudo in $state {
|
79
|
+
.#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} {
|
80
|
+
@each $property in $properties {
|
81
|
+
@if $is-local-vars {
|
82
|
+
@each $local-var, $variable in $is-local-vars {
|
83
|
+
--#{$prefix}#{$local-var}: #{$variable};
|
84
|
+
}
|
85
|
+
}
|
86
|
+
#{$property}: $value if($enable-important-utilities, !important, null);
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
@if $is-rtl == false {
|
93
|
+
/* rtl:end:remove */
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|