bulma-rails 0.4.3 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/stylesheets/bulma.sass +1 -2
  4. data/app/assets/stylesheets/sass/base/_all.sass +0 -0
  5. data/app/assets/stylesheets/sass/base/generic.sass +39 -19
  6. data/app/assets/stylesheets/sass/base/helpers.sass +132 -54
  7. data/app/assets/stylesheets/sass/base/minireset.sass +0 -0
  8. data/app/assets/stylesheets/sass/components/_all.sass +2 -1
  9. data/app/assets/stylesheets/sass/components/breadcrumb.sass +20 -14
  10. data/app/assets/stylesheets/sass/components/card.sass +24 -10
  11. data/app/assets/stylesheets/sass/components/dropdown.sass +68 -0
  12. data/app/assets/stylesheets/sass/components/level.sass +29 -29
  13. data/app/assets/stylesheets/sass/components/media.sass +18 -18
  14. data/app/assets/stylesheets/sass/components/menu.sass +27 -9
  15. data/app/assets/stylesheets/sass/components/message.sass +41 -18
  16. data/app/assets/stylesheets/sass/components/modal.sass +65 -35
  17. data/app/assets/stylesheets/sass/components/nav.sass +0 -0
  18. data/app/assets/stylesheets/sass/components/navbar.sass +80 -37
  19. data/app/assets/stylesheets/sass/components/pagination.sass +28 -28
  20. data/app/assets/stylesheets/sass/components/panel.sass +47 -22
  21. data/app/assets/stylesheets/sass/components/tabs.sass +58 -24
  22. data/app/assets/stylesheets/sass/elements/_all.sass +1 -0
  23. data/app/assets/stylesheets/sass/elements/box.sass +16 -6
  24. data/app/assets/stylesheets/sass/elements/button.sass +41 -39
  25. data/app/assets/stylesheets/sass/elements/container.sass +27 -0
  26. data/app/assets/stylesheets/sass/elements/content.sass +38 -18
  27. data/app/assets/stylesheets/sass/elements/form.sass +266 -54
  28. data/app/assets/stylesheets/sass/elements/icon.sass +13 -8
  29. data/app/assets/stylesheets/sass/elements/image.sass +1 -1
  30. data/app/assets/stylesheets/sass/elements/notification.sass +10 -4
  31. data/app/assets/stylesheets/sass/elements/other.sass +0 -18
  32. data/app/assets/stylesheets/sass/elements/progress.sass +6 -3
  33. data/app/assets/stylesheets/sass/elements/table.sass +42 -26
  34. data/app/assets/stylesheets/sass/elements/tag.sass +65 -5
  35. data/app/assets/stylesheets/sass/elements/title.sass +17 -15
  36. data/app/assets/stylesheets/sass/grid/_all.sass +0 -0
  37. data/app/assets/stylesheets/sass/grid/columns.sass +0 -0
  38. data/app/assets/stylesheets/sass/grid/tiles.sass +0 -0
  39. data/app/assets/stylesheets/sass/layout/_all.sass +0 -0
  40. data/app/assets/stylesheets/sass/layout/footer.sass +3 -1
  41. data/app/assets/stylesheets/sass/layout/hero.sass +45 -46
  42. data/app/assets/stylesheets/sass/layout/section.sass +7 -4
  43. data/app/assets/stylesheets/sass/utilities/_all.sass +0 -0
  44. data/app/assets/stylesheets/sass/utilities/animations.sass +0 -0
  45. data/app/assets/stylesheets/sass/utilities/controls.sass +0 -0
  46. data/app/assets/stylesheets/sass/utilities/derived-variables.sass +2 -1
  47. data/app/assets/stylesheets/sass/utilities/functions.sass +0 -0
  48. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +10 -12
  49. data/app/assets/stylesheets/sass/utilities/mixins.sass +0 -0
  50. data/app/assets/stylesheets/sass/utilities/variables.sass +1 -1
  51. data/bulma-rails.gemspec +1 -1
  52. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 304ff4863cd6ff7ee159e64e0aebe30b29220598
4
- data.tar.gz: 641b22c7c509c6e215e29e9c854d06c5ae4015a2
3
+ metadata.gz: 48dad017d7592d692af1c1ee8930beabd11f3705
4
+ data.tar.gz: c6a979b9db08188e07cdb176a8f7eb4cb471f444
5
5
  SHA512:
6
- metadata.gz: d12d402f4c60d0de96fcd7fbf60e01bb3d4f8e4efd130d9331039b1a8b87e181f901ba4b92296c5defeee64e57dccda14ecc3d144da150edb585e6771493bcd8
7
- data.tar.gz: 35056f12a2d51aa1700e764d15dd19eb0f5627deb504ae26615b0df1acdb61762639a91d9886d722742c427eb6590bde3b562f0c808413e4f89c32348f50780e
6
+ metadata.gz: 5aeacefcf06fefc3c240f614d17a37e5358019a62c5a5512ede8571de06e102e998635cebb8c6b82db2179f6cdcae525043d6e865fa723f7f4147858f1a50b13
7
+ data.tar.gz: f4e4a1dab089774f17c6607e27bd1d263ed0acbeb4d364f8952bb05cee529ba72479c9e8f275fa72b9d7425f2addbb7e60e6364bee299a3971f170d9ebb49cf6
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.4.3"
11
+ gem "bulma-rails", "~> 0.5.1"
12
12
 
13
13
  And then execute:
14
14
 
@@ -1,6 +1,5 @@
1
- /*! bulma.io v0.4.3 | MIT License | github.com/jgthms/bulma */
2
1
  @charset "utf-8"
3
-
2
+ /*! bulma.io v0.5.1 | MIT License | github.com/jgthms/bulma */
4
3
  @import "sass/utilities/_all"
5
4
  @import "sass/base/_all"
6
5
  @import "sass/elements/_all"
File without changes
@@ -1,12 +1,32 @@
1
+ $body-background-color: #fff !default
2
+ $body-size: 16px !default
3
+ $body-rendering: optimizeLegibility !default
4
+ $body-family: $family-sans-serif !default
5
+ $body-color: $text !default
6
+ $body-weight: $weight-normal !default
7
+ $body-line-height: 1.5 !default
8
+
9
+ $code-family: $family-monospace !default
10
+ $code-padding: 0.25em 0.5em 0.25em !default
11
+ $code-weight: normal !default
12
+ $code-size: 0.875em !default
13
+
14
+ $hr-background-color: $border !default
15
+ $hr-height: 1px !default
16
+ $hr-margin: 1.5rem 0 !default
17
+
18
+ $strong-color: $text-strong !default
19
+ $strong-weight: $weight-bold !default
20
+
1
21
  html
2
- background-color: $body-background
22
+ background-color: $body-background-color
3
23
  font-size: $body-size
4
24
  -moz-osx-font-smoothing: grayscale
5
25
  -webkit-font-smoothing: antialiased
6
26
  min-width: 300px
7
27
  overflow-x: hidden
8
28
  overflow-y: scroll
9
- text-rendering: $render-mode
29
+ text-rendering: $body-rendering
10
30
 
11
31
  article,
12
32
  aside,
@@ -22,20 +42,19 @@ button,
22
42
  input,
23
43
  select,
24
44
  textarea
25
- font-family: $family-primary
45
+ font-family: $body-family
26
46
 
27
47
  code,
28
48
  pre
29
49
  -moz-osx-font-smoothing: auto
30
50
  -webkit-font-smoothing: auto
31
- font-family: $family-code
51
+ font-family: $code-family
32
52
 
33
53
  body
34
- color: $text
54
+ color: $body-color
35
55
  font-size: 1rem
36
- font-weight: $weight-normal
37
- line-height: 1.5
38
- overflow-x: hidden
56
+ font-weight: $body-weight
57
+ line-height: $body-line-height
39
58
 
40
59
  // Inline
41
60
 
@@ -43,25 +62,27 @@ a
43
62
  color: $link
44
63
  cursor: pointer
45
64
  text-decoration: none
46
- transition: none $speed $easing
65
+ strong
66
+ color: currentColor
47
67
  &:hover
48
68
  color: $link-hover
49
69
 
50
70
  code
51
71
  background-color: $code-background
52
72
  color: $code
53
- font-size: 0.8em
54
- font-weight: normal
55
- padding: 0.25em 0.5em 0.25em
73
+ font-size: $code-size
74
+ font-weight: $code-weight
75
+ padding: $code-padding
56
76
 
57
77
  hr
58
- background-color: $border
78
+ background-color: $hr-background-color
59
79
  border: none
60
80
  display: block
61
- height: 1px
62
- margin: 1.5rem 0
81
+ height: $hr-height
82
+ margin: $hr-margin
63
83
 
64
84
  img
85
+ height: auto
65
86
  max-width: 100%
66
87
 
67
88
  input[type="checkbox"],
@@ -76,15 +97,15 @@ span
76
97
  font-weight: inherit
77
98
 
78
99
  strong
79
- color: $text-strong
80
- font-weight: $weight-bold
100
+ color: $strong-color
101
+ font-weight: $strong-weight
81
102
 
82
103
  // Block
83
104
 
84
105
  pre
85
106
  background-color: $pre-background
86
107
  color: $pre
87
- font-size: 0.8em
108
+ font-size: 0.875em
88
109
  white-space: pre
89
110
  word-wrap: normal
90
111
  code
@@ -97,7 +118,6 @@ pre
97
118
  padding: 1.25rem 1.5rem
98
119
 
99
120
  table
100
- width: 100%
101
121
  td,
102
122
  th
103
123
  text-align: left
@@ -1,42 +1,13 @@
1
- // Display
2
-
3
- $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
4
-
5
- @each $display in $displays
6
- .is-#{$display}
7
- display: #{$display}
8
- .is-#{$display}-mobile
9
- +mobile
10
- display: #{$display} !important
11
- .is-#{$display}-tablet
12
- +tablet
13
- display: #{$display} !important
14
- .is-#{$display}-tablet-only
15
- +tablet-only
16
- display: #{$display} !important
17
- .is-#{$display}-touch
18
- +touch
19
- display: #{$display} !important
20
- .is-#{$display}-desktop
21
- +desktop
22
- display: #{$display} !important
23
- .is-#{$display}-desktop-only
24
- +desktop-only
25
- display: #{$display} !important
26
- .is-#{$display}-widescreen
27
- +widescreen
28
- display: #{$display} !important
29
-
30
1
  // Float
31
2
 
32
3
  .is-clearfix
33
4
  +clearfix
34
5
 
35
6
  .is-pulled-left
36
- float: left
7
+ float: left !important
37
8
 
38
9
  .is-pulled-right
39
- float: right
10
+ float: right !important
40
11
 
41
12
  // Overflow
42
13
 
@@ -48,57 +19,158 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
48
19
  .is-overlay
49
20
  +overlay
50
21
 
51
- // Text
22
+ // Typography
23
+
24
+ @each $size in $sizes
25
+ $i: index($sizes, $size)
26
+ .is-size-#{$i}
27
+ font-size: $size !important
28
+ +mobile
29
+ .is-size-#{$i}-mobile
30
+ font-size: $size !important
31
+ +tablet
32
+ .is-size-#{$i}-tablet
33
+ font-size: $size !important
34
+ +touch
35
+ .is-size-#{$i}-touch
36
+ font-size: $size !important
37
+ +desktop
38
+ .is-size-#{$i}-desktop
39
+ font-size: $size !important
40
+ +widescreen
41
+ .is-size-#{$i}-widescreen
42
+ font-size: $size !important
43
+ +fullhd
44
+ .is-size-#{$i}-fullhd
45
+ font-size: $size !important
46
+
47
+ $alignments: ('centered': 'center', 'left': 'left', 'right': 'right')
48
+
49
+ @each $alignment, $text-align in $alignments
50
+ .has-text-#{$alignment}
51
+ text-align: #{$text-align} !important
52
+ +mobile
53
+ .has-text-#{$alignment}-mobile
54
+ text-align: #{$text-align} !important
55
+ +tablet
56
+ .has-text-#{$alignment}-tablet
57
+ text-align: #{$text-align} !important
58
+ +tablet-only
59
+ .has-text-#{$alignment}-tablet-only
60
+ text-align: #{$text-align} !important
61
+ +touch
62
+ .has-text-#{$alignment}-touch
63
+ text-align: #{$text-align} !important
64
+ +desktop
65
+ .has-text-#{$alignment}-desktop
66
+ text-align: #{$text-align} !important
67
+ +desktop-only
68
+ .has-text-#{$alignment}-desktop-only
69
+ text-align: #{$text-align} !important
70
+ +widescreen
71
+ .has-text-#{$alignment}-widescreen
72
+ text-align: #{$text-align} !important
73
+ +widescreen-only
74
+ .has-text-#{$alignment}-widescreen-only
75
+ text-align: #{$text-align} !important
76
+ +fullhd
77
+ .has-text-#{$alignment}-fullhd
78
+ text-align: #{$text-align} !important
52
79
 
53
- .has-text-centered
54
- text-align: center
80
+ .is-capitalized
81
+ text-transform: capitalize !important
55
82
 
56
- .has-text-left
57
- text-align: left
83
+ .is-lowercase
84
+ text-transform: lowercase !important
58
85
 
59
- .has-text-right
60
- text-align: right
86
+ .is-uppercase
87
+ text-transform: uppercase !important
61
88
 
62
89
  @each $name, $pair in $colors
63
90
  $color: nth($pair, 1)
64
91
  .has-text-#{$name}
65
- color: $color
92
+ color: $color !important
66
93
  a.has-text-#{$name}
67
94
  &:hover,
68
95
  &:focus
69
- color: darken($color, 10%)
96
+ color: darken($color, 10%) !important
97
+
98
+ @each $name, $shade in $shades
99
+ .has-text-#{$name}
100
+ color: $shade !important
70
101
 
71
102
  // Visibility
72
103
 
104
+ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
105
+
106
+ @each $display in $displays
107
+ .is-#{$display}
108
+ display: #{$display} !important
109
+ +mobile
110
+ .is-#{$display}-mobile
111
+ display: #{$display} !important
112
+ +tablet
113
+ .is-#{$display}-tablet
114
+ display: #{$display} !important
115
+ +tablet-only
116
+ .is-#{$display}-tablet-only
117
+ display: #{$display} !important
118
+ +touch
119
+ .is-#{$display}-touch
120
+ display: #{$display} !important
121
+ +desktop
122
+ .is-#{$display}-desktop
123
+ display: #{$display} !important
124
+ +desktop-only
125
+ .is-#{$display}-desktop-only
126
+ display: #{$display} !important
127
+ +widescreen
128
+ .is-#{$display}-widescreen
129
+ display: #{$display} !important
130
+ +widescreen-only
131
+ .is-#{$display}-widescreen-only
132
+ display: #{$display} !important
133
+ +fullhd
134
+ .is-#{$display}-fullhd
135
+ display: #{$display} !important
136
+
73
137
  .is-hidden
74
138
  display: none !important
75
139
 
76
- .is-hidden-mobile
77
- +mobile
140
+ +mobile
141
+ .is-hidden-mobile
78
142
  display: none !important
79
143
 
80
- .is-hidden-tablet
81
- +tablet
144
+ +tablet
145
+ .is-hidden-tablet
82
146
  display: none !important
83
147
 
84
- .is-hidden-tablet-only
85
- +tablet-only
148
+ +tablet-only
149
+ .is-hidden-tablet-only
86
150
  display: none !important
87
151
 
88
- .is-hidden-touch
89
- +touch
152
+ +touch
153
+ .is-hidden-touch
90
154
  display: none !important
91
155
 
92
- .is-hidden-desktop
93
- +desktop
156
+ +desktop
157
+ .is-hidden-desktop
94
158
  display: none !important
95
159
 
96
- .is-hidden-desktop-only
97
- +desktop-only
160
+ +desktop-only
161
+ .is-hidden-desktop-only
98
162
  display: none !important
99
163
 
100
- .is-hidden-widescreen
101
- +widescreen
164
+ +widescreen
165
+ .is-hidden-widescreen
166
+ display: none !important
167
+
168
+ +widescreen-only
169
+ .is-hidden-widescreen-only
170
+ display: none !important
171
+
172
+ +fullhd
173
+ .is-hidden-fullhd
102
174
  display: none !important
103
175
 
104
176
  // Other
@@ -109,5 +181,11 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
109
181
  .is-paddingless
110
182
  padding: 0 !important
111
183
 
184
+ .is-radiusless
185
+ border-radius: 0 !important
186
+
187
+ .is-shadowless
188
+ box-shadow: none !important
189
+
112
190
  .is-unselectable
113
191
  +unselectable
File without changes
@@ -2,6 +2,7 @@
2
2
 
3
3
  @import "breadcrumb.sass"
4
4
  @import "card.sass"
5
+ @import "dropdown.sass"
5
6
  @import "level.sass"
6
7
  @import "media.sass"
7
8
  @import "menu.sass"
@@ -11,4 +12,4 @@
11
12
  @import "navbar.sass"
12
13
  @import "pagination.sass"
13
14
  @import "panel.sass"
14
- @import "tabs.sass"
15
+ @import "tabs.sass"
@@ -1,3 +1,9 @@
1
+ $breadcrumb-item-color: $text-light !default
2
+ $breadcrumb-item-hover-color: $link-hover !default
3
+ $breadcrumb-item-active-color: $text-strong !default
4
+
5
+ $breadcrumb-item-separator-color: $text !default
6
+
1
7
  .breadcrumb
2
8
  +block
3
9
  +unselectable
@@ -9,23 +15,23 @@
9
15
  white-space: nowrap
10
16
  a
11
17
  align-items: center
12
- color: $text-light
18
+ color: $breadcrumb-item-color
13
19
  display: flex
14
20
  justify-content: center
15
21
  padding: 0.5em 0.75em
16
22
  &:hover
17
- color: $link-hover
23
+ color: $breadcrumb-item-hover-color
18
24
  li
19
25
  align-items: center
20
26
  display: flex
21
27
  &.is-active
22
28
  a
23
- color: $text-strong
29
+ color: $breadcrumb-item-active-color
24
30
  cursor: default
25
31
  pointer-events: none
26
- & + li:before
27
- color: $text
28
- content: '\0002f'
32
+ & + li::before
33
+ color: $breadcrumb-item-separator-color
34
+ content: "\0002f"
29
35
  ul, ol
30
36
  align-items: center
31
37
  display: flex
@@ -53,14 +59,14 @@
53
59
  font-size: $size-large
54
60
  // Styles
55
61
  &.has-arrow-separator
56
- li + li:before
57
- content: '\02192'
62
+ li + li::before
63
+ content: "\02192"
58
64
  &.has-bullet-separator
59
- li + li:before
60
- content: '\02022'
65
+ li + li::before
66
+ content: "\02022"
61
67
  &.has-dot-separator
62
- li + li:before
63
- content: '\000b7'
68
+ li + li::before
69
+ content: "\000b7"
64
70
  &.has-succeeds-separator
65
- li + li:before
66
- content: '\0227B'
71
+ li + li::before
72
+ content: "\0227B"