bulma-rails 0.1.0 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3bdd0b1a166464efd63445c9de4e96aaab45dad6
4
- data.tar.gz: b3ef8504a81f59493a7843936cbbcd6720690458
3
+ metadata.gz: 569c0a6d1430ec07030abe8247228423343a7618
4
+ data.tar.gz: 4922e383a86f73e26893ad30da1f6a1d65d1db7f
5
5
  SHA512:
6
- metadata.gz: 688f915cc5805dcd9d452ca08fa72e2f1d39e1a61a8cf65843e899ee229beba613adac56aa5efdfdf395e827bcf980a4e243e709007083f12d44a08c4e7e1a5d
7
- data.tar.gz: c474a4bbed05dde238d90b5018084f65df68b12a33917c3dbb29bed2f7080e9488dfab9547bce2bc4660eb72a36530469b2fc4f0f126973a7733c1985d4ea343
6
+ metadata.gz: 40604dedd9348e6768c567502d020aae4b683ae8cb39c54ae43c75e813a6dedb92a912756b72e61da7b17fa3550a4ed694f2a527e615e943326157746470e1b1
7
+ data.tar.gz: 6571dcf818cf5f1b5e9e04984f437e897edd1555b0f109356e786a5884d61a61793f8d96c17923c75c667bba962780bf469c8a8a197678f58a65163f30107d93
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.0.28"
11
+ gem "bulma-rails", "~> 0.1.2"
12
12
 
13
13
  And then execute:
14
14
 
@@ -56,7 +56,7 @@ code
56
56
 
57
57
  hr
58
58
  border-top-color: $border
59
- margin: 20px 0
59
+ margin: 40px 0
60
60
 
61
61
  img
62
62
  max-width: 100%
@@ -8,7 +8,7 @@
8
8
  align-items: flex-start
9
9
  color: $text-strong
10
10
  display: flex
11
- flex: 1
11
+ flex-grow: 1
12
12
  font-weight: bold
13
13
  padding: 10px
14
14
 
@@ -36,7 +36,7 @@
36
36
  .card-footer-item
37
37
  align-items: center
38
38
  display: flex
39
- flex: 1
39
+ flex-grow: 1
40
40
  justify-content: center
41
41
  padding: 10px
42
42
  &:not(:last-child)
@@ -1,5 +1,7 @@
1
1
  .column
2
- flex: 1 1 auto
2
+ flex-basis: 0
3
+ flex-grow: 1
4
+ flex-shrink: 1
3
5
  padding: 10px
4
6
  .columns.is-mobile > &.is-narrow
5
7
  flex: none
@@ -227,7 +229,6 @@
227
229
  +tablet
228
230
  flex-wrap: wrap
229
231
  & > .column
230
- flex-basis: 33.3333%
231
232
  max-width: 33.3333%
232
233
  padding: 10px
233
234
  width: 33.3333%
@@ -250,7 +251,9 @@
250
251
 
251
252
  .tile
252
253
  align-items: stretch
253
- flex: 1 1 auto
254
+ flex-basis: auto
255
+ flex-grow: 1
256
+ flex-shrink: 1
254
257
  min-height: min-content
255
258
  // Modifiers
256
259
  &.is-ancestor
@@ -14,7 +14,7 @@
14
14
  margin-right: 10px
15
15
  // Modifiers
16
16
  &.is-flexible
17
- flex: 1
17
+ flex-grow: 1
18
18
 
19
19
  .level-left
20
20
  // Responsiveness
@@ -48,10 +48,10 @@
48
48
  &:not(:last-child)
49
49
  margin-bottom: 0
50
50
  &:not(.is-narrow)
51
- flex: 1
51
+ flex-grow: 1
52
52
  // Responsiveness
53
53
  +tablet
54
54
  display: flex
55
55
  & > .level-item
56
56
  &:not(.is-narrow)
57
- flex: 1
57
+ flex-grow: 1
@@ -22,7 +22,7 @@
22
22
  margin-left: 10px
23
23
 
24
24
  .media-content
25
- flex: 1
25
+ flex-grow: 1
26
26
  text-align: left
27
27
 
28
28
  .media
@@ -47,7 +47,7 @@
47
47
 
48
48
  .modal-card-title
49
49
  color: $text-strong
50
- flex: 1
50
+ flex-grow: 1
51
51
  font-size: $size-4
52
52
  line-height: 1
53
53
 
@@ -58,7 +58,7 @@
58
58
  margin-right: 10px
59
59
 
60
60
  .modal-card-body
61
- flex: 1
61
+ flex-grow: 1
62
62
  overflow: auto
63
63
  padding: 20px
64
64
 
@@ -64,11 +64,14 @@ a.nav-item
64
64
  padding: 10px
65
65
  &.is-active
66
66
  display: block
67
+ +tablet-only
68
+ padding-right: 20px
67
69
 
68
70
  .nav-left
69
71
  align-items: stretch
70
72
  display: flex
71
- flex: 1
73
+ flex-basis: 0
74
+ flex-grow: 1
72
75
  justify-content: flex-start
73
76
  overflow: hidden
74
77
  overflow-x: auto
@@ -78,13 +81,16 @@ a.nav-item
78
81
  align-items: stretch
79
82
  display: flex
80
83
  justify-content: center
84
+ margin-left: auto
85
+ margin-right: auto
81
86
 
82
87
  .nav-right
83
88
  // Responsiveness
84
89
  +tablet
85
90
  align-items: stretch
86
91
  display: flex
87
- flex: 1
92
+ flex-basis: 0
93
+ flex-grow: 1
88
94
  justify-content: flex-end
89
95
 
90
96
  // Main container
@@ -118,3 +124,10 @@ a.nav-item
118
124
  // Modifiers
119
125
  &.has-shadow
120
126
  box-shadow: 0 2px 3px rgba($black, 0.1)
127
+ // Responsiveness
128
+ +touch
129
+ & > .container,
130
+ .container > &
131
+ & > .nav-left
132
+ & > .nav-item.is-brand:first-child
133
+ padding-left: 20px
@@ -16,7 +16,7 @@
16
16
  ul
17
17
  align-items: center
18
18
  display: flex
19
- flex: 1
19
+ flex-grow: 1
20
20
  justify-content: center
21
21
  // Responsiveness
22
22
  +mobile
@@ -26,7 +26,7 @@
26
26
  &:not(:first-child)
27
27
  margin-left: 10px
28
28
  li
29
- flex: 1
29
+ flex-grow: 1
30
30
  ul
31
31
  margin-top: 10px
32
32
  +tablet
@@ -30,7 +30,7 @@
30
30
  align-items: center
31
31
  border-bottom: 1px solid $border
32
32
  display: flex
33
- flex: 1
33
+ flex-grow: 1
34
34
  justify-content: flex-start
35
35
  &.is-left
36
36
  padding-right: 10px
@@ -72,7 +72,7 @@
72
72
  border-bottom-color: transparent !important
73
73
  &.is-fullwidth
74
74
  li
75
- flex: 1
75
+ flex-grow: 1
76
76
  &.is-toggle
77
77
  a
78
78
  border: 1px solid $border
@@ -127,7 +127,7 @@
127
127
  +mobile
128
128
  margin-bottom: 5px
129
129
  +tablet
130
- flex: 1
130
+ flex-grow: 1
131
131
  margin-right: 20px
132
132
  padding-top: 7px
133
133
  text-align: right
@@ -161,7 +161,7 @@
161
161
  select
162
162
  border-radius: 0 $radius $radius 0
163
163
  &.is-expanded
164
- flex: 1
164
+ flex-grow: 1
165
165
  &.has-addons-centered
166
166
  justify-content: center
167
167
  &.has-addons-right
@@ -170,7 +170,7 @@
170
170
  .button,
171
171
  .input,
172
172
  .select
173
- flex: 1
173
+ flex-grow: 1
174
174
  &.has-icon
175
175
  & > .fa
176
176
  +fa(14px, 24px)
@@ -233,7 +233,7 @@
233
233
  margin-bottom: 0
234
234
  margin-right: 10px
235
235
  &.is-expanded
236
- flex: 1
236
+ flex-grow: 1
237
237
  &.is-grouped-centered
238
238
  justify-content: center
239
239
  &.is-grouped-right
@@ -243,7 +243,7 @@
243
243
  display: flex
244
244
  & > .control
245
245
  display: flex
246
- flex: 5
246
+ flex-grow: 5
247
247
  &.is-loading
248
248
  &:after
249
249
  @extend .loader
@@ -38,7 +38,7 @@
38
38
  flex-shrink: 0
39
39
 
40
40
  .hero-body
41
- flex: 1
41
+ flex-grow: 1
42
42
  padding: 40px 20px
43
43
  // Responsiveness
44
44
  +desktop
@@ -143,4 +143,4 @@
143
143
  align-items: center
144
144
  display: flex
145
145
  & > .container
146
- flex: 1
146
+ flex-grow: 1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'bulma-rails'
5
- gem.version = '0.1.0'
5
+ gem.version = '0.1.2'
6
6
  gem.date = Date.today
7
7
  gem.authors = ["Joshua Jansen"]
8
8
  gem.email = ["joshuajansen88@gmail.com"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulma-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Jansen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-13 00:00:00.000000000 Z
11
+ date: 2016-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -48,7 +48,6 @@ files:
48
48
  - app/assets/stylesheets/sass/components/message.sass
49
49
  - app/assets/stylesheets/sass/components/modal.sass
50
50
  - app/assets/stylesheets/sass/components/nav.sass
51
- - app/assets/stylesheets/sass/components/navbar.sass
52
51
  - app/assets/stylesheets/sass/components/pagination.sass
53
52
  - app/assets/stylesheets/sass/components/panel.sass
54
53
  - app/assets/stylesheets/sass/components/tabs.sass
@@ -64,7 +63,6 @@ files:
64
63
  - app/assets/stylesheets/sass/elements/table.sass
65
64
  - app/assets/stylesheets/sass/elements/title.sass
66
65
  - app/assets/stylesheets/sass/layout/footer.sass
67
- - app/assets/stylesheets/sass/layout/header.sass
68
66
  - app/assets/stylesheets/sass/layout/hero.sass
69
67
  - app/assets/stylesheets/sass/layout/layout.sass
70
68
  - app/assets/stylesheets/sass/layout/section.sass
@@ -97,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
95
  version: '0'
98
96
  requirements: []
99
97
  rubyforge_project:
100
- rubygems_version: 2.4.5.1
98
+ rubygems_version: 2.5.1
101
99
  signing_key:
102
100
  specification_version: 4
103
101
  summary: This gem adds the bulma.io assets to your asset pipeline so you can import
@@ -1,57 +0,0 @@
1
- .navbar-item
2
- .title,
3
- .subtitle
4
- margin-bottom: 0
5
- // Responsiveness
6
- +mobile
7
- &:not(:last-child)
8
- margin-bottom: 10px
9
-
10
- .navbar-left,
11
- .navbar-right
12
- .navbar-item
13
- &:not(:last-child)
14
- margin-right: 10px
15
- // Modifiers
16
- &.is-flexible
17
- flex: 1
18
-
19
- .navbar-left
20
- // Responsiveness
21
- +mobile
22
- & + .navbar-right
23
- margin-top: 20px
24
- +tablet
25
- align-items: center
26
- display: flex
27
-
28
- .navbar-right
29
- // Responsiveness
30
- +tablet
31
- align-items: center
32
- display: flex
33
- justify-content: flex-end
34
-
35
- .navbar
36
- @extend .block
37
- align-items: center
38
- justify-content: space-between
39
- code
40
- border-radius: $radius
41
- img
42
- display: inline-block
43
- vertical-align: top
44
- // Modifiers
45
- &.is-mobile
46
- display: flex
47
- & > .navbar-item
48
- &:not(:last-child)
49
- margin-bottom: 0
50
- &:not(.is-narrow)
51
- flex: 1
52
- // Responsiveness
53
- +tablet
54
- display: flex
55
- & > .navbar-item
56
- &:not(.is-narrow)
57
- flex: 1
@@ -1,158 +0,0 @@
1
- $header-height: 50px !default
2
-
3
- .header
4
- +clearfix
5
- background-color: $white
6
- display: flex
7
- line-height: 24px
8
- min-height: $header-height
9
- position: relative
10
- text-align: center
11
- z-index: 2
12
- .container
13
- align-items: stretch
14
- display: flex
15
- min-height: $header-height
16
- width: 100%
17
- // Modifiers
18
- &.has-shadow
19
- box-shadow: 0 2px 3px rgba($black, 0.1)
20
- // Responsiveness
21
- +mobile
22
- .container
23
- flex-direction: column
24
- +tablet
25
- height: $header-height
26
-
27
- .header-toggle
28
- @extend .hamburger
29
- position: absolute
30
- right: 0
31
- top: 0
32
- // Responsiveness
33
- +tablet
34
- display: none
35
-
36
- // Elements
37
-
38
- .header-item
39
- align-items: center
40
- display: flex
41
- padding: 10px
42
- a
43
- flex-grow: 1
44
- img
45
- max-height: 24px
46
- .button + .button
47
- margin-left: 10px
48
- .fa
49
- font-size: 21px
50
- line-height: 24px
51
- .tag
52
- &:first-child
53
- margin-right: 5px
54
- &:last-child
55
- margin-left: 5px
56
- // Responsiveness
57
- +mobile
58
- text-align: left
59
-
60
- .header-item a,
61
- a.header-item
62
- color: $text
63
- &:hover
64
- color: $link-hover
65
- // Modifiers
66
- &.is-active
67
- color: $link-active
68
-
69
- .header-tab
70
- align-items: center
71
- border-bottom: 1px solid transparent
72
- color: $text
73
- display: block
74
- height: $header-height
75
- line-height: 24px
76
- padding: 13px 15px
77
- &:hover
78
- border-bottom: 1px solid $link
79
- // Modifiers
80
- &.is-active
81
- border-bottom: 3px solid $link
82
- color: $link
83
-
84
- // Containers
85
-
86
- .header-left
87
- align-items: stretch
88
- display: flex
89
- flex: 1
90
- overflow: hidden
91
- overflow-x: auto
92
- white-space: nowrap
93
- // Responsiveness
94
- +mobile
95
- height: $header-height
96
- +desktop
97
- margin-left: -10px
98
-
99
- .header-right
100
- align-items: stretch
101
- // Responsiveness
102
- +tablet
103
- display: flex
104
- +desktop
105
- margin-right: -10px
106
-
107
- .header-full
108
- align-items: stretch
109
- display: flex
110
- justify-content: center
111
- text-align: center
112
- width: 100%
113
- & > .header-item
114
- align-items: stretch
115
- display: flex
116
- flex: 1
117
- justify-content: center
118
- padding: 0
119
- & > a
120
- align-items: center
121
- display: flex
122
- justify-content: center
123
- width: 100%
124
-
125
- .header-menu
126
- // Responsiveness
127
- +mobile
128
- box-shadow: 0 4px 7px rgba($black, 0.1)
129
- display: none
130
- .header-item
131
- border-top: 1px solid rgba($border, 0.5)
132
- padding: 10px
133
- // Modifiers
134
- &.is-active
135
- display: block
136
-
137
- // States
138
-
139
- .header.is-centered
140
- justify-content: center
141
- .header-left,
142
- .header-right
143
- justify-content: center
144
-
145
- .header.is-small
146
- background-color: $background
147
- box-shadow: none
148
- height: 40px
149
- z-index: 1
150
- .container
151
- height: 40px
152
- .header-tab
153
- font-size: 13px
154
- height: 40px
155
- padding: 8px 10px
156
- &:hover,
157
- &.is-active
158
- border-bottom-width: 2px