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.
- package/README.md +1 -1
- package/_accordion.scss +7 -4
- package/_alert.scss +71 -71
- package/_badge.scss +38 -38
- package/_breadcrumb.scss +40 -40
- package/_button-group.scss +1 -1
- package/_buttons.scss +23 -8
- package/_card.scss +234 -234
- package/_carousel.scss +229 -229
- package/_close.scss +40 -40
- package/_containers.scss +41 -41
- package/_dropdown.scss +2 -1
- package/_forms.scss +9 -9
- package/_functions.scss +1 -1
- package/_grid.scss +33 -33
- package/_helpers.scss +10 -10
- package/_list-group.scss +6 -5
- package/_maps.scss +54 -54
- package/_mixins.scss +43 -43
- package/_modal.scss +1 -1
- package/_nav.scss +2 -2
- package/_navbar.scss +2 -0
- package/_offcanvas.scss +5 -4
- package/_pagination.scss +1 -1
- package/_placeholders.scss +51 -51
- package/_popover.scss +5 -5
- package/_progress.scss +59 -59
- package/_reboot.scss +610 -610
- package/_root.scss +73 -73
- package/_spinners.scss +85 -85
- package/_tables.scss +164 -164
- package/_toasts.scss +3 -2
- package/_tooltip.scss +120 -120
- package/_transitions.scss +27 -27
- package/_type.scss +106 -106
- package/_utilities.scss +647 -647
- package/_variables.scss +17 -16
- package/bootstrap-grid.scss +64 -64
- package/bootstrap-reboot.scss +9 -9
- package/bootstrap-utilities.scss +15 -15
- package/bootstrap.scss +51 -51
- package/forms/_floating-labels.scss +1 -0
- package/forms/_form-check.scss +175 -175
- package/forms/_form-control.scss +194 -194
- package/forms/_form-range.scss +91 -91
- package/forms/_form-select.scss +71 -71
- package/forms/_form-text.scss +11 -11
- package/forms/_input-group.scss +7 -4
- package/forms/_labels.scss +36 -36
- package/forms/_validation.scss +12 -12
- package/helpers/_clearfix.scss +3 -3
- package/helpers/_color-bg.scss +10 -10
- package/helpers/_colored-links.scss +12 -12
- package/helpers/_position.scss +36 -36
- package/helpers/_ratio.scss +26 -26
- package/helpers/_stacks.scss +15 -15
- package/helpers/_stretched-link.scss +15 -15
- package/helpers/_text-truncation.scss +7 -7
- package/helpers/_visually-hidden.scss +8 -8
- package/helpers/_vr.scss +8 -8
- package/mixins/_alert.scss +15 -15
- package/mixins/_backdrop.scss +14 -14
- package/mixins/_banner.scss +2 -2
- package/mixins/_border-radius.scss +78 -78
- package/mixins/_box-shadow.scss +18 -18
- package/mixins/_breakpoints.scss +127 -127
- package/mixins/_buttons.scss +70 -70
- package/mixins/_caret.scss +64 -64
- package/mixins/_clearfix.scss +9 -9
- package/mixins/_color-scheme.scss +7 -7
- package/mixins/_container.scss +11 -11
- package/mixins/_forms.scss +10 -10
- package/mixins/_gradients.scss +47 -47
- package/mixins/_grid.scss +151 -151
- package/mixins/_image.scss +16 -16
- package/mixins/_list-group.scss +24 -24
- package/mixins/_lists.scss +7 -7
- package/mixins/_pagination.scss +10 -10
- package/mixins/_reset-text.scss +17 -17
- package/mixins/_table-variants.scss +24 -24
- package/mixins/_transition.scss +26 -26
- package/mixins/_utilities.scss +1 -1
- package/mixins/_visually-hidden.scss +29 -29
- package/package.json +1 -1
- package/utilities/_api.scss +47 -47
- package/vendor/_rfs.scss +354 -354
package/mixins/_list-group.scss
CHANGED
@@ -1,24 +1,24 @@
|
|
1
|
-
// List Groups
|
2
|
-
|
3
|
-
// scss-docs-start list-group-mixin
|
4
|
-
@mixin list-group-item-variant($state, $background, $color) {
|
5
|
-
.list-group-item-#{$state} {
|
6
|
-
color: $color;
|
7
|
-
background-color: $background;
|
8
|
-
|
9
|
-
&.list-group-item-action {
|
10
|
-
&:hover,
|
11
|
-
&:focus {
|
12
|
-
color: $color;
|
13
|
-
background-color: shade-color($background, 10%);
|
14
|
-
}
|
15
|
-
|
16
|
-
&.active {
|
17
|
-
color: $white;
|
18
|
-
background-color: $color;
|
19
|
-
border-color: $color;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
// scss-docs-end list-group-mixin
|
1
|
+
// List Groups
|
2
|
+
|
3
|
+
// scss-docs-start list-group-mixin
|
4
|
+
@mixin list-group-item-variant($state, $background, $color) {
|
5
|
+
.list-group-item-#{$state} {
|
6
|
+
color: $color;
|
7
|
+
background-color: $background;
|
8
|
+
|
9
|
+
&.list-group-item-action {
|
10
|
+
&:hover,
|
11
|
+
&:focus {
|
12
|
+
color: $color;
|
13
|
+
background-color: shade-color($background, 10%);
|
14
|
+
}
|
15
|
+
|
16
|
+
&.active {
|
17
|
+
color: $white;
|
18
|
+
background-color: $color;
|
19
|
+
border-color: $color;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
// scss-docs-end list-group-mixin
|
package/mixins/_lists.scss
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
// Lists
|
2
|
-
|
3
|
-
// Unstyled keeps list items block level, just removes default browser padding and list-style
|
4
|
-
@mixin list-unstyled {
|
5
|
-
padding-left: 0;
|
6
|
-
list-style: none;
|
7
|
-
}
|
1
|
+
// Lists
|
2
|
+
|
3
|
+
// Unstyled keeps list items block level, just removes default browser padding and list-style
|
4
|
+
@mixin list-unstyled {
|
5
|
+
padding-left: 0;
|
6
|
+
list-style: none;
|
7
|
+
}
|
package/mixins/_pagination.scss
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
// Pagination
|
2
|
-
|
3
|
-
// scss-docs-start pagination-mixin
|
4
|
-
@mixin pagination-size($padding-y, $padding-x, $font-size, $border-radius) {
|
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};
|
9
|
-
}
|
10
|
-
// scss-docs-end pagination-mixin
|
1
|
+
// Pagination
|
2
|
+
|
3
|
+
// scss-docs-start pagination-mixin
|
4
|
+
@mixin pagination-size($padding-y, $padding-x, $font-size, $border-radius) {
|
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};
|
9
|
+
}
|
10
|
+
// scss-docs-end pagination-mixin
|
package/mixins/_reset-text.scss
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
@mixin reset-text {
|
2
|
-
font-family: $font-family-base;
|
3
|
-
// We deliberately do NOT reset font-size or overflow-wrap / word-wrap.
|
4
|
-
font-style: normal;
|
5
|
-
font-weight: $font-weight-normal;
|
6
|
-
line-height: $line-height-base;
|
7
|
-
text-align: left; // Fallback for where `start` is not supported
|
8
|
-
text-align: start;
|
9
|
-
text-decoration: none;
|
10
|
-
text-shadow: none;
|
11
|
-
text-transform: none;
|
12
|
-
letter-spacing: normal;
|
13
|
-
word-break: normal;
|
14
|
-
white-space: normal;
|
15
|
-
word-spacing: normal;
|
16
|
-
line-break: auto;
|
17
|
-
}
|
1
|
+
@mixin reset-text {
|
2
|
+
font-family: $font-family-base;
|
3
|
+
// We deliberately do NOT reset font-size or overflow-wrap / word-wrap.
|
4
|
+
font-style: normal;
|
5
|
+
font-weight: $font-weight-normal;
|
6
|
+
line-height: $line-height-base;
|
7
|
+
text-align: left; // Fallback for where `start` is not supported
|
8
|
+
text-align: start;
|
9
|
+
text-decoration: none;
|
10
|
+
text-shadow: none;
|
11
|
+
text-transform: none;
|
12
|
+
letter-spacing: normal;
|
13
|
+
word-break: normal;
|
14
|
+
white-space: normal;
|
15
|
+
word-spacing: normal;
|
16
|
+
line-break: auto;
|
17
|
+
}
|
@@ -1,24 +1,24 @@
|
|
1
|
-
// scss-docs-start table-variant
|
2
|
-
@mixin table-variant($state, $background) {
|
3
|
-
.table-#{$state} {
|
4
|
-
$color: color-contrast(opaque($body-bg, $background));
|
5
|
-
$hover-bg: mix($color, $background, percentage($table-hover-bg-factor));
|
6
|
-
$striped-bg: mix($color, $background, percentage($table-striped-bg-factor));
|
7
|
-
$active-bg: mix($color, $background, percentage($table-active-bg-factor));
|
8
|
-
$border-color: mix($color, $background, percentage($table-border-factor));
|
9
|
-
|
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)};
|
19
|
-
|
20
|
-
color: var(--#{$prefix}table-color);
|
21
|
-
border-color: var(--#{$prefix}table-border-color);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
// scss-docs-end table-variant
|
1
|
+
// scss-docs-start table-variant
|
2
|
+
@mixin table-variant($state, $background) {
|
3
|
+
.table-#{$state} {
|
4
|
+
$color: color-contrast(opaque($body-bg, $background));
|
5
|
+
$hover-bg: mix($color, $background, percentage($table-hover-bg-factor));
|
6
|
+
$striped-bg: mix($color, $background, percentage($table-striped-bg-factor));
|
7
|
+
$active-bg: mix($color, $background, percentage($table-active-bg-factor));
|
8
|
+
$border-color: mix($color, $background, percentage($table-border-factor));
|
9
|
+
|
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)};
|
19
|
+
|
20
|
+
color: var(--#{$prefix}table-color);
|
21
|
+
border-color: var(--#{$prefix}table-border-color);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
// scss-docs-end table-variant
|
package/mixins/_transition.scss
CHANGED
@@ -1,26 +1,26 @@
|
|
1
|
-
// stylelint-disable property-disallowed-list
|
2
|
-
@mixin transition($transition...) {
|
3
|
-
@if length($transition) == 0 {
|
4
|
-
$transition: $transition-base;
|
5
|
-
}
|
6
|
-
|
7
|
-
@if length($transition) > 1 {
|
8
|
-
@each $value in $transition {
|
9
|
-
@if $value == null or $value == none {
|
10
|
-
@warn "The keyword 'none' or 'null' must be used as a single argument.";
|
11
|
-
}
|
12
|
-
}
|
13
|
-
}
|
14
|
-
|
15
|
-
@if $enable-transitions {
|
16
|
-
@if nth($transition, 1) != null {
|
17
|
-
transition: $transition;
|
18
|
-
}
|
19
|
-
|
20
|
-
@if $enable-reduced-motion and nth($transition, 1) != null and nth($transition, 1) != none {
|
21
|
-
@media (prefers-reduced-motion: reduce) {
|
22
|
-
transition: none;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
1
|
+
// stylelint-disable property-disallowed-list
|
2
|
+
@mixin transition($transition...) {
|
3
|
+
@if length($transition) == 0 {
|
4
|
+
$transition: $transition-base;
|
5
|
+
}
|
6
|
+
|
7
|
+
@if length($transition) > 1 {
|
8
|
+
@each $value in $transition {
|
9
|
+
@if $value == null or $value == none {
|
10
|
+
@warn "The keyword 'none' or 'null' must be used as a single argument.";
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
@if $enable-transitions {
|
16
|
+
@if nth($transition, 1) != null {
|
17
|
+
transition: $transition;
|
18
|
+
}
|
19
|
+
|
20
|
+
@if $enable-reduced-motion and nth($transition, 1) != null and nth($transition, 1) != none {
|
21
|
+
@media (prefers-reduced-motion: reduce) {
|
22
|
+
transition: none;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
package/mixins/_utilities.scss
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
$infix: if($property-class == "" and str-slice($infix, 1, 1) == "-", str-slice($infix, 2), $infix);
|
30
30
|
|
31
|
-
// Don't prefix if value key is null (
|
31
|
+
// Don't prefix if value key is null (e.g. with shadow class)
|
32
32
|
$property-class-modifier: if($key, if($property-class == "" and $infix == "", "", "-") + $key, "");
|
33
33
|
|
34
34
|
@if map-get($utility, rfs) {
|
@@ -1,29 +1,29 @@
|
|
1
|
-
// stylelint-disable declaration-no-important
|
2
|
-
|
3
|
-
// Hide content visually while keeping it accessible to assistive technologies
|
4
|
-
//
|
5
|
-
// See: https://www.a11yproject.com/posts/2013-01-11-how-to-hide-content/
|
6
|
-
// See: https://kittygiraudel.com/2016/10/13/css-hide-and-seek/
|
7
|
-
|
8
|
-
@mixin visually-hidden() {
|
9
|
-
position: absolute !important;
|
10
|
-
width: 1px !important;
|
11
|
-
height: 1px !important;
|
12
|
-
padding: 0 !important;
|
13
|
-
margin: -1px !important; // Fix for https://github.com/twbs/bootstrap/issues/25686
|
14
|
-
overflow: hidden !important;
|
15
|
-
clip: rect(0, 0, 0, 0) !important;
|
16
|
-
white-space: nowrap !important;
|
17
|
-
border: 0 !important;
|
18
|
-
}
|
19
|
-
|
20
|
-
// Use to only display content when it's focused, or one of its child elements is focused
|
21
|
-
// (i.e. when focus is within the element/container that the class was applied to)
|
22
|
-
//
|
23
|
-
// Useful for "Skip to main content" links; see https://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
|
24
|
-
|
25
|
-
@mixin visually-hidden-focusable() {
|
26
|
-
&:not(:focus):not(:focus-within) {
|
27
|
-
@include visually-hidden();
|
28
|
-
}
|
29
|
-
}
|
1
|
+
// stylelint-disable declaration-no-important
|
2
|
+
|
3
|
+
// Hide content visually while keeping it accessible to assistive technologies
|
4
|
+
//
|
5
|
+
// See: https://www.a11yproject.com/posts/2013-01-11-how-to-hide-content/
|
6
|
+
// See: https://kittygiraudel.com/2016/10/13/css-hide-and-seek/
|
7
|
+
|
8
|
+
@mixin visually-hidden() {
|
9
|
+
position: absolute !important;
|
10
|
+
width: 1px !important;
|
11
|
+
height: 1px !important;
|
12
|
+
padding: 0 !important;
|
13
|
+
margin: -1px !important; // Fix for https://github.com/twbs/bootstrap/issues/25686
|
14
|
+
overflow: hidden !important;
|
15
|
+
clip: rect(0, 0, 0, 0) !important;
|
16
|
+
white-space: nowrap !important;
|
17
|
+
border: 0 !important;
|
18
|
+
}
|
19
|
+
|
20
|
+
// Use to only display content when it's focused, or one of its child elements is focused
|
21
|
+
// (i.e. when focus is within the element/container that the class was applied to)
|
22
|
+
//
|
23
|
+
// Useful for "Skip to main content" links; see https://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
|
24
|
+
|
25
|
+
@mixin visually-hidden-focusable() {
|
26
|
+
&:not(:focus):not(:focus-within) {
|
27
|
+
@include visually-hidden();
|
28
|
+
}
|
29
|
+
}
|
package/package.json
CHANGED
package/utilities/_api.scss
CHANGED
@@ -1,47 +1,47 @@
|
|
1
|
-
// Loop over each breakpoint
|
2
|
-
@each $breakpoint in map-keys($grid-breakpoints) {
|
3
|
-
|
4
|
-
// Generate media query if needed
|
5
|
-
@include media-breakpoint-up($breakpoint) {
|
6
|
-
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
7
|
-
|
8
|
-
// Loop over each utility property
|
9
|
-
@each $key, $utility in $utilities {
|
10
|
-
// The utility can be disabled with `false`, thus check if the utility is a map first
|
11
|
-
// Only proceed if responsive media queries are enabled or if it's the base media query
|
12
|
-
@if type-of($utility) == "map" and (map-get($utility, responsive) or $infix == "") {
|
13
|
-
@include generate-utility($utility, $infix);
|
14
|
-
}
|
15
|
-
}
|
16
|
-
}
|
17
|
-
}
|
18
|
-
|
19
|
-
// RFS rescaling
|
20
|
-
@media (min-width: $rfs-mq-value) {
|
21
|
-
@each $breakpoint in map-keys($grid-breakpoints) {
|
22
|
-
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
23
|
-
|
24
|
-
@if (map-get($grid-breakpoints, $breakpoint) < $rfs-breakpoint) {
|
25
|
-
// Loop over each utility property
|
26
|
-
@each $key, $utility in $utilities {
|
27
|
-
// The utility can be disabled with `false`, thus check if the utility is a map first
|
28
|
-
// Only proceed if responsive media queries are enabled or if it's the base media query
|
29
|
-
@if type-of($utility) == "map" and map-get($utility, rfs) and (map-get($utility, responsive) or $infix == "") {
|
30
|
-
@include generate-utility($utility, $infix, true);
|
31
|
-
}
|
32
|
-
}
|
33
|
-
}
|
34
|
-
}
|
35
|
-
}
|
36
|
-
|
37
|
-
|
38
|
-
// Print utilities
|
39
|
-
@media print {
|
40
|
-
@each $key, $utility in $utilities {
|
41
|
-
// The utility can be disabled with `false`, thus check if the utility is a map first
|
42
|
-
// Then check if the utility needs print styles
|
43
|
-
@if type-of($utility) == "map" and map-get($utility, print) == true {
|
44
|
-
@include generate-utility($utility, "-print");
|
45
|
-
}
|
46
|
-
}
|
47
|
-
}
|
1
|
+
// Loop over each breakpoint
|
2
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
3
|
+
|
4
|
+
// Generate media query if needed
|
5
|
+
@include media-breakpoint-up($breakpoint) {
|
6
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
7
|
+
|
8
|
+
// Loop over each utility property
|
9
|
+
@each $key, $utility in $utilities {
|
10
|
+
// The utility can be disabled with `false`, thus check if the utility is a map first
|
11
|
+
// Only proceed if responsive media queries are enabled or if it's the base media query
|
12
|
+
@if type-of($utility) == "map" and (map-get($utility, responsive) or $infix == "") {
|
13
|
+
@include generate-utility($utility, $infix);
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
// RFS rescaling
|
20
|
+
@media (min-width: $rfs-mq-value) {
|
21
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
22
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
23
|
+
|
24
|
+
@if (map-get($grid-breakpoints, $breakpoint) < $rfs-breakpoint) {
|
25
|
+
// Loop over each utility property
|
26
|
+
@each $key, $utility in $utilities {
|
27
|
+
// The utility can be disabled with `false`, thus check if the utility is a map first
|
28
|
+
// Only proceed if responsive media queries are enabled or if it's the base media query
|
29
|
+
@if type-of($utility) == "map" and map-get($utility, rfs) and (map-get($utility, responsive) or $infix == "") {
|
30
|
+
@include generate-utility($utility, $infix, true);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
// Print utilities
|
39
|
+
@media print {
|
40
|
+
@each $key, $utility in $utilities {
|
41
|
+
// The utility can be disabled with `false`, thus check if the utility is a map first
|
42
|
+
// Then check if the utility needs print styles
|
43
|
+
@if type-of($utility) == "map" and map-get($utility, print) == true {
|
44
|
+
@include generate-utility($utility, "-print");
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|