bulma-rails 0.2.3 → 0.3.0

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 (55) 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 -0
  5. data/app/assets/stylesheets/sass/base/generic.sass +13 -11
  6. data/app/assets/stylesheets/sass/base/helpers.sass +0 -0
  7. data/app/assets/stylesheets/sass/base/minireset.sass +0 -0
  8. data/app/assets/stylesheets/sass/components/_all.sass +0 -1
  9. data/app/assets/stylesheets/sass/components/card.sass +10 -15
  10. data/app/assets/stylesheets/sass/components/level.sass +16 -6
  11. data/app/assets/stylesheets/sass/components/media.sass +13 -30
  12. data/app/assets/stylesheets/sass/components/menu.sass +11 -11
  13. data/app/assets/stylesheets/sass/components/message.sass +47 -25
  14. data/app/assets/stylesheets/sass/components/modal.sass +1 -0
  15. data/app/assets/stylesheets/sass/components/nav.sass +33 -44
  16. data/app/assets/stylesheets/sass/components/pagination.sass +124 -28
  17. data/app/assets/stylesheets/sass/components/panel.sass +52 -35
  18. data/app/assets/stylesheets/sass/components/tabs.sass +10 -35
  19. data/app/assets/stylesheets/sass/elements/_all.sass +2 -0
  20. data/app/assets/stylesheets/sass/elements/box.sass +1 -1
  21. data/app/assets/stylesheets/sass/elements/button.sass +125 -42
  22. data/app/assets/stylesheets/sass/elements/content.sass +54 -25
  23. data/app/assets/stylesheets/sass/elements/form.sass +136 -92
  24. data/app/assets/stylesheets/sass/elements/icon.sass +12 -0
  25. data/app/assets/stylesheets/sass/elements/image.sass +0 -0
  26. data/app/assets/stylesheets/sass/elements/notification.sass +9 -5
  27. data/app/assets/stylesheets/sass/elements/other.sass +9 -61
  28. data/app/assets/stylesheets/sass/elements/progress.sass +4 -4
  29. data/app/assets/stylesheets/sass/elements/table.sass +16 -45
  30. data/app/assets/stylesheets/sass/elements/tag.sass +29 -0
  31. data/app/assets/stylesheets/sass/elements/title.sass +25 -44
  32. data/app/assets/stylesheets/sass/grid/_all.sass +0 -0
  33. data/app/assets/stylesheets/sass/grid/columns.sass +8 -8
  34. data/app/assets/stylesheets/sass/grid/tiles.sass +8 -8
  35. data/app/assets/stylesheets/sass/layout/_all.sass +0 -0
  36. data/app/assets/stylesheets/sass/layout/footer.sass +1 -11
  37. data/app/assets/stylesheets/sass/layout/hero.sass +13 -12
  38. data/app/assets/stylesheets/sass/layout/section.sass +3 -3
  39. data/app/assets/stylesheets/sass/utilities/_all.sass +0 -0
  40. data/app/assets/stylesheets/sass/utilities/controls.sass +14 -52
  41. data/app/assets/stylesheets/sass/utilities/functions.sass +10 -2
  42. data/app/assets/stylesheets/sass/utilities/mixins.sass +41 -36
  43. data/app/assets/stylesheets/sass/utilities/variables.sass +28 -24
  44. data/bulma-rails.gemspec +1 -1
  45. metadata +4 -12
  46. data/app/assets/stylesheets/sass/base/base.sass +0 -5
  47. data/app/assets/stylesheets/sass/base/classes.sass +0 -20
  48. data/app/assets/stylesheets/sass/components/components.sass +0 -14
  49. data/app/assets/stylesheets/sass/components/grid.sass +0 -282
  50. data/app/assets/stylesheets/sass/components/highlight.sass +0 -123
  51. data/app/assets/stylesheets/sass/elements/elements.sass +0 -13
  52. data/app/assets/stylesheets/sass/layout/layout.sass +0 -5
  53. data/app/assets/stylesheets/sass/utilities/animations.sass +0 -5
  54. data/app/assets/stylesheets/sass/utilities/reset.sass +0 -174
  55. data/app/assets/stylesheets/sass/utilities/utilities.sass +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 049654e30381034feb5371e238dae3610de26490
4
- data.tar.gz: 0d8ff083ba812298ae36a7ac903552020cb41773
3
+ metadata.gz: 33e1923ea594bb811bb56eb6a6bce07d05493e91
4
+ data.tar.gz: 283b72f793a75eabfc4d1462853277543ca065e4
5
5
  SHA512:
6
- metadata.gz: e78d868dd9d930411b87df7dcf6ea70f2c07ee43e626e02d6aaf1238862c3a0dc9edc1e0622442566634ac7c295627dd8dccf2168ae10732a39c7b6835020cde
7
- data.tar.gz: 286e4ab0caf98e5bdd9eb5b7014a5fd6207bc1f1558d23e1e33f940601976c76431d0274d1dcd0668241715a99be64644f620848cb3b4cd5be7c2e11b3bfd7b3
6
+ metadata.gz: 6873d11f2cfc242f2ca16c2a6747fb23b8806ae588c3a8bcc45de6ac4f84be0dc5b0c9a4ef80a06de03c6f20dba0779597bd0c3016c4fd3383a7b4126d7717c5
7
+ data.tar.gz: 7755bd0c55d8c461e8235dbb0415053cfb10af5cbb397c50c70a422f9ba4e00431a77ebc79fc557b38ba475a54185a40e91153879d3ed68b80a70c0c06276b35
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.2.3"
11
+ gem "bulma-rails", "~> 0.3.0"
12
12
 
13
13
  And then execute:
14
14
 
@@ -1,4 +1,5 @@
1
- /*! bulma.io v0.2.3 | MIT License | github.com/jgthms/bulma */
1
+
2
+ /*! bulma.io v0.3.0 | MIT License | github.com/jgthms/bulma */
2
3
  @charset "utf-8"
3
4
 
4
5
  @import "sass/utilities/_all"
File without changes
@@ -1,8 +1,9 @@
1
- $body-background: $white-ter !default
1
+ $body-background: $white !default
2
+ $body-size: $size-6 !default
2
3
 
3
4
  html
4
5
  background-color: $body-background
5
- font-size: $size-normal
6
+ font-size: $body-size
6
7
  -moz-osx-font-smoothing: grayscale
7
8
  -webkit-font-smoothing: antialiased
8
9
  min-width: 300px
@@ -31,13 +32,12 @@ pre
31
32
  -moz-osx-font-smoothing: auto
32
33
  -webkit-font-smoothing: auto
33
34
  font-family: $family-code
34
- line-height: 1.25
35
35
 
36
36
  body
37
37
  color: $text
38
38
  font-size: 1rem
39
39
  font-weight: $weight-normal
40
- line-height: 1.428571428571429
40
+ line-height: 1.5
41
41
 
42
42
  // Inline
43
43
 
@@ -52,16 +52,16 @@ a
52
52
  code
53
53
  background-color: $code-background
54
54
  color: $code
55
- font-size: 12px
55
+ font-size: 0.8em
56
56
  font-weight: normal
57
- padding: 1px 2px 2px
57
+ padding: 0.25em 0.5em 0.25em
58
58
 
59
59
  hr
60
60
  background-color: $border
61
61
  border: none
62
62
  display: block
63
63
  height: 1px
64
- margin: 20px 0
64
+ margin: 1.5rem 0
65
65
 
66
66
  img
67
67
  max-width: 100%
@@ -71,7 +71,7 @@ input[type="radio"]
71
71
  vertical-align: baseline
72
72
 
73
73
  small
74
- font-size: $size-small
74
+ font-size: 0.8em
75
75
 
76
76
  span
77
77
  font-style: inherit
@@ -86,14 +86,16 @@ strong
86
86
  pre
87
87
  background-color: $pre-background
88
88
  color: $pre
89
+ font-size: 0.8em
89
90
  white-space: pre
90
91
  word-wrap: normal
91
92
  code
92
- background-color: $pre-background
93
- color: $pre
93
+ background: none
94
+ color: inherit
94
95
  display: block
96
+ font-size: 1em
95
97
  overflow-x: auto
96
- padding: 16px 20px
98
+ padding: 1.25rem 1.5rem
97
99
 
98
100
  table
99
101
  width: 100%
File without changes
File without changes
@@ -1,7 +1,6 @@
1
1
  @charset "utf-8"
2
2
 
3
3
  @import "card.sass"
4
- @import "highlight.sass"
5
4
  @import "level.sass"
6
5
  @import "media.sass"
7
6
  @import "menu.sass"
@@ -2,31 +2,30 @@
2
2
  align-items: stretch
3
3
  box-shadow: 0 1px 2px rgba($black, 0.1)
4
4
  display: flex
5
- min-height: 40px
6
5
 
7
6
  .card-header-title
8
- align-items: flex-start
7
+ align-items: center
9
8
  color: $text-strong
10
9
  display: flex
11
10
  flex-grow: 1
12
- font-weight: bold
13
- padding: 10px
11
+ font-weight: $weight-bold
12
+ padding: 0.75rem
14
13
 
15
14
  .card-header-icon
16
15
  align-items: center
17
16
  cursor: pointer
18
17
  display: flex
19
18
  justify-content: center
20
- width: 40px
19
+ padding: 0.75rem
21
20
 
22
21
  .card-image
23
22
  display: block
24
23
  position: relative
25
24
 
26
25
  .card-content
27
- padding: 20px
26
+ padding: 1.5rem
28
27
  .title + .subtitle
29
- margin-top: -20px
28
+ margin-top: -1.5rem
30
29
 
31
30
  .card-footer
32
31
  border-top: 1px solid $border
@@ -36,9 +35,11 @@
36
35
  .card-footer-item
37
36
  align-items: center
38
37
  display: flex
38
+ flex-basis: 0
39
39
  flex-grow: 1
40
+ flex-shrink: 0
40
41
  justify-content: center
41
- padding: 10px
42
+ padding: 0.75rem
42
43
  &:not(:last-child)
43
44
  border-right: 1px solid $border
44
45
 
@@ -48,11 +49,5 @@
48
49
  color: $text
49
50
  max-width: 100%
50
51
  position: relative
51
- width: 300px
52
52
  .media:not(:last-child)
53
- margin-bottom: 10px
54
- // Modifiers
55
- &.is-fullwidth
56
- width: 100%
57
- &.is-rounded
58
- border-radius: $radius-large
53
+ margin-bottom: 0.75rem
@@ -1,36 +1,46 @@
1
1
  .level-item
2
+ align-items: center
3
+ display: flex
4
+ flex-basis: auto
5
+ flex-grow: 0
6
+ flex-shrink: 0
7
+ justify-content: center
2
8
  .title,
3
9
  .subtitle
4
10
  margin-bottom: 0
5
11
  // Responsiveness
6
12
  +mobile
7
13
  &:not(:last-child)
8
- margin-bottom: 10px
14
+ margin-bottom: 0.75rem
9
15
 
10
16
  .level-left,
11
17
  .level-right
18
+ flex-basis: auto
19
+ flex-grow: 0
20
+ flex-shrink: 0
12
21
  .level-item
13
22
  &:not(:last-child)
14
- margin-right: 10px
23
+ margin-right: 0.75rem
15
24
  // Modifiers
16
25
  &.is-flexible
17
26
  flex-grow: 1
18
27
 
19
28
  .level-left
29
+ align-items: center
30
+ justify-content: flex-start
20
31
  // Responsiveness
21
32
  +mobile
22
33
  & + .level-right
23
- margin-top: 20px
34
+ margin-top: 1.5rem
24
35
  +tablet
25
- align-items: center
26
36
  display: flex
27
37
 
28
38
  .level-right
39
+ align-items: center
40
+ justify-content: flex-end
29
41
  // Responsiveness
30
42
  +tablet
31
- align-items: center
32
43
  display: flex
33
- justify-content: flex-end
34
44
 
35
45
  .level
36
46
  +block
@@ -1,29 +1,17 @@
1
- .media-number,
2
1
  .media-left,
3
2
  .media-right
3
+ flex-basis: auto
4
4
  flex-grow: 0
5
5
  flex-shrink: 0
6
6
 
7
- .media-number
8
- background-color: $background
9
- border-radius: 290486px
10
- display: inline-block
11
- font-size: $size-medium
12
- height: 32px
13
- line-height: 24px
14
- margin-right: 10px
15
- min-width: 32px
16
- padding: 4px 8px
17
- text-align: center
18
- vertical-align: top
19
-
20
7
  .media-left
21
- margin-right: 10px
8
+ margin-right: 1rem
22
9
 
23
10
  .media-right
24
- margin-left: 10px
11
+ margin-left: 1rem
25
12
 
26
13
  .media-content
14
+ flex-basis: auto
27
15
  flex-grow: 1
28
16
  flex-shrink: 1
29
17
  text-align: left
@@ -33,29 +21,24 @@
33
21
  display: flex
34
22
  text-align: left
35
23
  .content:not(:last-child)
36
- margin-bottom: 10px
24
+ margin-bottom: 0.75rem
37
25
  .media
38
26
  border-top: 1px solid rgba($border, 0.5)
39
27
  display: flex
40
- padding-top: 10px
28
+ padding-top: 0.75rem
41
29
  .content:not(:last-child),
42
30
  .control:not(:last-child)
43
- margin-bottom: 5px
31
+ margin-bottom: 0.5rem
44
32
  .media
45
- padding-top: 5px
33
+ padding-top: 0.5rem
46
34
  & + .media
47
- margin-top: 5px
35
+ margin-top: 0.5rem
48
36
  & + .media
49
37
  border-top: 1px solid rgba($border, 0.5)
50
- margin-top: 10px
51
- padding-top: 10px
38
+ margin-top: 1rem
39
+ padding-top: 1rem
52
40
  // Sizes
53
41
  &.is-large
54
42
  & + .media
55
- margin-top: 20px
56
- padding-top: 20px
57
- // Responsiveness
58
- +tablet
59
- &.is-large
60
- .media-number
61
- margin-right: 20px
43
+ margin-top: 1.5rem
44
+ padding-top: 1.5rem
@@ -1,14 +1,13 @@
1
- .menu-nav
2
- a
3
- display: block
4
- padding: 5px 10px
1
+ .menu
2
+ font-size: $size-normal
5
3
 
6
4
  .menu-list
5
+ line-height: 1.25
7
6
  a
8
7
  border-radius: $radius-small
9
8
  color: $text
10
9
  display: block
11
- padding: 5px 10px
10
+ padding: 0.5em 0.75em
12
11
  &:hover
13
12
  background-color: $background
14
13
  color: $link
@@ -19,14 +18,15 @@
19
18
  li
20
19
  ul
21
20
  border-left: 1px solid $border
22
- margin: 10px
23
- padding-left: 10px
21
+ margin: 0.75em
22
+ padding-left: 0.75em
24
23
 
25
24
  .menu-label
26
25
  color: $text-light
27
- font-size: $size-small
28
- letter-spacing: 1px
29
- margin-bottom: 5px
26
+ font-size: 0.8em
27
+ letter-spacing: 0.1em
30
28
  text-transform: uppercase
31
29
  &:not(:first-child)
32
- margin-top: 20px
30
+ margin-top: 1em
31
+ &:not(:last-child)
32
+ margin-bottom: 1em
@@ -1,39 +1,61 @@
1
- .message-body
2
- border: 1px solid $border
3
- border-radius: $radius
4
- padding: 12px 15px
5
- strong
6
- color: inherit
7
-
8
- .message-header
9
- background-color: $text
10
- border-radius: $radius $radius 0 0
11
- color: $text-invert
12
- padding: 7px 10px
13
- strong
14
- color: inherit
15
- & + .message-body
16
- border-radius: 0 0 $radius $radius
17
- border-top: none
18
-
19
1
  .message
20
2
  +block
21
3
  background-color: $background
22
4
  border-radius: $radius
5
+ font-size: $size-normal
23
6
  // Colors
24
7
  @each $name, $pair in $colors
25
8
  $color: nth($pair, 1)
26
9
  $color-invert: nth($pair, 2)
27
- $lightning: max((100% - lightness($color)) - 4%, 0%)
28
- $darkness: max(lightness($color) - 10%, lightness($color))
10
+ $color-lightning: max((100% - lightness($color)) - 2%, 0%)
11
+ $color-luminance: colorLuminance($color)
12
+ $darken-percentage: $color-luminance * 70%
13
+ $desaturate-percentage: $color-luminance * 30%
29
14
  &.is-#{$name}
30
- background-color: lighten($color, $lightning)
15
+ background-color: lighten($color, $color-lightning)
31
16
  .message-header
32
17
  background-color: $color
33
18
  color: $color-invert
34
19
  .message-body
35
20
  border-color: $color
36
- @if (colorLuminance($color) > 0.8)
37
- color: desaturate(lighten(darken($color, 100%), 40%), 40%)
38
- @else
39
- color: desaturate(lighten(darken($color, 100%), 50%), 30%)
21
+ color: desaturate(darken($color, $darken-percentage), $desaturate-percentage)
22
+
23
+ .message-header
24
+ align-items: center
25
+ background-color: $text
26
+ border-radius: $radius $radius 0 0
27
+ color: $text-invert
28
+ display: flex
29
+ justify-content: space-between
30
+ line-height: 1.25
31
+ padding: 0.5em 0.75em
32
+ position: relative
33
+ a,
34
+ strong
35
+ color: inherit
36
+ a
37
+ text-decoration: underline
38
+ .delete
39
+ flex-grow: 0
40
+ flex-shrink: 0
41
+ margin-left: 0.75em
42
+ & + .message-body
43
+ border-top-left-radius: 0
44
+ border-top-right-radius: 0
45
+ border-top: none
46
+
47
+ .message-body
48
+ border: 1px solid $border
49
+ border-radius: $radius
50
+ color: $text
51
+ padding: 1em 1.25em
52
+ a,
53
+ strong
54
+ color: inherit
55
+ a
56
+ text-decoration: underline
57
+ code,
58
+ pre
59
+ background: $white
60
+ pre code
61
+ background: transparent
@@ -61,6 +61,7 @@
61
61
  margin-right: 10px
62
62
 
63
63
  .modal-card-body
64
+ +overflow-touch
64
65
  background-color: $white
65
66
  flex-grow: 1
66
67
  flex-shrink: 1