bulma-rails 0.9.4 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +74 -13
  3. data/app/assets/stylesheets/bulma.scss +4 -0
  4. data/app/assets/stylesheets/sass/_index.scss +10 -0
  5. data/app/assets/stylesheets/sass/base/_index.scss +6 -0
  6. data/app/assets/stylesheets/sass/base/animations.scss +15 -0
  7. data/app/assets/stylesheets/sass/base/generic.scss +239 -0
  8. data/app/assets/stylesheets/sass/base/minireset.scss +92 -0
  9. data/app/assets/stylesheets/sass/base/skeleton.scss +114 -0
  10. data/app/assets/stylesheets/sass/components/_index.scss +13 -0
  11. data/app/assets/stylesheets/sass/components/breadcrumb.scss +139 -0
  12. data/app/assets/stylesheets/sass/components/card.scss +162 -0
  13. data/app/assets/stylesheets/sass/components/dropdown.scss +188 -0
  14. data/app/assets/stylesheets/sass/components/menu.scss +165 -0
  15. data/app/assets/stylesheets/sass/components/message.scss +183 -0
  16. data/app/assets/stylesheets/sass/components/modal.scss +164 -0
  17. data/app/assets/stylesheets/sass/components/navbar.scss +799 -0
  18. data/app/assets/stylesheets/sass/components/pagination.scss +379 -0
  19. data/app/assets/stylesheets/sass/components/panel.scss +218 -0
  20. data/app/assets/stylesheets/sass/components/tabs.scss +273 -0
  21. data/app/assets/stylesheets/sass/elements/_index.scss +16 -0
  22. data/app/assets/stylesheets/sass/elements/block.scss +6 -0
  23. data/app/assets/stylesheets/sass/elements/box.scss +59 -0
  24. data/app/assets/stylesheets/sass/elements/button.scss +647 -0
  25. data/app/assets/stylesheets/sass/elements/content.scss +289 -0
  26. data/app/assets/stylesheets/sass/elements/delete.scss +6 -0
  27. data/app/assets/stylesheets/sass/elements/icon.scss +67 -0
  28. data/app/assets/stylesheets/sass/elements/image.scss +62 -0
  29. data/app/assets/stylesheets/sass/elements/loader.scss +15 -0
  30. data/app/assets/stylesheets/sass/elements/notification.scss +105 -0
  31. data/app/assets/stylesheets/sass/elements/progress.scss +115 -0
  32. data/app/assets/stylesheets/sass/elements/table.scss +261 -0
  33. data/app/assets/stylesheets/sass/elements/tag.scss +219 -0
  34. data/app/assets/stylesheets/sass/elements/title.scss +128 -0
  35. data/app/assets/stylesheets/sass/form/_index.scss +9 -0
  36. data/app/assets/stylesheets/sass/form/checkbox-radio.scss +36 -0
  37. data/app/assets/stylesheets/sass/form/file.scss +330 -0
  38. data/app/assets/stylesheets/sass/form/input-textarea.scss +113 -0
  39. data/app/assets/stylesheets/sass/form/select.scss +144 -0
  40. data/app/assets/stylesheets/sass/form/shared.scss +176 -0
  41. data/app/assets/stylesheets/sass/form/tools.scss +352 -0
  42. data/app/assets/stylesheets/sass/grid/_index.scss +5 -0
  43. data/app/assets/stylesheets/sass/grid/columns.scss +961 -0
  44. data/app/assets/stylesheets/sass/grid/grid.scss +209 -0
  45. data/app/assets/stylesheets/sass/helpers/_index.scss +15 -0
  46. data/app/assets/stylesheets/sass/helpers/aspect-ratio.scss +10 -0
  47. data/app/assets/stylesheets/sass/helpers/border.scss +15 -0
  48. data/app/assets/stylesheets/sass/helpers/color.scss +344 -0
  49. data/app/assets/stylesheets/sass/helpers/flexbox.scss +62 -0
  50. data/app/assets/stylesheets/sass/helpers/float.scss +28 -0
  51. data/app/assets/stylesheets/sass/helpers/gap.scss +24 -0
  52. data/app/assets/stylesheets/sass/helpers/other.scss +19 -0
  53. data/app/assets/stylesheets/sass/helpers/overflow.scss +21 -0
  54. data/app/assets/stylesheets/sass/helpers/position.scss +19 -0
  55. data/app/assets/stylesheets/sass/helpers/spacing.scss +64 -0
  56. data/app/assets/stylesheets/sass/helpers/typography.scss +168 -0
  57. data/app/assets/stylesheets/sass/helpers/visibility.scss +221 -0
  58. data/app/assets/stylesheets/sass/layout/_index.scss +9 -0
  59. data/app/assets/stylesheets/sass/layout/container.scss +59 -0
  60. data/app/assets/stylesheets/sass/layout/footer.scss +23 -0
  61. data/app/assets/stylesheets/sass/layout/hero.scss +270 -0
  62. data/app/assets/stylesheets/sass/layout/level.scss +107 -0
  63. data/app/assets/stylesheets/sass/layout/media.scss +106 -0
  64. data/app/assets/stylesheets/sass/layout/section.scss +38 -0
  65. data/app/assets/stylesheets/sass/themes/_index.scss +35 -0
  66. data/app/assets/stylesheets/sass/themes/dark.scss +56 -0
  67. data/app/assets/stylesheets/sass/themes/light.scss +146 -0
  68. data/app/assets/stylesheets/sass/themes/setup.scss +174 -0
  69. data/app/assets/stylesheets/sass/utilities/_index.scss +7 -0
  70. data/app/assets/stylesheets/sass/utilities/controls.scss +85 -0
  71. data/app/assets/stylesheets/sass/utilities/css-variables.scss +426 -0
  72. data/app/assets/stylesheets/sass/utilities/derived-variables.scss +112 -0
  73. data/app/assets/stylesheets/sass/utilities/extends.scss +34 -0
  74. data/app/assets/stylesheets/sass/utilities/functions.scss +258 -0
  75. data/app/assets/stylesheets/sass/utilities/initial-variables.scss +155 -0
  76. data/app/assets/stylesheets/sass/utilities/mixins.scss +460 -0
  77. data/bulma-rails.gemspec +4 -6
  78. metadata +83 -74
  79. data/app/assets/stylesheets/bulma.sass +0 -10
  80. data/app/assets/stylesheets/sass/base/_all.sass +0 -6
  81. data/app/assets/stylesheets/sass/base/animations.sass +0 -5
  82. data/app/assets/stylesheets/sass/base/generic.sass +0 -145
  83. data/app/assets/stylesheets/sass/base/helpers.sass +0 -1
  84. data/app/assets/stylesheets/sass/base/minireset.sass +0 -79
  85. data/app/assets/stylesheets/sass/components/_all.sass +0 -15
  86. data/app/assets/stylesheets/sass/components/breadcrumb.sass +0 -77
  87. data/app/assets/stylesheets/sass/components/card.sass +0 -103
  88. data/app/assets/stylesheets/sass/components/dropdown.sass +0 -83
  89. data/app/assets/stylesheets/sass/components/level.sass +0 -79
  90. data/app/assets/stylesheets/sass/components/media.sass +0 -59
  91. data/app/assets/stylesheets/sass/components/menu.sass +0 -59
  92. data/app/assets/stylesheets/sass/components/message.sass +0 -101
  93. data/app/assets/stylesheets/sass/components/modal.sass +0 -117
  94. data/app/assets/stylesheets/sass/components/navbar.sass +0 -446
  95. data/app/assets/stylesheets/sass/components/pagination.sass +0 -167
  96. data/app/assets/stylesheets/sass/components/panel.sass +0 -121
  97. data/app/assets/stylesheets/sass/components/tabs.sass +0 -176
  98. data/app/assets/stylesheets/sass/elements/_all.sass +0 -16
  99. data/app/assets/stylesheets/sass/elements/box.sass +0 -26
  100. data/app/assets/stylesheets/sass/elements/button.sass +0 -357
  101. data/app/assets/stylesheets/sass/elements/container.sass +0 -29
  102. data/app/assets/stylesheets/sass/elements/content.sass +0 -162
  103. data/app/assets/stylesheets/sass/elements/form.sass +0 -1
  104. data/app/assets/stylesheets/sass/elements/icon.sass +0 -46
  105. data/app/assets/stylesheets/sass/elements/image.sass +0 -73
  106. data/app/assets/stylesheets/sass/elements/notification.sass +0 -52
  107. data/app/assets/stylesheets/sass/elements/other.sass +0 -31
  108. data/app/assets/stylesheets/sass/elements/progress.sass +0 -73
  109. data/app/assets/stylesheets/sass/elements/table.sass +0 -134
  110. data/app/assets/stylesheets/sass/elements/tag.sass +0 -140
  111. data/app/assets/stylesheets/sass/elements/title.sass +0 -70
  112. data/app/assets/stylesheets/sass/form/_all.sass +0 -9
  113. data/app/assets/stylesheets/sass/form/checkbox-radio.sass +0 -22
  114. data/app/assets/stylesheets/sass/form/file.sass +0 -184
  115. data/app/assets/stylesheets/sass/form/input-textarea.sass +0 -66
  116. data/app/assets/stylesheets/sass/form/select.sass +0 -88
  117. data/app/assets/stylesheets/sass/form/shared.sass +0 -60
  118. data/app/assets/stylesheets/sass/form/tools.sass +0 -215
  119. data/app/assets/stylesheets/sass/grid/_all.sass +0 -5
  120. data/app/assets/stylesheets/sass/grid/columns.sass +0 -513
  121. data/app/assets/stylesheets/sass/grid/tiles.sass +0 -36
  122. data/app/assets/stylesheets/sass/helpers/_all.sass +0 -12
  123. data/app/assets/stylesheets/sass/helpers/color.sass +0 -39
  124. data/app/assets/stylesheets/sass/helpers/flexbox.sass +0 -35
  125. data/app/assets/stylesheets/sass/helpers/float.sass +0 -10
  126. data/app/assets/stylesheets/sass/helpers/other.sass +0 -14
  127. data/app/assets/stylesheets/sass/helpers/overflow.sass +0 -2
  128. data/app/assets/stylesheets/sass/helpers/position.sass +0 -7
  129. data/app/assets/stylesheets/sass/helpers/spacing.sass +0 -31
  130. data/app/assets/stylesheets/sass/helpers/typography.sass +0 -103
  131. data/app/assets/stylesheets/sass/helpers/visibility.sass +0 -122
  132. data/app/assets/stylesheets/sass/layout/_all.sass +0 -6
  133. data/app/assets/stylesheets/sass/layout/footer.sass +0 -11
  134. data/app/assets/stylesheets/sass/layout/hero.sass +0 -153
  135. data/app/assets/stylesheets/sass/layout/section.sass +0 -17
  136. data/app/assets/stylesheets/sass/utilities/_all.sass +0 -9
  137. data/app/assets/stylesheets/sass/utilities/animations.sass +0 -1
  138. data/app/assets/stylesheets/sass/utilities/controls.sass +0 -49
  139. data/app/assets/stylesheets/sass/utilities/derived-variables.sass +0 -114
  140. data/app/assets/stylesheets/sass/utilities/extends.sass +0 -25
  141. data/app/assets/stylesheets/sass/utilities/functions.sass +0 -135
  142. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +0 -79
  143. data/app/assets/stylesheets/sass/utilities/mixins.sass +0 -303
@@ -0,0 +1,961 @@
1
+ @use "sass:math";
2
+ @use "../utilities/css-variables" as cv;
3
+ @use "../utilities/derived-variables" as dv;
4
+ @use "../utilities/initial-variables" as iv;
5
+ @use "../utilities/extends";
6
+ @use "../utilities/mixins" as mx;
7
+
8
+ $column-gap: 0.75rem !default;
9
+
10
+ :root {
11
+ @include cv.register-vars(
12
+ (
13
+ "column-gap": #{$column-gap},
14
+ )
15
+ );
16
+ }
17
+
18
+ .#{iv.$class-prefix}column {
19
+ display: block;
20
+ flex-basis: 0;
21
+ flex-grow: 1;
22
+ flex-shrink: 1;
23
+ padding: cv.getVar("column-gap");
24
+
25
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
26
+ > &.#{iv.$class-prefix}is-narrow {
27
+ flex: none;
28
+ width: unset;
29
+ }
30
+
31
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
32
+ > &.#{iv.$class-prefix}is-full {
33
+ flex: none;
34
+ width: 100%;
35
+ }
36
+
37
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
38
+ > &.#{iv.$class-prefix}is-three-quarters {
39
+ flex: none;
40
+ width: 75%;
41
+ }
42
+
43
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
44
+ > &.#{iv.$class-prefix}is-two-thirds {
45
+ flex: none;
46
+ width: 66.6666%;
47
+ }
48
+
49
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
50
+ > &.#{iv.$class-prefix}is-half {
51
+ flex: none;
52
+ width: 50%;
53
+ }
54
+
55
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
56
+ > &.#{iv.$class-prefix}is-one-third {
57
+ flex: none;
58
+ width: 33.3333%;
59
+ }
60
+
61
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
62
+ > &.#{iv.$class-prefix}is-one-quarter {
63
+ flex: none;
64
+ width: 25%;
65
+ }
66
+
67
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
68
+ > &.#{iv.$class-prefix}is-one-fifth {
69
+ flex: none;
70
+ width: 20%;
71
+ }
72
+
73
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
74
+ > &.#{iv.$class-prefix}is-two-fifths {
75
+ flex: none;
76
+ width: 40%;
77
+ }
78
+
79
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
80
+ > &.#{iv.$class-prefix}is-three-fifths {
81
+ flex: none;
82
+ width: 60%;
83
+ }
84
+
85
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
86
+ > &.#{iv.$class-prefix}is-four-fifths {
87
+ flex: none;
88
+ width: 80%;
89
+ }
90
+
91
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
92
+ > &.#{iv.$class-prefix}is-offset-three-quarters {
93
+ margin-inline-start: 75%;
94
+ }
95
+
96
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
97
+ > &.#{iv.$class-prefix}is-offset-two-thirds {
98
+ margin-inline-start: 66.6666%;
99
+ }
100
+
101
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
102
+ > &.#{iv.$class-prefix}is-offset-half {
103
+ margin-inline-start: 50%;
104
+ }
105
+
106
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
107
+ > &.#{iv.$class-prefix}is-offset-one-third {
108
+ margin-inline-start: 0.3333%;
109
+ }
110
+
111
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
112
+ > &.#{iv.$class-prefix}is-offset-one-quarter {
113
+ margin-inline-start: 25%;
114
+ }
115
+
116
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
117
+ > &.#{iv.$class-prefix}is-offset-one-fifth {
118
+ margin-inline-start: 20%;
119
+ }
120
+
121
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
122
+ > &.#{iv.$class-prefix}is-offset-two-fifths {
123
+ margin-inline-start: 40%;
124
+ }
125
+
126
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
127
+ > &.#{iv.$class-prefix}is-offset-three-fifths {
128
+ margin-inline-start: 60%;
129
+ }
130
+
131
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
132
+ > &.#{iv.$class-prefix}is-offset-four-fifths {
133
+ margin-inline-start: 80%;
134
+ }
135
+
136
+ @for $i from 0 through 12 {
137
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
138
+ > &.#{iv.$class-prefix}is-#{$i} {
139
+ flex: none;
140
+ width: math.percentage(math.div($i, 12));
141
+ }
142
+
143
+ .#{iv.$class-prefix}columns.#{iv.$class-prefix}is-mobile
144
+ > &.#{iv.$class-prefix}is-offset-#{$i} {
145
+ margin-inline-start: math.percentage(math.div($i, 12));
146
+ }
147
+ }
148
+
149
+ @include mx.mobile {
150
+ &.#{iv.$class-prefix}is-narrow-mobile {
151
+ flex: none;
152
+ width: unset;
153
+ }
154
+
155
+ &.#{iv.$class-prefix}is-full-mobile {
156
+ flex: none;
157
+ width: 100%;
158
+ }
159
+
160
+ &.#{iv.$class-prefix}is-three-quarters-mobile {
161
+ flex: none;
162
+ width: 75%;
163
+ }
164
+
165
+ &.#{iv.$class-prefix}is-two-thirds-mobile {
166
+ flex: none;
167
+ width: 66.6666%;
168
+ }
169
+
170
+ &.#{iv.$class-prefix}is-half-mobile {
171
+ flex: none;
172
+ width: 50%;
173
+ }
174
+
175
+ &.#{iv.$class-prefix}is-one-third-mobile {
176
+ flex: none;
177
+ width: 33.3333%;
178
+ }
179
+
180
+ &.#{iv.$class-prefix}is-one-quarter-mobile {
181
+ flex: none;
182
+ width: 25%;
183
+ }
184
+
185
+ &.#{iv.$class-prefix}is-one-fifth-mobile {
186
+ flex: none;
187
+ width: 20%;
188
+ }
189
+
190
+ &.#{iv.$class-prefix}is-two-fifths-mobile {
191
+ flex: none;
192
+ width: 40%;
193
+ }
194
+
195
+ &.#{iv.$class-prefix}is-three-fifths-mobile {
196
+ flex: none;
197
+ width: 60%;
198
+ }
199
+
200
+ &.#{iv.$class-prefix}is-four-fifths-mobile {
201
+ flex: none;
202
+ width: 80%;
203
+ }
204
+
205
+ &.#{iv.$class-prefix}is-offset-three-quarters-mobile {
206
+ margin-inline-start: 75%;
207
+ }
208
+
209
+ &.#{iv.$class-prefix}is-offset-two-thirds-mobile {
210
+ margin-inline-start: 66.6666%;
211
+ }
212
+
213
+ &.#{iv.$class-prefix}is-offset-half-mobile {
214
+ margin-inline-start: 50%;
215
+ }
216
+
217
+ &.#{iv.$class-prefix}is-offset-one-third-mobile {
218
+ margin-inline-start: 0.3333%;
219
+ }
220
+
221
+ &.#{iv.$class-prefix}is-offset-one-quarter-mobile {
222
+ margin-inline-start: 25%;
223
+ }
224
+
225
+ &.#{iv.$class-prefix}is-offset-one-fifth-mobile {
226
+ margin-inline-start: 20%;
227
+ }
228
+
229
+ &.#{iv.$class-prefix}is-offset-two-fifths-mobile {
230
+ margin-inline-start: 40%;
231
+ }
232
+
233
+ &.#{iv.$class-prefix}is-offset-three-fifths-mobile {
234
+ margin-inline-start: 60%;
235
+ }
236
+
237
+ &.#{iv.$class-prefix}is-offset-four-fifths-mobile {
238
+ margin-inline-start: 80%;
239
+ }
240
+
241
+ @for $i from 0 through 12 {
242
+ &.#{iv.$class-prefix}is-#{$i}-mobile {
243
+ flex: none;
244
+ width: math.percentage(math.div($i, 12));
245
+ }
246
+
247
+ &.#{iv.$class-prefix}is-offset-#{$i}-mobile {
248
+ margin-inline-start: math.percentage(math.div($i, 12));
249
+ }
250
+ }
251
+ }
252
+
253
+ @include mx.tablet {
254
+ &.#{iv.$class-prefix}is-narrow,
255
+ &.#{iv.$class-prefix}is-narrow-tablet {
256
+ flex: none;
257
+ width: unset;
258
+ }
259
+
260
+ &.#{iv.$class-prefix}is-full,
261
+ &.#{iv.$class-prefix}is-full-tablet {
262
+ flex: none;
263
+ width: 100%;
264
+ }
265
+
266
+ &.#{iv.$class-prefix}is-three-quarters,
267
+ &.#{iv.$class-prefix}is-three-quarters-tablet {
268
+ flex: none;
269
+ width: 75%;
270
+ }
271
+
272
+ &.#{iv.$class-prefix}is-two-thirds,
273
+ &.#{iv.$class-prefix}is-two-thirds-tablet {
274
+ flex: none;
275
+ width: 66.6666%;
276
+ }
277
+
278
+ &.#{iv.$class-prefix}is-half,
279
+ &.#{iv.$class-prefix}is-half-tablet {
280
+ flex: none;
281
+ width: 50%;
282
+ }
283
+
284
+ &.#{iv.$class-prefix}is-one-third,
285
+ &.#{iv.$class-prefix}is-one-third-tablet {
286
+ flex: none;
287
+ width: 33.3333%;
288
+ }
289
+
290
+ &.#{iv.$class-prefix}is-one-quarter,
291
+ &.#{iv.$class-prefix}is-one-quarter-tablet {
292
+ flex: none;
293
+ width: 25%;
294
+ }
295
+
296
+ &.#{iv.$class-prefix}is-one-fifth,
297
+ &.#{iv.$class-prefix}is-one-fifth-tablet {
298
+ flex: none;
299
+ width: 20%;
300
+ }
301
+
302
+ &.#{iv.$class-prefix}is-two-fifths,
303
+ &.#{iv.$class-prefix}is-two-fifths-tablet {
304
+ flex: none;
305
+ width: 40%;
306
+ }
307
+
308
+ &.#{iv.$class-prefix}is-three-fifths,
309
+ &.#{iv.$class-prefix}is-three-fifths-tablet {
310
+ flex: none;
311
+ width: 60%;
312
+ }
313
+
314
+ &.#{iv.$class-prefix}is-four-fifths,
315
+ &.#{iv.$class-prefix}is-four-fifths-tablet {
316
+ flex: none;
317
+ width: 80%;
318
+ }
319
+
320
+ &.#{iv.$class-prefix}is-offset-three-quarters,
321
+ &.#{iv.$class-prefix}is-offset-three-quarters-tablet {
322
+ margin-inline-start: 75%;
323
+ }
324
+
325
+ &.#{iv.$class-prefix}is-offset-two-thirds,
326
+ &.#{iv.$class-prefix}is-offset-two-thirds-tablet {
327
+ margin-inline-start: 66.6666%;
328
+ }
329
+
330
+ &.#{iv.$class-prefix}is-offset-half,
331
+ &.#{iv.$class-prefix}is-offset-half-tablet {
332
+ margin-inline-start: 50%;
333
+ }
334
+
335
+ &.#{iv.$class-prefix}is-offset-one-third,
336
+ &.#{iv.$class-prefix}is-offset-one-third-tablet {
337
+ margin-inline-start: 0.3333%;
338
+ }
339
+
340
+ &.#{iv.$class-prefix}is-offset-one-quarter,
341
+ &.#{iv.$class-prefix}is-offset-one-quarter-tablet {
342
+ margin-inline-start: 25%;
343
+ }
344
+
345
+ &.#{iv.$class-prefix}is-offset-one-fifth,
346
+ &.#{iv.$class-prefix}is-offset-one-fifth-tablet {
347
+ margin-inline-start: 20%;
348
+ }
349
+
350
+ &.#{iv.$class-prefix}is-offset-two-fifths,
351
+ &.#{iv.$class-prefix}is-offset-two-fifths-tablet {
352
+ margin-inline-start: 40%;
353
+ }
354
+
355
+ &.#{iv.$class-prefix}is-offset-three-fifths,
356
+ &.#{iv.$class-prefix}is-offset-three-fifths-tablet {
357
+ margin-inline-start: 60%;
358
+ }
359
+
360
+ &.#{iv.$class-prefix}is-offset-four-fifths,
361
+ &.#{iv.$class-prefix}is-offset-four-fifths-tablet {
362
+ margin-inline-start: 80%;
363
+ }
364
+
365
+ @for $i from 0 through 12 {
366
+ &.#{iv.$class-prefix}is-#{$i},
367
+ &.#{iv.$class-prefix}is-#{$i}-tablet {
368
+ flex: none;
369
+ width: math.percentage(math.div($i, 12));
370
+ }
371
+
372
+ &.#{iv.$class-prefix}is-offset-#{$i},
373
+ &.#{iv.$class-prefix}is-offset-#{$i}-tablet {
374
+ margin-inline-start: math.percentage(math.div($i, 12));
375
+ }
376
+ }
377
+ }
378
+
379
+ @include mx.touch {
380
+ &.#{iv.$class-prefix}is-narrow-touch {
381
+ flex: none;
382
+ width: unset;
383
+ }
384
+
385
+ &.#{iv.$class-prefix}is-full-touch {
386
+ flex: none;
387
+ width: 100%;
388
+ }
389
+
390
+ &.#{iv.$class-prefix}is-three-quarters-touch {
391
+ flex: none;
392
+ width: 75%;
393
+ }
394
+
395
+ &.#{iv.$class-prefix}is-two-thirds-touch {
396
+ flex: none;
397
+ width: 66.6666%;
398
+ }
399
+
400
+ &.#{iv.$class-prefix}is-half-touch {
401
+ flex: none;
402
+ width: 50%;
403
+ }
404
+
405
+ &.#{iv.$class-prefix}is-one-third-touch {
406
+ flex: none;
407
+ width: 33.3333%;
408
+ }
409
+
410
+ &.#{iv.$class-prefix}is-one-quarter-touch {
411
+ flex: none;
412
+ width: 25%;
413
+ }
414
+
415
+ &.#{iv.$class-prefix}is-one-fifth-touch {
416
+ flex: none;
417
+ width: 20%;
418
+ }
419
+
420
+ &.#{iv.$class-prefix}is-two-fifths-touch {
421
+ flex: none;
422
+ width: 40%;
423
+ }
424
+
425
+ &.#{iv.$class-prefix}is-three-fifths-touch {
426
+ flex: none;
427
+ width: 60%;
428
+ }
429
+
430
+ &.#{iv.$class-prefix}is-four-fifths-touch {
431
+ flex: none;
432
+ width: 80%;
433
+ }
434
+
435
+ &.#{iv.$class-prefix}is-offset-three-quarters-touch {
436
+ margin-inline-start: 75%;
437
+ }
438
+
439
+ &.#{iv.$class-prefix}is-offset-two-thirds-touch {
440
+ margin-inline-start: 66.6666%;
441
+ }
442
+
443
+ &.#{iv.$class-prefix}is-offset-half-touch {
444
+ margin-inline-start: 50%;
445
+ }
446
+
447
+ &.#{iv.$class-prefix}is-offset-one-third-touch {
448
+ margin-inline-start: 0.3333%;
449
+ }
450
+
451
+ &.#{iv.$class-prefix}is-offset-one-quarter-touch {
452
+ margin-inline-start: 25%;
453
+ }
454
+
455
+ &.#{iv.$class-prefix}is-offset-one-fifth-touch {
456
+ margin-inline-start: 20%;
457
+ }
458
+
459
+ &.#{iv.$class-prefix}is-offset-two-fifths-touch {
460
+ margin-inline-start: 40%;
461
+ }
462
+
463
+ &.#{iv.$class-prefix}is-offset-three-fifths-touch {
464
+ margin-inline-start: 60%;
465
+ }
466
+
467
+ &.#{iv.$class-prefix}is-offset-four-fifths-touch {
468
+ margin-inline-start: 80%;
469
+ }
470
+
471
+ @for $i from 0 through 12 {
472
+ &.#{iv.$class-prefix}is-#{$i}-touch {
473
+ flex: none;
474
+ width: math.percentage(math.div($i, 12));
475
+ }
476
+
477
+ &.#{iv.$class-prefix}is-offset-#{$i}-touch {
478
+ margin-inline-start: math.percentage(math.div($i, 12));
479
+ }
480
+ }
481
+ }
482
+
483
+ @include mx.desktop {
484
+ &.#{iv.$class-prefix}is-narrow-desktop {
485
+ flex: none;
486
+ width: unset;
487
+ }
488
+
489
+ &.#{iv.$class-prefix}is-full-desktop {
490
+ flex: none;
491
+ width: 100%;
492
+ }
493
+
494
+ &.#{iv.$class-prefix}is-three-quarters-desktop {
495
+ flex: none;
496
+ width: 75%;
497
+ }
498
+
499
+ &.#{iv.$class-prefix}is-two-thirds-desktop {
500
+ flex: none;
501
+ width: 66.6666%;
502
+ }
503
+
504
+ &.#{iv.$class-prefix}is-half-desktop {
505
+ flex: none;
506
+ width: 50%;
507
+ }
508
+
509
+ &.#{iv.$class-prefix}is-one-third-desktop {
510
+ flex: none;
511
+ width: 33.3333%;
512
+ }
513
+
514
+ &.#{iv.$class-prefix}is-one-quarter-desktop {
515
+ flex: none;
516
+ width: 25%;
517
+ }
518
+
519
+ &.#{iv.$class-prefix}is-one-fifth-desktop {
520
+ flex: none;
521
+ width: 20%;
522
+ }
523
+
524
+ &.#{iv.$class-prefix}is-two-fifths-desktop {
525
+ flex: none;
526
+ width: 40%;
527
+ }
528
+
529
+ &.#{iv.$class-prefix}is-three-fifths-desktop {
530
+ flex: none;
531
+ width: 60%;
532
+ }
533
+
534
+ &.#{iv.$class-prefix}is-four-fifths-desktop {
535
+ flex: none;
536
+ width: 80%;
537
+ }
538
+
539
+ &.#{iv.$class-prefix}is-offset-three-quarters-desktop {
540
+ margin-inline-start: 75%;
541
+ }
542
+
543
+ &.#{iv.$class-prefix}is-offset-two-thirds-desktop {
544
+ margin-inline-start: 66.6666%;
545
+ }
546
+
547
+ &.#{iv.$class-prefix}is-offset-half-desktop {
548
+ margin-inline-start: 50%;
549
+ }
550
+
551
+ &.#{iv.$class-prefix}is-offset-one-third-desktop {
552
+ margin-inline-start: 0.3333%;
553
+ }
554
+
555
+ &.#{iv.$class-prefix}is-offset-one-quarter-desktop {
556
+ margin-inline-start: 25%;
557
+ }
558
+
559
+ &.#{iv.$class-prefix}is-offset-one-fifth-desktop {
560
+ margin-inline-start: 20%;
561
+ }
562
+
563
+ &.#{iv.$class-prefix}is-offset-two-fifths-desktop {
564
+ margin-inline-start: 40%;
565
+ }
566
+
567
+ &.#{iv.$class-prefix}is-offset-three-fifths-desktop {
568
+ margin-inline-start: 60%;
569
+ }
570
+
571
+ &.#{iv.$class-prefix}is-offset-four-fifths-desktop {
572
+ margin-inline-start: 80%;
573
+ }
574
+
575
+ @for $i from 0 through 12 {
576
+ &.#{iv.$class-prefix}is-#{$i}-desktop {
577
+ flex: none;
578
+ width: math.percentage(math.div($i, 12));
579
+ }
580
+
581
+ &.#{iv.$class-prefix}is-offset-#{$i}-desktop {
582
+ margin-inline-start: math.percentage(math.div($i, 12));
583
+ }
584
+ }
585
+ }
586
+
587
+ @include mx.widescreen {
588
+ &.#{iv.$class-prefix}is-narrow-widescreen {
589
+ flex: none;
590
+ width: unset;
591
+ }
592
+
593
+ &.#{iv.$class-prefix}is-full-widescreen {
594
+ flex: none;
595
+ width: 100%;
596
+ }
597
+
598
+ &.#{iv.$class-prefix}is-three-quarters-widescreen {
599
+ flex: none;
600
+ width: 75%;
601
+ }
602
+
603
+ &.#{iv.$class-prefix}is-two-thirds-widescreen {
604
+ flex: none;
605
+ width: 66.6666%;
606
+ }
607
+
608
+ &.#{iv.$class-prefix}is-half-widescreen {
609
+ flex: none;
610
+ width: 50%;
611
+ }
612
+
613
+ &.#{iv.$class-prefix}is-one-third-widescreen {
614
+ flex: none;
615
+ width: 33.3333%;
616
+ }
617
+
618
+ &.#{iv.$class-prefix}is-one-quarter-widescreen {
619
+ flex: none;
620
+ width: 25%;
621
+ }
622
+
623
+ &.#{iv.$class-prefix}is-one-fifth-widescreen {
624
+ flex: none;
625
+ width: 20%;
626
+ }
627
+
628
+ &.#{iv.$class-prefix}is-two-fifths-widescreen {
629
+ flex: none;
630
+ width: 40%;
631
+ }
632
+
633
+ &.#{iv.$class-prefix}is-three-fifths-widescreen {
634
+ flex: none;
635
+ width: 60%;
636
+ }
637
+
638
+ &.#{iv.$class-prefix}is-four-fifths-widescreen {
639
+ flex: none;
640
+ width: 80%;
641
+ }
642
+
643
+ &.#{iv.$class-prefix}is-offset-three-quarters-widescreen {
644
+ margin-inline-start: 75%;
645
+ }
646
+
647
+ &.#{iv.$class-prefix}is-offset-two-thirds-widescreen {
648
+ margin-inline-start: 66.6666%;
649
+ }
650
+
651
+ &.#{iv.$class-prefix}is-offset-half-widescreen {
652
+ margin-inline-start: 50%;
653
+ }
654
+
655
+ &.#{iv.$class-prefix}is-offset-one-third-widescreen {
656
+ margin-inline-start: 0.3333%;
657
+ }
658
+
659
+ &.#{iv.$class-prefix}is-offset-one-quarter-widescreen {
660
+ margin-inline-start: 25%;
661
+ }
662
+
663
+ &.#{iv.$class-prefix}is-offset-one-fifth-widescreen {
664
+ margin-inline-start: 20%;
665
+ }
666
+
667
+ &.#{iv.$class-prefix}is-offset-two-fifths-widescreen {
668
+ margin-inline-start: 40%;
669
+ }
670
+
671
+ &.#{iv.$class-prefix}is-offset-three-fifths-widescreen {
672
+ margin-inline-start: 60%;
673
+ }
674
+
675
+ &.#{iv.$class-prefix}is-offset-four-fifths-widescreen {
676
+ margin-inline-start: 80%;
677
+ }
678
+
679
+ @for $i from 0 through 12 {
680
+ &.#{iv.$class-prefix}is-#{$i}-widescreen {
681
+ flex: none;
682
+ width: math.percentage(math.div($i, 12));
683
+ }
684
+
685
+ &.#{iv.$class-prefix}is-offset-#{$i}-widescreen {
686
+ margin-inline-start: math.percentage(math.div($i, 12));
687
+ }
688
+ }
689
+ }
690
+
691
+ @include mx.fullhd {
692
+ &.#{iv.$class-prefix}is-narrow-fullhd {
693
+ flex: none;
694
+ width: unset;
695
+ }
696
+
697
+ &.#{iv.$class-prefix}is-full-fullhd {
698
+ flex: none;
699
+ width: 100%;
700
+ }
701
+
702
+ &.#{iv.$class-prefix}is-three-quarters-fullhd {
703
+ flex: none;
704
+ width: 75%;
705
+ }
706
+
707
+ &.#{iv.$class-prefix}is-two-thirds-fullhd {
708
+ flex: none;
709
+ width: 66.6666%;
710
+ }
711
+
712
+ &.#{iv.$class-prefix}is-half-fullhd {
713
+ flex: none;
714
+ width: 50%;
715
+ }
716
+
717
+ &.#{iv.$class-prefix}is-one-third-fullhd {
718
+ flex: none;
719
+ width: 33.3333%;
720
+ }
721
+
722
+ &.#{iv.$class-prefix}is-one-quarter-fullhd {
723
+ flex: none;
724
+ width: 25%;
725
+ }
726
+
727
+ &.#{iv.$class-prefix}is-one-fifth-fullhd {
728
+ flex: none;
729
+ width: 20%;
730
+ }
731
+
732
+ &.#{iv.$class-prefix}is-two-fifths-fullhd {
733
+ flex: none;
734
+ width: 40%;
735
+ }
736
+
737
+ &.#{iv.$class-prefix}is-three-fifths-fullhd {
738
+ flex: none;
739
+ width: 60%;
740
+ }
741
+
742
+ &.#{iv.$class-prefix}is-four-fifths-fullhd {
743
+ flex: none;
744
+ width: 80%;
745
+ }
746
+
747
+ &.#{iv.$class-prefix}is-offset-three-quarters-fullhd {
748
+ margin-inline-start: 75%;
749
+ }
750
+
751
+ &.#{iv.$class-prefix}is-offset-two-thirds-fullhd {
752
+ margin-inline-start: 66.6666%;
753
+ }
754
+
755
+ &.#{iv.$class-prefix}is-offset-half-fullhd {
756
+ margin-inline-start: 50%;
757
+ }
758
+
759
+ &.#{iv.$class-prefix}is-offset-one-third-fullhd {
760
+ margin-inline-start: 33.3333%;
761
+ }
762
+
763
+ &.#{iv.$class-prefix}is-offset-one-quarter-fullhd {
764
+ margin-inline-start: 25%;
765
+ }
766
+
767
+ &.#{iv.$class-prefix}is-offset-one-fifth-fullhd {
768
+ margin-inline-start: 20%;
769
+ }
770
+
771
+ &.#{iv.$class-prefix}is-offset-two-fifths-fullhd {
772
+ margin-inline-start: 40%;
773
+ }
774
+
775
+ &.#{iv.$class-prefix}is-offset-three-fifths-fullhd {
776
+ margin-inline-start: 60%;
777
+ }
778
+
779
+ &.#{iv.$class-prefix}is-offset-four-fifths-fullhd {
780
+ margin-inline-start: 80%;
781
+ }
782
+
783
+ @for $i from 0 through 12 {
784
+ &.#{iv.$class-prefix}is-#{$i}-fullhd {
785
+ flex: none;
786
+ width: math.percentage(math.div($i, 12));
787
+ }
788
+
789
+ &.#{iv.$class-prefix}is-offset-#{$i}-fullhd {
790
+ margin-inline-start: math.percentage(math.div($i, 12));
791
+ }
792
+ }
793
+ }
794
+ }
795
+
796
+ .#{iv.$class-prefix}columns {
797
+ margin-inline-start: calc(-1 * #{cv.getVar("column-gap")});
798
+ margin-inline-end: calc(-1 * #{cv.getVar("column-gap")});
799
+ margin-top: calc(-1 * #{cv.getVar("column-gap")});
800
+
801
+ &:last-child {
802
+ margin-bottom: calc(-1 * #{cv.getVar("column-gap")});
803
+ }
804
+
805
+ &:not(:last-child) {
806
+ margin-bottom: calc(
807
+ #{cv.getVar("block-spacing")} - #{cv.getVar("column-gap")}
808
+ );
809
+ }
810
+
811
+ // Modifiers
812
+ &.#{iv.$class-prefix}is-centered {
813
+ justify-content: center;
814
+ }
815
+
816
+ &.#{iv.$class-prefix}is-gapless {
817
+ margin-inline-start: 0;
818
+ margin-inline-end: 0;
819
+
820
+ margin-top: 0;
821
+
822
+ & > .#{iv.$class-prefix}column {
823
+ margin: 0;
824
+ padding: 0 !important;
825
+ }
826
+
827
+ &:not(:last-child) {
828
+ margin-bottom: 1.5rem;
829
+ }
830
+
831
+ &:last-child {
832
+ margin-bottom: 0;
833
+ }
834
+ }
835
+
836
+ &.#{iv.$class-prefix}is-mobile {
837
+ display: flex;
838
+ }
839
+
840
+ &.#{iv.$class-prefix}is-multiline {
841
+ flex-wrap: wrap;
842
+ }
843
+
844
+ &.#{iv.$class-prefix}is-vcentered {
845
+ align-items: center;
846
+ }
847
+
848
+ // Responsiveness
849
+ @include mx.tablet {
850
+ &:not(.#{iv.$class-prefix}is-desktop) {
851
+ display: flex;
852
+ }
853
+ }
854
+
855
+ @include mx.desktop {
856
+ // Modifiers
857
+ &.#{iv.$class-prefix}is-desktop {
858
+ display: flex;
859
+ }
860
+ }
861
+
862
+ @for $i from 0 through 8 {
863
+ &.#{iv.$class-prefix}is-#{$i} {
864
+ @include cv.register-vars(
865
+ (
866
+ "column-gap": #{$i * 0.25rem},
867
+ )
868
+ );
869
+ }
870
+
871
+ @include mx.mobile {
872
+ &.#{iv.$class-prefix}is-#{$i}-mobile {
873
+ @include cv.register-vars(
874
+ (
875
+ "column-gap": #{$i * 0.25rem},
876
+ )
877
+ );
878
+ }
879
+ }
880
+
881
+ @include mx.tablet {
882
+ &.#{iv.$class-prefix}is-#{$i}-tablet {
883
+ @include cv.register-vars(
884
+ (
885
+ "column-gap": #{$i * 0.25rem},
886
+ )
887
+ );
888
+ }
889
+ }
890
+
891
+ @include mx.tablet-only {
892
+ &.#{iv.$class-prefix}is-#{$i}-tablet-only {
893
+ @include cv.register-vars(
894
+ (
895
+ "column-gap": #{$i * 0.25rem},
896
+ )
897
+ );
898
+ }
899
+ }
900
+
901
+ @include mx.touch {
902
+ &.#{iv.$class-prefix}is-#{$i}-touch {
903
+ @include cv.register-vars(
904
+ (
905
+ "column-gap": #{$i * 0.25rem},
906
+ )
907
+ );
908
+ }
909
+ }
910
+
911
+ @include mx.desktop {
912
+ &.#{iv.$class-prefix}is-#{$i}-desktop {
913
+ @include cv.register-vars(
914
+ (
915
+ "column-gap": #{$i * 0.25rem},
916
+ )
917
+ );
918
+ }
919
+ }
920
+
921
+ @include mx.desktop-only {
922
+ &.#{iv.$class-prefix}is-#{$i}-desktop-only {
923
+ @include cv.register-vars(
924
+ (
925
+ "column-gap": #{$i * 0.25rem},
926
+ )
927
+ );
928
+ }
929
+ }
930
+
931
+ @include mx.widescreen {
932
+ &.#{iv.$class-prefix}is-#{$i}-widescreen {
933
+ @include cv.register-vars(
934
+ (
935
+ "column-gap": #{$i * 0.25rem},
936
+ )
937
+ );
938
+ }
939
+ }
940
+
941
+ @include mx.widescreen-only {
942
+ &.#{iv.$class-prefix}is-#{$i}-widescreen-only {
943
+ @include cv.register-vars(
944
+ (
945
+ "column-gap": #{$i * 0.25rem},
946
+ )
947
+ );
948
+ }
949
+ }
950
+
951
+ @include mx.fullhd {
952
+ &.#{iv.$class-prefix}is-#{$i}-fullhd {
953
+ @include cv.register-vars(
954
+ (
955
+ "column-gap": #{$i * 0.25rem},
956
+ )
957
+ );
958
+ }
959
+ }
960
+ }
961
+ }