bulma-rails 0.8.2 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/stylesheets/bulma.sass +2 -1
  4. data/app/assets/stylesheets/sass/base/_all.sass +0 -1
  5. data/app/assets/stylesheets/sass/base/generic.sass +1 -1
  6. data/app/assets/stylesheets/sass/base/helpers.sass +1 -281
  7. data/app/assets/stylesheets/sass/base/minireset.sass +1 -1
  8. data/app/assets/stylesheets/sass/components/_all.sass +0 -1
  9. data/app/assets/stylesheets/sass/components/breadcrumb.sass +3 -3
  10. data/app/assets/stylesheets/sass/components/card.sass +1 -1
  11. data/app/assets/stylesheets/sass/components/dropdown.sass +3 -3
  12. data/app/assets/stylesheets/sass/components/level.sass +2 -2
  13. data/app/assets/stylesheets/sass/components/media.sass +10 -8
  14. data/app/assets/stylesheets/sass/components/menu.sass +2 -2
  15. data/app/assets/stylesheets/sass/components/message.sass +1 -1
  16. data/app/assets/stylesheets/sass/components/modal.sass +2 -2
  17. data/app/assets/stylesheets/sass/components/navbar.sass +9 -9
  18. data/app/assets/stylesheets/sass/components/panel.sass +2 -2
  19. data/app/assets/stylesheets/sass/components/tabs.sass +35 -12
  20. data/app/assets/stylesheets/sass/elements/button.sass +7 -7
  21. data/app/assets/stylesheets/sass/elements/content.sass +5 -5
  22. data/app/assets/stylesheets/sass/elements/notification.sass +7 -2
  23. data/app/assets/stylesheets/sass/elements/table.sass +3 -1
  24. data/app/assets/stylesheets/sass/elements/tag.sass +24 -16
  25. data/app/assets/stylesheets/sass/form/checkbox-radio.sass +1 -1
  26. data/app/assets/stylesheets/sass/form/file.sass +2 -2
  27. data/app/assets/stylesheets/sass/form/select.sass +4 -4
  28. data/app/assets/stylesheets/sass/form/tools.sass +18 -10
  29. data/app/assets/stylesheets/sass/helpers/_all.sass +10 -0
  30. data/app/assets/stylesheets/sass/helpers/color.sass +37 -0
  31. data/app/assets/stylesheets/sass/helpers/float.sass +8 -0
  32. data/app/assets/stylesheets/sass/helpers/other.sass +8 -0
  33. data/app/assets/stylesheets/sass/helpers/overflow.sass +2 -0
  34. data/app/assets/stylesheets/sass/helpers/position.sass +5 -0
  35. data/app/assets/stylesheets/sass/helpers/spacing.sass +28 -0
  36. data/app/assets/stylesheets/sass/helpers/typography.sass +98 -0
  37. data/app/assets/stylesheets/sass/helpers/visibility.sass +122 -0
  38. data/app/assets/stylesheets/sass/layout/hero.sass +1 -1
  39. data/app/assets/stylesheets/sass/utilities/_all.sass +1 -1
  40. data/app/assets/stylesheets/sass/utilities/derived-variables.scss +132 -0
  41. data/app/assets/stylesheets/sass/utilities/functions.sass +5 -0
  42. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +1 -0
  43. data/app/assets/stylesheets/sass/utilities/mixins.sass +24 -0
  44. data/bulma-rails.gemspec +1 -1
  45. metadata +12 -4
  46. data/app/assets/stylesheets/sass/components/list.sass +0 -39
  47. data/app/assets/stylesheets/sass/utilities/derived-variables.sass +0 -106
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f556ecc1be1a37dce2aa5761a72c40ede9d3e004137015ccc9956af54cb7ca75
4
- data.tar.gz: 9cc6eb1fdc51ddd8118ee9c177532029025ca585fa3eb90e02e2811927297f34
3
+ metadata.gz: 7c187d8e95e7482bbecab4a5e320ccdce88f049367e3d639054d1845fc99d0f4
4
+ data.tar.gz: 020c68825cef7a2d45a64d59f61b008326a99bd8cad9b6bd41a17a5c39b5edcf
5
5
  SHA512:
6
- metadata.gz: ddd75b27c093dd61e61954e119e8c674302d06fba8b5d69c2e478c4785a9e6ef9b68b7acd985ae48c41beb98e4e251249728a5c6350b28b00917e71dc96619ca
7
- data.tar.gz: e96bac4158e21504ceed8095ce5a6d7b6029c61a55a85ca2af1ed60937d449a307bf72e7ef7801add14e7586847a04924453f16ff713e1c55a2642f32b592903
6
+ metadata.gz: 01e0140a8537b859ea5ca35a1b31a93fd93a25737a69d42ce8d6f25ab4de50be9a7b3c8aedfeae6bfe1937475b620f4ad62dc97f1be3d0088080b3728e8b8650
7
+ data.tar.gz: a84d032d4f015c10933c1d3cdf6a6a616da806c8301e887da6134c19a257f7c8941a126f4dd2157cf9ab8f23d93920495db9f54d2d9a0d4b3e675e556f98a782
data/README.md CHANGED
@@ -8,7 +8,7 @@ A modern CSS framework based on Flexbox.
8
8
 
9
9
  Add this line to your application's Gemfile:
10
10
 
11
- gem "bulma-rails", "~> 0.8.2"
11
+ gem "bulma-rails", "~> 0.9.0"
12
12
 
13
13
  And then execute:
14
14
 
@@ -1,9 +1,10 @@
1
1
  @charset "utf-8"
2
- /*! bulma.io v0.8.2 | MIT License | github.com/jgthms/bulma */
2
+ /*! bulma.io v0.9.0 | MIT License | github.com/jgthms/bulma */
3
3
  @import "sass/utilities/_all"
4
4
  @import "sass/base/_all"
5
5
  @import "sass/elements/_all"
6
6
  @import "sass/form/_all"
7
7
  @import "sass/components/_all"
8
8
  @import "sass/grid/_all"
9
+ @import "sass/helpers/_all"
9
10
  @import "sass/layout/_all"
@@ -2,4 +2,3 @@
2
2
 
3
3
  @import "minireset.sass"
4
4
  @import "generic.sass"
5
- @import "helpers.sass"
@@ -137,6 +137,6 @@ table
137
137
  th
138
138
  vertical-align: top
139
139
  &:not([align])
140
- text-align: left
140
+ text-align: inherit
141
141
  th
142
142
  color: $text-strong
@@ -1,281 +1 @@
1
- // Float
2
-
3
- .is-clearfix
4
- +clearfix
5
-
6
- .is-pulled-left
7
- float: left !important
8
-
9
- .is-pulled-right
10
- float: right !important
11
-
12
- // Overflow
13
-
14
- .is-clipped
15
- overflow: hidden !important
16
-
17
- // Overlay
18
-
19
- .is-overlay
20
- @extend %overlay
21
-
22
- // Typography
23
-
24
- =typography-size($target:'')
25
- @each $size in $sizes
26
- $i: index($sizes, $size)
27
- .is-size-#{$i}#{if($target == '', '', '-' + $target)}
28
- font-size: $size !important
29
-
30
- +typography-size()
31
-
32
- +mobile
33
- +typography-size('mobile')
34
-
35
- +tablet
36
- +typography-size('tablet')
37
-
38
- +touch
39
- +typography-size('touch')
40
-
41
- +desktop
42
- +typography-size('desktop')
43
-
44
- +widescreen
45
- +typography-size('widescreen')
46
-
47
- +fullhd
48
- +typography-size('fullhd')
49
-
50
- $alignments: ('centered': 'center', 'justified': 'justify', 'left': 'left', 'right': 'right')
51
-
52
- @each $alignment, $text-align in $alignments
53
- .has-text-#{$alignment}
54
- text-align: #{$text-align} !important
55
-
56
- @each $alignment, $text-align in $alignments
57
- +mobile
58
- .has-text-#{$alignment}-mobile
59
- text-align: #{$text-align} !important
60
- +tablet
61
- .has-text-#{$alignment}-tablet
62
- text-align: #{$text-align} !important
63
- +tablet-only
64
- .has-text-#{$alignment}-tablet-only
65
- text-align: #{$text-align} !important
66
- +touch
67
- .has-text-#{$alignment}-touch
68
- text-align: #{$text-align} !important
69
- +desktop
70
- .has-text-#{$alignment}-desktop
71
- text-align: #{$text-align} !important
72
- +desktop-only
73
- .has-text-#{$alignment}-desktop-only
74
- text-align: #{$text-align} !important
75
- +widescreen
76
- .has-text-#{$alignment}-widescreen
77
- text-align: #{$text-align} !important
78
- +widescreen-only
79
- .has-text-#{$alignment}-widescreen-only
80
- text-align: #{$text-align} !important
81
- +fullhd
82
- .has-text-#{$alignment}-fullhd
83
- text-align: #{$text-align} !important
84
-
85
- .is-capitalized
86
- text-transform: capitalize !important
87
-
88
- .is-lowercase
89
- text-transform: lowercase !important
90
-
91
- .is-uppercase
92
- text-transform: uppercase !important
93
-
94
- .is-italic
95
- font-style: italic !important
96
-
97
- @each $name, $pair in $colors
98
- $color: nth($pair, 1)
99
- .has-text-#{$name}
100
- color: $color !important
101
- a.has-text-#{$name}
102
- &:hover,
103
- &:focus
104
- color: bulmaDarken($color, 10%) !important
105
- .has-background-#{$name}
106
- background-color: $color !important
107
-
108
- @each $name, $shade in $shades
109
- .has-text-#{$name}
110
- color: $shade !important
111
- .has-background-#{$name}
112
- background-color: $shade !important
113
-
114
- .has-text-weight-light
115
- font-weight: $weight-light !important
116
- .has-text-weight-normal
117
- font-weight: $weight-normal !important
118
- .has-text-weight-medium
119
- font-weight: $weight-medium !important
120
- .has-text-weight-semibold
121
- font-weight: $weight-semibold !important
122
- .has-text-weight-bold
123
- font-weight: $weight-bold !important
124
-
125
- .is-family-primary
126
- font-family: $family-primary !important
127
-
128
- .is-family-secondary
129
- font-family: $family-secondary !important
130
-
131
- .is-family-sans-serif
132
- font-family: $family-sans-serif !important
133
-
134
- .is-family-monospace
135
- font-family: $family-monospace !important
136
-
137
- .is-family-code
138
- font-family: $family-code !important
139
-
140
- // Visibility
141
-
142
- $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
143
-
144
- @each $display in $displays
145
- .is-#{$display}
146
- display: #{$display} !important
147
- +mobile
148
- .is-#{$display}-mobile
149
- display: #{$display} !important
150
- +tablet
151
- .is-#{$display}-tablet
152
- display: #{$display} !important
153
- +tablet-only
154
- .is-#{$display}-tablet-only
155
- display: #{$display} !important
156
- +touch
157
- .is-#{$display}-touch
158
- display: #{$display} !important
159
- +desktop
160
- .is-#{$display}-desktop
161
- display: #{$display} !important
162
- +desktop-only
163
- .is-#{$display}-desktop-only
164
- display: #{$display} !important
165
- +widescreen
166
- .is-#{$display}-widescreen
167
- display: #{$display} !important
168
- +widescreen-only
169
- .is-#{$display}-widescreen-only
170
- display: #{$display} !important
171
- +fullhd
172
- .is-#{$display}-fullhd
173
- display: #{$display} !important
174
-
175
- .is-hidden
176
- display: none !important
177
-
178
- .is-sr-only
179
- border: none !important
180
- clip: rect(0, 0, 0, 0) !important
181
- height: 0.01em !important
182
- overflow: hidden !important
183
- padding: 0 !important
184
- position: absolute !important
185
- white-space: nowrap !important
186
- width: 0.01em !important
187
-
188
- +mobile
189
- .is-hidden-mobile
190
- display: none !important
191
-
192
- +tablet
193
- .is-hidden-tablet
194
- display: none !important
195
-
196
- +tablet-only
197
- .is-hidden-tablet-only
198
- display: none !important
199
-
200
- +touch
201
- .is-hidden-touch
202
- display: none !important
203
-
204
- +desktop
205
- .is-hidden-desktop
206
- display: none !important
207
-
208
- +desktop-only
209
- .is-hidden-desktop-only
210
- display: none !important
211
-
212
- +widescreen
213
- .is-hidden-widescreen
214
- display: none !important
215
-
216
- +widescreen-only
217
- .is-hidden-widescreen-only
218
- display: none !important
219
-
220
- +fullhd
221
- .is-hidden-fullhd
222
- display: none !important
223
-
224
- .is-invisible
225
- visibility: hidden !important
226
-
227
- +mobile
228
- .is-invisible-mobile
229
- visibility: hidden !important
230
-
231
- +tablet
232
- .is-invisible-tablet
233
- visibility: hidden !important
234
-
235
- +tablet-only
236
- .is-invisible-tablet-only
237
- visibility: hidden !important
238
-
239
- +touch
240
- .is-invisible-touch
241
- visibility: hidden !important
242
-
243
- +desktop
244
- .is-invisible-desktop
245
- visibility: hidden !important
246
-
247
- +desktop-only
248
- .is-invisible-desktop-only
249
- visibility: hidden !important
250
-
251
- +widescreen
252
- .is-invisible-widescreen
253
- visibility: hidden !important
254
-
255
- +widescreen-only
256
- .is-invisible-widescreen-only
257
- visibility: hidden !important
258
-
259
- +fullhd
260
- .is-invisible-fullhd
261
- visibility: hidden !important
262
-
263
- // Other
264
-
265
- .is-marginless
266
- margin: 0 !important
267
-
268
- .is-paddingless
269
- padding: 0 !important
270
-
271
- .is-radiusless
272
- border-radius: 0 !important
273
-
274
- .is-shadowless
275
- box-shadow: none !important
276
-
277
- .is-unselectable
278
- @extend %unselectable
279
-
280
- .is-relative
281
- position: relative !important
1
+ @warn "The helpers.sass file is DEPRECATED. It has moved into its own /helpers folder. Please import sass/helpers/_all instead."
@@ -76,4 +76,4 @@ td,
76
76
  th
77
77
  padding: 0
78
78
  &:not([align])
79
- text-align: left
79
+ text-align: inherit
@@ -4,7 +4,6 @@
4
4
  @import "card.sass"
5
5
  @import "dropdown.sass"
6
6
  @import "level.sass"
7
- @import "list.sass"
8
7
  @import "media.sass"
9
8
  @import "menu.sass"
10
9
  @import "message.sass"
@@ -24,7 +24,7 @@ $breadcrumb-item-separator-color: $border-hover !default
24
24
  align-items: center
25
25
  display: flex
26
26
  &:first-child a
27
- padding-left: 0
27
+ +ltr-property("padding", 0, false)
28
28
  &.is-active
29
29
  a
30
30
  color: $breadcrumb-item-active-color
@@ -41,9 +41,9 @@ $breadcrumb-item-separator-color: $border-hover !default
41
41
  justify-content: flex-start
42
42
  .icon
43
43
  &:first-child
44
- margin-right: 0.5em
44
+ +ltr-property("margin", 0.5em)
45
45
  &:last-child
46
- margin-left: 0.5em
46
+ +ltr-property("margin", 0.5em, false)
47
47
  // Alignment
48
48
  &.is-centered
49
49
  ol,
@@ -70,7 +70,7 @@ $card-media-margin: $block-spacing !default
70
70
  justify-content: center
71
71
  padding: $card-footer-padding
72
72
  &:not(:last-child)
73
- border-right: $card-footer-border-top
73
+ +ltr-property("border", $card-footer-border-top)
74
74
 
75
75
  // Combinations
76
76
 
@@ -38,7 +38,7 @@ $dropdown-divider-background-color: $border-light !default
38
38
 
39
39
  .dropdown-menu
40
40
  display: none
41
- left: 0
41
+ +ltr-position(0, false)
42
42
  min-width: $dropdown-menu-min-width
43
43
  padding-top: $dropdown-content-offset
44
44
  position: absolute
@@ -62,8 +62,8 @@ $dropdown-divider-background-color: $border-light !default
62
62
 
63
63
  a.dropdown-item,
64
64
  button.dropdown-item
65
- padding-right: 3rem
66
- text-align: left
65
+ +ltr-property("padding", 3rem)
66
+ text-align: inherit
67
67
  white-space: nowrap
68
68
  width: 100%
69
69
  &:hover
@@ -20,7 +20,7 @@ $level-item-spacing: ($block-spacing / 2) !default
20
20
  .level-item
21
21
  &:not(:last-child)
22
22
  margin-bottom: 0
23
- margin-right: $level-item-spacing
23
+ +ltr-property("margin", $level-item-spacing)
24
24
  &:not(.is-narrow)
25
25
  flex-grow: 1
26
26
  // Responsiveness
@@ -57,7 +57,7 @@ $level-item-spacing: ($block-spacing / 2) !default
57
57
  // Responsiveness
58
58
  +tablet
59
59
  &:not(:last-child)
60
- margin-right: $level-item-spacing
60
+ +ltr-property("margin", $level-item-spacing)
61
61
 
62
62
  .level-left
63
63
  align-items: center
@@ -1,9 +1,11 @@
1
1
  $media-border-color: bulmaRgba($border, 0.5) !default
2
+ $media-spacing: 1rem
3
+ $media-spacing-large: 1.5rem
2
4
 
3
5
  .media
4
6
  align-items: flex-start
5
7
  display: flex
6
- text-align: left
8
+ text-align: inherit
7
9
  .content:not(:last-child)
8
10
  margin-bottom: 0.75rem
9
11
  .media
@@ -19,13 +21,13 @@ $media-border-color: bulmaRgba($border, 0.5) !default
19
21
  margin-top: 0.5rem
20
22
  & + .media
21
23
  border-top: 1px solid $media-border-color
22
- margin-top: 1rem
23
- padding-top: 1rem
24
+ margin-top: $media-spacing
25
+ padding-top: $media-spacing
24
26
  // Sizes
25
27
  &.is-large
26
28
  & + .media
27
- margin-top: 1.5rem
28
- padding-top: 1.5rem
29
+ margin-top: $media-spacing-large
30
+ padding-top: $media-spacing-large
29
31
 
30
32
  .media-left,
31
33
  .media-right
@@ -34,16 +36,16 @@ $media-border-color: bulmaRgba($border, 0.5) !default
34
36
  flex-shrink: 0
35
37
 
36
38
  .media-left
37
- margin-right: 1rem
39
+ +ltr-property("margin", $media-spacing)
38
40
 
39
41
  .media-right
40
- margin-left: 1rem
42
+ +ltr-property("margin", $media-spacing, false)
41
43
 
42
44
  .media-content
43
45
  flex-basis: auto
44
46
  flex-grow: 1
45
47
  flex-shrink: 1
46
- text-align: left
48
+ text-align: inherit
47
49
 
48
50
  +mobile
49
51
  .media-content