bootstrap-scss 5.1.3 → 5.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +5 -5
  3. package/_accordion.scss +146 -118
  4. package/_alert.scss +71 -57
  5. package/_badge.scss +38 -29
  6. package/_breadcrumb.scss +40 -28
  7. package/_button-group.scss +142 -139
  8. package/_buttons.scss +186 -111
  9. package/_card.scss +234 -216
  10. package/_carousel.scss +229 -229
  11. package/_close.scss +40 -40
  12. package/_containers.scss +41 -41
  13. package/_dropdown.scss +248 -240
  14. package/_forms.scss +9 -9
  15. package/_functions.scss +302 -302
  16. package/_grid.scss +33 -33
  17. package/_helpers.scss +10 -9
  18. package/_list-group.scss +191 -174
  19. package/_maps.scss +54 -0
  20. package/_mixins.scss +43 -43
  21. package/_modal.scss +237 -209
  22. package/_nav.scss +172 -139
  23. package/_navbar.scss +276 -335
  24. package/_offcanvas.scss +143 -83
  25. package/_pagination.scss +109 -64
  26. package/_placeholders.scss +51 -51
  27. package/_popover.scss +196 -158
  28. package/_progress.scss +59 -48
  29. package/_reboot.scss +610 -625
  30. package/_root.scss +73 -54
  31. package/_spinners.scss +85 -69
  32. package/_tables.scss +164 -155
  33. package/_toasts.scss +70 -51
  34. package/_tooltip.scss +120 -115
  35. package/_transitions.scss +27 -27
  36. package/_type.scss +106 -104
  37. package/_utilities.scss +647 -630
  38. package/_variables.scss +1633 -1641
  39. package/bootstrap-grid.scss +64 -67
  40. package/bootstrap-reboot.scss +9 -13
  41. package/bootstrap-utilities.scss +15 -18
  42. package/bootstrap.scss +51 -53
  43. package/forms/_floating-labels.scss +74 -63
  44. package/forms/_form-check.scss +175 -152
  45. package/forms/_form-control.scss +194 -219
  46. package/forms/_form-range.scss +91 -91
  47. package/forms/_form-select.scss +71 -72
  48. package/forms/_form-text.scss +11 -11
  49. package/forms/_input-group.scss +129 -121
  50. package/forms/_labels.scss +36 -36
  51. package/forms/_validation.scss +12 -12
  52. package/helpers/_clearfix.scss +3 -3
  53. package/helpers/_color-bg.scss +10 -0
  54. package/helpers/_colored-links.scss +12 -12
  55. package/helpers/_position.scss +36 -30
  56. package/helpers/_ratio.scss +26 -26
  57. package/helpers/_stacks.scss +15 -15
  58. package/helpers/_stretched-link.scss +15 -15
  59. package/helpers/_text-truncation.scss +7 -7
  60. package/helpers/_visually-hidden.scss +8 -8
  61. package/helpers/_vr.scss +8 -8
  62. package/mixins/_alert.scss +15 -11
  63. package/mixins/_backdrop.scss +14 -14
  64. package/mixins/_banner.scss +9 -0
  65. package/mixins/_border-radius.scss +78 -78
  66. package/mixins/_box-shadow.scss +18 -18
  67. package/mixins/_breakpoints.scss +127 -127
  68. package/mixins/_buttons.scss +70 -133
  69. package/mixins/_caret.scss +64 -64
  70. package/mixins/_clearfix.scss +9 -9
  71. package/mixins/_color-scheme.scss +7 -7
  72. package/mixins/_container.scss +11 -9
  73. package/mixins/_forms.scss +152 -144
  74. package/mixins/_gradients.scss +47 -47
  75. package/mixins/_grid.scss +151 -151
  76. package/mixins/_image.scss +16 -16
  77. package/mixins/_list-group.scss +24 -24
  78. package/mixins/_lists.scss +7 -7
  79. package/mixins/_pagination.scss +10 -31
  80. package/mixins/_reset-text.scss +17 -17
  81. package/mixins/_table-variants.scss +24 -21
  82. package/mixins/_transition.scss +26 -26
  83. package/mixins/_utilities.scss +97 -89
  84. package/mixins/_visually-hidden.scss +29 -29
  85. package/package.json +1 -1
  86. package/utilities/_api.scss +47 -47
  87. package/vendor/_rfs.scss +354 -354
package/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2011-2021 Twitter, Inc.
4
- Copyright (c) 2011-2021 The Bootstrap Authors
3
+ Copyright (c) 2011-2022 Twitter, Inc.
4
+ Copyright (c) 2011-2022 The Bootstrap Authors
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  <p align="center">
6
6
  <a href="https://getbootstrap.com/">
7
- <img src="https://getbootstrap.com/docs/5.1/assets/brand/bootstrap-logo-shadow.png" alt="Bootstrap logo" width="200" height="165">
7
+ <img src="https://getbootstrap.com/docs/5.2/assets/brand/bootstrap-logo-shadow.png" alt="Bootstrap logo" width="200" height="165">
8
8
  </a>
9
9
  </p>
10
10
 
@@ -13,7 +13,7 @@
13
13
  <p align="center">
14
14
  Sleek, intuitive, and powerful front-end framework for faster and easier web development.
15
15
  <br>
16
- <a href="https://getbootstrap.com/docs/5.1/"><strong>Explore Bootstrap docs »</strong></a>
16
+ <a href="https://getbootstrap.com/docs/5.2/"><strong>Explore Bootstrap docs »</strong></a>
17
17
  <br>
18
18
  <br>
19
19
  <a href="https://github.com/twbs/bootstrap/issues/new?template=bug_report.md">Report bug</a>
@@ -43,7 +43,7 @@ Several quick start options are available:
43
43
  - Install with [npm](https://www.npmjs.com/): `npm install bootstrap-scss`
44
44
  - Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap-scss`
45
45
 
46
- Read the [Getting started page](https://getbootstrap.com/docs/5.1/getting-started/introduction/) for information on the framework contents, templates and examples, and more.
46
+ Read the [Getting started page](https://getbootstrap.com/docs/5.2/getting-started/introduction/) for information on the framework contents, templates and examples, and more.
47
47
 
48
48
  ## Status
49
49
 
@@ -77,8 +77,8 @@ 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.1.3
80
+ https://github.com/twbs/bootstrap/releases/tag/v5.2.0
81
81
 
82
82
  ## Copyright and license
83
83
 
84
- Code and documentation copyright 2011-2021 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors) and [Twitter, Inc.](https://twitter.com) Code released under the [MIT License](https://github.com/twbs/bootstrap/blob/main/LICENSE).
84
+ Code and documentation copyright 2011-2022 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors) and [Twitter, Inc.](https://twitter.com) Code released under the [MIT License](https://github.com/twbs/bootstrap/blob/main/LICENSE).
package/_accordion.scss CHANGED
@@ -1,118 +1,146 @@
1
- //
2
- // Base styles
3
- //
4
-
5
- .accordion-button {
6
- position: relative;
7
- display: flex;
8
- align-items: center;
9
- width: 100%;
10
- padding: $accordion-button-padding-y $accordion-button-padding-x;
11
- @include font-size($font-size-base);
12
- color: $accordion-button-color;
13
- text-align: left; // Reset button style
14
- background-color: $accordion-button-bg;
15
- border: 0;
16
- @include border-radius(0);
17
- overflow-anchor: none;
18
- @include transition($accordion-transition);
19
-
20
- &:not(.collapsed) {
21
- color: $accordion-button-active-color;
22
- background-color: $accordion-button-active-bg;
23
- box-shadow: inset 0 ($accordion-border-width * -1) 0 $accordion-border-color;
24
-
25
- &::after {
26
- background-image: escape-svg($accordion-button-active-icon);
27
- transform: $accordion-icon-transform;
28
- }
29
- }
30
-
31
- // Accordion icon
32
- &::after {
33
- flex-shrink: 0;
34
- width: $accordion-icon-width;
35
- height: $accordion-icon-width;
36
- margin-left: auto;
37
- content: "";
38
- background-image: escape-svg($accordion-button-icon);
39
- background-repeat: no-repeat;
40
- background-size: $accordion-icon-width;
41
- @include transition($accordion-icon-transition);
42
- }
43
-
44
- &:hover {
45
- z-index: 2;
46
- }
47
-
48
- &:focus {
49
- z-index: 3;
50
- border-color: $accordion-button-focus-border-color;
51
- outline: 0;
52
- box-shadow: $accordion-button-focus-box-shadow;
53
- }
54
- }
55
-
56
- .accordion-header {
57
- margin-bottom: 0;
58
- }
59
-
60
- .accordion-item {
61
- background-color: $accordion-bg;
62
- border: $accordion-border-width solid $accordion-border-color;
63
-
64
- &:first-of-type {
65
- @include border-top-radius($accordion-border-radius);
66
-
67
- .accordion-button {
68
- @include border-top-radius($accordion-inner-border-radius);
69
- }
70
- }
71
-
72
- &:not(:first-of-type) {
73
- border-top: 0;
74
- }
75
-
76
- // Only set a border-radius on the last item if the accordion is collapsed
77
- &:last-of-type {
78
- @include border-bottom-radius($accordion-border-radius);
79
-
80
- .accordion-button {
81
- &.collapsed {
82
- @include border-bottom-radius($accordion-inner-border-radius);
83
- }
84
- }
85
-
86
- .accordion-collapse {
87
- @include border-bottom-radius($accordion-border-radius);
88
- }
89
- }
90
- }
91
-
92
- .accordion-body {
93
- padding: $accordion-body-padding-y $accordion-body-padding-x;
94
- }
95
-
96
-
97
- // Flush accordion items
98
- //
99
- // Remove borders and border-radius to keep accordion items edge-to-edge.
100
-
101
- .accordion-flush {
102
- .accordion-collapse {
103
- border-width: 0;
104
- }
105
-
106
- .accordion-item {
107
- border-right: 0;
108
- border-left: 0;
109
- @include border-radius(0);
110
-
111
- &:first-child { border-top: 0; }
112
- &:last-child { border-bottom: 0; }
113
-
114
- .accordion-button {
115
- @include border-radius(0);
116
- }
117
- }
118
- }
1
+ //
2
+ // Base styles
3
+ //
4
+
5
+ .accordion {
6
+ // scss-docs-start accordion-css-vars
7
+ --#{$prefix}accordion-color: #{color-contrast($accordion-bg)};
8
+ --#{$prefix}accordion-bg: #{$accordion-bg};
9
+ --#{$prefix}accordion-transition: #{$accordion-transition};
10
+ --#{$prefix}accordion-border-color: #{$accordion-border-color};
11
+ --#{$prefix}accordion-border-width: #{$accordion-border-width};
12
+ --#{$prefix}accordion-border-radius: #{$accordion-border-radius};
13
+ --#{$prefix}accordion-inner-border-radius: #{$accordion-inner-border-radius};
14
+ --#{$prefix}accordion-btn-padding-x: #{$accordion-button-padding-x};
15
+ --#{$prefix}accordion-btn-padding-y: #{$accordion-button-padding-y};
16
+ --#{$prefix}accordion-btn-color: #{$accordion-color};
17
+ --#{$prefix}accordion-btn-bg: #{$accordion-button-bg};
18
+ --#{$prefix}accordion-btn-icon: #{escape-svg($accordion-button-icon)};
19
+ --#{$prefix}accordion-btn-icon-width: #{$accordion-icon-width};
20
+ --#{$prefix}accordion-btn-icon-transform: #{$accordion-icon-transform};
21
+ --#{$prefix}accordion-btn-icon-transition: #{$accordion-icon-transition};
22
+ --#{$prefix}accordion-btn-active-icon: #{escape-svg($accordion-button-active-icon)};
23
+ --#{$prefix}accordion-btn-focus-border-color: #{$accordion-button-focus-border-color};
24
+ --#{$prefix}accordion-btn-focus-box-shadow: #{$accordion-button-focus-box-shadow};
25
+ --#{$prefix}accordion-body-padding-x: #{$accordion-body-padding-x};
26
+ --#{$prefix}accordion-body-padding-y: #{$accordion-body-padding-y};
27
+ --#{$prefix}accordion-active-color: #{$accordion-button-active-color};
28
+ --#{$prefix}accordion-active-bg: #{$accordion-button-active-bg};
29
+ // scss-docs-end accordion-css-vars
30
+ }
31
+
32
+ .accordion-button {
33
+ position: relative;
34
+ display: flex;
35
+ align-items: center;
36
+ width: 100%;
37
+ padding: var(--#{$prefix}accordion-btn-padding-y) var(--#{$prefix}accordion-btn-padding-x);
38
+ @include font-size($font-size-base);
39
+ color: var(--#{$prefix}accordion-btn-color);
40
+ text-align: left; // Reset button style
41
+ background-color: var(--#{$prefix}accordion-btn-bg);
42
+ border: 0;
43
+ @include border-radius(0);
44
+ overflow-anchor: none;
45
+ @include transition(var(--#{$prefix}accordion-transition));
46
+
47
+ &:not(.collapsed) {
48
+ color: var(--#{$prefix}accordion-active-color);
49
+ background-color: var(--#{$prefix}accordion-active-bg);
50
+ box-shadow: inset 0 calc(var(--#{$prefix}accordion-border-width) * -1) 0 var(--#{$prefix}accordion-border-color); // stylelint-disable-line function-disallowed-list
51
+
52
+ &::after {
53
+ background-image: var(--#{$prefix}accordion-btn-active-icon);
54
+ transform: var(--#{$prefix}accordion-btn-icon-transform);
55
+ }
56
+ }
57
+
58
+ // Accordion icon
59
+ &::after {
60
+ flex-shrink: 0;
61
+ width: var(--#{$prefix}accordion-btn-icon-width);
62
+ height: var(--#{$prefix}accordion-btn-icon-width);
63
+ margin-left: auto;
64
+ content: "";
65
+ background-image: var(--#{$prefix}accordion-btn-icon);
66
+ background-repeat: no-repeat;
67
+ background-size: var(--#{$prefix}accordion-btn-icon-width);
68
+ @include transition(var(--#{$prefix}accordion-btn-icon-transition));
69
+ }
70
+
71
+ &:hover {
72
+ z-index: 2;
73
+ }
74
+
75
+ &:focus {
76
+ z-index: 3;
77
+ border-color: var(--#{$prefix}accordion-btn-focus-border-color);
78
+ outline: 0;
79
+ box-shadow: var(--#{$prefix}accordion-btn-focus-box-shadow);
80
+ }
81
+ }
82
+
83
+ .accordion-header {
84
+ margin-bottom: 0;
85
+ }
86
+
87
+ .accordion-item {
88
+ color: var(--#{$prefix}accordion-color);
89
+ background-color: var(--#{$prefix}accordion-bg);
90
+ border: var(--#{$prefix}accordion-border-width) solid var(--#{$prefix}accordion-border-color);
91
+
92
+ &:first-of-type {
93
+ @include border-top-radius(var(--#{$prefix}accordion-border-radius));
94
+
95
+ .accordion-button {
96
+ @include border-top-radius(var(--#{$prefix}accordion-inner-border-radius));
97
+ }
98
+ }
99
+
100
+ &:not(:first-of-type) {
101
+ border-top: 0;
102
+ }
103
+
104
+ // Only set a border-radius on the last item if the accordion is collapsed
105
+ &:last-of-type {
106
+ @include border-bottom-radius(var(--#{$prefix}accordion-border-radius));
107
+
108
+ .accordion-button {
109
+ &.collapsed {
110
+ @include border-bottom-radius(var(--#{$prefix}accordion-inner-border-radius));
111
+ }
112
+ }
113
+
114
+ .accordion-collapse {
115
+ @include border-bottom-radius(var(--#{$prefix}accordion-border-radius));
116
+ }
117
+ }
118
+ }
119
+
120
+ .accordion-body {
121
+ padding: var(--#{$prefix}accordion-body-padding-y) var(--#{$prefix}accordion-body-padding-x);
122
+ }
123
+
124
+
125
+ // Flush accordion items
126
+ //
127
+ // Remove borders and border-radius to keep accordion items edge-to-edge.
128
+
129
+ .accordion-flush {
130
+ .accordion-collapse {
131
+ border-width: 0;
132
+ }
133
+
134
+ .accordion-item {
135
+ border-right: 0;
136
+ border-left: 0;
137
+ @include border-radius(0);
138
+
139
+ &:first-child { border-top: 0; }
140
+ &:last-child { border-bottom: 0; }
141
+
142
+ .accordion-button {
143
+ @include border-radius(0);
144
+ }
145
+ }
146
+ }
package/_alert.scss CHANGED
@@ -1,57 +1,71 @@
1
- //
2
- // Base styles
3
- //
4
-
5
- .alert {
6
- position: relative;
7
- padding: $alert-padding-y $alert-padding-x;
8
- margin-bottom: $alert-margin-bottom;
9
- border: $alert-border-width solid transparent;
10
- @include border-radius($alert-border-radius);
11
- }
12
-
13
- // Headings for larger alerts
14
- .alert-heading {
15
- // Specified to prevent conflicts of changing $headings-color
16
- color: inherit;
17
- }
18
-
19
- // Provide class for links that match alerts
20
- .alert-link {
21
- font-weight: $alert-link-font-weight;
22
- }
23
-
24
-
25
- // Dismissible alerts
26
- //
27
- // Expand the right padding and account for the close button's positioning.
28
-
29
- .alert-dismissible {
30
- padding-right: $alert-dismissible-padding-r;
31
-
32
- // Adjust close link position
33
- .btn-close {
34
- position: absolute;
35
- top: 0;
36
- right: 0;
37
- z-index: $stretched-link-z-index + 1;
38
- padding: $alert-padding-y * 1.25 $alert-padding-x;
39
- }
40
- }
41
-
42
-
43
- // scss-docs-start alert-modifiers
44
- // Generate contextual modifier classes for colorizing the alert.
45
-
46
- @each $state, $value in $theme-colors {
47
- $alert-background: shift-color($value, $alert-bg-scale);
48
- $alert-border: shift-color($value, $alert-border-scale);
49
- $alert-color: shift-color($value, $alert-color-scale);
50
- @if (contrast-ratio($alert-background, $alert-color) < $min-contrast-ratio) {
51
- $alert-color: mix($value, color-contrast($alert-background), abs($alert-color-scale));
52
- }
53
- .alert-#{$state} {
54
- @include alert-variant($alert-background, $alert-border, $alert-color);
55
- }
56
- }
57
- // scss-docs-end alert-modifiers
1
+ //
2
+ // Base styles
3
+ //
4
+
5
+ .alert {
6
+ // scss-docs-start alert-css-vars
7
+ --#{$prefix}alert-bg: transparent;
8
+ --#{$prefix}alert-padding-x: #{$alert-padding-x};
9
+ --#{$prefix}alert-padding-y: #{$alert-padding-y};
10
+ --#{$prefix}alert-margin-bottom: #{$alert-margin-bottom};
11
+ --#{$prefix}alert-color: inherit;
12
+ --#{$prefix}alert-border-color: transparent;
13
+ --#{$prefix}alert-border: #{$alert-border-width} solid var(--#{$prefix}alert-border-color);
14
+ --#{$prefix}alert-border-radius: #{$alert-border-radius};
15
+ // scss-docs-end alert-css-vars
16
+
17
+ position: relative;
18
+ padding: var(--#{$prefix}alert-padding-y) var(--#{$prefix}alert-padding-x);
19
+ margin-bottom: var(--#{$prefix}alert-margin-bottom);
20
+ color: var(--#{$prefix}alert-color);
21
+ background-color: var(--#{$prefix}alert-bg);
22
+ border: var(--#{$prefix}alert-border);
23
+ @include border-radius(var(--#{$prefix}alert-border-radius));
24
+ }
25
+
26
+ // Headings for larger alerts
27
+ .alert-heading {
28
+ // Specified to prevent conflicts of changing $headings-color
29
+ color: inherit;
30
+ }
31
+
32
+ // Provide class for links that match alerts
33
+ .alert-link {
34
+ font-weight: $alert-link-font-weight;
35
+ }
36
+
37
+
38
+ // Dismissible alerts
39
+ //
40
+ // Expand the right padding and account for the close button's positioning.
41
+
42
+ .alert-dismissible {
43
+ padding-right: $alert-dismissible-padding-r;
44
+
45
+ // Adjust close link position
46
+ .btn-close {
47
+ position: absolute;
48
+ top: 0;
49
+ right: 0;
50
+ z-index: $stretched-link-z-index + 1;
51
+ padding: $alert-padding-y * 1.25 $alert-padding-x;
52
+ }
53
+ }
54
+
55
+
56
+ // scss-docs-start alert-modifiers
57
+ // Generate contextual modifier classes for colorizing the alert.
58
+
59
+ @each $state, $value in $theme-colors {
60
+ $alert-background: shift-color($value, $alert-bg-scale);
61
+ $alert-border: shift-color($value, $alert-border-scale);
62
+ $alert-color: shift-color($value, $alert-color-scale);
63
+
64
+ @if (contrast-ratio($alert-background, $alert-color) < $min-contrast-ratio) {
65
+ $alert-color: mix($value, color-contrast($alert-background), abs($alert-color-scale));
66
+ }
67
+ .alert-#{$state} {
68
+ @include alert-variant($alert-background, $alert-border, $alert-color);
69
+ }
70
+ }
71
+ // scss-docs-end alert-modifiers
package/_badge.scss CHANGED
@@ -1,29 +1,38 @@
1
- // Base class
2
- //
3
- // Requires one of the contextual, color modifier classes for `color` and
4
- // `background-color`.
5
-
6
- .badge {
7
- display: inline-block;
8
- padding: $badge-padding-y $badge-padding-x;
9
- @include font-size($badge-font-size);
10
- font-weight: $badge-font-weight;
11
- line-height: 1;
12
- color: $badge-color;
13
- text-align: center;
14
- white-space: nowrap;
15
- vertical-align: baseline;
16
- @include border-radius($badge-border-radius);
17
- @include gradient-bg();
18
-
19
- // Empty badges collapse automatically
20
- &:empty {
21
- display: none;
22
- }
23
- }
24
-
25
- // Quick fix for badges in buttons
26
- .btn .badge {
27
- position: relative;
28
- top: -1px;
29
- }
1
+ // Base class
2
+ //
3
+ // Requires one of the contextual, color modifier classes for `color` and
4
+ // `background-color`.
5
+
6
+ .badge {
7
+ // scss-docs-start badge-css-vars
8
+ --#{$prefix}badge-padding-x: #{$badge-padding-x};
9
+ --#{$prefix}badge-padding-y: #{$badge-padding-y};
10
+ @include rfs($badge-font-size, --#{$prefix}badge-font-size);
11
+ --#{$prefix}badge-font-weight: #{$badge-font-weight};
12
+ --#{$prefix}badge-color: #{$badge-color};
13
+ --#{$prefix}badge-border-radius: #{$badge-border-radius};
14
+ // scss-docs-end badge-css-vars
15
+
16
+ display: inline-block;
17
+ padding: var(--#{$prefix}badge-padding-y) var(--#{$prefix}badge-padding-x);
18
+ @include font-size(var(--#{$prefix}badge-font-size));
19
+ font-weight: var(--#{$prefix}badge-font-weight);
20
+ line-height: 1;
21
+ color: var(--#{$prefix}badge-color);
22
+ text-align: center;
23
+ white-space: nowrap;
24
+ vertical-align: baseline;
25
+ @include border-radius(var(--#{$prefix}badge-border-radius));
26
+ @include gradient-bg();
27
+
28
+ // Empty badges collapse automatically
29
+ &:empty {
30
+ display: none;
31
+ }
32
+ }
33
+
34
+ // Quick fix for badges in buttons
35
+ .btn .badge {
36
+ position: relative;
37
+ top: -1px;
38
+ }
package/_breadcrumb.scss CHANGED
@@ -1,28 +1,40 @@
1
- .breadcrumb {
2
- display: flex;
3
- flex-wrap: wrap;
4
- padding: $breadcrumb-padding-y $breadcrumb-padding-x;
5
- margin-bottom: $breadcrumb-margin-bottom;
6
- @include font-size($breadcrumb-font-size);
7
- list-style: none;
8
- background-color: $breadcrumb-bg;
9
- @include border-radius($breadcrumb-border-radius);
10
- }
11
-
12
- .breadcrumb-item {
13
- // The separator between breadcrumbs (by default, a forward-slash: "/")
14
- + .breadcrumb-item {
15
- padding-left: $breadcrumb-item-padding-x;
16
-
17
- &::before {
18
- float: left; // Suppress inline spacings and underlining of the separator
19
- padding-right: $breadcrumb-item-padding-x;
20
- color: $breadcrumb-divider-color;
21
- content: var(--#{$variable-prefix}breadcrumb-divider, escape-svg($breadcrumb-divider)) #{"/* rtl:"} var(--#{$variable-prefix}breadcrumb-divider, escape-svg($breadcrumb-divider-flipped)) #{"*/"};
22
- }
23
- }
24
-
25
- &.active {
26
- color: $breadcrumb-active-color;
27
- }
28
- }
1
+ .breadcrumb {
2
+ // scss-docs-start breadcrumb-css-vars
3
+ --#{$prefix}breadcrumb-padding-x: #{$breadcrumb-padding-x};
4
+ --#{$prefix}breadcrumb-padding-y: #{$breadcrumb-padding-y};
5
+ --#{$prefix}breadcrumb-margin-bottom: #{$breadcrumb-margin-bottom};
6
+ @include rfs($breadcrumb-font-size, --#{$prefix}breadcrumb-font-size);
7
+ --#{$prefix}breadcrumb-bg: #{$breadcrumb-bg};
8
+ --#{$prefix}breadcrumb-border-radius: #{$breadcrumb-border-radius};
9
+ --#{$prefix}breadcrumb-divider-color: #{$breadcrumb-divider-color};
10
+ --#{$prefix}breadcrumb-item-padding-x: #{$breadcrumb-item-padding-x};
11
+ --#{$prefix}breadcrumb-item-active-color: #{$breadcrumb-active-color};
12
+ // scss-docs-end breadcrumb-css-vars
13
+
14
+ display: flex;
15
+ flex-wrap: wrap;
16
+ padding: var(--#{$prefix}breadcrumb-padding-y) var(--#{$prefix}breadcrumb-padding-x);
17
+ margin-bottom: var(--#{$prefix}breadcrumb-margin-bottom);
18
+ @include font-size(var(--#{$prefix}breadcrumb-font-size));
19
+ list-style: none;
20
+ background-color: var(--#{$prefix}breadcrumb-bg);
21
+ @include border-radius(var(--#{$prefix}breadcrumb-border-radius));
22
+ }
23
+
24
+ .breadcrumb-item {
25
+ // The separator between breadcrumbs (by default, a forward-slash: "/")
26
+ + .breadcrumb-item {
27
+ padding-left: var(--#{$prefix}breadcrumb-item-padding-x);
28
+
29
+ &::before {
30
+ float: left; // Suppress inline spacings and underlining of the separator
31
+ padding-right: var(--#{$prefix}breadcrumb-item-padding-x);
32
+ color: var(--#{$prefix}breadcrumb-divider-color);
33
+ content: var(--#{$prefix}breadcrumb-divider, escape-svg($breadcrumb-divider)) #{"/* rtl:"} var(--#{$prefix}breadcrumb-divider, escape-svg($breadcrumb-divider-flipped)) #{"*/"};
34
+ }
35
+ }
36
+
37
+ &.active {
38
+ color: var(--#{$prefix}breadcrumb-item-active-color);
39
+ }
40
+ }