bootstrap 4.4.1 → 5.0.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.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +13 -2
  3. data/README.md +7 -4
  4. data/assets/javascripts/bootstrap-global-this-define.js +6 -0
  5. data/assets/javascripts/bootstrap-global-this-undefine.js +2 -0
  6. data/assets/javascripts/bootstrap-sprockets.js +15 -8
  7. data/assets/javascripts/bootstrap.js +3244 -2770
  8. data/assets/javascripts/bootstrap.min.js +4 -4
  9. data/assets/javascripts/bootstrap/alert.js +130 -124
  10. data/assets/javascripts/bootstrap/base-component.js +168 -0
  11. data/assets/javascripts/bootstrap/button.js +85 -179
  12. data/assets/javascripts/bootstrap/carousel.js +430 -405
  13. data/assets/javascripts/bootstrap/collapse.js +325 -264
  14. data/assets/javascripts/bootstrap/dom/data.js +68 -0
  15. data/assets/javascripts/bootstrap/dom/event-handler.js +315 -0
  16. data/assets/javascripts/bootstrap/dom/manipulator.js +88 -0
  17. data/assets/javascripts/bootstrap/dom/selector-engine.js +85 -0
  18. data/assets/javascripts/bootstrap/dropdown.js +464 -400
  19. data/assets/javascripts/bootstrap/modal.js +604 -464
  20. data/assets/javascripts/bootstrap/offcanvas.js +671 -0
  21. data/assets/javascripts/bootstrap/popover.js +119 -192
  22. data/assets/javascripts/bootstrap/scrollspy.js +250 -238
  23. data/assets/javascripts/bootstrap/tab.js +189 -151
  24. data/assets/javascripts/bootstrap/toast.js +215 -192
  25. data/assets/javascripts/bootstrap/tooltip.js +604 -544
  26. data/assets/stylesheets/_bootstrap-grid.scss +54 -18
  27. data/assets/stylesheets/_bootstrap-reboot.scss +7 -4
  28. data/assets/stylesheets/_bootstrap.scss +19 -11
  29. data/assets/stylesheets/bootstrap/_accordion.scss +118 -0
  30. data/assets/stylesheets/bootstrap/_alert.scss +15 -9
  31. data/assets/stylesheets/bootstrap/_badge.scss +2 -27
  32. data/assets/stylesheets/bootstrap/_breadcrumb.scss +4 -18
  33. data/assets/stylesheets/bootstrap/_button-group.scss +21 -45
  34. data/assets/stylesheets/bootstrap/_buttons.scss +27 -55
  35. data/assets/stylesheets/bootstrap/_card.scss +43 -106
  36. data/assets/stylesheets/bootstrap/_carousel.scss +65 -33
  37. data/assets/stylesheets/bootstrap/_close.scss +30 -31
  38. data/assets/stylesheets/bootstrap/_containers.scss +41 -0
  39. data/assets/stylesheets/bootstrap/_dropdown.scss +87 -38
  40. data/assets/stylesheets/bootstrap/_forms.scss +9 -338
  41. data/assets/stylesheets/bootstrap/_functions.scss +99 -28
  42. data/assets/stylesheets/bootstrap/_grid.scss +3 -50
  43. data/assets/stylesheets/bootstrap/_helpers.scss +7 -0
  44. data/assets/stylesheets/bootstrap/_list-group.scss +38 -22
  45. data/assets/stylesheets/bootstrap/_mixins.scss +8 -13
  46. data/assets/stylesheets/bootstrap/_modal.scss +45 -65
  47. data/assets/stylesheets/bootstrap/_nav.scss +28 -9
  48. data/assets/stylesheets/bootstrap/_navbar.scss +51 -69
  49. data/assets/stylesheets/bootstrap/_offcanvas.scss +77 -0
  50. data/assets/stylesheets/bootstrap/_pagination.scss +11 -20
  51. data/assets/stylesheets/bootstrap/_popover.scss +15 -27
  52. data/assets/stylesheets/bootstrap/_progress.scss +6 -4
  53. data/assets/stylesheets/bootstrap/_reboot.scss +339 -200
  54. data/assets/stylesheets/bootstrap/_root.scss +5 -9
  55. data/assets/stylesheets/bootstrap/_spinners.scss +21 -7
  56. data/assets/stylesheets/bootstrap/_tables.scss +80 -114
  57. data/assets/stylesheets/bootstrap/_toasts.scss +21 -14
  58. data/assets/stylesheets/bootstrap/_tooltip.scss +17 -17
  59. data/assets/stylesheets/bootstrap/_transitions.scss +2 -1
  60. data/assets/stylesheets/bootstrap/_type.scss +38 -59
  61. data/assets/stylesheets/bootstrap/_utilities.scss +594 -17
  62. data/assets/stylesheets/bootstrap/_variables.scss +810 -489
  63. data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +18 -0
  64. data/assets/stylesheets/bootstrap/forms/_floating-labels.scss +61 -0
  65. data/assets/stylesheets/bootstrap/forms/_form-check.scss +152 -0
  66. data/assets/stylesheets/bootstrap/forms/_form-control.scss +219 -0
  67. data/assets/stylesheets/bootstrap/forms/_form-range.scss +91 -0
  68. data/assets/stylesheets/bootstrap/forms/_form-select.scss +67 -0
  69. data/assets/stylesheets/bootstrap/forms/_form-text.scss +11 -0
  70. data/assets/stylesheets/bootstrap/forms/_input-group.scss +121 -0
  71. data/assets/stylesheets/bootstrap/forms/_labels.scss +36 -0
  72. data/assets/stylesheets/bootstrap/forms/_validation.scss +12 -0
  73. data/assets/stylesheets/bootstrap/{utilities → helpers}/_clearfix.scss +0 -0
  74. data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +12 -0
  75. data/assets/stylesheets/bootstrap/helpers/_position.scss +30 -0
  76. data/assets/stylesheets/bootstrap/helpers/_ratio.scss +26 -0
  77. data/assets/stylesheets/bootstrap/helpers/_stretched-link.scss +15 -0
  78. data/assets/stylesheets/bootstrap/helpers/_text-truncation.scss +7 -0
  79. data/assets/stylesheets/bootstrap/helpers/_visually-hidden.scss +8 -0
  80. data/assets/stylesheets/bootstrap/mixins/_alert.scss +3 -5
  81. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +37 -22
  82. data/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +7 -9
  83. data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +14 -10
  84. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +75 -52
  85. data/assets/stylesheets/bootstrap/mixins/_caret.scss +10 -8
  86. data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +2 -0
  87. data/assets/stylesheets/bootstrap/mixins/_color-scheme.scss +7 -0
  88. data/assets/stylesheets/bootstrap/mixins/_container.scss +9 -0
  89. data/assets/stylesheets/bootstrap/mixins/_forms.scss +42 -75
  90. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +13 -11
  91. data/assets/stylesheets/bootstrap/mixins/_grid.scss +90 -34
  92. data/assets/stylesheets/bootstrap/mixins/_image.scss +1 -21
  93. data/assets/stylesheets/bootstrap/mixins/_list-group.scss +5 -2
  94. data/assets/stylesheets/bootstrap/mixins/_lists.scss +1 -1
  95. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +17 -8
  96. data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +2 -2
  97. data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +21 -0
  98. data/assets/stylesheets/bootstrap/mixins/_transition.scss +18 -8
  99. data/assets/stylesheets/bootstrap/mixins/_utilities.scss +68 -0
  100. data/assets/stylesheets/bootstrap/mixins/_visually-hidden.scss +29 -0
  101. data/assets/stylesheets/bootstrap/utilities/_api.scss +47 -0
  102. data/assets/stylesheets/bootstrap/vendor/_rfs.scss +234 -126
  103. data/bootstrap.gemspec +1 -3
  104. data/lib/bootstrap/version.rb +2 -2
  105. data/tasks/updater/js.rb +20 -5
  106. data/tasks/updater/network.rb +8 -2
  107. data/test/dummy_rails/app/assets/javascripts/application.js +4 -3
  108. data/test/dummy_rails/app/views/layouts/application.html.erb +3 -1
  109. data/test/dummy_rails/app/views/pages/root.html +89 -0
  110. data/test/dummy_rails/config/application.rb +0 -3
  111. data/test/gemfiles/rails_6_0.gemfile +7 -0
  112. data/test/gemfiles/rails_6_1.gemfile +7 -0
  113. metadata +48 -73
  114. data/assets/javascripts/bootstrap/util.js +0 -188
  115. data/assets/stylesheets/bootstrap/_code.scss +0 -48
  116. data/assets/stylesheets/bootstrap/_custom-forms.scss +0 -521
  117. data/assets/stylesheets/bootstrap/_input-group.scss +0 -191
  118. data/assets/stylesheets/bootstrap/_jumbotron.scss +0 -17
  119. data/assets/stylesheets/bootstrap/_media.scss +0 -8
  120. data/assets/stylesheets/bootstrap/_print.scss +0 -141
  121. data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -22
  122. data/assets/stylesheets/bootstrap/mixins/_badge.scss +0 -17
  123. data/assets/stylesheets/bootstrap/mixins/_float.scss +0 -14
  124. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -71
  125. data/assets/stylesheets/bootstrap/mixins/_hover.scss +0 -37
  126. data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -11
  127. data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +0 -34
  128. data/assets/stylesheets/bootstrap/mixins/_size.scss +0 -7
  129. data/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -39
  130. data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -17
  131. data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +0 -11
  132. data/assets/stylesheets/bootstrap/mixins/_visibility.scss +0 -8
  133. data/assets/stylesheets/bootstrap/utilities/_align.scss +0 -8
  134. data/assets/stylesheets/bootstrap/utilities/_background.scss +0 -19
  135. data/assets/stylesheets/bootstrap/utilities/_borders.scss +0 -75
  136. data/assets/stylesheets/bootstrap/utilities/_display.scss +0 -26
  137. data/assets/stylesheets/bootstrap/utilities/_embed.scss +0 -39
  138. data/assets/stylesheets/bootstrap/utilities/_flex.scss +0 -51
  139. data/assets/stylesheets/bootstrap/utilities/_float.scss +0 -11
  140. data/assets/stylesheets/bootstrap/utilities/_overflow.scss +0 -5
  141. data/assets/stylesheets/bootstrap/utilities/_position.scss +0 -32
  142. data/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +0 -11
  143. data/assets/stylesheets/bootstrap/utilities/_shadows.scss +0 -6
  144. data/assets/stylesheets/bootstrap/utilities/_sizing.scss +0 -20
  145. data/assets/stylesheets/bootstrap/utilities/_spacing.scss +0 -73
  146. data/assets/stylesheets/bootstrap/utilities/_stretched-link.scss +0 -19
  147. data/assets/stylesheets/bootstrap/utilities/_text.scss +0 -72
  148. data/assets/stylesheets/bootstrap/utilities/_visibility.scss +0 -13
  149. data/test/dummy_rails/app/views/pages/root.html.slim +0 -58
@@ -6,6 +6,7 @@
6
6
  }
7
7
  }
8
8
 
9
+ // scss-docs-start collapse-classes
9
10
  .collapse {
10
11
  &:not(.show) {
11
12
  display: none;
@@ -13,8 +14,8 @@
13
14
  }
14
15
 
15
16
  .collapsing {
16
- position: relative;
17
17
  height: 0;
18
18
  overflow: hidden;
19
19
  @include transition($transition-collapse);
20
20
  }
21
+ // scss-docs-end collapse-classes
@@ -1,82 +1,56 @@
1
- // stylelint-disable declaration-no-important, selector-list-comma-newline-after
2
-
3
1
  //
4
2
  // Headings
5
3
  //
6
-
7
- h1, h2, h3, h4, h5, h6,
8
- .h1, .h2, .h3, .h4, .h5, .h6 {
9
- margin-bottom: $headings-margin-bottom;
10
- font-family: $headings-font-family;
11
- font-weight: $headings-font-weight;
12
- line-height: $headings-line-height;
13
- color: $headings-color;
4
+ .h1 {
5
+ @extend h1;
14
6
  }
15
7
 
16
- h1, .h1 { @include font-size($h1-font-size); }
17
- h2, .h2 { @include font-size($h2-font-size); }
18
- h3, .h3 { @include font-size($h3-font-size); }
19
- h4, .h4 { @include font-size($h4-font-size); }
20
- h5, .h5 { @include font-size($h5-font-size); }
21
- h6, .h6 { @include font-size($h6-font-size); }
22
-
23
- .lead {
24
- @include font-size($lead-font-size);
25
- font-weight: $lead-font-weight;
8
+ .h2 {
9
+ @extend h2;
26
10
  }
27
11
 
28
- // Type display classes
29
- .display-1 {
30
- @include font-size($display1-size);
31
- font-weight: $display1-weight;
32
- line-height: $display-line-height;
12
+ .h3 {
13
+ @extend h3;
33
14
  }
34
- .display-2 {
35
- @include font-size($display2-size);
36
- font-weight: $display2-weight;
37
- line-height: $display-line-height;
15
+
16
+ .h4 {
17
+ @extend h4;
38
18
  }
39
- .display-3 {
40
- @include font-size($display3-size);
41
- font-weight: $display3-weight;
42
- line-height: $display-line-height;
19
+
20
+ .h5 {
21
+ @extend h5;
43
22
  }
44
- .display-4 {
45
- @include font-size($display4-size);
46
- font-weight: $display4-weight;
47
- line-height: $display-line-height;
23
+
24
+ .h6 {
25
+ @extend h6;
48
26
  }
49
27
 
50
28
 
51
- //
52
- // Horizontal rules
53
- //
54
-
55
- hr {
56
- margin-top: $hr-margin-y;
57
- margin-bottom: $hr-margin-y;
58
- border: 0;
59
- border-top: $hr-border-width solid $hr-border-color;
29
+ .lead {
30
+ @include font-size($lead-font-size);
31
+ font-weight: $lead-font-weight;
60
32
  }
61
33
 
34
+ // Type display classes
35
+ @each $display, $font-size in $display-font-sizes {
36
+ .display-#{$display} {
37
+ @include font-size($font-size);
38
+ font-weight: $display-font-weight;
39
+ line-height: $display-line-height;
40
+ }
41
+ }
62
42
 
63
43
  //
64
44
  // Emphasis
65
45
  //
66
-
67
- small,
68
46
  .small {
69
- @include font-size($small-font-size);
70
- font-weight: $font-weight-normal;
47
+ @extend small;
71
48
  }
72
49
 
73
- mark,
74
50
  .mark {
75
- padding: $mark-padding;
76
- background-color: $mark-bg;
51
+ @extend mark;
77
52
  }
78
53
 
79
-
80
54
  //
81
55
  // Lists
82
56
  //
@@ -104,20 +78,25 @@ mark,
104
78
 
105
79
  // Builds on `abbr`
106
80
  .initialism {
107
- @include font-size(90%);
81
+ @include font-size($initialism-font-size);
108
82
  text-transform: uppercase;
109
83
  }
110
84
 
111
85
  // Blockquotes
112
86
  .blockquote {
113
- margin-bottom: $spacer;
87
+ margin-bottom: $blockquote-margin-y;
114
88
  @include font-size($blockquote-font-size);
89
+
90
+ > :last-child {
91
+ margin-bottom: 0;
92
+ }
115
93
  }
116
94
 
117
95
  .blockquote-footer {
118
- display: block;
119
- @include font-size($blockquote-small-font-size);
120
- color: $blockquote-small-color;
96
+ margin-top: -$blockquote-margin-y;
97
+ margin-bottom: $blockquote-margin-y;
98
+ @include font-size($blockquote-footer-font-size);
99
+ color: $blockquote-footer-color;
121
100
 
122
101
  &::before {
123
102
  content: "\2014\00A0"; // em dash, nbsp
@@ -1,17 +1,594 @@
1
- @import "utilities/align";
2
- @import "utilities/background";
3
- @import "utilities/borders";
4
- @import "utilities/clearfix";
5
- @import "utilities/display";
6
- @import "utilities/embed";
7
- @import "utilities/flex";
8
- @import "utilities/float";
9
- @import "utilities/overflow";
10
- @import "utilities/position";
11
- @import "utilities/screenreaders";
12
- @import "utilities/shadows";
13
- @import "utilities/sizing";
14
- @import "utilities/stretched-link";
15
- @import "utilities/spacing";
16
- @import "utilities/text";
17
- @import "utilities/visibility";
1
+ // stylelint-disable indentation
2
+
3
+ // Utilities
4
+
5
+ $utilities: () !default;
6
+ // stylelint-disable-next-line scss/dollar-variable-default
7
+ $utilities: map-merge(
8
+ (
9
+ // scss-docs-start utils-vertical-align
10
+ "align": (
11
+ property: vertical-align,
12
+ class: align,
13
+ values: baseline top middle bottom text-bottom text-top
14
+ ),
15
+ // scss-docs-end utils-vertical-align
16
+ // scss-docs-start utils-float
17
+ "float": (
18
+ responsive: true,
19
+ property: float,
20
+ values: (
21
+ start: left,
22
+ end: right,
23
+ none: none,
24
+ )
25
+ ),
26
+ // scss-docs-end utils-float
27
+ // scss-docs-start utils-overflow
28
+ "overflow": (
29
+ property: overflow,
30
+ values: auto hidden visible scroll,
31
+ ),
32
+ // scss-docs-end utils-overflow
33
+ // scss-docs-start utils-display
34
+ "display": (
35
+ responsive: true,
36
+ print: true,
37
+ property: display,
38
+ class: d,
39
+ values: inline inline-block block grid table table-row table-cell flex inline-flex none
40
+ ),
41
+ // scss-docs-end utils-display
42
+ // scss-docs-start utils-shadow
43
+ "shadow": (
44
+ property: box-shadow,
45
+ class: shadow,
46
+ values: (
47
+ null: $box-shadow,
48
+ sm: $box-shadow-sm,
49
+ lg: $box-shadow-lg,
50
+ none: none,
51
+ )
52
+ ),
53
+ // scss-docs-end utils-shadow
54
+ // scss-docs-start utils-position
55
+ "position": (
56
+ property: position,
57
+ values: static relative absolute fixed sticky
58
+ ),
59
+ "top": (
60
+ property: top,
61
+ values: $position-values
62
+ ),
63
+ "bottom": (
64
+ property: bottom,
65
+ values: $position-values
66
+ ),
67
+ "start": (
68
+ property: left,
69
+ class: start,
70
+ values: $position-values
71
+ ),
72
+ "end": (
73
+ property: right,
74
+ class: end,
75
+ values: $position-values
76
+ ),
77
+ "translate-middle": (
78
+ property: transform,
79
+ class: translate-middle,
80
+ values: (
81
+ null: translate(-50%, -50%),
82
+ x: translateX(-50%),
83
+ y: translateY(-50%),
84
+ )
85
+ ),
86
+ // scss-docs-end utils-position
87
+ // scss-docs-start utils-borders
88
+ "border": (
89
+ property: border,
90
+ values: (
91
+ null: $border-width solid $border-color,
92
+ 0: 0,
93
+ )
94
+ ),
95
+ "border-top": (
96
+ property: border-top,
97
+ values: (
98
+ null: $border-width solid $border-color,
99
+ 0: 0,
100
+ )
101
+ ),
102
+ "border-end": (
103
+ property: border-right,
104
+ class: border-end,
105
+ values: (
106
+ null: $border-width solid $border-color,
107
+ 0: 0,
108
+ )
109
+ ),
110
+ "border-bottom": (
111
+ property: border-bottom,
112
+ values: (
113
+ null: $border-width solid $border-color,
114
+ 0: 0,
115
+ )
116
+ ),
117
+ "border-start": (
118
+ property: border-left,
119
+ class: border-start,
120
+ values: (
121
+ null: $border-width solid $border-color,
122
+ 0: 0,
123
+ )
124
+ ),
125
+ "border-color": (
126
+ property: border-color,
127
+ class: border,
128
+ values: map-merge($theme-colors, ("white": $white))
129
+ ),
130
+ "border-width": (
131
+ property: border-width,
132
+ class: border,
133
+ values: $border-widths
134
+ ),
135
+ // scss-docs-end utils-borders
136
+ // Sizing utilities
137
+ // scss-docs-start utils-sizing
138
+ "width": (
139
+ property: width,
140
+ class: w,
141
+ values: (
142
+ 25: 25%,
143
+ 50: 50%,
144
+ 75: 75%,
145
+ 100: 100%,
146
+ auto: auto
147
+ )
148
+ ),
149
+ "max-width": (
150
+ property: max-width,
151
+ class: mw,
152
+ values: (100: 100%)
153
+ ),
154
+ "viewport-width": (
155
+ property: width,
156
+ class: vw,
157
+ values: (100: 100vw)
158
+ ),
159
+ "min-viewport-width": (
160
+ property: min-width,
161
+ class: min-vw,
162
+ values: (100: 100vw)
163
+ ),
164
+ "height": (
165
+ property: height,
166
+ class: h,
167
+ values: (
168
+ 25: 25%,
169
+ 50: 50%,
170
+ 75: 75%,
171
+ 100: 100%,
172
+ auto: auto
173
+ )
174
+ ),
175
+ "max-height": (
176
+ property: max-height,
177
+ class: mh,
178
+ values: (100: 100%)
179
+ ),
180
+ "viewport-height": (
181
+ property: height,
182
+ class: vh,
183
+ values: (100: 100vh)
184
+ ),
185
+ "min-viewport-height": (
186
+ property: min-height,
187
+ class: min-vh,
188
+ values: (100: 100vh)
189
+ ),
190
+ // scss-docs-end utils-sizing
191
+ // Flex utilities
192
+ // scss-docs-start utils-flex
193
+ "flex": (
194
+ responsive: true,
195
+ property: flex,
196
+ values: (fill: 1 1 auto)
197
+ ),
198
+ "flex-direction": (
199
+ responsive: true,
200
+ property: flex-direction,
201
+ class: flex,
202
+ values: row column row-reverse column-reverse
203
+ ),
204
+ "flex-grow": (
205
+ responsive: true,
206
+ property: flex-grow,
207
+ class: flex,
208
+ values: (
209
+ grow-0: 0,
210
+ grow-1: 1,
211
+ )
212
+ ),
213
+ "flex-shrink": (
214
+ responsive: true,
215
+ property: flex-shrink,
216
+ class: flex,
217
+ values: (
218
+ shrink-0: 0,
219
+ shrink-1: 1,
220
+ )
221
+ ),
222
+ "flex-wrap": (
223
+ responsive: true,
224
+ property: flex-wrap,
225
+ class: flex,
226
+ values: wrap nowrap wrap-reverse
227
+ ),
228
+ "gap": (
229
+ responsive: true,
230
+ property: gap,
231
+ class: gap,
232
+ values: $spacers
233
+ ),
234
+ "justify-content": (
235
+ responsive: true,
236
+ property: justify-content,
237
+ values: (
238
+ start: flex-start,
239
+ end: flex-end,
240
+ center: center,
241
+ between: space-between,
242
+ around: space-around,
243
+ evenly: space-evenly,
244
+ )
245
+ ),
246
+ "align-items": (
247
+ responsive: true,
248
+ property: align-items,
249
+ values: (
250
+ start: flex-start,
251
+ end: flex-end,
252
+ center: center,
253
+ baseline: baseline,
254
+ stretch: stretch,
255
+ )
256
+ ),
257
+ "align-content": (
258
+ responsive: true,
259
+ property: align-content,
260
+ values: (
261
+ start: flex-start,
262
+ end: flex-end,
263
+ center: center,
264
+ between: space-between,
265
+ around: space-around,
266
+ stretch: stretch,
267
+ )
268
+ ),
269
+ "align-self": (
270
+ responsive: true,
271
+ property: align-self,
272
+ values: (
273
+ auto: auto,
274
+ start: flex-start,
275
+ end: flex-end,
276
+ center: center,
277
+ baseline: baseline,
278
+ stretch: stretch,
279
+ )
280
+ ),
281
+ "order": (
282
+ responsive: true,
283
+ property: order,
284
+ values: (
285
+ first: -1,
286
+ 0: 0,
287
+ 1: 1,
288
+ 2: 2,
289
+ 3: 3,
290
+ 4: 4,
291
+ 5: 5,
292
+ last: 6,
293
+ ),
294
+ ),
295
+ // scss-docs-end utils-flex
296
+ // Margin utilities
297
+ // scss-docs-start utils-spacing
298
+ "margin": (
299
+ responsive: true,
300
+ property: margin,
301
+ class: m,
302
+ values: map-merge($spacers, (auto: auto))
303
+ ),
304
+ "margin-x": (
305
+ responsive: true,
306
+ property: margin-right margin-left,
307
+ class: mx,
308
+ values: map-merge($spacers, (auto: auto))
309
+ ),
310
+ "margin-y": (
311
+ responsive: true,
312
+ property: margin-top margin-bottom,
313
+ class: my,
314
+ values: map-merge($spacers, (auto: auto))
315
+ ),
316
+ "margin-top": (
317
+ responsive: true,
318
+ property: margin-top,
319
+ class: mt,
320
+ values: map-merge($spacers, (auto: auto))
321
+ ),
322
+ "margin-end": (
323
+ responsive: true,
324
+ property: margin-right,
325
+ class: me,
326
+ values: map-merge($spacers, (auto: auto))
327
+ ),
328
+ "margin-bottom": (
329
+ responsive: true,
330
+ property: margin-bottom,
331
+ class: mb,
332
+ values: map-merge($spacers, (auto: auto))
333
+ ),
334
+ "margin-start": (
335
+ responsive: true,
336
+ property: margin-left,
337
+ class: ms,
338
+ values: map-merge($spacers, (auto: auto))
339
+ ),
340
+ // Negative margin utilities
341
+ "negative-margin": (
342
+ responsive: true,
343
+ property: margin,
344
+ class: m,
345
+ values: $negative-spacers
346
+ ),
347
+ "negative-margin-x": (
348
+ responsive: true,
349
+ property: margin-right margin-left,
350
+ class: mx,
351
+ values: $negative-spacers
352
+ ),
353
+ "negative-margin-y": (
354
+ responsive: true,
355
+ property: margin-top margin-bottom,
356
+ class: my,
357
+ values: $negative-spacers
358
+ ),
359
+ "negative-margin-top": (
360
+ responsive: true,
361
+ property: margin-top,
362
+ class: mt,
363
+ values: $negative-spacers
364
+ ),
365
+ "negative-margin-end": (
366
+ responsive: true,
367
+ property: margin-right,
368
+ class: me,
369
+ values: $negative-spacers
370
+ ),
371
+ "negative-margin-bottom": (
372
+ responsive: true,
373
+ property: margin-bottom,
374
+ class: mb,
375
+ values: $negative-spacers
376
+ ),
377
+ "negative-margin-start": (
378
+ responsive: true,
379
+ property: margin-left,
380
+ class: ms,
381
+ values: $negative-spacers
382
+ ),
383
+ // Padding utilities
384
+ "padding": (
385
+ responsive: true,
386
+ property: padding,
387
+ class: p,
388
+ values: $spacers
389
+ ),
390
+ "padding-x": (
391
+ responsive: true,
392
+ property: padding-right padding-left,
393
+ class: px,
394
+ values: $spacers
395
+ ),
396
+ "padding-y": (
397
+ responsive: true,
398
+ property: padding-top padding-bottom,
399
+ class: py,
400
+ values: $spacers
401
+ ),
402
+ "padding-top": (
403
+ responsive: true,
404
+ property: padding-top,
405
+ class: pt,
406
+ values: $spacers
407
+ ),
408
+ "padding-end": (
409
+ responsive: true,
410
+ property: padding-right,
411
+ class: pe,
412
+ values: $spacers
413
+ ),
414
+ "padding-bottom": (
415
+ responsive: true,
416
+ property: padding-bottom,
417
+ class: pb,
418
+ values: $spacers
419
+ ),
420
+ "padding-start": (
421
+ responsive: true,
422
+ property: padding-left,
423
+ class: ps,
424
+ values: $spacers
425
+ ),
426
+ // scss-docs-end utils-spacing
427
+ // Text
428
+ // scss-docs-start utils-text
429
+ "font-family": (
430
+ property: font-family,
431
+ class: font,
432
+ values: (monospace: var(--#{$variable-prefix}font-monospace))
433
+ ),
434
+ "font-size": (
435
+ rfs: true,
436
+ property: font-size,
437
+ class: fs,
438
+ values: $font-sizes
439
+ ),
440
+ "font-style": (
441
+ property: font-style,
442
+ class: fst,
443
+ values: italic normal
444
+ ),
445
+ "font-weight": (
446
+ property: font-weight,
447
+ class: fw,
448
+ values: (
449
+ light: $font-weight-light,
450
+ lighter: $font-weight-lighter,
451
+ normal: $font-weight-normal,
452
+ bold: $font-weight-bold,
453
+ bolder: $font-weight-bolder
454
+ )
455
+ ),
456
+ "line-height": (
457
+ property: line-height,
458
+ class: lh,
459
+ values: (
460
+ 1: 1,
461
+ sm: $line-height-sm,
462
+ base: $line-height-base,
463
+ lg: $line-height-lg,
464
+ )
465
+ ),
466
+ "text-align": (
467
+ responsive: true,
468
+ property: text-align,
469
+ class: text,
470
+ values: (
471
+ start: left,
472
+ end: right,
473
+ center: center,
474
+ )
475
+ ),
476
+ "text-decoration": (
477
+ property: text-decoration,
478
+ values: none underline line-through
479
+ ),
480
+ "text-transform": (
481
+ property: text-transform,
482
+ class: text,
483
+ values: lowercase uppercase capitalize
484
+ ),
485
+ "white-space": (
486
+ property: white-space,
487
+ class: text,
488
+ values: (
489
+ wrap: normal,
490
+ nowrap: nowrap,
491
+ )
492
+ ),
493
+ "word-wrap": (
494
+ property: word-wrap word-break,
495
+ class: text,
496
+ values: (break: break-word),
497
+ rtl: false
498
+ ),
499
+ // scss-docs-end utils-text
500
+ // scss-docs-start utils-color
501
+ "color": (
502
+ property: color,
503
+ class: text,
504
+ values: map-merge(
505
+ $theme-colors,
506
+ (
507
+ "white": $white,
508
+ "body": $body-color,
509
+ "muted": $text-muted,
510
+ "black-50": rgba($black, .5),
511
+ "white-50": rgba($white, .5),
512
+ "reset": inherit,
513
+ )
514
+ )
515
+ ),
516
+ // scss-docs-end utils-color
517
+ // scss-docs-start utils-bg-color
518
+ "background-color": (
519
+ property: background-color,
520
+ class: bg,
521
+ values: map-merge(
522
+ $theme-colors,
523
+ (
524
+ "body": $body-bg,
525
+ "white": $white,
526
+ "transparent": transparent
527
+ )
528
+ )
529
+ ),
530
+ // scss-docs-end utils-bg-color
531
+ "gradient": (
532
+ property: background-image,
533
+ class: bg,
534
+ values: (gradient: var(--#{$variable-prefix}gradient))
535
+ ),
536
+ // scss-docs-start utils-interaction
537
+ "user-select": (
538
+ property: user-select,
539
+ values: all auto none
540
+ ),
541
+ "pointer-events": (
542
+ property: pointer-events,
543
+ class: pe,
544
+ values: none auto,
545
+ ),
546
+ // scss-docs-end utils-interaction
547
+ // scss-docs-start utils-border-radius
548
+ "rounded": (
549
+ property: border-radius,
550
+ class: rounded,
551
+ values: (
552
+ null: $border-radius,
553
+ 0: 0,
554
+ 1: $border-radius-sm,
555
+ 2: $border-radius,
556
+ 3: $border-radius-lg,
557
+ circle: 50%,
558
+ pill: $border-radius-pill
559
+ )
560
+ ),
561
+ "rounded-top": (
562
+ property: border-top-left-radius border-top-right-radius,
563
+ class: rounded-top,
564
+ values: (null: $border-radius)
565
+ ),
566
+ "rounded-end": (
567
+ property: border-top-right-radius border-bottom-right-radius,
568
+ class: rounded-end,
569
+ values: (null: $border-radius)
570
+ ),
571
+ "rounded-bottom": (
572
+ property: border-bottom-right-radius border-bottom-left-radius,
573
+ class: rounded-bottom,
574
+ values: (null: $border-radius)
575
+ ),
576
+ "rounded-start": (
577
+ property: border-bottom-left-radius border-top-left-radius,
578
+ class: rounded-start,
579
+ values: (null: $border-radius)
580
+ ),
581
+ // scss-docs-end utils-border-radius
582
+ // scss-docs-start utils-visibility
583
+ "visibility": (
584
+ property: visibility,
585
+ class: null,
586
+ values: (
587
+ visible: visible,
588
+ invisible: hidden,
589
+ )
590
+ )
591
+ // scss-docs-end utils-visibility
592
+ ),
593
+ $utilities
594
+ );