bulma-rails 0.9.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +49 -14
  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 +126 -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 +788 -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 +640 -0
  25. data/app/assets/stylesheets/sass/elements/content.scss +283 -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 +32 -0
  37. data/app/assets/stylesheets/sass/form/file.scss +330 -0
  38. data/app/assets/stylesheets/sass/form/input-textarea.scss +123 -0
  39. data/app/assets/stylesheets/sass/form/select.scss +143 -0
  40. data/app/assets/stylesheets/sass/form/shared.scss +172 -0
  41. data/app/assets/stylesheets/sass/form/tools.scss +341 -0
  42. data/app/assets/stylesheets/sass/grid/_index.scss +5 -0
  43. data/app/assets/stylesheets/sass/grid/columns-v2.scss +957 -0
  44. data/app/assets/stylesheets/sass/grid/columns.scss +877 -0
  45. data/app/assets/stylesheets/sass/grid/grid.scss +209 -0
  46. data/app/assets/stylesheets/sass/helpers/_index.scss +15 -0
  47. data/app/assets/stylesheets/sass/helpers/aspect-ratio.scss +10 -0
  48. data/app/assets/stylesheets/sass/helpers/border.scss +15 -0
  49. data/app/assets/stylesheets/sass/helpers/color.scss +364 -0
  50. data/app/assets/stylesheets/sass/helpers/flexbox.scss +62 -0
  51. data/app/assets/stylesheets/sass/helpers/float.scss +28 -0
  52. data/app/assets/stylesheets/sass/helpers/gap.scss +24 -0
  53. data/app/assets/stylesheets/sass/helpers/other.scss +19 -0
  54. data/app/assets/stylesheets/sass/helpers/overflow.scss +21 -0
  55. data/app/assets/stylesheets/sass/helpers/position.scss +19 -0
  56. data/app/assets/stylesheets/sass/helpers/spacing.scss +64 -0
  57. data/app/assets/stylesheets/sass/helpers/typography.scss +168 -0
  58. data/app/assets/stylesheets/sass/helpers/visibility.scss +221 -0
  59. data/app/assets/stylesheets/sass/layout/_index.scss +9 -0
  60. data/app/assets/stylesheets/sass/layout/container.scss +51 -0
  61. data/app/assets/stylesheets/sass/layout/footer.scss +23 -0
  62. data/app/assets/stylesheets/sass/layout/hero.scss +270 -0
  63. data/app/assets/stylesheets/sass/layout/level.scss +107 -0
  64. data/app/assets/stylesheets/sass/layout/media.scss +106 -0
  65. data/app/assets/stylesheets/sass/layout/section.scss +34 -0
  66. data/app/assets/stylesheets/sass/themes/_index.scss +35 -0
  67. data/app/assets/stylesheets/sass/themes/dark.scss +56 -0
  68. data/app/assets/stylesheets/sass/themes/light.scss +145 -0
  69. data/app/assets/stylesheets/sass/themes/setup.scss +174 -0
  70. data/app/assets/stylesheets/sass/utilities/_index.scss +7 -0
  71. data/app/assets/stylesheets/sass/utilities/controls.scss +85 -0
  72. data/app/assets/stylesheets/sass/utilities/css-variables.scss +425 -0
  73. data/app/assets/stylesheets/sass/utilities/derived-variables.scss +86 -106
  74. data/app/assets/stylesheets/sass/utilities/extends.scss +34 -0
  75. data/app/assets/stylesheets/sass/utilities/functions.scss +258 -0
  76. data/app/assets/stylesheets/sass/utilities/initial-variables.scss +155 -0
  77. data/app/assets/stylesheets/sass/utilities/mixins.scss +460 -0
  78. data/bulma-rails.gemspec +4 -6
  79. metadata +80 -67
  80. data/app/assets/stylesheets/bulma.sass +0 -10
  81. data/app/assets/stylesheets/sass/base/_all.sass +0 -4
  82. data/app/assets/stylesheets/sass/base/generic.sass +0 -142
  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 -14
  86. data/app/assets/stylesheets/sass/components/breadcrumb.sass +0 -75
  87. data/app/assets/stylesheets/sass/components/card.sass +0 -79
  88. data/app/assets/stylesheets/sass/components/dropdown.sass +0 -81
  89. data/app/assets/stylesheets/sass/components/level.sass +0 -77
  90. data/app/assets/stylesheets/sass/components/media.sass +0 -52
  91. data/app/assets/stylesheets/sass/components/menu.sass +0 -57
  92. data/app/assets/stylesheets/sass/components/message.sass +0 -99
  93. data/app/assets/stylesheets/sass/components/modal.sass +0 -113
  94. data/app/assets/stylesheets/sass/components/navbar.sass +0 -441
  95. data/app/assets/stylesheets/sass/components/pagination.sass +0 -150
  96. data/app/assets/stylesheets/sass/components/panel.sass +0 -119
  97. data/app/assets/stylesheets/sass/components/tabs.sass +0 -174
  98. data/app/assets/stylesheets/sass/elements/_all.sass +0 -15
  99. data/app/assets/stylesheets/sass/elements/box.sass +0 -24
  100. data/app/assets/stylesheets/sass/elements/button.sass +0 -323
  101. data/app/assets/stylesheets/sass/elements/container.sass +0 -24
  102. data/app/assets/stylesheets/sass/elements/content.sass +0 -155
  103. data/app/assets/stylesheets/sass/elements/form.sass +0 -1
  104. data/app/assets/stylesheets/sass/elements/icon.sass +0 -21
  105. data/app/assets/stylesheets/sass/elements/image.sass +0 -71
  106. data/app/assets/stylesheets/sass/elements/notification.sass +0 -48
  107. data/app/assets/stylesheets/sass/elements/other.sass +0 -39
  108. data/app/assets/stylesheets/sass/elements/progress.sass +0 -67
  109. data/app/assets/stylesheets/sass/elements/table.sass +0 -129
  110. data/app/assets/stylesheets/sass/elements/tag.sass +0 -136
  111. data/app/assets/stylesheets/sass/elements/title.sass +0 -70
  112. data/app/assets/stylesheets/sass/form/_all.sass +0 -8
  113. data/app/assets/stylesheets/sass/form/checkbox-radio.sass +0 -21
  114. data/app/assets/stylesheets/sass/form/file.sass +0 -180
  115. data/app/assets/stylesheets/sass/form/input-textarea.sass +0 -64
  116. data/app/assets/stylesheets/sass/form/select.sass +0 -85
  117. data/app/assets/stylesheets/sass/form/shared.sass +0 -55
  118. data/app/assets/stylesheets/sass/form/tools.sass +0 -213
  119. data/app/assets/stylesheets/sass/grid/_all.sass +0 -4
  120. data/app/assets/stylesheets/sass/grid/columns.sass +0 -504
  121. data/app/assets/stylesheets/sass/grid/tiles.sass +0 -34
  122. data/app/assets/stylesheets/sass/helpers/_all.sass +0 -10
  123. data/app/assets/stylesheets/sass/helpers/color.sass +0 -37
  124. data/app/assets/stylesheets/sass/helpers/float.sass +0 -8
  125. data/app/assets/stylesheets/sass/helpers/other.sass +0 -8
  126. data/app/assets/stylesheets/sass/helpers/overflow.sass +0 -2
  127. data/app/assets/stylesheets/sass/helpers/position.sass +0 -5
  128. data/app/assets/stylesheets/sass/helpers/spacing.sass +0 -28
  129. data/app/assets/stylesheets/sass/helpers/typography.sass +0 -98
  130. data/app/assets/stylesheets/sass/helpers/visibility.sass +0 -122
  131. data/app/assets/stylesheets/sass/layout/_all.sass +0 -5
  132. data/app/assets/stylesheets/sass/layout/footer.sass +0 -9
  133. data/app/assets/stylesheets/sass/layout/hero.sass +0 -145
  134. data/app/assets/stylesheets/sass/layout/section.sass +0 -13
  135. data/app/assets/stylesheets/sass/utilities/_all.sass +0 -8
  136. data/app/assets/stylesheets/sass/utilities/animations.sass +0 -5
  137. data/app/assets/stylesheets/sass/utilities/controls.sass +0 -50
  138. data/app/assets/stylesheets/sass/utilities/functions.sass +0 -115
  139. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +0 -78
  140. data/app/assets/stylesheets/sass/utilities/mixins.sass +0 -285
@@ -1,285 +0,0 @@
1
- @import "initial-variables"
2
-
3
- =clearfix
4
- &::after
5
- clear: both
6
- content: " "
7
- display: table
8
-
9
- =center($width, $height: 0)
10
- position: absolute
11
- @if $height != 0
12
- left: calc(50% - (#{$width} / 2))
13
- top: calc(50% - (#{$height} / 2))
14
- @else
15
- left: calc(50% - (#{$width} / 2))
16
- top: calc(50% - (#{$width} / 2))
17
-
18
- =fa($size, $dimensions)
19
- display: inline-block
20
- font-size: $size
21
- height: $dimensions
22
- line-height: $dimensions
23
- text-align: center
24
- vertical-align: top
25
- width: $dimensions
26
-
27
- =hamburger($dimensions)
28
- cursor: pointer
29
- display: block
30
- height: $dimensions
31
- position: relative
32
- width: $dimensions
33
- span
34
- background-color: currentColor
35
- display: block
36
- height: 1px
37
- left: calc(50% - 8px)
38
- position: absolute
39
- transform-origin: center
40
- transition-duration: $speed
41
- transition-property: background-color, opacity, transform
42
- transition-timing-function: $easing
43
- width: 16px
44
- &:nth-child(1)
45
- top: calc(50% - 6px)
46
- &:nth-child(2)
47
- top: calc(50% - 1px)
48
- &:nth-child(3)
49
- top: calc(50% + 4px)
50
- &:hover
51
- background-color: bulmaRgba(black, 0.05)
52
- // Modifers
53
- &.is-active
54
- span
55
- &:nth-child(1)
56
- transform: translateY(5px) rotate(45deg)
57
- &:nth-child(2)
58
- opacity: 0
59
- &:nth-child(3)
60
- transform: translateY(-5px) rotate(-45deg)
61
-
62
- =overflow-touch
63
- -webkit-overflow-scrolling: touch
64
-
65
- =placeholder
66
- $placeholders: ':-moz' ':-webkit-input' '-moz' '-ms-input'
67
- @each $placeholder in $placeholders
68
- &:#{$placeholder}-placeholder
69
- @content
70
-
71
- // Responsiveness
72
-
73
- =from($device)
74
- @media screen and (min-width: $device)
75
- @content
76
-
77
- =until($device)
78
- @media screen and (max-width: $device - 1px)
79
- @content
80
-
81
- =mobile
82
- @media screen and (max-width: $tablet - 1px)
83
- @content
84
-
85
- =tablet
86
- @media screen and (min-width: $tablet), print
87
- @content
88
-
89
- =tablet-only
90
- @media screen and (min-width: $tablet) and (max-width: $desktop - 1px)
91
- @content
92
-
93
- =touch
94
- @media screen and (max-width: $desktop - 1px)
95
- @content
96
-
97
- =desktop
98
- @media screen and (min-width: $desktop)
99
- @content
100
-
101
- =desktop-only
102
- @if $widescreen-enabled
103
- @media screen and (min-width: $desktop) and (max-width: $widescreen - 1px)
104
- @content
105
-
106
- =until-widescreen
107
- @if $widescreen-enabled
108
- @media screen and (max-width: $widescreen - 1px)
109
- @content
110
-
111
- =widescreen
112
- @if $widescreen-enabled
113
- @media screen and (min-width: $widescreen)
114
- @content
115
-
116
- =widescreen-only
117
- @if $widescreen-enabled and $fullhd-enabled
118
- @media screen and (min-width: $widescreen) and (max-width: $fullhd - 1px)
119
- @content
120
-
121
- =until-fullhd
122
- @if $fullhd-enabled
123
- @media screen and (max-width: $fullhd - 1px)
124
- @content
125
-
126
- =fullhd
127
- @if $fullhd-enabled
128
- @media screen and (min-width: $fullhd)
129
- @content
130
-
131
- =ltr
132
- @if not $rtl
133
- @content
134
-
135
- =rtl
136
- @if $rtl
137
- @content
138
-
139
- =ltr-property($property, $spacing, $right: true)
140
- $normal: if($right, "right", "left")
141
- $opposite: if($right, "left", "right")
142
- @if $rtl
143
- #{$property}-#{$opposite}: $spacing
144
- @else
145
- #{$property}-#{$normal}: $spacing
146
-
147
- =ltr-position($spacing, $right: true)
148
- $normal: if($right, "right", "left")
149
- $opposite: if($right, "left", "right")
150
- @if $rtl
151
- #{$opposite}: $spacing
152
- @else
153
- #{$normal}: $spacing
154
-
155
- // Placeholders
156
-
157
- =unselectable
158
- -webkit-touch-callout: none
159
- -webkit-user-select: none
160
- -moz-user-select: none
161
- -ms-user-select: none
162
- user-select: none
163
-
164
- %unselectable
165
- +unselectable
166
-
167
- =arrow($color: transparent)
168
- border: 3px solid $color
169
- border-radius: 2px
170
- border-right: 0
171
- border-top: 0
172
- content: " "
173
- display: block
174
- height: 0.625em
175
- margin-top: -0.4375em
176
- pointer-events: none
177
- position: absolute
178
- top: 50%
179
- transform: rotate(-45deg)
180
- transform-origin: center
181
- width: 0.625em
182
-
183
- %arrow
184
- +arrow
185
-
186
- =block($spacing: $block-spacing)
187
- &:not(:last-child)
188
- margin-bottom: $spacing
189
-
190
- %block
191
- +block
192
-
193
- =delete
194
- @extend %unselectable
195
- -moz-appearance: none
196
- -webkit-appearance: none
197
- background-color: bulmaRgba($scheme-invert, 0.2)
198
- border: none
199
- border-radius: $radius-rounded
200
- cursor: pointer
201
- pointer-events: auto
202
- display: inline-block
203
- flex-grow: 0
204
- flex-shrink: 0
205
- font-size: 0
206
- height: 20px
207
- max-height: 20px
208
- max-width: 20px
209
- min-height: 20px
210
- min-width: 20px
211
- outline: none
212
- position: relative
213
- vertical-align: top
214
- width: 20px
215
- &::before,
216
- &::after
217
- background-color: $scheme-main
218
- content: ""
219
- display: block
220
- left: 50%
221
- position: absolute
222
- top: 50%
223
- transform: translateX(-50%) translateY(-50%) rotate(45deg)
224
- transform-origin: center center
225
- &::before
226
- height: 2px
227
- width: 50%
228
- &::after
229
- height: 50%
230
- width: 2px
231
- &:hover,
232
- &:focus
233
- background-color: bulmaRgba($scheme-invert, 0.3)
234
- &:active
235
- background-color: bulmaRgba($scheme-invert, 0.4)
236
- // Sizes
237
- &.is-small
238
- height: 16px
239
- max-height: 16px
240
- max-width: 16px
241
- min-height: 16px
242
- min-width: 16px
243
- width: 16px
244
- &.is-medium
245
- height: 24px
246
- max-height: 24px
247
- max-width: 24px
248
- min-height: 24px
249
- min-width: 24px
250
- width: 24px
251
- &.is-large
252
- height: 32px
253
- max-height: 32px
254
- max-width: 32px
255
- min-height: 32px
256
- min-width: 32px
257
- width: 32px
258
-
259
- %delete
260
- +delete
261
-
262
- =loader
263
- animation: spinAround 500ms infinite linear
264
- border: 2px solid $grey-lighter
265
- border-radius: $radius-rounded
266
- border-right-color: transparent
267
- border-top-color: transparent
268
- content: ""
269
- display: block
270
- height: 1em
271
- position: relative
272
- width: 1em
273
-
274
- %loader
275
- +loader
276
-
277
- =overlay($offset: 0)
278
- bottom: $offset
279
- left: $offset
280
- position: absolute
281
- right: $offset
282
- top: $offset
283
-
284
- %overlay
285
- +overlay