bulma-rails 0.1.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/stylesheets/bulma.sass +7 -5
  4. data/app/assets/stylesheets/sass/base/_all.sass +5 -0
  5. data/app/assets/stylesheets/sass/base/generic.sass +7 -2
  6. data/app/assets/stylesheets/sass/base/helpers.sass +4 -1
  7. data/app/assets/stylesheets/sass/base/minireset.sass +81 -0
  8. data/app/assets/stylesheets/sass/components/_all.sass +13 -0
  9. data/app/assets/stylesheets/sass/components/level.sass +1 -1
  10. data/app/assets/stylesheets/sass/components/media.sass +8 -5
  11. data/app/assets/stylesheets/sass/components/message.sass +1 -1
  12. data/app/assets/stylesheets/sass/components/modal.sass +10 -5
  13. data/app/assets/stylesheets/sass/components/nav.sass +9 -2
  14. data/app/assets/stylesheets/sass/components/pagination.sass +2 -0
  15. data/app/assets/stylesheets/sass/components/tabs.sass +4 -2
  16. data/app/assets/stylesheets/sass/elements/_all.sass +13 -0
  17. data/app/assets/stylesheets/sass/elements/box.sass +1 -1
  18. data/app/assets/stylesheets/sass/elements/button.sass +8 -8
  19. data/app/assets/stylesheets/sass/elements/content.sass +2 -1
  20. data/app/assets/stylesheets/sass/elements/form.sass +23 -19
  21. data/app/assets/stylesheets/sass/elements/notification.sass +3 -2
  22. data/app/assets/stylesheets/sass/elements/other.sass +22 -101
  23. data/app/assets/stylesheets/sass/elements/progress.sass +1 -1
  24. data/app/assets/stylesheets/sass/elements/table.sass +18 -12
  25. data/app/assets/stylesheets/sass/elements/title.sass +1 -1
  26. data/app/assets/stylesheets/sass/grid/_all.sass +4 -0
  27. data/app/assets/stylesheets/sass/grid/columns.sass +251 -0
  28. data/app/assets/stylesheets/sass/grid/tiles.sass +32 -0
  29. data/app/assets/stylesheets/sass/layout/_all.sass +5 -0
  30. data/app/assets/stylesheets/sass/layout/hero.sass +6 -4
  31. data/app/assets/stylesheets/sass/utilities/_all.sass +6 -0
  32. data/app/assets/stylesheets/sass/utilities/controls.sass +28 -5
  33. data/app/assets/stylesheets/sass/utilities/functions.sass +2 -8
  34. data/app/assets/stylesheets/sass/utilities/mixins.sass +118 -0
  35. data/app/assets/stylesheets/sass/utilities/variables.sass +40 -62
  36. data/bulma-rails.gemspec +1 -1
  37. metadata +11 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 569c0a6d1430ec07030abe8247228423343a7618
4
- data.tar.gz: 4922e383a86f73e26893ad30da1f6a1d65d1db7f
3
+ metadata.gz: 049654e30381034feb5371e238dae3610de26490
4
+ data.tar.gz: 0d8ff083ba812298ae36a7ac903552020cb41773
5
5
  SHA512:
6
- metadata.gz: 40604dedd9348e6768c567502d020aae4b683ae8cb39c54ae43c75e813a6dedb92a912756b72e61da7b17fa3550a4ed694f2a527e615e943326157746470e1b1
7
- data.tar.gz: 6571dcf818cf5f1b5e9e04984f437e897edd1555b0f109356e786a5884d61a61793f8d96c17923c75c667bba962780bf469c8a8a197678f58a65163f30107d93
6
+ metadata.gz: e78d868dd9d930411b87df7dcf6ea70f2c07ee43e626e02d6aaf1238862c3a0dc9edc1e0622442566634ac7c295627dd8dccf2168ae10732a39c7b6835020cde
7
+ data.tar.gz: 286e4ab0caf98e5bdd9eb5b7014a5fd6207bc1f1558d23e1e33f940601976c76431d0274d1dcd0668241715a99be64644f620848cb3b4cd5be7c2e11b3bfd7b3
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.1.2"
11
+ gem "bulma-rails", "~> 0.2.3"
12
12
 
13
13
  And then execute:
14
14
 
@@ -1,7 +1,9 @@
1
+ /*! bulma.io v0.2.3 | MIT License | github.com/jgthms/bulma */
1
2
  @charset "utf-8"
2
3
 
3
- @import "sass/utilities/utilities"
4
- @import "sass/base/base"
5
- @import "sass/elements/elements"
6
- @import "sass/components/components"
7
- @import "sass/layout/layout"
4
+ @import "sass/utilities/_all"
5
+ @import "sass/base/_all"
6
+ @import "sass/elements/_all"
7
+ @import "sass/components/_all"
8
+ @import "sass/grid/_all"
9
+ @import "sass/layout/_all"
@@ -0,0 +1,5 @@
1
+ @charset "utf-8"
2
+
3
+ @import "minireset.sass"
4
+ @import "generic.sass"
5
+ @import "helpers.sass"
@@ -1,3 +1,5 @@
1
+ $body-background: $white-ter !default
2
+
1
3
  html
2
4
  background-color: $body-background
3
5
  font-size: $size-normal
@@ -55,8 +57,11 @@ code
55
57
  padding: 1px 2px 2px
56
58
 
57
59
  hr
58
- border-top-color: $border
59
- margin: 40px 0
60
+ background-color: $border
61
+ border: none
62
+ display: block
63
+ height: 1px
64
+ margin: 20px 0
60
65
 
61
66
  img
62
67
  max-width: 100%
@@ -100,5 +100,8 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
100
100
  .is-marginless
101
101
  margin: 0 !important
102
102
 
103
+ .is-paddingless
104
+ padding: 0 !important
105
+
103
106
  .is-unselectable
104
- @extend .unselectable
107
+ +unselectable
@@ -0,0 +1,81 @@
1
+ /*! minireset.css v0.0.2 | MIT License | github.com/jgthms/minireset.css */
2
+ // Blocks
3
+ html,
4
+ body,
5
+ p,
6
+ ol,
7
+ ul,
8
+ li,
9
+ dl,
10
+ dt,
11
+ dd,
12
+ blockquote,
13
+ figure,
14
+ fieldset,
15
+ legend,
16
+ textarea,
17
+ pre,
18
+ iframe,
19
+ hr,
20
+ h1,
21
+ h2,
22
+ h3,
23
+ h4,
24
+ h5,
25
+ h6
26
+ margin: 0
27
+ padding: 0
28
+
29
+ // Headings
30
+ h1,
31
+ h2,
32
+ h3,
33
+ h4,
34
+ h5,
35
+ h6
36
+ font-size: 100%
37
+ font-weight: normal
38
+
39
+ // List
40
+ ul
41
+ list-style: none
42
+
43
+ // Form
44
+ button,
45
+ input,
46
+ select,
47
+ textarea
48
+ margin: 0
49
+
50
+ // Box sizing
51
+ html
52
+ box-sizing: border-box
53
+
54
+ *
55
+ box-sizing: inherit
56
+ &:before,
57
+ &:after
58
+ box-sizing: inherit
59
+
60
+ // Media
61
+ img,
62
+ embed,
63
+ object,
64
+ audio,
65
+ video
66
+ height: auto
67
+ max-width: 100%
68
+
69
+ // Iframe
70
+ iframe
71
+ border: 0
72
+
73
+ // Table
74
+ table
75
+ border-collapse: collapse
76
+ border-spacing: 0
77
+
78
+ td,
79
+ th
80
+ padding: 0
81
+ text-align: left
@@ -0,0 +1,13 @@
1
+ @charset "utf-8"
2
+
3
+ @import "card.sass"
4
+ @import "highlight.sass"
5
+ @import "level.sass"
6
+ @import "media.sass"
7
+ @import "menu.sass"
8
+ @import "message.sass"
9
+ @import "modal.sass"
10
+ @import "nav.sass"
11
+ @import "pagination.sass"
12
+ @import "panel.sass"
13
+ @import "tabs.sass"
@@ -33,7 +33,7 @@
33
33
  justify-content: flex-end
34
34
 
35
35
  .level
36
- @extend .block
36
+ +block
37
37
  align-items: center
38
38
  justify-content: space-between
39
39
  code
@@ -1,3 +1,9 @@
1
+ .media-number,
2
+ .media-left,
3
+ .media-right
4
+ flex-grow: 0
5
+ flex-shrink: 0
6
+
1
7
  .media-number
2
8
  background-color: $background
3
9
  border-radius: 290486px
@@ -5,15 +11,11 @@
5
11
  font-size: $size-medium
6
12
  height: 32px
7
13
  line-height: 24px
14
+ margin-right: 10px
8
15
  min-width: 32px
9
16
  padding: 4px 8px
10
17
  text-align: center
11
18
  vertical-align: top
12
- // Responsiveness
13
- +mobile
14
- margin-bottom: 10px
15
- +tablet
16
- margin-right: 10px
17
19
 
18
20
  .media-left
19
21
  margin-right: 10px
@@ -23,6 +25,7 @@
23
25
 
24
26
  .media-content
25
27
  flex-grow: 1
28
+ flex-shrink: 1
26
29
  text-align: left
27
30
 
28
31
  .media
@@ -17,7 +17,7 @@
17
17
  border-top: none
18
18
 
19
19
  .message
20
- @extend .block
20
+ +block
21
21
  background-color: $background
22
22
  border-radius: $radius
23
23
  // Colors
@@ -2,7 +2,8 @@
2
2
  +overlay
3
3
  background-color: rgba($black, 0.86)
4
4
 
5
- .modal-content
5
+ .modal-content,
6
+ .modal-card
6
7
  margin: 0 20px
7
8
  max-height: calc(100vh - 160px)
8
9
  overflow: auto
@@ -15,7 +16,7 @@
15
16
  width: 640px
16
17
 
17
18
  .modal-close
18
- @extend .delete
19
+ +delete
19
20
  background: none
20
21
  height: 40px
21
22
  position: fixed
@@ -24,9 +25,6 @@
24
25
  width: 40px
25
26
 
26
27
  .modal-card
27
- @extend .modal-content
28
- background-color: $white
29
- border-radius: $radius-large
30
28
  display: flex
31
29
  flex-direction: column
32
30
  max-height: calc(100vh - 40px)
@@ -44,21 +42,28 @@
44
42
 
45
43
  .modal-card-head
46
44
  border-bottom: 1px solid $border
45
+ border-top-left-radius: $radius-large
46
+ border-top-right-radius: $radius-large
47
47
 
48
48
  .modal-card-title
49
49
  color: $text-strong
50
50
  flex-grow: 1
51
+ flex-shrink: 0
51
52
  font-size: $size-4
52
53
  line-height: 1
53
54
 
54
55
  .modal-card-foot
56
+ border-bottom-left-radius: $radius-large
57
+ border-bottom-right-radius: $radius-large
55
58
  border-top: 1px solid $border
56
59
  .button
57
60
  &:not(:last-child)
58
61
  margin-right: 10px
59
62
 
60
63
  .modal-card-body
64
+ background-color: $white
61
65
  flex-grow: 1
66
+ flex-shrink: 1
62
67
  overflow: auto
63
68
  padding: 20px
64
69
 
@@ -1,7 +1,9 @@
1
+ $nav-height: 50px !default
2
+
1
3
  // Components
2
4
 
3
5
  .nav-toggle
4
- @extend .hamburger
6
+ +hamburger($nav-height)
5
7
  // Responsiveness
6
8
  +tablet
7
9
  display: none
@@ -9,10 +11,13 @@
9
11
  .nav-item
10
12
  align-items: center
11
13
  display: flex
14
+ flex-grow: 0
15
+ flex-shrink: 0
12
16
  justify-content: center
13
17
  padding: 10px
14
18
  a
15
19
  flex-grow: 1
20
+ flex-shrink: 0
16
21
  img
17
22
  max-height: 24px
18
23
  .button + .button
@@ -28,7 +33,7 @@
28
33
 
29
34
  .nav-item a,
30
35
  a.nav-item
31
- color: $text
36
+ color: $text-light
32
37
  &:hover
33
38
  color: $link-hover
34
39
  // Modifiers
@@ -72,6 +77,7 @@ a.nav-item
72
77
  display: flex
73
78
  flex-basis: 0
74
79
  flex-grow: 1
80
+ flex-shrink: 0
75
81
  justify-content: flex-start
76
82
  overflow: hidden
77
83
  overflow-x: auto
@@ -91,6 +97,7 @@ a.nav-item
91
97
  display: flex
92
98
  flex-basis: 0
93
99
  flex-grow: 1
100
+ flex-shrink: 0
94
101
  justify-content: flex-end
95
102
 
96
103
  // Main container
@@ -17,6 +17,7 @@
17
17
  align-items: center
18
18
  display: flex
19
19
  flex-grow: 1
20
+ flex-shrink: 0
20
21
  justify-content: center
21
22
  // Responsiveness
22
23
  +mobile
@@ -27,6 +28,7 @@
27
28
  margin-left: 10px
28
29
  li
29
30
  flex-grow: 1
31
+ flex-shrink: 0
30
32
  ul
31
33
  margin-top: 10px
32
34
  +tablet
@@ -1,6 +1,6 @@
1
1
  .tabs
2
- @extend .block
3
- @extend .unselectable
2
+ +block
3
+ +unselectable
4
4
  align-items: stretch
5
5
  display: flex
6
6
  justify-content: space-between
@@ -31,6 +31,7 @@
31
31
  border-bottom: 1px solid $border
32
32
  display: flex
33
33
  flex-grow: 1
34
+ flex-shrink: 0
34
35
  justify-content: flex-start
35
36
  &.is-left
36
37
  padding-right: 10px
@@ -73,6 +74,7 @@
73
74
  &.is-fullwidth
74
75
  li
75
76
  flex-grow: 1
77
+ flex-shrink: 0
76
78
  &.is-toggle
77
79
  a
78
80
  border: 1px solid $border
@@ -0,0 +1,13 @@
1
+ @charset "utf-8"
2
+
3
+ @import "box.sass"
4
+ @import "button.sass"
5
+ @import "content.sass"
6
+ @import "form.sass"
7
+ @import "image.sass"
8
+ @import "notification.sass"
9
+ @import "progress.sass"
10
+ @import "table.sass"
11
+ @import "title.sass"
12
+
13
+ @import "other.sass"
@@ -1,5 +1,5 @@
1
1
  .box
2
- @extend .block
2
+ +block
3
3
  background-color: $white
4
4
  border-radius: $radius-large
5
5
  box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1)
@@ -18,7 +18,8 @@
18
18
 
19
19
  .button
20
20
  +control
21
- @extend .unselectable
21
+ +unselectable
22
+ cursor: pointer
22
23
  justify-content: center
23
24
  padding-left: 10px
24
25
  padding-right: 10px
@@ -51,16 +52,14 @@
51
52
  $color-invert: nth($pair, 2)
52
53
  &.is-#{$name}
53
54
  background-color: $color
54
- border-color: transparent
55
+ border-width: 0
55
56
  color: $color-invert
56
57
  &:hover,
57
58
  &:focus,
58
59
  &.is-active
59
- background-color: darken($color, 10%)
60
+ background-color: darken($color, 5%)
60
61
  border-color: transparent
61
62
  color: $color-invert
62
- &:active
63
- border-color: transparent
64
63
  &.is-inverted
65
64
  background-color: $color-invert
66
65
  color: $color
@@ -72,6 +71,7 @@
72
71
  &.is-outlined
73
72
  background-color: transparent
74
73
  border-color: $color
74
+ border-width: 1px
75
75
  color: $color
76
76
  &:hover,
77
77
  &:focus
@@ -80,12 +80,12 @@
80
80
  color: $color-invert
81
81
  &.is-link
82
82
  background-color: transparent
83
- border-color: transparent
83
+ border-width: 0
84
84
  color: $text
85
85
  text-decoration: underline
86
86
  &:hover,
87
87
  &:focus
88
- background-color: $border
88
+ background-color: $background
89
89
  color: $text-strong
90
90
  // Sizes
91
91
  &.is-small
@@ -105,6 +105,6 @@
105
105
  color: transparent !important
106
106
  pointer-events: none
107
107
  &:after
108
- @extend .loader
108
+ +loader
109
109
  +center(16px)
110
110
  position: absolute !important