bulma-rails 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) 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/generic.sass +21 -9
  5. data/app/assets/stylesheets/sass/base/helpers.sass +5 -0
  6. data/app/assets/stylesheets/sass/base/minireset.sass +2 -1
  7. data/app/assets/stylesheets/sass/components/card.sass +10 -5
  8. data/app/assets/stylesheets/sass/components/dropdown.sass +7 -3
  9. data/app/assets/stylesheets/sass/components/level.sass +5 -3
  10. data/app/assets/stylesheets/sass/components/list.sass +3 -3
  11. data/app/assets/stylesheets/sass/components/menu.sass +15 -8
  12. data/app/assets/stylesheets/sass/components/message.sass +2 -1
  13. data/app/assets/stylesheets/sass/components/modal.sass +1 -1
  14. data/app/assets/stylesheets/sass/components/navbar.sass +16 -1
  15. data/app/assets/stylesheets/sass/components/pagination.sass +9 -4
  16. data/app/assets/stylesheets/sass/components/panel.sass +4 -2
  17. data/app/assets/stylesheets/sass/elements/_all.sass +0 -1
  18. data/app/assets/stylesheets/sass/elements/button.sass +33 -3
  19. data/app/assets/stylesheets/sass/elements/container.sass +9 -11
  20. data/app/assets/stylesheets/sass/elements/content.sass +5 -1
  21. data/app/assets/stylesheets/sass/elements/form.sass +1 -602
  22. data/app/assets/stylesheets/sass/elements/progress.sass +15 -13
  23. data/app/assets/stylesheets/sass/elements/table.sass +2 -1
  24. data/app/assets/stylesheets/sass/elements/tag.sass +0 -9
  25. data/app/assets/stylesheets/sass/elements/title.sass +6 -0
  26. data/app/assets/stylesheets/sass/form/_all.sass +8 -0
  27. data/app/assets/stylesheets/sass/form/checkbox-radio.sass +21 -0
  28. data/app/assets/stylesheets/sass/form/file.sass +180 -0
  29. data/app/assets/stylesheets/sass/form/input-textarea.sass +60 -0
  30. data/app/assets/stylesheets/sass/form/select.sass +85 -0
  31. data/app/assets/stylesheets/sass/form/shared.sass +55 -0
  32. data/app/assets/stylesheets/sass/form/tools.sass +205 -0
  33. data/app/assets/stylesheets/sass/grid/columns.sass +7 -7
  34. data/app/assets/stylesheets/sass/grid/tiles.sass +8 -6
  35. data/app/assets/stylesheets/sass/layout/footer.sass +3 -0
  36. data/app/assets/stylesheets/sass/layout/hero.sass +1 -14
  37. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +5 -1
  38. data/app/assets/stylesheets/sass/utilities/mixins.sass +2 -2
  39. data/bulma-rails.gemspec +2 -2
  40. metadata +13 -6
@@ -0,0 +1,55 @@
1
+ $input-color: $grey-darker !default
2
+ $input-background-color: $white !default
3
+ $input-border-color: $grey-lighter !default
4
+ $input-height: $control-height !default
5
+ $input-shadow: inset 0 1px 2px rgba($black, 0.1) !default
6
+ $input-placeholder-color: rgba($input-color, 0.3) !default
7
+
8
+ $input-hover-color: $grey-darker !default
9
+ $input-hover-border-color: $grey-light !default
10
+
11
+ $input-focus-color: $grey-darker !default
12
+ $input-focus-border-color: $link !default
13
+ $input-focus-box-shadow-size: 0 0 0 0.125em !default
14
+ $input-focus-box-shadow-color: rgba($link, 0.25) !default
15
+
16
+ $input-disabled-color: $text-light !default
17
+ $input-disabled-background-color: $background !default
18
+ $input-disabled-border-color: $background !default
19
+ $input-disabled-placeholder-color: rgba($input-disabled-color, 0.3) !default
20
+
21
+ $input-arrow: $link !default
22
+
23
+ $input-icon-color: $grey-lighter !default
24
+ $input-icon-active-color: $grey !default
25
+
26
+ $input-radius: $radius !default
27
+
28
+ =input
29
+ @extend %control
30
+ background-color: $input-background-color
31
+ border-color: $input-border-color
32
+ border-radius: $input-radius
33
+ color: $input-color
34
+ +placeholder
35
+ color: $input-placeholder-color
36
+ &:hover,
37
+ &.is-hovered
38
+ border-color: $input-hover-border-color
39
+ &:focus,
40
+ &.is-focused,
41
+ &:active,
42
+ &.is-active
43
+ border-color: $input-focus-border-color
44
+ box-shadow: $input-focus-box-shadow-size $input-focus-box-shadow-color
45
+ &[disabled],
46
+ fieldset[disabled] &
47
+ background-color: $input-disabled-background-color
48
+ border-color: $input-disabled-border-color
49
+ box-shadow: none
50
+ color: $input-disabled-color
51
+ +placeholder
52
+ color: $input-disabled-placeholder-color
53
+
54
+ %input
55
+ +input
@@ -0,0 +1,205 @@
1
+ $label-color: $grey-darker !default
2
+ $label-weight: $weight-bold !default
3
+
4
+ $help-size: $size-small !default
5
+
6
+ .label
7
+ color: $label-color
8
+ display: block
9
+ font-size: $size-normal
10
+ font-weight: $label-weight
11
+ &:not(:last-child)
12
+ margin-bottom: 0.5em
13
+ // Sizes
14
+ &.is-small
15
+ font-size: $size-small
16
+ &.is-medium
17
+ font-size: $size-medium
18
+ &.is-large
19
+ font-size: $size-large
20
+
21
+ .help
22
+ display: block
23
+ font-size: $help-size
24
+ margin-top: 0.25rem
25
+ @each $name, $pair in $colors
26
+ $color: nth($pair, 1)
27
+ &.is-#{$name}
28
+ color: $color
29
+
30
+ // Containers
31
+
32
+ .field
33
+ &:not(:last-child)
34
+ margin-bottom: 0.75rem
35
+ // Modifiers
36
+ &.has-addons
37
+ display: flex
38
+ justify-content: flex-start
39
+ .control
40
+ &:not(:last-child)
41
+ margin-right: -1px
42
+ &:not(:first-child):not(:last-child)
43
+ .button,
44
+ .input,
45
+ .select select
46
+ border-radius: 0
47
+ &:first-child:not(:only-child)
48
+ .button,
49
+ .input,
50
+ .select select
51
+ border-bottom-right-radius: 0
52
+ border-top-right-radius: 0
53
+ &:last-child:not(:only-child)
54
+ .button,
55
+ .input,
56
+ .select select
57
+ border-bottom-left-radius: 0
58
+ border-top-left-radius: 0
59
+ .button,
60
+ .input,
61
+ .select select
62
+ &:not([disabled])
63
+ &:hover,
64
+ &.is-hovered
65
+ z-index: 2
66
+ &:focus,
67
+ &.is-focused,
68
+ &:active,
69
+ &.is-active
70
+ z-index: 3
71
+ &:hover
72
+ z-index: 4
73
+ &.is-expanded
74
+ flex-grow: 1
75
+ flex-shrink: 1
76
+ &.has-addons-centered
77
+ justify-content: center
78
+ &.has-addons-right
79
+ justify-content: flex-end
80
+ &.has-addons-fullwidth
81
+ .control
82
+ flex-grow: 1
83
+ flex-shrink: 0
84
+ &.is-grouped
85
+ display: flex
86
+ justify-content: flex-start
87
+ & > .control
88
+ flex-shrink: 0
89
+ &:not(:last-child)
90
+ margin-bottom: 0
91
+ margin-right: 0.75rem
92
+ &.is-expanded
93
+ flex-grow: 1
94
+ flex-shrink: 1
95
+ &.is-grouped-centered
96
+ justify-content: center
97
+ &.is-grouped-right
98
+ justify-content: flex-end
99
+ &.is-grouped-multiline
100
+ flex-wrap: wrap
101
+ & > .control
102
+ &:last-child,
103
+ &:not(:last-child)
104
+ margin-bottom: 0.75rem
105
+ &:last-child
106
+ margin-bottom: -0.75rem
107
+ &:not(:last-child)
108
+ margin-bottom: 0
109
+ &.is-horizontal
110
+ +tablet
111
+ display: flex
112
+
113
+ .field-label
114
+ .label
115
+ font-size: inherit
116
+ +mobile
117
+ margin-bottom: 0.5rem
118
+ +tablet
119
+ flex-basis: 0
120
+ flex-grow: 1
121
+ flex-shrink: 0
122
+ margin-right: 1.5rem
123
+ text-align: right
124
+ &.is-small
125
+ font-size: $size-small
126
+ padding-top: 0.375em
127
+ &.is-normal
128
+ padding-top: 0.375em
129
+ &.is-medium
130
+ font-size: $size-medium
131
+ padding-top: 0.375em
132
+ &.is-large
133
+ font-size: $size-large
134
+ padding-top: 0.375em
135
+
136
+ .field-body
137
+ .field .field
138
+ margin-bottom: 0
139
+ +tablet
140
+ display: flex
141
+ flex-basis: 0
142
+ flex-grow: 5
143
+ flex-shrink: 1
144
+ .field
145
+ margin-bottom: 0
146
+ & > .field
147
+ flex-shrink: 1
148
+ &:not(.is-narrow)
149
+ flex-grow: 1
150
+ &:not(:last-child)
151
+ margin-right: 0.75rem
152
+
153
+ .control
154
+ box-sizing: border-box
155
+ clear: both
156
+ font-size: $size-normal
157
+ position: relative
158
+ text-align: left
159
+ // Modifiers
160
+ &.has-icons-left,
161
+ &.has-icons-right
162
+ .input,
163
+ .select
164
+ &:focus
165
+ & ~ .icon
166
+ color: $input-icon-active-color
167
+ &.is-small ~ .icon
168
+ font-size: $size-small
169
+ &.is-medium ~ .icon
170
+ font-size: $size-medium
171
+ &.is-large ~ .icon
172
+ font-size: $size-large
173
+ .icon
174
+ color: $input-icon-color
175
+ height: $input-height
176
+ pointer-events: none
177
+ position: absolute
178
+ top: 0
179
+ width: $input-height
180
+ z-index: 4
181
+ &.has-icons-left
182
+ .input,
183
+ .select select
184
+ padding-left: $input-height
185
+ .icon.is-left
186
+ left: 0
187
+ &.has-icons-right
188
+ .input,
189
+ .select select
190
+ padding-right: $input-height
191
+ .icon.is-right
192
+ right: 0
193
+ &.is-loading
194
+ &::after
195
+ @extend %loader
196
+ position: absolute !important
197
+ right: 0.625em
198
+ top: 0.625em
199
+ z-index: 4
200
+ &.is-small:after
201
+ font-size: $size-small
202
+ &.is-medium:after
203
+ font-size: $size-medium
204
+ &.is-large:after
205
+ font-size: $size-large
@@ -56,7 +56,7 @@ $column-gap: 0.75rem !default
56
56
  margin-left: 60%
57
57
  .columns.is-mobile > &.is-offset-four-fifths
58
58
  margin-left: 80%
59
- @for $i from 1 through 12
59
+ @for $i from 0 through 12
60
60
  .columns.is-mobile > &.is-#{$i}
61
61
  flex: none
62
62
  width: percentage($i / 12)
@@ -113,7 +113,7 @@ $column-gap: 0.75rem !default
113
113
  margin-left: 60%
114
114
  &.is-offset-four-fifths-mobile
115
115
  margin-left: 80%
116
- @for $i from 1 through 12
116
+ @for $i from 0 through 12
117
117
  &.is-#{$i}-mobile
118
118
  flex: none
119
119
  width: percentage($i / 12)
@@ -190,7 +190,7 @@ $column-gap: 0.75rem !default
190
190
  &.is-offset-four-fifths,
191
191
  &.is-offset-four-fifths-tablet
192
192
  margin-left: 80%
193
- @for $i from 1 through 12
193
+ @for $i from 0 through 12
194
194
  &.is-#{$i},
195
195
  &.is-#{$i}-tablet
196
196
  flex: none
@@ -249,7 +249,7 @@ $column-gap: 0.75rem !default
249
249
  margin-left: 60%
250
250
  &.is-offset-four-fifths-touch
251
251
  margin-left: 80%
252
- @for $i from 1 through 12
252
+ @for $i from 0 through 12
253
253
  &.is-#{$i}-touch
254
254
  flex: none
255
255
  width: percentage($i / 12)
@@ -306,7 +306,7 @@ $column-gap: 0.75rem !default
306
306
  margin-left: 60%
307
307
  &.is-offset-four-fifths-desktop
308
308
  margin-left: 80%
309
- @for $i from 1 through 12
309
+ @for $i from 0 through 12
310
310
  &.is-#{$i}-desktop
311
311
  flex: none
312
312
  width: percentage($i / 12)
@@ -363,7 +363,7 @@ $column-gap: 0.75rem !default
363
363
  margin-left: 60%
364
364
  &.is-offset-four-fifths-widescreen
365
365
  margin-left: 80%
366
- @for $i from 1 through 12
366
+ @for $i from 0 through 12
367
367
  &.is-#{$i}-widescreen
368
368
  flex: none
369
369
  width: percentage($i / 12)
@@ -420,7 +420,7 @@ $column-gap: 0.75rem !default
420
420
  margin-left: 60%
421
421
  &.is-offset-four-fifths-fullhd
422
422
  margin-left: 80%
423
- @for $i from 1 through 12
423
+ @for $i from 0 through 12
424
424
  &.is-#{$i}-fullhd
425
425
  flex: none
426
426
  width: percentage($i / 12)
@@ -1,3 +1,5 @@
1
+ $tile-spacing: 0.75rem !default
2
+
1
3
  .tile
2
4
  align-items: stretch
3
5
  display: block
@@ -7,17 +9,17 @@
7
9
  min-height: min-content
8
10
  // Modifiers
9
11
  &.is-ancestor
10
- margin-left: -0.75rem
11
- margin-right: -0.75rem
12
- margin-top: -0.75rem
12
+ margin-left: $tile-spacing * -1
13
+ margin-right: $tile-spacing * -1
14
+ margin-top: $tile-spacing * -1
13
15
  &:last-child
14
- margin-bottom: -0.75rem
16
+ margin-bottom: $tile-spacing * -1
15
17
  &:not(:last-child)
16
- margin-bottom: 0.75rem
18
+ margin-bottom: $tile-spacing
17
19
  &.is-child
18
20
  margin: 0 !important
19
21
  &.is-parent
20
- padding: 0.75rem
22
+ padding: $tile-spacing
21
23
  &.is-vertical
22
24
  flex-direction: column
23
25
  & > .tile.is-child:not(:last-child)
@@ -1,6 +1,9 @@
1
1
  $footer-background-color: $white-bis !default
2
+ $footer-color: false !default
2
3
  $footer-padding: 3rem 1.5rem 6rem !default
3
4
 
4
5
  .footer
5
6
  background-color: $footer-background-color
6
7
  padding: $footer-padding
8
+ @if $footer-color
9
+ color: $footer-color
@@ -17,7 +17,7 @@
17
17
  &.is-#{$name}
18
18
  background-color: $color
19
19
  color: $color-invert
20
- a:not(.button):not(.dropdown-item):not(.tag),
20
+ a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current),
21
21
  strong
22
22
  color: inherit
23
23
  .title
@@ -68,19 +68,6 @@
68
68
  +mobile
69
69
  .navbar-menu
70
70
  background-image: linear-gradient(141deg, $gradient-top-left 0%, $color 71%, $gradient-bottom-right 100%)
71
- // Responsiveness
72
- // +mobile
73
- // .nav-toggle
74
- // span
75
- // background-color: $color-invert
76
- // &:hover
77
- // background-color: rgba($black, 0.1)
78
- // &.is-active
79
- // span
80
- // background-color: $color-invert
81
- // .nav-menu
82
- // .nav-item
83
- // border-top-color: rgba($color-invert, 0.2)
84
71
  // Sizes
85
72
  &.is-small
86
73
  .hero-body
@@ -43,10 +43,14 @@ $weight-medium: 500 !default
43
43
  $weight-semibold: 600 !default
44
44
  $weight-bold: 700 !default
45
45
 
46
+ // Spacing
47
+
48
+ $block-spacing: 1.5rem !default
49
+
46
50
  // Responsiveness
47
51
 
48
52
  // The container horizontal gap, which acts as the offset for breakpoints
49
- $gap: 64px !default
53
+ $gap: 32px !default
50
54
  // 960, 1152, and 1344 have been chosen because they are divisible by both 12 and 16
51
55
  $tablet: 769px !default
52
56
  // 960px container + 4rem
@@ -159,9 +159,9 @@
159
159
  %arrow
160
160
  +arrow
161
161
 
162
- =block
162
+ =block($spacing: $block-spacing)
163
163
  &:not(:last-child)
164
- margin-bottom: 1.5rem
164
+ margin-bottom: $spacing
165
165
 
166
166
  %block
167
167
  +block
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'bulma-rails'
5
- gem.version = '0.7.4'
5
+ gem.version = '0.7.5'
6
6
  gem.authors = ["Joshua Jansen"]
7
7
  gem.email = ["joshuajansen88@gmail.com"]
8
8
  gem.description = %q{A modern CSS framework based on Flexbox}
@@ -13,5 +13,5 @@ Gem::Specification.new do |gem|
13
13
  gem.require_paths = ["lib"]
14
14
  gem.license = 'MIT'
15
15
 
16
- gem.add_runtime_dependency 'sass', '~> 3.5'
16
+ gem.add_runtime_dependency 'sassc', '~> 2.0'
17
17
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulma-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Jansen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-09 00:00:00.000000000 Z
11
+ date: 2019-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: sass
14
+ name: sassc
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.5'
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.5'
26
+ version: '2.0'
27
27
  description: A modern CSS framework based on Flexbox
28
28
  email:
29
29
  - joshuajansen88@gmail.com
@@ -66,6 +66,13 @@ files:
66
66
  - app/assets/stylesheets/sass/elements/table.sass
67
67
  - app/assets/stylesheets/sass/elements/tag.sass
68
68
  - app/assets/stylesheets/sass/elements/title.sass
69
+ - app/assets/stylesheets/sass/form/_all.sass
70
+ - app/assets/stylesheets/sass/form/checkbox-radio.sass
71
+ - app/assets/stylesheets/sass/form/file.sass
72
+ - app/assets/stylesheets/sass/form/input-textarea.sass
73
+ - app/assets/stylesheets/sass/form/select.sass
74
+ - app/assets/stylesheets/sass/form/shared.sass
75
+ - app/assets/stylesheets/sass/form/tools.sass
69
76
  - app/assets/stylesheets/sass/grid/_all.sass
70
77
  - app/assets/stylesheets/sass/grid/columns.sass
71
78
  - app/assets/stylesheets/sass/grid/tiles.sass
@@ -101,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
108
  - !ruby/object:Gem::Version
102
109
  version: '0'
103
110
  requirements: []
104
- rubygems_version: 3.0.1
111
+ rubygems_version: 3.0.3
105
112
  signing_key:
106
113
  specification_version: 4
107
114
  summary: This gem adds the bulma.io assets to your asset pipeline so you can import