bulma-rails 0.0.17.1 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/stylesheets/bulma/base/content.sass +29 -20
  4. data/app/assets/stylesheets/bulma/base/generic.sass +23 -14
  5. data/app/assets/stylesheets/bulma/base/helpers.sass +6 -9
  6. data/app/assets/stylesheets/bulma/components/card.sass +4 -2
  7. data/app/assets/stylesheets/bulma/components/components.sass +9 -0
  8. data/app/assets/stylesheets/bulma/components/grid.sass +70 -10
  9. data/app/assets/stylesheets/bulma/components/media.sass +3 -0
  10. data/app/assets/stylesheets/bulma/components/menu.sass +6 -4
  11. data/app/assets/stylesheets/bulma/components/modal.sass +2 -0
  12. data/app/assets/stylesheets/bulma/components/navbar.sass +22 -17
  13. data/app/assets/stylesheets/bulma/components/pagination.sass +2 -0
  14. data/app/assets/stylesheets/bulma/components/panel.sass +5 -26
  15. data/app/assets/stylesheets/bulma/components/table.sass +42 -32
  16. data/app/assets/stylesheets/bulma/components/tabs.sass +30 -26
  17. data/app/assets/stylesheets/bulma/config/generated-variables.sass +1 -0
  18. data/app/assets/stylesheets/bulma/elements/buttons.sass +25 -17
  19. data/app/assets/stylesheets/bulma/elements/controls.sass +58 -84
  20. data/app/assets/stylesheets/bulma/elements/elements.sass +27 -31
  21. data/app/assets/stylesheets/bulma/elements/images.sass +2 -0
  22. data/app/assets/stylesheets/bulma/elements/messages.sass +4 -5
  23. data/app/assets/stylesheets/bulma/elements/notifications.sass +8 -8
  24. data/app/assets/stylesheets/bulma/elements/progress.sass +9 -7
  25. data/app/assets/stylesheets/bulma/elements/titles.sass +24 -20
  26. data/app/assets/stylesheets/bulma/layout/header.sass +21 -8
  27. data/app/assets/stylesheets/bulma/layout/hero.sass +24 -17
  28. data/app/assets/stylesheets/bulma/layout/section.sass +2 -0
  29. data/bulma-rails.gemspec +1 -1
  30. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d301838a70878cdbe59a68e49a8f94d5d002a72
4
- data.tar.gz: f7764db67f2419659742b63b71643603ea19095d
3
+ metadata.gz: 30374f8faf97af8ce079cd59f7a9d031b817523b
4
+ data.tar.gz: 54a723a995d79aa26783ef4e402144ee5d4c9c09
5
5
  SHA512:
6
- metadata.gz: ee000e39bad1cc3f0d31716e10db577079a54aa64ca5758033658bfe99dba7d4059d30db6731ad7837de34cbed585a6941e2733f3f1f0897d432d1b759641775
7
- data.tar.gz: 1ac59afcf75741a40235bdc583cfa8e0e8e6f27f9e2e76181617532eba997c27a121bababfa3bf269fb39c8e4b0cc688c1ca7ee83418ff3812c478d2c2fe9980
6
+ metadata.gz: 4dde55d05d561a26cc0e9d4437792d61596725726d7bfb017fd672b31eab0ee8527b5ef3431ac433fc1a6ae23594a530de2ed4709444bec322b8240df508b782
7
+ data.tar.gz: 5328626a5b3347a5e1e493a93957e40e4940e589e1f8ced6fac18ccc0d7aa7415af892044192438efe0be2aac5ebd53bdcd49fcec4b9ff0dc7b1d7b9864646fa
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.17.1"
11
+ gem "bulma-rails", "~> 0.0.18"
12
12
 
13
13
  And then execute:
14
14
 
@@ -1,13 +1,15 @@
1
1
  .content
2
2
  @extend .block
3
- &.is-medium
4
- font-size: $size-5
5
- code
6
- font-size: $size-6
7
- &.is-large
8
- font-size: $size-4
9
- code
10
- font-size: $size-5
3
+ // Inline
4
+ li + li
5
+ margin-top: 0.25em
6
+ // Block
7
+ blockquote,
8
+ p,
9
+ ol,
10
+ ul
11
+ &:not(:last-child)
12
+ margin-bottom: 1em
11
13
  h1,
12
14
  h2,
13
15
  h3,
@@ -23,6 +25,10 @@
23
25
  h3
24
26
  &:not(:first-child)
25
27
  margin-top: 40px
28
+ blockquote
29
+ background: $background
30
+ border-left: 5px solid $border
31
+ padding: 1.5em
26
32
  h1
27
33
  font-size: 2em
28
34
  h2
@@ -35,24 +41,27 @@
35
41
  font-size: 1.125em
36
42
  h6
37
43
  font-size: 1em
38
- p:not(:last-child)
39
- margin-bottom: 1em
40
- li + li
41
- margin-top: 0.25em
42
44
  ol
43
45
  list-style: decimal outside
44
- margin: 1em 2em
46
+ margin-left: 2em
47
+ margin-right: 2em
48
+ margin-top: 1em
45
49
  ul
46
50
  list-style: disc outside
47
- margin: 1em 2em
51
+ margin-left: 2em
52
+ margin-right: 2em
53
+ margin-top: 1em
48
54
  ul
49
55
  list-style-type: circle
50
56
  margin-top: 0.5em
51
57
  ul
52
58
  list-style-type: square
53
- blockquote
54
- background: $background
55
- border-left: 5px solid $border
56
- padding: 1.5em
57
- &:not(:last-child)
58
- margin-bottom: 1em
59
+ // Sizes
60
+ &.is-medium
61
+ font-size: $size-5
62
+ code
63
+ font-size: $size-6
64
+ &.is-large
65
+ font-size: $size-4
66
+ code
67
+ font-size: $size-5
@@ -7,9 +7,19 @@ html
7
7
  overflow-x: hidden
8
8
  overflow-y: scroll
9
9
  text-rendering: optimizeLegibility
10
- &.has-modal-open
10
+ // Modifiers
11
+ &.has-modal
11
12
  overflow: hidden
12
13
 
14
+ article,
15
+ aside,
16
+ figure,
17
+ footer,
18
+ header,
19
+ hgroup,
20
+ section
21
+ display: block
22
+
13
23
  body,
14
24
  button,
15
25
  input,
@@ -21,7 +31,7 @@ code,
21
31
  pre
22
32
  -moz-osx-font-smoothing: auto
23
33
  -webkit-font-smoothing: auto
24
- font-family: monospace
34
+ font-family: $family-code
25
35
  line-height: 1.25
26
36
 
27
37
  body
@@ -29,6 +39,8 @@ body
29
39
  font-size: 1rem
30
40
  line-height: 1.428571428571429
31
41
 
42
+ // Inline
43
+
32
44
  a
33
45
  color: $link
34
46
  cursor: pointer
@@ -61,14 +73,7 @@ small
61
73
  strong
62
74
  color: $text-strong
63
75
 
64
- article,
65
- aside,
66
- figure,
67
- footer,
68
- header,
69
- hgroup,
70
- section
71
- display: block
76
+ // Block
72
77
 
73
78
  pre
74
79
  background: $pre-background
@@ -84,21 +89,25 @@ pre
84
89
 
85
90
  table
86
91
  width: 100%
87
- th,
88
- td
92
+ td,
93
+ th
89
94
  text-align: left
90
95
  vertical-align: top
91
96
  th
92
97
  color: $text-strong
93
98
 
94
- .block:not(:last-child)
95
- margin-bottom: 20px
99
+ // Classes
100
+
101
+ .block
102
+ &:not(:last-child)
103
+ margin-bottom: 20px
96
104
 
97
105
  .container
98
106
  position: relative
99
107
  +desktop
100
108
  margin: 0 auto
101
109
  max-width: 960px
110
+ // Modifiers
102
111
  &.is-fluid
103
112
  margin: 0 20px
104
113
  max-width: none
@@ -19,24 +19,22 @@
19
19
  .is-overlay
20
20
  +overlay
21
21
 
22
- // Size
23
-
24
- .is-fullwidth
25
- width: 100%
26
-
27
22
  // Text
28
23
 
29
- .is-text-centered
24
+ .has-text-centered
30
25
  text-align: center
31
26
 
32
- .is-text-left
27
+ .has-text-left
33
28
  text-align: left
34
29
 
35
- .is-text-right
30
+ .has-text-right
36
31
  text-align: right
37
32
 
38
33
  // Visibility
39
34
 
35
+ .is-hidden
36
+ display: none !important
37
+
40
38
  .is-hidden-mobile
41
39
  +mobile
42
40
  display: none !important
@@ -63,4 +61,3 @@
63
61
 
64
62
  .is-unselectable
65
63
  +unselectable
66
-
@@ -46,12 +46,14 @@
46
46
  .card
47
47
  background: white
48
48
  box-shadow: 0 2px 3px rgba(black, 0.1), 0 0 0 1px rgba(black, 0.1)
49
+ color: $text
49
50
  max-width: 100%
50
51
  position: relative
51
52
  width: 300px
52
53
  .media:not(:last-child)
53
54
  margin-bottom: 10px
54
- &.is-rounded
55
- border-radius: 5px
55
+ // Modifiers
56
56
  &.is-fullwidth
57
57
  width: 100%
58
+ &.is-rounded
59
+ border-radius: 5px
@@ -16,4 +16,13 @@
16
16
  background: white
17
17
  border-radius: 5px
18
18
  box-shadow: 0 2px 3px rgba(black, 0.1), 0 0 0 1px rgba(black, 0.1)
19
+ display: block
19
20
  padding: 20px
21
+
22
+ a.box
23
+ &:hover,
24
+ &:focus
25
+ box-shadow: 0 2px 3px rgba(black, 0.1), 0 0 0 1px $link
26
+ &:active
27
+ box-shadow: inset 0 1px 2px rgba(black, 0.2), 0 0 0 1px $link
28
+
@@ -1,6 +1,9 @@
1
1
  .column
2
2
  flex: 1
3
3
  padding: 10px
4
+ .columns.is-mobile > &.is-full
5
+ flex: none
6
+ width: 100%
4
7
  .columns.is-mobile > &.is-half
5
8
  flex: none
6
9
  width: 50%
@@ -16,13 +19,16 @@
16
19
  margin-left: 33.3333%
17
20
  .columns.is-mobile > &.is-offset-quarter
18
21
  margin-left: 25%
19
- @for $i from 1 through 11
22
+ @for $i from 1 through 12
20
23
  .columns.is-mobile > &.is-#{$i}
21
24
  flex: none
22
25
  width: ($i / 12) * 100%
23
26
  .columns.is-mobile > &.is-offset-#{$i}
24
27
  margin-left: ($i / 12) * 100%
25
28
  +mobile
29
+ &.is-full-mobile
30
+ flex: none
31
+ width: 100%
26
32
  &.is-half-mobile
27
33
  flex: none
28
34
  width: 50%
@@ -38,13 +44,17 @@
38
44
  margin-left: 33.3333%
39
45
  &.is-offset-quarter-mobile
40
46
  margin-left: 25%
41
- @for $i from 1 through 11
47
+ @for $i from 1 through 12
42
48
  &.is-#{$i}-mobile
43
49
  flex: none
44
50
  width: ($i / 12) * 100%
45
51
  &.is-offset-#{$i}-mobile
46
52
  margin-left: ($i / 12) * 100%
47
53
  +tablet
54
+ &.is-full,
55
+ &.is-full-tablet
56
+ flex: none
57
+ width: 100%
48
58
  &.is-half,
49
59
  &.is-half-tablet
50
60
  flex: none
@@ -66,7 +76,7 @@
66
76
  &.is-offset-quarter,
67
77
  &.is-offset-quarter-tablet
68
78
  margin-left: 25%
69
- @for $i from 1 through 11
79
+ @for $i from 1 through 12
70
80
  &.is-#{$i},
71
81
  &.is-#{$i}-tablet
72
82
  flex: none
@@ -75,6 +85,9 @@
75
85
  &.is-offset-#{$i}-tablet
76
86
  margin-left: ($i / 12) * 100%
77
87
  +desktop
88
+ &.is-full-desktop
89
+ flex: none
90
+ width: 100%
78
91
  &.is-half-desktop
79
92
  flex: none
80
93
  width: 50%
@@ -90,7 +103,7 @@
90
103
  margin-left: 33.3333%
91
104
  &.is-offset-quarter-desktop
92
105
  margin-left: 25%
93
- @for $i from 1 through 11
106
+ @for $i from 1 through 12
94
107
  &.is-#{$i}-desktop
95
108
  flex: none
96
109
  width: ($i / 12) * 100%
@@ -105,23 +118,22 @@
105
118
  margin-bottom: -10px
106
119
  &:not(:last-child)
107
120
  margin-bottom: 10px
121
+ // Modifiers
108
122
  &.is-centered
109
123
  justify-content: center
110
- &.is-mobile
111
- display: flex
112
124
  &.is-gapless
113
125
  margin-left: 0
114
126
  margin-right: 0
127
+ margin-top: 0
128
+ &:last-child
129
+ margin-bottom: 0
115
130
  &:not(:last-child)
116
131
  margin-bottom: 20px
117
132
  & > .column
118
133
  margin: 0
119
134
  padding: 0
120
- &.is-multiline
121
- flex-wrap: wrap
122
- &.is-vcentered
123
- align-items: center
124
135
  &.is-grid
136
+ // Responsiveness
125
137
  +tablet
126
138
  flex-wrap: wrap
127
139
  & > .column
@@ -131,9 +143,57 @@
131
143
  width: 33.3333%
132
144
  & + .column
133
145
  margin-left: 0
146
+ &.is-mobile
147
+ display: flex
148
+ &.is-multiline
149
+ flex-wrap: wrap
150
+ &.is-vcentered
151
+ align-items: center
152
+ // Responsiveness
134
153
  +tablet
135
154
  &:not(.is-desktop)
136
155
  display: flex
137
156
  +desktop
157
+ // Modifiers
138
158
  &.is-desktop
139
159
  display: flex
160
+
161
+ .tile-content
162
+ align-items: stretch
163
+ flex: 1
164
+ margin: 0 !important
165
+ // Responsiveness
166
+ +tablet
167
+ display: flex
168
+
169
+ .tile
170
+ flex: 1
171
+ // Modifiers
172
+ &.is-parent
173
+ padding: 10px
174
+ // Responsiveness
175
+ +tablet
176
+ // Sizes
177
+ @for $i from 1 through 12
178
+ &.is-#{$i}
179
+ flex: none
180
+ width: ($i / 12) * 100%
181
+
182
+ .tiles
183
+ align-items: stretch
184
+ // Modifiers
185
+ &.is-ancestor
186
+ margin-left: -10px
187
+ margin-right: -10px
188
+ margin-top: -10px
189
+ &:last-child
190
+ margin-bottom: -10px
191
+ &:not(:last-child)
192
+ margin-bottom: 10px
193
+ &.is-vertical
194
+ flex-direction: column
195
+ & > .tile-content:not(:last-child)
196
+ margin-bottom: 20px !important
197
+ // Responsiveness
198
+ +tablet
199
+ display: flex
@@ -9,6 +9,7 @@
9
9
  padding: 4px 8px
10
10
  text-align: center
11
11
  vertical-align: top
12
+ // Responsiveness
12
13
  +mobile
13
14
  margin-bottom: 10px
14
15
  +tablet
@@ -50,10 +51,12 @@
50
51
  border-top: 1px solid rgba($border, 0.5)
51
52
  margin-top: 10px
52
53
  padding-top: 10px
54
+ // Sizes
53
55
  &.is-large
54
56
  & + .media
55
57
  margin-top: 20px
56
58
  padding-top: 20px
59
+ // Responsiveness
57
60
  +tablet
58
61
  &.is-large
59
62
  .media-number
@@ -12,13 +12,15 @@
12
12
  &:hover
13
13
  background: $background
14
14
  color: $link
15
+ // Modifiers
15
16
  &.is-active
16
17
  background: $link
17
18
  color: $link-invert
18
- li ul
19
- border-left: 1px solid $border
20
- margin: 10px
21
- padding-left: 10px
19
+ li
20
+ ul
21
+ border-left: 1px solid $border
22
+ margin: 10px
23
+ padding-left: 10px
22
24
 
23
25
  .menu-label
24
26
  color: $text-light