bulma-rails 0.9.4 → 1.0.4

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 (143) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +86 -13
  3. data/app/assets/stylesheets/bulma.scss +4 -0
  4. data/app/assets/stylesheets/bulma_sass/_index.scss +10 -0
  5. data/app/assets/stylesheets/bulma_sass/base/_index.scss +6 -0
  6. data/app/assets/stylesheets/bulma_sass/base/animations.scss +15 -0
  7. data/app/assets/stylesheets/bulma_sass/base/generic.scss +240 -0
  8. data/app/assets/stylesheets/bulma_sass/base/minireset.scss +92 -0
  9. data/app/assets/stylesheets/bulma_sass/base/skeleton.scss +114 -0
  10. data/app/assets/stylesheets/bulma_sass/components/_index.scss +13 -0
  11. data/app/assets/stylesheets/bulma_sass/components/breadcrumb.scss +139 -0
  12. data/app/assets/stylesheets/bulma_sass/components/card.scss +162 -0
  13. data/app/assets/stylesheets/bulma_sass/components/dropdown.scss +188 -0
  14. data/app/assets/stylesheets/bulma_sass/components/menu.scss +165 -0
  15. data/app/assets/stylesheets/bulma_sass/components/message.scss +183 -0
  16. data/app/assets/stylesheets/bulma_sass/components/modal.scss +164 -0
  17. data/app/assets/stylesheets/bulma_sass/components/navbar.scss +799 -0
  18. data/app/assets/stylesheets/bulma_sass/components/pagination.scss +379 -0
  19. data/app/assets/stylesheets/bulma_sass/components/panel.scss +218 -0
  20. data/app/assets/stylesheets/bulma_sass/components/tabs.scss +273 -0
  21. data/app/assets/stylesheets/bulma_sass/elements/_index.scss +16 -0
  22. data/app/assets/stylesheets/bulma_sass/elements/block.scss +6 -0
  23. data/app/assets/stylesheets/bulma_sass/elements/box.scss +59 -0
  24. data/app/assets/stylesheets/bulma_sass/elements/button.scss +659 -0
  25. data/app/assets/stylesheets/bulma_sass/elements/content.scss +289 -0
  26. data/app/assets/stylesheets/bulma_sass/elements/delete.scss +6 -0
  27. data/app/assets/stylesheets/bulma_sass/elements/icon.scss +67 -0
  28. data/app/assets/stylesheets/bulma_sass/elements/image.scss +64 -0
  29. data/app/assets/stylesheets/bulma_sass/elements/loader.scss +15 -0
  30. data/app/assets/stylesheets/bulma_sass/elements/notification.scss +105 -0
  31. data/app/assets/stylesheets/bulma_sass/elements/progress.scss +115 -0
  32. data/app/assets/stylesheets/bulma_sass/elements/table.scss +261 -0
  33. data/app/assets/stylesheets/bulma_sass/elements/tag.scss +219 -0
  34. data/app/assets/stylesheets/bulma_sass/elements/title.scss +130 -0
  35. data/app/assets/stylesheets/bulma_sass/form/_index.scss +9 -0
  36. data/app/assets/stylesheets/bulma_sass/form/checkbox-radio.scss +36 -0
  37. data/app/assets/stylesheets/bulma_sass/form/file.scss +330 -0
  38. data/app/assets/stylesheets/bulma_sass/form/input-textarea.scss +115 -0
  39. data/app/assets/stylesheets/bulma_sass/form/select.scss +144 -0
  40. data/app/assets/stylesheets/bulma_sass/form/shared.scss +178 -0
  41. data/app/assets/stylesheets/bulma_sass/form/tools.scss +352 -0
  42. data/app/assets/stylesheets/bulma_sass/grid/_index.scss +5 -0
  43. data/app/assets/stylesheets/bulma_sass/grid/columns.scss +961 -0
  44. data/app/assets/stylesheets/bulma_sass/grid/grid.scss +209 -0
  45. data/app/assets/stylesheets/bulma_sass/helpers/_index.scss +15 -0
  46. data/app/assets/stylesheets/bulma_sass/helpers/aspect-ratio.scss +12 -0
  47. data/app/assets/stylesheets/bulma_sass/helpers/border.scss +15 -0
  48. data/app/assets/stylesheets/bulma_sass/helpers/color.scss +344 -0
  49. data/app/assets/stylesheets/bulma_sass/helpers/flexbox.scss +62 -0
  50. data/app/assets/stylesheets/bulma_sass/helpers/float.scss +28 -0
  51. data/app/assets/stylesheets/bulma_sass/helpers/gap.scss +24 -0
  52. data/app/assets/stylesheets/bulma_sass/helpers/other.scss +19 -0
  53. data/app/assets/stylesheets/bulma_sass/helpers/overflow.scss +21 -0
  54. data/app/assets/stylesheets/bulma_sass/helpers/position.scss +19 -0
  55. data/app/assets/stylesheets/bulma_sass/helpers/spacing.scss +64 -0
  56. data/app/assets/stylesheets/bulma_sass/helpers/typography.scss +174 -0
  57. data/app/assets/stylesheets/bulma_sass/helpers/visibility.scss +221 -0
  58. data/app/assets/stylesheets/bulma_sass/layout/_index.scss +9 -0
  59. data/app/assets/stylesheets/bulma_sass/layout/container.scss +59 -0
  60. data/app/assets/stylesheets/bulma_sass/layout/footer.scss +23 -0
  61. data/app/assets/stylesheets/bulma_sass/layout/hero.scss +273 -0
  62. data/app/assets/stylesheets/bulma_sass/layout/level.scss +107 -0
  63. data/app/assets/stylesheets/bulma_sass/layout/media.scss +106 -0
  64. data/app/assets/stylesheets/bulma_sass/layout/section.scss +38 -0
  65. data/app/assets/stylesheets/bulma_sass/themes/_index.scss +36 -0
  66. data/app/assets/stylesheets/bulma_sass/themes/dark.scss +57 -0
  67. data/app/assets/stylesheets/bulma_sass/themes/light.scss +147 -0
  68. data/app/assets/stylesheets/bulma_sass/themes/setup.scss +174 -0
  69. data/app/assets/stylesheets/bulma_sass/utilities/_index.scss +7 -0
  70. data/app/assets/stylesheets/bulma_sass/utilities/controls.scss +85 -0
  71. data/app/assets/stylesheets/bulma_sass/utilities/css-variables.scss +502 -0
  72. data/app/assets/stylesheets/bulma_sass/utilities/derived-variables.scss +112 -0
  73. data/app/assets/stylesheets/bulma_sass/utilities/extends.scss +34 -0
  74. data/app/assets/stylesheets/bulma_sass/utilities/functions.scss +310 -0
  75. data/app/assets/stylesheets/bulma_sass/utilities/initial-variables.scss +157 -0
  76. data/app/assets/stylesheets/bulma_sass/utilities/mixins.scss +462 -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,462 @@
1
+ @use "sass:map";
2
+
3
+ @use "initial-variables" as iv;
4
+ @use "css-variables" as cv;
5
+
6
+ @mixin arrow($color: #{cv.getVar("arrow-color")}) {
7
+ border: 0.125em solid $color;
8
+ border-right: 0;
9
+ border-top: 0;
10
+ content: " ";
11
+ display: block;
12
+ height: 0.625em;
13
+ margin-top: -0.4375em;
14
+ pointer-events: none;
15
+ position: absolute;
16
+ top: 50%;
17
+ transform: rotate(-45deg);
18
+ transform-origin: center;
19
+ transition-duration: cv.getVar("duration");
20
+ transition-property: border-color;
21
+ width: 0.625em;
22
+ }
23
+
24
+ @mixin block($spacing: cv.getVar("block-spacing")) {
25
+ &:not(:last-child) {
26
+ margin-bottom: $spacing;
27
+ }
28
+ }
29
+
30
+ @mixin center($width, $height: 0) {
31
+ position: absolute;
32
+ @if $height != 0 {
33
+ left: calc(50% - (#{$width} * 0.5));
34
+ top: calc(50% - (#{$height} * 0.5));
35
+ } @else {
36
+ left: calc(50% - (#{$width} * 0.5));
37
+ top: calc(50% - (#{$width} * 0.5));
38
+ }
39
+ }
40
+
41
+ @mixin clearfix {
42
+ &::after {
43
+ clear: both;
44
+ content: " ";
45
+ display: table;
46
+ }
47
+ }
48
+
49
+ @mixin delete {
50
+ @include cv.register-vars(
51
+ (
52
+ "delete-dimensions": 1.25rem,
53
+ "delete-background-l": 0%,
54
+ "delete-background-alpha": 0.5,
55
+ "delete-color": #{cv.getVar("white")},
56
+ )
57
+ );
58
+
59
+ appearance: none;
60
+ background-color: hsla(
61
+ #{cv.getVar("scheme-h")},
62
+ #{cv.getVar("scheme-s")},
63
+ #{cv.getVar("delete-background-l")},
64
+ #{cv.getVar("delete-background-alpha")}
65
+ );
66
+ border: none;
67
+ border-radius: cv.getVar("radius-rounded");
68
+ cursor: pointer;
69
+ pointer-events: auto;
70
+ display: inline-flex;
71
+ flex-grow: 0;
72
+ flex-shrink: 0;
73
+ font-size: 1em;
74
+ height: cv.getVar("delete-dimensions");
75
+ max-height: cv.getVar("delete-dimensions");
76
+ max-width: cv.getVar("delete-dimensions");
77
+ min-height: cv.getVar("delete-dimensions");
78
+ min-width: cv.getVar("delete-dimensions");
79
+ outline: none;
80
+ position: relative;
81
+ vertical-align: top;
82
+ width: cv.getVar("delete-dimensions");
83
+
84
+ &::before,
85
+ &::after {
86
+ background-color: cv.getVar("delete-color");
87
+ content: "";
88
+ display: block;
89
+ left: 50%;
90
+ position: absolute;
91
+ top: 50%;
92
+ transform: translateX(-50%) translateY(-50%) rotate(45deg);
93
+ transform-origin: center center;
94
+ }
95
+
96
+ &::before {
97
+ height: 2px;
98
+ width: 50%;
99
+ }
100
+
101
+ &::after {
102
+ height: 50%;
103
+ width: 2px;
104
+ }
105
+
106
+ &:hover,
107
+ &:focus {
108
+ @include cv.register-var("delete-background-alpha", 0.4);
109
+ }
110
+
111
+ &:active {
112
+ @include cv.register-var("delete-background-alpha", 0.5);
113
+ }
114
+
115
+ // Sizes
116
+ &.#{iv.$class-prefix}is-small {
117
+ @include cv.register-var("delete-dimensions", 1rem);
118
+ }
119
+
120
+ &.#{iv.$class-prefix}is-medium {
121
+ @include cv.register-var("delete-dimensions", 1.5rem);
122
+ }
123
+
124
+ &.#{iv.$class-prefix}is-large {
125
+ @include cv.register-var("delete-dimensions", 2rem);
126
+ }
127
+ }
128
+
129
+ @mixin fa($size, $dimensions) {
130
+ display: inline-block;
131
+ font-size: $size;
132
+ height: $dimensions;
133
+ line-height: $dimensions;
134
+ text-align: center;
135
+ vertical-align: top;
136
+ width: $dimensions;
137
+ }
138
+
139
+ @mixin burger($dimensions) {
140
+ align-items: center;
141
+ appearance: none;
142
+ background: none;
143
+ border: none;
144
+ border-radius: cv.getVar("burger-border-radius");
145
+ color: hsl(
146
+ cv.getVar("burger-h"),
147
+ cv.getVar("burger-s"),
148
+ cv.getVar("burger-l")
149
+ );
150
+ cursor: pointer;
151
+ display: inline-flex;
152
+ flex-direction: column;
153
+ flex-shrink: 0;
154
+ height: $dimensions;
155
+ justify-content: center;
156
+ position: relative;
157
+ vertical-align: top;
158
+ width: $dimensions;
159
+
160
+ span {
161
+ background-color: currentColor;
162
+ display: block;
163
+ height: cv.getVar("burger-item-height");
164
+ left: calc(50% - calc(#{cv.getVar("burger-item-width")}) / 2);
165
+ position: absolute;
166
+ transform-origin: center;
167
+ transition-duration: cv.getVar("duration");
168
+ transition-property: background-color, color, opacity, transform;
169
+ transition-timing-function: cv.getVar("easing");
170
+ width: cv.getVar("burger-item-width");
171
+
172
+ &:nth-child(1),
173
+ &:nth-child(2) {
174
+ top: calc(50% - calc(#{cv.getVar("burger-item-height")}) / 2);
175
+ }
176
+
177
+ &:nth-child(3) {
178
+ bottom: calc(50% + #{cv.getVar("burger-gap")});
179
+ }
180
+
181
+ &:nth-child(4) {
182
+ top: calc(50% + #{cv.getVar("burger-gap")});
183
+ }
184
+ }
185
+
186
+ &:hover {
187
+ background-color: hsla(
188
+ cv.getVar("burger-h"),
189
+ cv.getVar("burger-s"),
190
+ cv.getVar("burger-l"),
191
+ 0.1
192
+ );
193
+ }
194
+
195
+ &:active {
196
+ background-color: hsla(
197
+ cv.getVar("burger-h"),
198
+ cv.getVar("burger-s"),
199
+ cv.getVar("burger-l"),
200
+ 0.2
201
+ );
202
+ }
203
+
204
+ // Modifers
205
+ &.#{iv.$class-prefix}is-active {
206
+ span {
207
+ &:nth-child(1) {
208
+ transform: rotate(-45deg);
209
+ }
210
+
211
+ &:nth-child(2) {
212
+ transform: rotate(45deg);
213
+ }
214
+
215
+ &:nth-child(3),
216
+ &:nth-child(4) {
217
+ opacity: 0;
218
+ }
219
+ }
220
+ }
221
+ }
222
+
223
+ @mixin overflow-touch {
224
+ -webkit-overflow-scrolling: touch;
225
+ }
226
+
227
+ @mixin placeholder {
228
+ $placeholders: ":-moz" ":-webkit-input" "-moz" "-ms-input";
229
+
230
+ @each $placeholder in $placeholders {
231
+ &:#{$placeholder}-placeholder {
232
+ @content;
233
+ }
234
+ }
235
+ }
236
+
237
+ @mixin reset {
238
+ appearance: none;
239
+ background: none;
240
+ border: none;
241
+ color: inherit;
242
+ font-family: inherit;
243
+ font-size: 1em;
244
+ margin: 0;
245
+ padding: 0;
246
+ }
247
+
248
+ @mixin selection($current-selector: false) {
249
+ @if $current-selector {
250
+ &::-moz-selection {
251
+ @content;
252
+ }
253
+ &::selection {
254
+ @content;
255
+ }
256
+ } @else {
257
+ ::-moz-selection {
258
+ @content;
259
+ }
260
+ ::selection {
261
+ @content;
262
+ }
263
+ }
264
+ }
265
+
266
+ // Responsiveness
267
+
268
+ @mixin from($device) {
269
+ @media screen and (min-width: $device) {
270
+ @content;
271
+ }
272
+ }
273
+
274
+ @mixin until($device) {
275
+ @media screen and (max-width: ($device - 1px)) {
276
+ @content;
277
+ }
278
+ }
279
+
280
+ @mixin between($from, $until) {
281
+ @media screen and (min-width: $from) and (max-width: ($until - 1px)) {
282
+ @content;
283
+ }
284
+ }
285
+
286
+ @mixin mobile {
287
+ @media screen and (max-width: (iv.$tablet - 1px)) {
288
+ @content;
289
+ }
290
+ }
291
+
292
+ @mixin tablet {
293
+ @media screen and (min-width: iv.$tablet), print {
294
+ @content;
295
+ }
296
+ }
297
+
298
+ @mixin tablet-only {
299
+ @media screen and (min-width: iv.$tablet) and (max-width: (iv.$desktop - 1px)) {
300
+ @content;
301
+ }
302
+ }
303
+
304
+ @mixin touch {
305
+ @media screen and (max-width: (iv.$desktop - 1px)) {
306
+ @content;
307
+ }
308
+ }
309
+
310
+ @mixin desktop {
311
+ @media screen and (min-width: iv.$desktop) {
312
+ @content;
313
+ }
314
+ }
315
+
316
+ @mixin desktop-only {
317
+ @if iv.$widescreen-enabled {
318
+ @media screen and (min-width: iv.$desktop) and (max-width: (iv.$widescreen - 1px)) {
319
+ @content;
320
+ }
321
+ }
322
+ }
323
+
324
+ @mixin until-widescreen {
325
+ @if iv.$widescreen-enabled {
326
+ @media screen and (max-width: (iv.$widescreen - 1px)) {
327
+ @content;
328
+ }
329
+ }
330
+ }
331
+
332
+ @mixin widescreen {
333
+ @if iv.$widescreen-enabled {
334
+ @media screen and (min-width: iv.$widescreen) {
335
+ @content;
336
+ }
337
+ }
338
+ }
339
+
340
+ @mixin widescreen-only {
341
+ @if iv.$widescreen-enabled and iv.$fullhd-enabled {
342
+ @media screen and (min-width: iv.$widescreen) and (max-width: (iv.$fullhd - 1px)) {
343
+ @content;
344
+ }
345
+ }
346
+ }
347
+
348
+ @mixin until-fullhd {
349
+ @if iv.$fullhd-enabled {
350
+ @media screen and (max-width: (iv.$fullhd - 1px)) {
351
+ @content;
352
+ }
353
+ }
354
+ }
355
+
356
+ @mixin fullhd {
357
+ @if iv.$fullhd-enabled {
358
+ @media screen and (min-width: iv.$fullhd) {
359
+ @content;
360
+ }
361
+ }
362
+ }
363
+
364
+ @mixin breakpoint($name) {
365
+ $breakpoint: map.get(iv.$breakpoints, $name);
366
+
367
+ @if $breakpoint {
368
+ $from: map.get($breakpoint, "from");
369
+ $until: map.get($breakpoint, "until");
370
+
371
+ @if $from and $until {
372
+ @include between($from, $until) {
373
+ @content;
374
+ }
375
+ } @else if $from {
376
+ @include from($from) {
377
+ @content;
378
+ }
379
+ } @else if $until {
380
+ @include until($until) {
381
+ @content;
382
+ }
383
+ }
384
+ }
385
+ }
386
+
387
+ @mixin container-from($name, $width) {
388
+ @container #{$name} (min-width: #{$width}) {
389
+ @content;
390
+ }
391
+ }
392
+
393
+ @mixin container-until($name, $width) {
394
+ @container #{$name} (max-width: #{$width - 1px}) {
395
+ @content;
396
+ }
397
+ }
398
+
399
+ @mixin ltr {
400
+ @if not iv.$rtl {
401
+ @content;
402
+ }
403
+ }
404
+
405
+ @mixin rtl {
406
+ @if iv.$rtl {
407
+ @content;
408
+ }
409
+ }
410
+
411
+ @mixin ltr-property($property, $spacing, $right: true) {
412
+ $normal: if($right, "right", "left");
413
+ $opposite: if($right, "left", "right");
414
+
415
+ @if iv.$rtl {
416
+ #{$property}-#{$opposite}: $spacing;
417
+ } @else {
418
+ #{$property}-#{$normal}: $spacing;
419
+ }
420
+ }
421
+
422
+ @mixin ltr-position($spacing, $right: true) {
423
+ $normal: if($right, "right", "left");
424
+ $opposite: if($right, "left", "right");
425
+
426
+ @if iv.$rtl {
427
+ #{$opposite}: $spacing;
428
+ } @else {
429
+ #{$normal}: $spacing;
430
+ }
431
+ }
432
+
433
+ // Placeholders
434
+
435
+ @mixin unselectable {
436
+ -webkit-touch-callout: none;
437
+ -webkit-user-select: none;
438
+ -moz-user-select: none;
439
+ -ms-user-select: none;
440
+ user-select: none;
441
+ }
442
+
443
+ @mixin loader {
444
+ animation: spinAround 500ms infinite linear;
445
+ border: 2px solid cv.getVar("loading-color");
446
+ border-radius: cv.getVar("radius-rounded");
447
+ border-right-color: transparent;
448
+ border-top-color: transparent;
449
+ content: "";
450
+ display: block;
451
+ height: 1em;
452
+ position: relative;
453
+ width: 1em;
454
+ }
455
+
456
+ @mixin overlay($offset: 0) {
457
+ bottom: $offset;
458
+ left: $offset;
459
+ position: absolute;
460
+ right: $offset;
461
+ top: $offset;
462
+ }
data/bulma-rails.gemspec CHANGED
@@ -1,8 +1,6 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
1
  Gem::Specification.new do |gem|
4
- gem.name = 'bulma-rails'
5
- gem.version = '0.9.4'
2
+ gem.name = "bulma-rails"
3
+ gem.version = "1.0.4"
6
4
  gem.authors = ["Joshua Jansen"]
7
5
  gem.email = ["joshuajansen88@gmail.com"]
8
6
  gem.description = %q{A modern CSS framework based on Flexbox}
@@ -11,7 +9,7 @@ Gem::Specification.new do |gem|
11
9
 
12
10
  gem.files = `git ls-files`.split($\)
13
11
  gem.require_paths = ["lib"]
14
- gem.license = 'MIT'
12
+ gem.license = "MIT"
15
13
 
16
- gem.add_runtime_dependency 'sassc', '~> 2.0'
14
+ gem.add_runtime_dependency "dartsass-rails", "~> 0.5.0"
17
15
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulma-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Jansen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-17 00:00:00.000000000 Z
11
+ date: 2025-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: sassc
14
+ name: dartsass-rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: 0.5.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: 0.5.0
27
27
  description: A modern CSS framework based on Flexbox
28
28
  email:
29
29
  - joshuajansen88@gmail.com
@@ -33,78 +33,87 @@ extra_rdoc_files: []
33
33
  files:
34
34
  - ".gitignore"
35
35
  - README.md
36
- - app/assets/stylesheets/bulma.sass
37
- - app/assets/stylesheets/sass/base/_all.sass
38
- - app/assets/stylesheets/sass/base/animations.sass
39
- - app/assets/stylesheets/sass/base/generic.sass
40
- - app/assets/stylesheets/sass/base/helpers.sass
41
- - app/assets/stylesheets/sass/base/minireset.sass
42
- - app/assets/stylesheets/sass/components/_all.sass
43
- - app/assets/stylesheets/sass/components/breadcrumb.sass
44
- - app/assets/stylesheets/sass/components/card.sass
45
- - app/assets/stylesheets/sass/components/dropdown.sass
46
- - app/assets/stylesheets/sass/components/level.sass
47
- - app/assets/stylesheets/sass/components/media.sass
48
- - app/assets/stylesheets/sass/components/menu.sass
49
- - app/assets/stylesheets/sass/components/message.sass
50
- - app/assets/stylesheets/sass/components/modal.sass
51
- - app/assets/stylesheets/sass/components/navbar.sass
52
- - app/assets/stylesheets/sass/components/pagination.sass
53
- - app/assets/stylesheets/sass/components/panel.sass
54
- - app/assets/stylesheets/sass/components/tabs.sass
55
- - app/assets/stylesheets/sass/elements/_all.sass
56
- - app/assets/stylesheets/sass/elements/box.sass
57
- - app/assets/stylesheets/sass/elements/button.sass
58
- - app/assets/stylesheets/sass/elements/container.sass
59
- - app/assets/stylesheets/sass/elements/content.sass
60
- - app/assets/stylesheets/sass/elements/form.sass
61
- - app/assets/stylesheets/sass/elements/icon.sass
62
- - app/assets/stylesheets/sass/elements/image.sass
63
- - app/assets/stylesheets/sass/elements/notification.sass
64
- - app/assets/stylesheets/sass/elements/other.sass
65
- - app/assets/stylesheets/sass/elements/progress.sass
66
- - app/assets/stylesheets/sass/elements/table.sass
67
- - app/assets/stylesheets/sass/elements/tag.sass
68
- - app/assets/stylesheets/sass/elements/title.sass
69
- - app/assets/stylesheets/sass/form/_all.sass
70
- - app/assets/stylesheets/sass/form/checkbox-radio.sass
71
- - app/assets/stylesheets/sass/form/file.sass
72
- - app/assets/stylesheets/sass/form/input-textarea.sass
73
- - app/assets/stylesheets/sass/form/select.sass
74
- - app/assets/stylesheets/sass/form/shared.sass
75
- - app/assets/stylesheets/sass/form/tools.sass
76
- - app/assets/stylesheets/sass/grid/_all.sass
77
- - app/assets/stylesheets/sass/grid/columns.sass
78
- - app/assets/stylesheets/sass/grid/tiles.sass
79
- - app/assets/stylesheets/sass/helpers/_all.sass
80
- - app/assets/stylesheets/sass/helpers/color.sass
81
- - app/assets/stylesheets/sass/helpers/flexbox.sass
82
- - app/assets/stylesheets/sass/helpers/float.sass
83
- - app/assets/stylesheets/sass/helpers/other.sass
84
- - app/assets/stylesheets/sass/helpers/overflow.sass
85
- - app/assets/stylesheets/sass/helpers/position.sass
86
- - app/assets/stylesheets/sass/helpers/spacing.sass
87
- - app/assets/stylesheets/sass/helpers/typography.sass
88
- - app/assets/stylesheets/sass/helpers/visibility.sass
89
- - app/assets/stylesheets/sass/layout/_all.sass
90
- - app/assets/stylesheets/sass/layout/footer.sass
91
- - app/assets/stylesheets/sass/layout/hero.sass
92
- - app/assets/stylesheets/sass/layout/section.sass
93
- - app/assets/stylesheets/sass/utilities/_all.sass
94
- - app/assets/stylesheets/sass/utilities/animations.sass
95
- - app/assets/stylesheets/sass/utilities/controls.sass
96
- - app/assets/stylesheets/sass/utilities/derived-variables.sass
97
- - app/assets/stylesheets/sass/utilities/extends.sass
98
- - app/assets/stylesheets/sass/utilities/functions.sass
99
- - app/assets/stylesheets/sass/utilities/initial-variables.sass
100
- - app/assets/stylesheets/sass/utilities/mixins.sass
36
+ - app/assets/stylesheets/bulma.scss
37
+ - app/assets/stylesheets/bulma_sass/_index.scss
38
+ - app/assets/stylesheets/bulma_sass/base/_index.scss
39
+ - app/assets/stylesheets/bulma_sass/base/animations.scss
40
+ - app/assets/stylesheets/bulma_sass/base/generic.scss
41
+ - app/assets/stylesheets/bulma_sass/base/minireset.scss
42
+ - app/assets/stylesheets/bulma_sass/base/skeleton.scss
43
+ - app/assets/stylesheets/bulma_sass/components/_index.scss
44
+ - app/assets/stylesheets/bulma_sass/components/breadcrumb.scss
45
+ - app/assets/stylesheets/bulma_sass/components/card.scss
46
+ - app/assets/stylesheets/bulma_sass/components/dropdown.scss
47
+ - app/assets/stylesheets/bulma_sass/components/menu.scss
48
+ - app/assets/stylesheets/bulma_sass/components/message.scss
49
+ - app/assets/stylesheets/bulma_sass/components/modal.scss
50
+ - app/assets/stylesheets/bulma_sass/components/navbar.scss
51
+ - app/assets/stylesheets/bulma_sass/components/pagination.scss
52
+ - app/assets/stylesheets/bulma_sass/components/panel.scss
53
+ - app/assets/stylesheets/bulma_sass/components/tabs.scss
54
+ - app/assets/stylesheets/bulma_sass/elements/_index.scss
55
+ - app/assets/stylesheets/bulma_sass/elements/block.scss
56
+ - app/assets/stylesheets/bulma_sass/elements/box.scss
57
+ - app/assets/stylesheets/bulma_sass/elements/button.scss
58
+ - app/assets/stylesheets/bulma_sass/elements/content.scss
59
+ - app/assets/stylesheets/bulma_sass/elements/delete.scss
60
+ - app/assets/stylesheets/bulma_sass/elements/icon.scss
61
+ - app/assets/stylesheets/bulma_sass/elements/image.scss
62
+ - app/assets/stylesheets/bulma_sass/elements/loader.scss
63
+ - app/assets/stylesheets/bulma_sass/elements/notification.scss
64
+ - app/assets/stylesheets/bulma_sass/elements/progress.scss
65
+ - app/assets/stylesheets/bulma_sass/elements/table.scss
66
+ - app/assets/stylesheets/bulma_sass/elements/tag.scss
67
+ - app/assets/stylesheets/bulma_sass/elements/title.scss
68
+ - app/assets/stylesheets/bulma_sass/form/_index.scss
69
+ - app/assets/stylesheets/bulma_sass/form/checkbox-radio.scss
70
+ - app/assets/stylesheets/bulma_sass/form/file.scss
71
+ - app/assets/stylesheets/bulma_sass/form/input-textarea.scss
72
+ - app/assets/stylesheets/bulma_sass/form/select.scss
73
+ - app/assets/stylesheets/bulma_sass/form/shared.scss
74
+ - app/assets/stylesheets/bulma_sass/form/tools.scss
75
+ - app/assets/stylesheets/bulma_sass/grid/_index.scss
76
+ - app/assets/stylesheets/bulma_sass/grid/columns.scss
77
+ - app/assets/stylesheets/bulma_sass/grid/grid.scss
78
+ - app/assets/stylesheets/bulma_sass/helpers/_index.scss
79
+ - app/assets/stylesheets/bulma_sass/helpers/aspect-ratio.scss
80
+ - app/assets/stylesheets/bulma_sass/helpers/border.scss
81
+ - app/assets/stylesheets/bulma_sass/helpers/color.scss
82
+ - app/assets/stylesheets/bulma_sass/helpers/flexbox.scss
83
+ - app/assets/stylesheets/bulma_sass/helpers/float.scss
84
+ - app/assets/stylesheets/bulma_sass/helpers/gap.scss
85
+ - app/assets/stylesheets/bulma_sass/helpers/other.scss
86
+ - app/assets/stylesheets/bulma_sass/helpers/overflow.scss
87
+ - app/assets/stylesheets/bulma_sass/helpers/position.scss
88
+ - app/assets/stylesheets/bulma_sass/helpers/spacing.scss
89
+ - app/assets/stylesheets/bulma_sass/helpers/typography.scss
90
+ - app/assets/stylesheets/bulma_sass/helpers/visibility.scss
91
+ - app/assets/stylesheets/bulma_sass/layout/_index.scss
92
+ - app/assets/stylesheets/bulma_sass/layout/container.scss
93
+ - app/assets/stylesheets/bulma_sass/layout/footer.scss
94
+ - app/assets/stylesheets/bulma_sass/layout/hero.scss
95
+ - app/assets/stylesheets/bulma_sass/layout/level.scss
96
+ - app/assets/stylesheets/bulma_sass/layout/media.scss
97
+ - app/assets/stylesheets/bulma_sass/layout/section.scss
98
+ - app/assets/stylesheets/bulma_sass/themes/_index.scss
99
+ - app/assets/stylesheets/bulma_sass/themes/dark.scss
100
+ - app/assets/stylesheets/bulma_sass/themes/light.scss
101
+ - app/assets/stylesheets/bulma_sass/themes/setup.scss
102
+ - app/assets/stylesheets/bulma_sass/utilities/_index.scss
103
+ - app/assets/stylesheets/bulma_sass/utilities/controls.scss
104
+ - app/assets/stylesheets/bulma_sass/utilities/css-variables.scss
105
+ - app/assets/stylesheets/bulma_sass/utilities/derived-variables.scss
106
+ - app/assets/stylesheets/bulma_sass/utilities/extends.scss
107
+ - app/assets/stylesheets/bulma_sass/utilities/functions.scss
108
+ - app/assets/stylesheets/bulma_sass/utilities/initial-variables.scss
109
+ - app/assets/stylesheets/bulma_sass/utilities/mixins.scss
101
110
  - bulma-rails.gemspec
102
111
  - lib/bulma-rails.rb
103
112
  homepage: https://github.com/joshuajansen/bulma-rails
104
113
  licenses:
105
114
  - MIT
106
115
  metadata: {}
107
- post_install_message:
116
+ post_install_message:
108
117
  rdoc_options: []
109
118
  require_paths:
110
119
  - lib
@@ -119,8 +128,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
128
  - !ruby/object:Gem::Version
120
129
  version: '0'
121
130
  requirements: []
122
- rubygems_version: 3.3.3
123
- signing_key:
131
+ rubygems_version: 3.3.5
132
+ signing_key:
124
133
  specification_version: 4
125
134
  summary: This gem adds the bulma.io assets to your asset pipeline so you can import
126
135
  them in your Rails project.