bootstrap 4.6.2 → 5.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +55 -0
  3. data/README.md +28 -5
  4. data/assets/javascripts/bootstrap/alert.js +50 -147
  5. data/assets/javascripts/bootstrap/base-component.js +83 -0
  6. data/assets/javascripts/bootstrap/button.js +40 -190
  7. data/assets/javascripts/bootstrap/carousel.js +282 -537
  8. data/assets/javascripts/bootstrap/collapse.js +166 -314
  9. data/assets/javascripts/bootstrap/dom/data.js +62 -0
  10. data/assets/javascripts/bootstrap/dom/event-handler.js +236 -0
  11. data/assets/javascripts/bootstrap/dom/manipulator.js +71 -0
  12. data/assets/javascripts/bootstrap/dom/selector-engine.js +103 -0
  13. data/assets/javascripts/bootstrap/dropdown.js +297 -455
  14. data/assets/javascripts/bootstrap/modal.js +223 -566
  15. data/assets/javascripts/bootstrap/offcanvas.js +245 -0
  16. data/assets/javascripts/bootstrap/popover.js +59 -208
  17. data/assets/javascripts/bootstrap/scrollspy.js +213 -276
  18. data/assets/javascripts/bootstrap/tab.js +222 -200
  19. data/assets/javascripts/bootstrap/toast.js +137 -206
  20. data/assets/javascripts/bootstrap/tooltip.js +403 -746
  21. data/assets/javascripts/bootstrap/util/backdrop.js +139 -0
  22. data/assets/javascripts/bootstrap/util/component-functions.js +41 -0
  23. data/assets/javascripts/bootstrap/util/config.js +67 -0
  24. data/assets/javascripts/bootstrap/util/focustrap.js +113 -0
  25. data/assets/javascripts/bootstrap/util/index.js +281 -0
  26. data/assets/javascripts/bootstrap/util/sanitizer.js +110 -0
  27. data/assets/javascripts/bootstrap/util/scrollbar.js +112 -0
  28. data/assets/javascripts/bootstrap/util/swipe.js +134 -0
  29. data/assets/javascripts/bootstrap/util/template-factory.js +150 -0
  30. data/assets/javascripts/bootstrap-global-this-define.js +6 -0
  31. data/assets/javascripts/bootstrap-global-this-undefine.js +2 -0
  32. data/assets/javascripts/bootstrap-sprockets.js +21 -5
  33. data/assets/javascripts/bootstrap.js +3623 -3485
  34. data/assets/javascripts/bootstrap.min.js +3 -3
  35. data/assets/stylesheets/_bootstrap-grid.scss +53 -21
  36. data/assets/stylesheets/_bootstrap-reboot.scss +5 -7
  37. data/assets/stylesheets/_bootstrap.scss +21 -13
  38. data/assets/stylesheets/bootstrap/_accordion.scss +158 -0
  39. data/assets/stylesheets/bootstrap/_alert.scss +32 -16
  40. data/assets/stylesheets/bootstrap/_badge.scss +15 -31
  41. data/assets/stylesheets/bootstrap/_breadcrumb.scss +22 -24
  42. data/assets/stylesheets/bootstrap/_button-group.scss +27 -48
  43. data/assets/stylesheets/bootstrap/_buttons.scss +136 -71
  44. data/assets/stylesheets/bootstrap/_card.scss +66 -113
  45. data/assets/stylesheets/bootstrap/_carousel.scss +78 -34
  46. data/assets/stylesheets/bootstrap/_close.scss +51 -28
  47. data/assets/stylesheets/bootstrap/_containers.scss +41 -0
  48. data/assets/stylesheets/bootstrap/_dropdown.scss +129 -71
  49. data/assets/stylesheets/bootstrap/_forms.scss +9 -347
  50. data/assets/stylesheets/bootstrap/_functions.scss +135 -23
  51. data/assets/stylesheets/bootstrap/_grid.scss +18 -52
  52. data/assets/stylesheets/bootstrap/_helpers.scss +12 -0
  53. data/assets/stylesheets/bootstrap/_list-group.scss +77 -34
  54. data/assets/stylesheets/bootstrap/_maps.scss +174 -0
  55. data/assets/stylesheets/bootstrap/_mixins.scss +10 -15
  56. data/assets/stylesheets/bootstrap/_modal.scss +107 -110
  57. data/assets/stylesheets/bootstrap/_nav.scss +99 -27
  58. data/assets/stylesheets/bootstrap/_navbar.scss +129 -172
  59. data/assets/stylesheets/bootstrap/_offcanvas.scss +146 -0
  60. data/assets/stylesheets/bootstrap/_pagination.scss +72 -37
  61. data/assets/stylesheets/bootstrap/_placeholders.scss +51 -0
  62. data/assets/stylesheets/bootstrap/_popover.scss +99 -73
  63. data/assets/stylesheets/bootstrap/_progress.scss +35 -14
  64. data/assets/stylesheets/bootstrap/_reboot.scss +318 -192
  65. data/assets/stylesheets/bootstrap/_root.scss +174 -9
  66. data/assets/stylesheets/bootstrap/_spinners.scss +43 -23
  67. data/assets/stylesheets/bootstrap/_tables.scss +101 -115
  68. data/assets/stylesheets/bootstrap/_toasts.scss +54 -27
  69. data/assets/stylesheets/bootstrap/_tooltip.scss +67 -63
  70. data/assets/stylesheets/bootstrap/_transitions.scss +3 -2
  71. data/assets/stylesheets/bootstrap/_type.scss +40 -59
  72. data/assets/stylesheets/bootstrap/_utilities.scss +806 -18
  73. data/assets/stylesheets/bootstrap/_variables-dark.scss +85 -0
  74. data/assets/stylesheets/bootstrap/_variables.scss +1202 -606
  75. data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +19 -0
  76. data/assets/stylesheets/bootstrap/forms/_floating-labels.scss +95 -0
  77. data/assets/stylesheets/bootstrap/forms/_form-check.scss +188 -0
  78. data/assets/stylesheets/bootstrap/forms/_form-control.scss +214 -0
  79. data/assets/stylesheets/bootstrap/forms/_form-range.scss +91 -0
  80. data/assets/stylesheets/bootstrap/forms/_form-select.scss +80 -0
  81. data/assets/stylesheets/bootstrap/forms/_form-text.scss +11 -0
  82. data/assets/stylesheets/bootstrap/forms/_input-group.scss +132 -0
  83. data/assets/stylesheets/bootstrap/forms/_labels.scss +36 -0
  84. data/assets/stylesheets/bootstrap/forms/_validation.scss +12 -0
  85. data/assets/stylesheets/bootstrap/helpers/_color-bg.scss +7 -0
  86. data/assets/stylesheets/bootstrap/helpers/_colored-links.scss +30 -0
  87. data/assets/stylesheets/bootstrap/helpers/_focus-ring.scss +5 -0
  88. data/assets/stylesheets/bootstrap/helpers/_icon-link.scss +25 -0
  89. data/assets/stylesheets/bootstrap/helpers/_position.scss +36 -0
  90. data/assets/stylesheets/bootstrap/helpers/_ratio.scss +26 -0
  91. data/assets/stylesheets/bootstrap/helpers/_stacks.scss +15 -0
  92. data/assets/stylesheets/bootstrap/helpers/_stretched-link.scss +15 -0
  93. data/assets/stylesheets/bootstrap/helpers/_text-truncation.scss +7 -0
  94. data/assets/stylesheets/bootstrap/helpers/_visually-hidden.scss +8 -0
  95. data/assets/stylesheets/bootstrap/helpers/_vr.scss +8 -0
  96. data/assets/stylesheets/bootstrap/mixins/_alert.scss +11 -6
  97. data/assets/stylesheets/bootstrap/mixins/_backdrop.scss +14 -0
  98. data/assets/stylesheets/bootstrap/mixins/_banner.scss +7 -0
  99. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +10 -8
  100. data/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +7 -9
  101. data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +20 -16
  102. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +60 -100
  103. data/assets/stylesheets/bootstrap/mixins/_caret.scss +34 -27
  104. data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +2 -0
  105. data/assets/stylesheets/bootstrap/mixins/_color-mode.scss +21 -0
  106. data/assets/stylesheets/bootstrap/mixins/_color-scheme.scss +7 -0
  107. data/assets/stylesheets/bootstrap/mixins/_container.scss +11 -0
  108. data/assets/stylesheets/bootstrap/mixins/_forms.scss +54 -96
  109. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +13 -11
  110. data/assets/stylesheets/bootstrap/mixins/_grid.scss +118 -36
  111. data/assets/stylesheets/bootstrap/mixins/_image.scss +1 -21
  112. data/assets/stylesheets/bootstrap/mixins/_list-group.scss +7 -2
  113. data/assets/stylesheets/bootstrap/mixins/_lists.scss +1 -1
  114. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +7 -19
  115. data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +2 -2
  116. data/assets/stylesheets/bootstrap/mixins/_table-variants.scss +24 -0
  117. data/assets/stylesheets/bootstrap/mixins/_transition.scss +1 -1
  118. data/assets/stylesheets/bootstrap/mixins/_utilities.scss +97 -0
  119. data/assets/stylesheets/bootstrap/mixins/_visually-hidden.scss +33 -0
  120. data/assets/stylesheets/bootstrap/utilities/_api.scss +47 -0
  121. data/assets/stylesheets/bootstrap/vendor/_rfs.scss +211 -91
  122. data/bootstrap.gemspec +3 -5
  123. data/lib/bootstrap/version.rb +2 -2
  124. data/tasks/updater/js.rb +17 -5
  125. data/tasks/updater/network.rb +2 -2
  126. data/tasks/updater/scss.rb +1 -1
  127. data/tasks/updater.rb +2 -2
  128. data/test/dummy_rails/app/assets/javascripts/application.js +4 -3
  129. data/test/dummy_rails/app/views/layouts/application.html.erb +3 -1
  130. data/test/dummy_rails/app/views/pages/root.html +89 -0
  131. data/test/dummy_rails/config/application.rb +0 -3
  132. data/test/gemfiles/rails_5_2.gemfile +8 -0
  133. data/test/gemfiles/rails_6_1.gemfile +7 -0
  134. data/test/gemfiles/rails_7_0.gemfile +7 -0
  135. data/test/test_helper.rb +3 -2
  136. metadata +78 -82
  137. data/.travis.yml +0 -31
  138. data/assets/javascripts/bootstrap/util.js +0 -189
  139. data/assets/stylesheets/bootstrap/_code.scss +0 -48
  140. data/assets/stylesheets/bootstrap/_custom-forms.scss +0 -526
  141. data/assets/stylesheets/bootstrap/_input-group.scss +0 -211
  142. data/assets/stylesheets/bootstrap/_jumbotron.scss +0 -17
  143. data/assets/stylesheets/bootstrap/_media.scss +0 -8
  144. data/assets/stylesheets/bootstrap/_print.scss +0 -132
  145. data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -23
  146. data/assets/stylesheets/bootstrap/mixins/_badge.scss +0 -17
  147. data/assets/stylesheets/bootstrap/mixins/_float.scss +0 -14
  148. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -80
  149. data/assets/stylesheets/bootstrap/mixins/_hover.scss +0 -37
  150. data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -11
  151. data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +0 -34
  152. data/assets/stylesheets/bootstrap/mixins/_size.scss +0 -7
  153. data/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -39
  154. data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -17
  155. data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +0 -11
  156. data/assets/stylesheets/bootstrap/mixins/_visibility.scss +0 -8
  157. data/assets/stylesheets/bootstrap/utilities/_align.scss +0 -8
  158. data/assets/stylesheets/bootstrap/utilities/_background.scss +0 -19
  159. data/assets/stylesheets/bootstrap/utilities/_borders.scss +0 -75
  160. data/assets/stylesheets/bootstrap/utilities/_display.scss +0 -26
  161. data/assets/stylesheets/bootstrap/utilities/_embed.scss +0 -39
  162. data/assets/stylesheets/bootstrap/utilities/_flex.scss +0 -51
  163. data/assets/stylesheets/bootstrap/utilities/_float.scss +0 -11
  164. data/assets/stylesheets/bootstrap/utilities/_interactions.scss +0 -5
  165. data/assets/stylesheets/bootstrap/utilities/_overflow.scss +0 -5
  166. data/assets/stylesheets/bootstrap/utilities/_position.scss +0 -32
  167. data/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +0 -11
  168. data/assets/stylesheets/bootstrap/utilities/_shadows.scss +0 -6
  169. data/assets/stylesheets/bootstrap/utilities/_sizing.scss +0 -20
  170. data/assets/stylesheets/bootstrap/utilities/_spacing.scss +0 -73
  171. data/assets/stylesheets/bootstrap/utilities/_stretched-link.scss +0 -19
  172. data/assets/stylesheets/bootstrap/utilities/_text.scss +0 -72
  173. data/assets/stylesheets/bootstrap/utilities/_visibility.scss +0 -13
  174. data/test/dummy_rails/app/views/pages/root.html.slim +0 -58
  175. /data/assets/stylesheets/bootstrap/{utilities → helpers}/_clearfix.scss +0 -0
@@ -1,18 +1,806 @@
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/interactions";
10
- @import "utilities/overflow";
11
- @import "utilities/position";
12
- @import "utilities/screenreaders";
13
- @import "utilities/shadows";
14
- @import "utilities/sizing";
15
- @import "utilities/spacing";
16
- @import "utilities/stretched-link";
17
- @import "utilities/text";
18
- @import "utilities/visibility";
1
+ // Utilities
2
+
3
+ $utilities: () !default;
4
+ // stylelint-disable-next-line scss/dollar-variable-default
5
+ $utilities: map-merge(
6
+ (
7
+ // scss-docs-start utils-vertical-align
8
+ "align": (
9
+ property: vertical-align,
10
+ class: align,
11
+ values: baseline top middle bottom text-bottom text-top
12
+ ),
13
+ // scss-docs-end utils-vertical-align
14
+ // scss-docs-start utils-float
15
+ "float": (
16
+ responsive: true,
17
+ property: float,
18
+ values: (
19
+ start: left,
20
+ end: right,
21
+ none: none,
22
+ )
23
+ ),
24
+ // scss-docs-end utils-float
25
+ // Object Fit utilities
26
+ // scss-docs-start utils-object-fit
27
+ "object-fit": (
28
+ responsive: true,
29
+ property: object-fit,
30
+ values: (
31
+ contain: contain,
32
+ cover: cover,
33
+ fill: fill,
34
+ scale: scale-down,
35
+ none: none,
36
+ )
37
+ ),
38
+ // scss-docs-end utils-object-fit
39
+ // Opacity utilities
40
+ // scss-docs-start utils-opacity
41
+ "opacity": (
42
+ property: opacity,
43
+ values: (
44
+ 0: 0,
45
+ 25: .25,
46
+ 50: .5,
47
+ 75: .75,
48
+ 100: 1,
49
+ )
50
+ ),
51
+ // scss-docs-end utils-opacity
52
+ // scss-docs-start utils-overflow
53
+ "overflow": (
54
+ property: overflow,
55
+ values: auto hidden visible scroll,
56
+ ),
57
+ "overflow-x": (
58
+ property: overflow-x,
59
+ values: auto hidden visible scroll,
60
+ ),
61
+ "overflow-y": (
62
+ property: overflow-y,
63
+ values: auto hidden visible scroll,
64
+ ),
65
+ // scss-docs-end utils-overflow
66
+ // scss-docs-start utils-display
67
+ "display": (
68
+ responsive: true,
69
+ print: true,
70
+ property: display,
71
+ class: d,
72
+ values: inline inline-block block grid inline-grid table table-row table-cell flex inline-flex none
73
+ ),
74
+ // scss-docs-end utils-display
75
+ // scss-docs-start utils-shadow
76
+ "shadow": (
77
+ property: box-shadow,
78
+ class: shadow,
79
+ values: (
80
+ null: $box-shadow,
81
+ sm: $box-shadow-sm,
82
+ lg: $box-shadow-lg,
83
+ none: none,
84
+ )
85
+ ),
86
+ // scss-docs-end utils-shadow
87
+ // scss-docs-start utils-focus-ring
88
+ "focus-ring": (
89
+ css-var: true,
90
+ css-variable-name: focus-ring-color,
91
+ class: focus-ring,
92
+ values: map-loop($theme-colors-rgb, rgba-css-var, "$key", "focus-ring")
93
+ ),
94
+ // scss-docs-end utils-focus-ring
95
+ // scss-docs-start utils-position
96
+ "position": (
97
+ property: position,
98
+ values: static relative absolute fixed sticky
99
+ ),
100
+ "top": (
101
+ property: top,
102
+ values: $position-values
103
+ ),
104
+ "bottom": (
105
+ property: bottom,
106
+ values: $position-values
107
+ ),
108
+ "start": (
109
+ property: left,
110
+ class: start,
111
+ values: $position-values
112
+ ),
113
+ "end": (
114
+ property: right,
115
+ class: end,
116
+ values: $position-values
117
+ ),
118
+ "translate-middle": (
119
+ property: transform,
120
+ class: translate-middle,
121
+ values: (
122
+ null: translate(-50%, -50%),
123
+ x: translateX(-50%),
124
+ y: translateY(-50%),
125
+ )
126
+ ),
127
+ // scss-docs-end utils-position
128
+ // scss-docs-start utils-borders
129
+ "border": (
130
+ property: border,
131
+ values: (
132
+ null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
133
+ 0: 0,
134
+ )
135
+ ),
136
+ "border-top": (
137
+ property: border-top,
138
+ values: (
139
+ null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
140
+ 0: 0,
141
+ )
142
+ ),
143
+ "border-end": (
144
+ property: border-right,
145
+ class: border-end,
146
+ values: (
147
+ null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
148
+ 0: 0,
149
+ )
150
+ ),
151
+ "border-bottom": (
152
+ property: border-bottom,
153
+ values: (
154
+ null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
155
+ 0: 0,
156
+ )
157
+ ),
158
+ "border-start": (
159
+ property: border-left,
160
+ class: border-start,
161
+ values: (
162
+ null: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color),
163
+ 0: 0,
164
+ )
165
+ ),
166
+ "border-color": (
167
+ property: border-color,
168
+ class: border,
169
+ local-vars: (
170
+ "border-opacity": 1
171
+ ),
172
+ values: $utilities-border-colors
173
+ ),
174
+ "subtle-border-color": (
175
+ property: border-color,
176
+ class: border,
177
+ values: $utilities-border-subtle
178
+ ),
179
+ "border-width": (
180
+ property: border-width,
181
+ class: border,
182
+ values: $border-widths
183
+ ),
184
+ "border-opacity": (
185
+ css-var: true,
186
+ class: border-opacity,
187
+ values: (
188
+ 10: .1,
189
+ 25: .25,
190
+ 50: .5,
191
+ 75: .75,
192
+ 100: 1
193
+ )
194
+ ),
195
+ // scss-docs-end utils-borders
196
+ // Sizing utilities
197
+ // scss-docs-start utils-sizing
198
+ "width": (
199
+ property: width,
200
+ class: w,
201
+ values: (
202
+ 25: 25%,
203
+ 50: 50%,
204
+ 75: 75%,
205
+ 100: 100%,
206
+ auto: auto
207
+ )
208
+ ),
209
+ "max-width": (
210
+ property: max-width,
211
+ class: mw,
212
+ values: (100: 100%)
213
+ ),
214
+ "viewport-width": (
215
+ property: width,
216
+ class: vw,
217
+ values: (100: 100vw)
218
+ ),
219
+ "min-viewport-width": (
220
+ property: min-width,
221
+ class: min-vw,
222
+ values: (100: 100vw)
223
+ ),
224
+ "height": (
225
+ property: height,
226
+ class: h,
227
+ values: (
228
+ 25: 25%,
229
+ 50: 50%,
230
+ 75: 75%,
231
+ 100: 100%,
232
+ auto: auto
233
+ )
234
+ ),
235
+ "max-height": (
236
+ property: max-height,
237
+ class: mh,
238
+ values: (100: 100%)
239
+ ),
240
+ "viewport-height": (
241
+ property: height,
242
+ class: vh,
243
+ values: (100: 100vh)
244
+ ),
245
+ "min-viewport-height": (
246
+ property: min-height,
247
+ class: min-vh,
248
+ values: (100: 100vh)
249
+ ),
250
+ // scss-docs-end utils-sizing
251
+ // Flex utilities
252
+ // scss-docs-start utils-flex
253
+ "flex": (
254
+ responsive: true,
255
+ property: flex,
256
+ values: (fill: 1 1 auto)
257
+ ),
258
+ "flex-direction": (
259
+ responsive: true,
260
+ property: flex-direction,
261
+ class: flex,
262
+ values: row column row-reverse column-reverse
263
+ ),
264
+ "flex-grow": (
265
+ responsive: true,
266
+ property: flex-grow,
267
+ class: flex,
268
+ values: (
269
+ grow-0: 0,
270
+ grow-1: 1,
271
+ )
272
+ ),
273
+ "flex-shrink": (
274
+ responsive: true,
275
+ property: flex-shrink,
276
+ class: flex,
277
+ values: (
278
+ shrink-0: 0,
279
+ shrink-1: 1,
280
+ )
281
+ ),
282
+ "flex-wrap": (
283
+ responsive: true,
284
+ property: flex-wrap,
285
+ class: flex,
286
+ values: wrap nowrap wrap-reverse
287
+ ),
288
+ "justify-content": (
289
+ responsive: true,
290
+ property: justify-content,
291
+ values: (
292
+ start: flex-start,
293
+ end: flex-end,
294
+ center: center,
295
+ between: space-between,
296
+ around: space-around,
297
+ evenly: space-evenly,
298
+ )
299
+ ),
300
+ "align-items": (
301
+ responsive: true,
302
+ property: align-items,
303
+ values: (
304
+ start: flex-start,
305
+ end: flex-end,
306
+ center: center,
307
+ baseline: baseline,
308
+ stretch: stretch,
309
+ )
310
+ ),
311
+ "align-content": (
312
+ responsive: true,
313
+ property: align-content,
314
+ values: (
315
+ start: flex-start,
316
+ end: flex-end,
317
+ center: center,
318
+ between: space-between,
319
+ around: space-around,
320
+ stretch: stretch,
321
+ )
322
+ ),
323
+ "align-self": (
324
+ responsive: true,
325
+ property: align-self,
326
+ values: (
327
+ auto: auto,
328
+ start: flex-start,
329
+ end: flex-end,
330
+ center: center,
331
+ baseline: baseline,
332
+ stretch: stretch,
333
+ )
334
+ ),
335
+ "order": (
336
+ responsive: true,
337
+ property: order,
338
+ values: (
339
+ first: -1,
340
+ 0: 0,
341
+ 1: 1,
342
+ 2: 2,
343
+ 3: 3,
344
+ 4: 4,
345
+ 5: 5,
346
+ last: 6,
347
+ ),
348
+ ),
349
+ // scss-docs-end utils-flex
350
+ // Margin utilities
351
+ // scss-docs-start utils-spacing
352
+ "margin": (
353
+ responsive: true,
354
+ property: margin,
355
+ class: m,
356
+ values: map-merge($spacers, (auto: auto))
357
+ ),
358
+ "margin-x": (
359
+ responsive: true,
360
+ property: margin-right margin-left,
361
+ class: mx,
362
+ values: map-merge($spacers, (auto: auto))
363
+ ),
364
+ "margin-y": (
365
+ responsive: true,
366
+ property: margin-top margin-bottom,
367
+ class: my,
368
+ values: map-merge($spacers, (auto: auto))
369
+ ),
370
+ "margin-top": (
371
+ responsive: true,
372
+ property: margin-top,
373
+ class: mt,
374
+ values: map-merge($spacers, (auto: auto))
375
+ ),
376
+ "margin-end": (
377
+ responsive: true,
378
+ property: margin-right,
379
+ class: me,
380
+ values: map-merge($spacers, (auto: auto))
381
+ ),
382
+ "margin-bottom": (
383
+ responsive: true,
384
+ property: margin-bottom,
385
+ class: mb,
386
+ values: map-merge($spacers, (auto: auto))
387
+ ),
388
+ "margin-start": (
389
+ responsive: true,
390
+ property: margin-left,
391
+ class: ms,
392
+ values: map-merge($spacers, (auto: auto))
393
+ ),
394
+ // Negative margin utilities
395
+ "negative-margin": (
396
+ responsive: true,
397
+ property: margin,
398
+ class: m,
399
+ values: $negative-spacers
400
+ ),
401
+ "negative-margin-x": (
402
+ responsive: true,
403
+ property: margin-right margin-left,
404
+ class: mx,
405
+ values: $negative-spacers
406
+ ),
407
+ "negative-margin-y": (
408
+ responsive: true,
409
+ property: margin-top margin-bottom,
410
+ class: my,
411
+ values: $negative-spacers
412
+ ),
413
+ "negative-margin-top": (
414
+ responsive: true,
415
+ property: margin-top,
416
+ class: mt,
417
+ values: $negative-spacers
418
+ ),
419
+ "negative-margin-end": (
420
+ responsive: true,
421
+ property: margin-right,
422
+ class: me,
423
+ values: $negative-spacers
424
+ ),
425
+ "negative-margin-bottom": (
426
+ responsive: true,
427
+ property: margin-bottom,
428
+ class: mb,
429
+ values: $negative-spacers
430
+ ),
431
+ "negative-margin-start": (
432
+ responsive: true,
433
+ property: margin-left,
434
+ class: ms,
435
+ values: $negative-spacers
436
+ ),
437
+ // Padding utilities
438
+ "padding": (
439
+ responsive: true,
440
+ property: padding,
441
+ class: p,
442
+ values: $spacers
443
+ ),
444
+ "padding-x": (
445
+ responsive: true,
446
+ property: padding-right padding-left,
447
+ class: px,
448
+ values: $spacers
449
+ ),
450
+ "padding-y": (
451
+ responsive: true,
452
+ property: padding-top padding-bottom,
453
+ class: py,
454
+ values: $spacers
455
+ ),
456
+ "padding-top": (
457
+ responsive: true,
458
+ property: padding-top,
459
+ class: pt,
460
+ values: $spacers
461
+ ),
462
+ "padding-end": (
463
+ responsive: true,
464
+ property: padding-right,
465
+ class: pe,
466
+ values: $spacers
467
+ ),
468
+ "padding-bottom": (
469
+ responsive: true,
470
+ property: padding-bottom,
471
+ class: pb,
472
+ values: $spacers
473
+ ),
474
+ "padding-start": (
475
+ responsive: true,
476
+ property: padding-left,
477
+ class: ps,
478
+ values: $spacers
479
+ ),
480
+ // Gap utility
481
+ "gap": (
482
+ responsive: true,
483
+ property: gap,
484
+ class: gap,
485
+ values: $spacers
486
+ ),
487
+ "row-gap": (
488
+ responsive: true,
489
+ property: row-gap,
490
+ class: row-gap,
491
+ values: $spacers
492
+ ),
493
+ "column-gap": (
494
+ responsive: true,
495
+ property: column-gap,
496
+ class: column-gap,
497
+ values: $spacers
498
+ ),
499
+ // scss-docs-end utils-spacing
500
+ // Text
501
+ // scss-docs-start utils-text
502
+ "font-family": (
503
+ property: font-family,
504
+ class: font,
505
+ values: (monospace: var(--#{$prefix}font-monospace))
506
+ ),
507
+ "font-size": (
508
+ rfs: true,
509
+ property: font-size,
510
+ class: fs,
511
+ values: $font-sizes
512
+ ),
513
+ "font-style": (
514
+ property: font-style,
515
+ class: fst,
516
+ values: italic normal
517
+ ),
518
+ "font-weight": (
519
+ property: font-weight,
520
+ class: fw,
521
+ values: (
522
+ lighter: $font-weight-lighter,
523
+ light: $font-weight-light,
524
+ normal: $font-weight-normal,
525
+ medium: $font-weight-medium,
526
+ semibold: $font-weight-semibold,
527
+ bold: $font-weight-bold,
528
+ bolder: $font-weight-bolder
529
+ )
530
+ ),
531
+ "line-height": (
532
+ property: line-height,
533
+ class: lh,
534
+ values: (
535
+ 1: 1,
536
+ sm: $line-height-sm,
537
+ base: $line-height-base,
538
+ lg: $line-height-lg,
539
+ )
540
+ ),
541
+ "text-align": (
542
+ responsive: true,
543
+ property: text-align,
544
+ class: text,
545
+ values: (
546
+ start: left,
547
+ end: right,
548
+ center: center,
549
+ )
550
+ ),
551
+ "text-decoration": (
552
+ property: text-decoration,
553
+ values: none underline line-through
554
+ ),
555
+ "text-transform": (
556
+ property: text-transform,
557
+ class: text,
558
+ values: lowercase uppercase capitalize
559
+ ),
560
+ "white-space": (
561
+ property: white-space,
562
+ class: text,
563
+ values: (
564
+ wrap: normal,
565
+ nowrap: nowrap,
566
+ )
567
+ ),
568
+ "word-wrap": (
569
+ property: word-wrap word-break,
570
+ class: text,
571
+ values: (break: break-word),
572
+ rtl: false
573
+ ),
574
+ // scss-docs-end utils-text
575
+ // scss-docs-start utils-color
576
+ "color": (
577
+ property: color,
578
+ class: text,
579
+ local-vars: (
580
+ "text-opacity": 1
581
+ ),
582
+ values: map-merge(
583
+ $utilities-text-colors,
584
+ (
585
+ "muted": var(--#{$prefix}secondary-color), // deprecated
586
+ "black-50": rgba($black, .5), // deprecated
587
+ "white-50": rgba($white, .5), // deprecated
588
+ "body-secondary": var(--#{$prefix}secondary-color),
589
+ "body-tertiary": var(--#{$prefix}tertiary-color),
590
+ "body-emphasis": var(--#{$prefix}emphasis-color),
591
+ "reset": inherit,
592
+ )
593
+ )
594
+ ),
595
+ "text-opacity": (
596
+ css-var: true,
597
+ class: text-opacity,
598
+ values: (
599
+ 25: .25,
600
+ 50: .5,
601
+ 75: .75,
602
+ 100: 1
603
+ )
604
+ ),
605
+ "text-color": (
606
+ property: color,
607
+ class: text,
608
+ values: $utilities-text-emphasis-colors
609
+ ),
610
+ // scss-docs-end utils-color
611
+ // scss-docs-start utils-links
612
+ "link-opacity": (
613
+ css-var: true,
614
+ class: link-opacity,
615
+ state: hover,
616
+ values: (
617
+ 10: .1,
618
+ 25: .25,
619
+ 50: .5,
620
+ 75: .75,
621
+ 100: 1
622
+ )
623
+ ),
624
+ "link-offset": (
625
+ property: text-underline-offset,
626
+ class: link-offset,
627
+ state: hover,
628
+ values: (
629
+ 1: .125em,
630
+ 2: .25em,
631
+ 3: .375em,
632
+ )
633
+ ),
634
+ "link-underline": (
635
+ property: text-decoration-color,
636
+ class: link-underline,
637
+ local-vars: (
638
+ "link-underline-opacity": 1
639
+ ),
640
+ values: map-merge(
641
+ $utilities-links-underline,
642
+ (
643
+ null: rgba(var(--#{$prefix}link-color-rgb), var(--#{$prefix}link-underline-opacity, 1)),
644
+ )
645
+ )
646
+ ),
647
+ "link-underline-opacity": (
648
+ css-var: true,
649
+ class: link-underline-opacity,
650
+ state: hover,
651
+ values: (
652
+ 0: 0,
653
+ 10: .1,
654
+ 25: .25,
655
+ 50: .5,
656
+ 75: .75,
657
+ 100: 1
658
+ ),
659
+ ),
660
+ // scss-docs-end utils-links
661
+ // scss-docs-start utils-bg-color
662
+ "background-color": (
663
+ property: background-color,
664
+ class: bg,
665
+ local-vars: (
666
+ "bg-opacity": 1
667
+ ),
668
+ values: map-merge(
669
+ $utilities-bg-colors,
670
+ (
671
+ "transparent": transparent,
672
+ "body-secondary": rgba(var(--#{$prefix}secondary-bg-rgb), var(--#{$prefix}bg-opacity)),
673
+ "body-tertiary": rgba(var(--#{$prefix}tertiary-bg-rgb), var(--#{$prefix}bg-opacity)),
674
+ )
675
+ )
676
+ ),
677
+ "bg-opacity": (
678
+ css-var: true,
679
+ class: bg-opacity,
680
+ values: (
681
+ 10: .1,
682
+ 25: .25,
683
+ 50: .5,
684
+ 75: .75,
685
+ 100: 1
686
+ )
687
+ ),
688
+ "subtle-background-color": (
689
+ property: background-color,
690
+ class: bg,
691
+ values: $utilities-bg-subtle
692
+ ),
693
+ // scss-docs-end utils-bg-color
694
+ "gradient": (
695
+ property: background-image,
696
+ class: bg,
697
+ values: (gradient: var(--#{$prefix}gradient))
698
+ ),
699
+ // scss-docs-start utils-interaction
700
+ "user-select": (
701
+ property: user-select,
702
+ values: all auto none
703
+ ),
704
+ "pointer-events": (
705
+ property: pointer-events,
706
+ class: pe,
707
+ values: none auto,
708
+ ),
709
+ // scss-docs-end utils-interaction
710
+ // scss-docs-start utils-border-radius
711
+ "rounded": (
712
+ property: border-radius,
713
+ class: rounded,
714
+ values: (
715
+ null: var(--#{$prefix}border-radius),
716
+ 0: 0,
717
+ 1: var(--#{$prefix}border-radius-sm),
718
+ 2: var(--#{$prefix}border-radius),
719
+ 3: var(--#{$prefix}border-radius-lg),
720
+ 4: var(--#{$prefix}border-radius-xl),
721
+ 5: var(--#{$prefix}border-radius-xxl),
722
+ circle: 50%,
723
+ pill: var(--#{$prefix}border-radius-pill)
724
+ )
725
+ ),
726
+ "rounded-top": (
727
+ property: border-top-left-radius border-top-right-radius,
728
+ class: rounded-top,
729
+ values: (
730
+ null: var(--#{$prefix}border-radius),
731
+ 0: 0,
732
+ 1: var(--#{$prefix}border-radius-sm),
733
+ 2: var(--#{$prefix}border-radius),
734
+ 3: var(--#{$prefix}border-radius-lg),
735
+ 4: var(--#{$prefix}border-radius-xl),
736
+ 5: var(--#{$prefix}border-radius-xxl),
737
+ circle: 50%,
738
+ pill: var(--#{$prefix}border-radius-pill)
739
+ )
740
+ ),
741
+ "rounded-end": (
742
+ property: border-top-right-radius border-bottom-right-radius,
743
+ class: rounded-end,
744
+ values: (
745
+ null: var(--#{$prefix}border-radius),
746
+ 0: 0,
747
+ 1: var(--#{$prefix}border-radius-sm),
748
+ 2: var(--#{$prefix}border-radius),
749
+ 3: var(--#{$prefix}border-radius-lg),
750
+ 4: var(--#{$prefix}border-radius-xl),
751
+ 5: var(--#{$prefix}border-radius-xxl),
752
+ circle: 50%,
753
+ pill: var(--#{$prefix}border-radius-pill)
754
+ )
755
+ ),
756
+ "rounded-bottom": (
757
+ property: border-bottom-right-radius border-bottom-left-radius,
758
+ class: rounded-bottom,
759
+ values: (
760
+ null: var(--#{$prefix}border-radius),
761
+ 0: 0,
762
+ 1: var(--#{$prefix}border-radius-sm),
763
+ 2: var(--#{$prefix}border-radius),
764
+ 3: var(--#{$prefix}border-radius-lg),
765
+ 4: var(--#{$prefix}border-radius-xl),
766
+ 5: var(--#{$prefix}border-radius-xxl),
767
+ circle: 50%,
768
+ pill: var(--#{$prefix}border-radius-pill)
769
+ )
770
+ ),
771
+ "rounded-start": (
772
+ property: border-bottom-left-radius border-top-left-radius,
773
+ class: rounded-start,
774
+ values: (
775
+ null: var(--#{$prefix}border-radius),
776
+ 0: 0,
777
+ 1: var(--#{$prefix}border-radius-sm),
778
+ 2: var(--#{$prefix}border-radius),
779
+ 3: var(--#{$prefix}border-radius-lg),
780
+ 4: var(--#{$prefix}border-radius-xl),
781
+ 5: var(--#{$prefix}border-radius-xxl),
782
+ circle: 50%,
783
+ pill: var(--#{$prefix}border-radius-pill)
784
+ )
785
+ ),
786
+ // scss-docs-end utils-border-radius
787
+ // scss-docs-start utils-visibility
788
+ "visibility": (
789
+ property: visibility,
790
+ class: null,
791
+ values: (
792
+ visible: visible,
793
+ invisible: hidden,
794
+ )
795
+ ),
796
+ // scss-docs-end utils-visibility
797
+ // scss-docs-start utils-zindex
798
+ "z-index": (
799
+ property: z-index,
800
+ class: z,
801
+ values: $zindex-levels,
802
+ )
803
+ // scss-docs-end utils-zindex
804
+ ),
805
+ $utilities
806
+ );