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
@@ -19,14 +19,14 @@
19
19
  &:focus
20
20
  border-color: $control-active-border
21
21
  outline: none
22
- &[disabled]
23
- &,
24
- &:hover
25
- background: $background
26
- border-color: $control-border
27
- cursor: not-allowed
28
- +placeholder
29
- color: rgba($control, 0.3)
22
+ &[disabled],
23
+ &.is-disabled
24
+ background: $background
25
+ border-color: $control-border
26
+ cursor: not-allowed
27
+ pointer-events: none
28
+ +placeholder
29
+ color: rgba($control, 0.3)
30
30
 
31
31
  =form-control
32
32
  +control
@@ -60,10 +60,7 @@
60
60
  width: 100%
61
61
  &[type="search"]
62
62
  border-radius: 290486px
63
- &.is-flat
64
- border: none
65
- box-shadow: none
66
- padding: 4px 8px
63
+ // Sizes
67
64
  &.is-small
68
65
  +control-small
69
66
  &.is-flat
@@ -76,6 +73,11 @@
76
73
  +control-large
77
74
  &.is-flat
78
75
  padding: 4px 12px
76
+ // Modifiers
77
+ &.is-flat
78
+ border: none
79
+ box-shadow: none
80
+ padding: 4px 8px
79
81
  &.is-fullwidth
80
82
  display: block
81
83
  width: 100%
@@ -97,46 +99,17 @@
97
99
  cursor: pointer
98
100
  display: inline-block
99
101
  line-height: 16px
100
- padding-left: 18px
101
102
  position: relative
102
103
  vertical-align: top
103
104
  input
104
- +form-control
105
- border-radius: 1px
106
- box-shadow: inset 0 1px 1px rgba(black, 0.1)
107
105
  cursor: pointer
108
- float: left
109
- height: 14px
110
- left: 0
111
- outline: none
112
- padding: 0
113
- position: absolute
114
- top: 1px
115
- width: 14px
116
- &:after
117
- +arrow($control-active-background-invert)
118
- height: 4px
119
- left: 3px
120
- opacity: 0
121
- position: absolute
122
- top: 3px
123
- transform: rotate(-45deg) scale(1)
124
- &:checked
125
- background: $control-active-background
126
- border-color: $control-active-background
127
- box-shadow: none
128
- &:after
129
- opacity: 1
130
106
  &:hover
131
107
  color: $control-hover
132
- input
133
- border-color: $control-hover-border
134
- &:checked
135
- border-color: $control-active-border
136
108
  &.is-disabled
137
- &,
138
- &:hover
139
- color: $text-light
109
+ color: $text-light
110
+ pointer-events: none
111
+ input
112
+ pointer-events: none
140
113
 
141
114
  .checkbox
142
115
  @extend %control-with-element
@@ -145,16 +118,6 @@
145
118
  @extend %control-with-element
146
119
  & + .radio
147
120
  margin-left: 10px
148
- input
149
- border-radius: 8px
150
- &:after
151
- background: $link-invert
152
- border: 0
153
- border-radius: 2px
154
- left: 4px
155
- top: 4px
156
- transform: none
157
- width: 4px
158
121
 
159
122
  .select
160
123
  display: inline-block
@@ -214,39 +177,14 @@
214
177
  .control
215
178
  position: relative
216
179
  text-align: left
217
- &.is-loading
218
- &:after
219
- @extend .loader
220
- position: absolute !important
221
- right: 8px
222
- top: 8px
223
180
  &:not(:last-child)
224
181
  margin-bottom: 10px
225
- &.has-icon
226
- & > .fa
227
- +fa(14px, 16px)
228
- color: $text-light
229
- pointer-events: none
230
- position: absolute
231
- top: 8px
232
- z-index: 4
233
- .input
234
- &:focus + .fa
235
- color: $text-strong
236
- &:not(.has-icon-right)
237
- & > .fa
238
- left: 8px
239
- .input
240
- padding-left: 32px
241
- &.has-icon-right
242
- & > .fa
243
- right: 8px
244
- .input
245
- padding-right: 32px
182
+ // Modifiers
246
183
  &.has-addons
247
184
  display: flex
248
- .input,
185
+ justify-content: flex-start
249
186
  .button,
187
+ .input,
250
188
  .select
251
189
  border-radius: 0
252
190
  margin-right: -1px
@@ -261,10 +199,36 @@
261
199
  border-radius: $radius 0 0 $radius
262
200
  &:last-child
263
201
  border-radius: 0 $radius $radius 0
264
- &.is-centered
202
+ select
203
+ border-radius: 0 $radius $radius 0
204
+ &.has-addons-centered
265
205
  justify-content: center
206
+ &.has-addons-right
207
+ justify-content: flex-end
208
+ &.has-icon
209
+ & > .fa
210
+ +fa(14px, 16px)
211
+ color: $text-light
212
+ pointer-events: none
213
+ position: absolute
214
+ top: 8px
215
+ z-index: 4
216
+ .input
217
+ &:focus + .fa
218
+ color: $text-strong
219
+ &:not(.has-icon-right)
220
+ & > .fa
221
+ left: 8px
222
+ .input
223
+ padding-left: 32px
224
+ &.has-icon-right
225
+ & > .fa
226
+ right: 8px
227
+ .input
228
+ padding-right: 32px
266
229
  &.is-grouped
267
230
  display: flex
231
+ justify-content: flex-start
268
232
  & > .button,
269
233
  & > .input,
270
234
  & > .select
@@ -272,9 +236,19 @@
272
236
  margin-right: 10px
273
237
  & > .input
274
238
  flex: 1
239
+ &.is-grouped-centered
240
+ justify-content: center
241
+ &.is-grouped-right
242
+ justify-content: flex-end
275
243
  &.is-horizontal
276
244
  +tablet
277
245
  display: flex
278
246
  & > .control
279
247
  display: flex
280
248
  flex: 5
249
+ &.is-loading
250
+ &:after
251
+ @extend .loader
252
+ position: absolute !important
253
+ right: 8px
254
+ top: 8px
@@ -39,6 +39,7 @@
39
39
  transform: rotate(-45deg)
40
40
  &:hover
41
41
  background: $red
42
+ // Sizes
42
43
  &.is-small
43
44
  height: 16px
44
45
  width: 16px
@@ -54,6 +55,7 @@
54
55
  .fa
55
56
  font-size: inherit
56
57
  line-height: inherit
58
+ // Sizes
57
59
  &.is-small
58
60
  +fa(14px, 16px)
59
61
  &.is-medium
@@ -86,6 +88,7 @@
86
88
  margin-top: 4px
87
89
  &:hover
88
90
  background: $background
91
+ // Modifers
89
92
  &.is-active
90
93
  span
91
94
  background: $link
@@ -121,17 +124,6 @@
121
124
  overflow: auto
122
125
  max-width: 100%
123
126
 
124
- .image
125
- display: block
126
- position: relative
127
- vertical-align: top
128
- img
129
- +overlay
130
- display: block
131
- width: 100%
132
- &.is-3x2
133
- padding-top: 66.6666%
134
-
135
127
  .loader
136
128
  animation: spin-around 500ms infinite linear
137
129
  border: 2px solid $border
@@ -152,44 +144,48 @@
152
144
  vertical-align: top
153
145
 
154
146
  .tag
147
+ align-items: center
155
148
  background: $background
156
- border-radius: $radius
157
- box-shadow: inset 0 -1px 0 rgba(black, 0.1)
149
+ border-radius: 290486px
158
150
  color: $text
159
- display: inline-block
151
+ display: inline-flex
160
152
  font-size: 12px
161
153
  height: 24px
154
+ justify-content: center
162
155
  line-height: 16px
163
156
  padding: 4px 10px
164
157
  vertical-align: top
165
158
  white-space: nowrap
159
+ .delete
160
+ margin-left: 4px
161
+ margin-right: -6px
162
+ &:not(.is-large)
163
+ .delete
164
+ @extend .delete.is-small
165
+ // Colors
166
+ @each $name, $pair in $colors
167
+ $color: nth($pair, 1)
168
+ $color-invert: nth($pair, 2)
169
+ &.is-#{$name}
170
+ background: $color
171
+ color: $color-invert
166
172
  &.is-dark
167
173
  background: $text
168
174
  color: $text-invert
169
- &.is-rounded
170
- border-radius: 290486px
175
+ // Sizes
176
+ &.is-small
177
+ font-size: $size-small
178
+ height: 20px
179
+ padding: 2px 8px
171
180
  &.is-medium
172
- box-shadow: inset 0 -2px 0 rgba(black, 0.1)
173
181
  font-size: $size-normal
174
182
  height: 32px
175
- padding: 7px 14px 9px
176
- &:not(.is-large)
177
- .delete
178
- @extend .delete.is-small
179
- margin-left: 4px
180
- margin-right: -6px
183
+ padding: 8px 14px
181
184
  &.is-large
182
- box-shadow: inset 0 -2px 0 rgba(black, 0.1)
183
185
  font-size: $size-5
184
186
  height: 40px
185
187
  line-height: 24px
186
- padding: 7px 18px 9px
188
+ padding: 8px 18px
187
189
  .delete
188
190
  margin-left: 4px
189
191
  margin-right: -8px
190
- @each $name, $pair in $colors
191
- $color: nth($pair, 1)
192
- $color-invert: nth($pair, 2)
193
- &.is-#{$name}
194
- background: $color
195
- color: $color-invert
@@ -5,6 +5,7 @@ $dimensions: 16 24 32 48 64 96 128
5
5
  position: relative
6
6
  img
7
7
  display: block
8
+ // Ratio
8
9
  &.is-square,
9
10
  &.is-1by1,
10
11
  &.is-4by3,
@@ -26,6 +27,7 @@ $dimensions: 16 24 32 48 64 96 128
26
27
  padding-top: 56.25%
27
28
  &.is-2by1
28
29
  padding-top: 50%
30
+ // Sizes
29
31
  @each $dimension in $dimensions
30
32
  &.is-#{$dimension}x#{$dimension}
31
33
  height: $dimension * 1px
@@ -9,11 +9,9 @@
9
9
  background: $text
10
10
  border-radius: $radius $radius 0 0
11
11
  color: $text-invert
12
- font-size: 10px
13
- font-weight: bold
14
- letter-spacing: 1px
15
- padding: 3px 8px
16
- text-transform: uppercase
12
+ padding: 7px 10px
13
+ strong
14
+ color: inherit
17
15
  & + .message-body
18
16
  border-radius: 0 0 $radius $radius
19
17
  border-top: none
@@ -22,6 +20,7 @@
22
20
  @extend .block
23
21
  background: $background
24
22
  border-radius: $radius
23
+ // Colors
25
24
  @each $name, $pair in $colors
26
25
  $color: nth($pair, 1)
27
26
  $color-invert: nth($pair, 2)
@@ -5,19 +5,19 @@
5
5
  border-radius: $radius
6
6
  padding: 16px 20px
7
7
  position: relative
8
+ .delete
9
+ background: rgba(black, 0.2)
10
+ border-radius: 0 $radius
11
+ float: right
12
+ margin: -16px -20px 0 20px
13
+ &:hover
14
+ background: rgba(black, 0.5)
8
15
  .title
9
16
  color: inherit
17
+ // Colors
10
18
  @each $name, $pair in $colors
11
19
  $color: nth($pair, 1)
12
20
  $color-invert: nth($pair, 2)
13
21
  &.is-#{$name}
14
22
  background: $color
15
23
  color: $color-invert
16
- .delete
17
- background: rgba(black, 0.2)
18
- border-radius: 0 $radius
19
- float: right
20
- margin: -16px -20px 0 20px
21
- &:hover
22
- background: rgba(black, 0.5)
23
-
@@ -1,7 +1,7 @@
1
1
  .progress
2
+ @extend .block
2
3
  -moz-appearance: none
3
4
  -webkit-appearance: none
4
- @extend .block
5
5
  border: none
6
6
  border-radius: 290486px
7
7
  display: block
@@ -15,12 +15,7 @@
15
15
  background: $text
16
16
  &::-moz-progress-bar
17
17
  background: $text
18
- &.is-small
19
- height: 8px
20
- &.is-medium
21
- height: 16px
22
- &.is-large
23
- height: 20px
18
+ // Colors
24
19
  @each $name, $pair in $colors
25
20
  $color: nth($pair, 1)
26
21
  &.is-#{$name}
@@ -28,3 +23,10 @@
28
23
  background: $color
29
24
  &::-moz-progress-bar
30
25
  background: $color
26
+ // Sizes
27
+ &.is-small
28
+ height: 8px
29
+ &.is-medium
30
+ height: 16px
31
+ &.is-large
32
+ height: 20px
@@ -5,11 +5,11 @@
5
5
  em,
6
6
  span
7
7
  font-weight: $weight-title-normal
8
- strong
9
- font-weight: $weight-title-bold
10
8
  a
11
9
  &:hover
12
10
  border-bottom: 1px solid
11
+ strong
12
+ font-weight: $weight-title-bold
13
13
  .tag
14
14
  vertical-align: bottom
15
15
 
@@ -17,51 +17,55 @@
17
17
  color: $text-strong
18
18
  font-size: $size-large
19
19
  line-height: 1
20
- strong
21
- color: inherit
22
20
  code
23
21
  display: inline-block
24
22
  font-size: $size-large
25
- & + .subtitle
26
- margin-top: -10px
23
+ strong
24
+ color: inherit
27
25
  & + .highlight
28
26
  margin-top: -10px
29
- &.is-normal
30
- font-weight: 400
31
- strong
32
- font-weight: 700
27
+ & + .subtitle
28
+ margin-top: -10px
29
+ // Colors
33
30
  @each $size in $sizes
34
31
  $i: index($sizes, $size)
35
32
  &.is-#{$i}
36
33
  font-size: $size
37
34
  code
38
35
  font-size: nth($sizes, min($i + 1, 6))
36
+ // Modifiers
37
+ &.is-normal
38
+ font-weight: 400
39
+ strong
40
+ font-weight: 700
41
+ // Responsiveness
39
42
  +tablet
40
43
  & + .subtitle
41
44
  margin-top: -15px
42
45
 
43
46
  .subtitle
47
+ color: $text
44
48
  font-size: $size-medium
45
49
  line-height: 1.125
46
- & + .title
47
- margin-top: -20px
48
- strong
49
- color: $text-strong
50
50
  code
51
51
  border-radius: $radius
52
52
  display: inline-block
53
53
  font-size: $size-normal
54
54
  padding: 2px 3px
55
55
  vertical-align: top
56
- & + .text
57
- margin-top: 20px
58
- &.is-normal
59
- font-weight: 400
60
- strong
61
- font-weight: 700
56
+ strong
57
+ color: $text-strong
58
+ & + .title
59
+ margin-top: -20px
60
+ // Colors
62
61
  @each $size in $sizes
63
62
  $i: index($sizes, $size)
64
63
  &.is-#{$i}
65
64
  font-size: $size
66
65
  code
67
66
  font-size: nth($sizes, min($i + 1, 6))
67
+ // Modifiers
68
+ &.is-normal
69
+ font-weight: 400
70
+ strong
71
+ font-weight: 700