bulma-sass 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/app/assets/stylesheets/bulma.sass +2 -1
  3. data/app/assets/stylesheets/sass/base/_all.sass +0 -1
  4. data/app/assets/stylesheets/sass/base/generic.sass +1 -1
  5. data/app/assets/stylesheets/sass/base/helpers.sass +1 -281
  6. data/app/assets/stylesheets/sass/base/minireset.sass +1 -1
  7. data/app/assets/stylesheets/sass/components/_all.sass +0 -1
  8. data/app/assets/stylesheets/sass/components/breadcrumb.sass +3 -3
  9. data/app/assets/stylesheets/sass/components/card.sass +1 -1
  10. data/app/assets/stylesheets/sass/components/dropdown.sass +3 -3
  11. data/app/assets/stylesheets/sass/components/level.sass +2 -2
  12. data/app/assets/stylesheets/sass/components/media.sass +10 -8
  13. data/app/assets/stylesheets/sass/components/menu.sass +2 -2
  14. data/app/assets/stylesheets/sass/components/message.sass +1 -1
  15. data/app/assets/stylesheets/sass/components/modal.sass +2 -2
  16. data/app/assets/stylesheets/sass/components/navbar.sass +9 -9
  17. data/app/assets/stylesheets/sass/components/panel.sass +2 -2
  18. data/app/assets/stylesheets/sass/components/tabs.sass +35 -12
  19. data/app/assets/stylesheets/sass/elements/button.sass +7 -7
  20. data/app/assets/stylesheets/sass/elements/content.sass +5 -5
  21. data/app/assets/stylesheets/sass/elements/notification.sass +7 -2
  22. data/app/assets/stylesheets/sass/elements/table.sass +3 -1
  23. data/app/assets/stylesheets/sass/elements/tag.sass +24 -16
  24. data/app/assets/stylesheets/sass/form/checkbox-radio.sass +1 -1
  25. data/app/assets/stylesheets/sass/form/file.sass +2 -2
  26. data/app/assets/stylesheets/sass/form/select.sass +4 -4
  27. data/app/assets/stylesheets/sass/form/tools.sass +18 -10
  28. data/app/assets/stylesheets/sass/helpers/_all.sass +10 -0
  29. data/app/assets/stylesheets/sass/helpers/color.sass +37 -0
  30. data/app/assets/stylesheets/sass/helpers/float.sass +8 -0
  31. data/app/assets/stylesheets/sass/helpers/other.sass +8 -0
  32. data/app/assets/stylesheets/sass/helpers/overflow.sass +2 -0
  33. data/app/assets/stylesheets/sass/helpers/position.sass +5 -0
  34. data/app/assets/stylesheets/sass/helpers/spacing.sass +28 -0
  35. data/app/assets/stylesheets/sass/helpers/typography.sass +98 -0
  36. data/app/assets/stylesheets/sass/helpers/visibility.sass +122 -0
  37. data/app/assets/stylesheets/sass/layout/hero.sass +1 -1
  38. data/app/assets/stylesheets/sass/utilities/_all.sass +1 -1
  39. data/app/assets/stylesheets/sass/utilities/derived-variables.scss +132 -0
  40. data/app/assets/stylesheets/sass/utilities/functions.sass +5 -0
  41. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +1 -0
  42. data/app/assets/stylesheets/sass/utilities/mixins.sass +24 -0
  43. data/lib/bulma/sass/version.rb +1 -1
  44. data/release.sh +2 -2
  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: bd840e2020796065274fa1138b7012d9e0748cddde967fba0fa003584ad61029
4
- data.tar.gz: 590e6e1dc37d37874d98280d0f9dba7dc2a50b2c59491182d46af5e92e95db22
3
+ metadata.gz: 1c4db8a0321255a07343a899c47467bd5796d0dd3fdfbf8520b888f4141ac668
4
+ data.tar.gz: 86d8c79213831b6e7109a77d63e0740a873648628244d1263dfe9368837f362a
5
5
  SHA512:
6
- metadata.gz: 1739be87d89b76492d0af162e9da21373060ce529207326fb72c5140338143ec50dcc82b0ab4c36358681c230091598af287ef211e336520dd170fbb58207e77
7
- data.tar.gz: 4860f7954139549927d7e85744d9e6cf5fe0b04541831d2218539d09769a419552494d25976ed54e79981e5dc5752eeab162e2837e4dd4cee3686226774fb7a4
6
+ metadata.gz: db8a97b06847c862911e6718e5b5d72aac1fc75be4e59c8e0fc3154665951d7ce329bf7de962f75eb61e9b94a6adf58f7e4482f5c50d81f055590026a6b065f5
7
+ data.tar.gz: ea5dd754eda821421e70ad3c6b37c4cd9b237c52c9b3df0f216fd9e830fbb52d7fdd83a25b1a7c1251dfa8e5ba4e854871bfe2e86b855a8d4eb93cf81fbae3e6
@@ -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