bulma-sass 0.7.5 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) 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 +2 -2
  5. data/app/assets/stylesheets/sass/base/helpers.sass +1 -281
  6. data/app/assets/stylesheets/sass/base/minireset.sass +2 -8
  7. data/app/assets/stylesheets/sass/components/_all.sass +0 -1
  8. data/app/assets/stylesheets/sass/components/breadcrumb.sass +4 -4
  9. data/app/assets/stylesheets/sass/components/card.sass +6 -6
  10. data/app/assets/stylesheets/sass/components/dropdown.sass +8 -8
  11. data/app/assets/stylesheets/sass/components/level.sass +2 -2
  12. data/app/assets/stylesheets/sass/components/media.sass +14 -10
  13. data/app/assets/stylesheets/sass/components/menu.sass +2 -2
  14. data/app/assets/stylesheets/sass/components/message.sass +23 -11
  15. data/app/assets/stylesheets/sass/components/modal.sass +4 -4
  16. data/app/assets/stylesheets/sass/components/navbar.sass +24 -26
  17. data/app/assets/stylesheets/sass/components/pagination.sass +7 -6
  18. data/app/assets/stylesheets/sass/components/panel.sass +29 -13
  19. data/app/assets/stylesheets/sass/components/tabs.sass +36 -13
  20. data/app/assets/stylesheets/sass/elements/box.sass +4 -4
  21. data/app/assets/stylesheets/sass/elements/button.sass +46 -28
  22. data/app/assets/stylesheets/sass/elements/container.sass +5 -4
  23. data/app/assets/stylesheets/sass/elements/content.sass +5 -5
  24. data/app/assets/stylesheets/sass/elements/image.sass +2 -0
  25. data/app/assets/stylesheets/sass/elements/notification.sass +16 -3
  26. data/app/assets/stylesheets/sass/elements/progress.sass +1 -1
  27. data/app/assets/stylesheets/sass/elements/table.sass +9 -7
  28. data/app/assets/stylesheets/sass/elements/tag.sass +31 -16
  29. data/app/assets/stylesheets/sass/elements/title.sass +3 -3
  30. data/app/assets/stylesheets/sass/form/_all.sass +8 -0
  31. data/app/assets/stylesheets/sass/form/checkbox-radio.sass +21 -0
  32. data/app/assets/stylesheets/sass/form/file.sass +180 -0
  33. data/app/assets/stylesheets/sass/form/input-textarea.sass +64 -0
  34. data/app/assets/stylesheets/sass/form/select.sass +85 -0
  35. data/app/assets/stylesheets/sass/form/shared.sass +55 -0
  36. data/app/assets/stylesheets/sass/form/tools.sass +213 -0
  37. data/app/assets/stylesheets/sass/helpers/_all.sass +10 -0
  38. data/app/assets/stylesheets/sass/helpers/color.sass +37 -0
  39. data/app/assets/stylesheets/sass/helpers/float.sass +8 -0
  40. data/app/assets/stylesheets/sass/helpers/other.sass +8 -0
  41. data/app/assets/stylesheets/sass/helpers/overflow.sass +2 -0
  42. data/app/assets/stylesheets/sass/helpers/position.sass +5 -0
  43. data/app/assets/stylesheets/sass/helpers/spacing.sass +28 -0
  44. data/app/assets/stylesheets/sass/helpers/typography.sass +98 -0
  45. data/app/assets/stylesheets/sass/helpers/visibility.sass +122 -0
  46. data/app/assets/stylesheets/sass/layout/footer.sass +1 -1
  47. data/app/assets/stylesheets/sass/layout/hero.sass +22 -20
  48. data/app/assets/stylesheets/sass/utilities/_all.sass +1 -1
  49. data/app/assets/stylesheets/sass/utilities/controls.sass +3 -3
  50. data/app/assets/stylesheets/sass/utilities/derived-variables.scss +132 -0
  51. data/app/assets/stylesheets/sass/utilities/functions.sass +68 -15
  52. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +5 -3
  53. data/app/assets/stylesheets/sass/utilities/mixins.sass +29 -5
  54. data/bulma-sass.gemspec +2 -2
  55. data/lib/bulma/sass/version.rb +1 -1
  56. data/release.sh +2 -2
  57. metadata +24 -10
  58. data/app/assets/stylesheets/sass/components/list.sass +0 -39
  59. data/app/assets/stylesheets/sass/utilities/derived-variables.sass +0 -85
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8bf07a7a9565214cb70299f04c46fb0bfe4f2882f6f8a840a25677b23e22075
4
- data.tar.gz: b52707372ffb2bf76717d1f5d7ad5fb43bf62f8843f4f7fa0a51192e96d7c83f
3
+ metadata.gz: 1c4db8a0321255a07343a899c47467bd5796d0dd3fdfbf8520b888f4141ac668
4
+ data.tar.gz: 86d8c79213831b6e7109a77d63e0740a873648628244d1263dfe9368837f362a
5
5
  SHA512:
6
- metadata.gz: 157f54158210e143d2a0d80c21014be0da4ae7a28d07f0feaddfc6448353b8395fb15027fac114067ac1d4dde06575e3acfc60666a25cca2b14e013eef7bc589
7
- data.tar.gz: 5232f9db6b106d9f4267a22403c422b10c937914b6f2685924b807d836e7e6c31b6dc0c983c36084f30d1df3717503d53c60eab35812333a1f3f90db6dd0f676
6
+ metadata.gz: db8a97b06847c862911e6718e5b5d72aac1fc75be4e59c8e0fc3154665951d7ce329bf7de962f75eb61e9b94a6adf58f7e4482f5c50d81f055590026a6b065f5
7
+ data.tar.gz: ea5dd754eda821421e70ad3c6b37c4cd9b237c52c9b3df0f216fd9e830fbb52d7fdd83a25b1a7c1251dfa8e5ba4e854871bfe2e86b855a8d4eb93cf81fbae3e6
@@ -1,9 +1,10 @@
1
1
  @charset "utf-8"
2
- /*! bulma.io v0.7.5 | 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"
@@ -1,4 +1,4 @@
1
- $body-background-color: $white !default
1
+ $body-background-color: $scheme-main !default
2
2
  $body-size: 16px !default
3
3
  $body-min-width: 300px !default
4
4
  $body-rendering: optimizeLegibility !default
@@ -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: darken($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."
@@ -1,4 +1,4 @@
1
- /*! minireset.css v0.0.4 | MIT License | github.com/jgthms/minireset.css */
1
+ /*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */
2
2
  // Blocks
3
3
  html,
4
4
  body,
@@ -59,16 +59,10 @@ html
59
59
 
60
60
  // Media
61
61
  img,
62
- embed,
63
- iframe,
64
- object,
65
62
  video
66
63
  height: auto
67
64
  max-width: 100%
68
65
 
69
- audio
70
- max-width: 100%
71
-
72
66
  // Iframe
73
67
  iframe
74
68
  border: 0
@@ -82,4 +76,4 @@ td,
82
76
  th
83
77
  padding: 0
84
78
  &:not([align])
85
- 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"
@@ -5,7 +5,7 @@ $breadcrumb-item-active-color: $text-strong !default
5
5
  $breadcrumb-item-padding-vertical: 0 !default
6
6
  $breadcrumb-item-padding-horizontal: 0.75em !default
7
7
 
8
- $breadcrumb-item-separator-color: $grey-light !default
8
+ $breadcrumb-item-separator-color: $border-hover !default
9
9
 
10
10
  .breadcrumb
11
11
  @extend %block
@@ -24,7 +24,7 @@ $breadcrumb-item-separator-color: $grey-light !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: $grey-light !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,
@@ -1,18 +1,18 @@
1
1
  $card-color: $text !default
2
- $card-background-color: $white !default
3
- $card-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default
2
+ $card-background-color: $scheme-main !default
3
+ $card-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
4
4
 
5
5
  $card-header-background-color: transparent !default
6
6
  $card-header-color: $text-strong !default
7
- $card-header-padding: 0.75rem !default
8
- $card-header-shadow: 0 1px 2px rgba($black, 0.1) !default
7
+ $card-header-padding: 0.75rem 1rem !default
8
+ $card-header-shadow: 0 0.125em 0.25em rgba($scheme-invert, 0.1) !default
9
9
  $card-header-weight: $weight-bold !default
10
10
 
11
11
  $card-content-background-color: transparent !default
12
12
  $card-content-padding: 1.5rem !default
13
13
 
14
14
  $card-footer-background-color: transparent !default
15
- $card-footer-border-top: 1px solid $border !default
15
+ $card-footer-border-top: 1px solid $border-light !default
16
16
  $card-footer-padding: 0.75rem !default
17
17
 
18
18
  $card-media-margin: $block-spacing !default
@@ -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
 
@@ -1,21 +1,21 @@
1
1
  $dropdown-menu-min-width: 12rem !default
2
2
 
3
- $dropdown-content-background-color: $white !default
3
+ $dropdown-content-background-color: $scheme-main !default
4
4
  $dropdown-content-arrow: $link !default
5
5
  $dropdown-content-offset: 4px !default
6
6
  $dropdown-content-padding-bottom: 0.5rem !default
7
7
  $dropdown-content-padding-top: 0.5rem !default
8
8
  $dropdown-content-radius: $radius !default
9
- $dropdown-content-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default
9
+ $dropdown-content-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
10
10
  $dropdown-content-z: 20 !default
11
11
 
12
- $dropdown-item-color: $grey-dark !default
13
- $dropdown-item-hover-color: $black !default
12
+ $dropdown-item-color: $text !default
13
+ $dropdown-item-hover-color: $scheme-invert !default
14
14
  $dropdown-item-hover-background-color: $background !default
15
15
  $dropdown-item-active-color: $link-invert !default
16
16
  $dropdown-item-active-background-color: $link !default
17
17
 
18
- $dropdown-divider-background-color: $border !default
18
+ $dropdown-divider-background-color: $border-light !default
19
19
 
20
20
  .dropdown
21
21
  display: inline-flex
@@ -38,7 +38,7 @@ $dropdown-divider-background-color: $border !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 !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