bulma-rails 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a7b7ff4967e67945435f1d062859419b81da30b1
4
- data.tar.gz: d4496c3ba9469ab211a791cb9f3569185dab84e5
2
+ SHA256:
3
+ metadata.gz: 9afe22c8ef08f3873497eeef4c048361a39a80a3a43411aa6cbabb5b9e562e7c
4
+ data.tar.gz: 9fd523ea138f2b91eaf057c701eb38c1a04b9caec04452aa0a74dd62fc3b15a1
5
5
  SHA512:
6
- metadata.gz: ef0677e8aba946260b34926f5c1d029293254479efec2023653b762006b90e9a1fc1702b08ad9127f01c68fb13264a1926a58ab17576ad8d7f60599380a1e161
7
- data.tar.gz: cb74f0dfd8bc4c172084c9489ae775778424f9db2b1fde50296d601af72c8807c046df52199f9563634717081dbd365a5d86b7d6b55dfcfe81c26ac7c50d552a
6
+ metadata.gz: e6c1988b5a4fbda13325f709b248ced4a953d4c9d34c7210bc61ebcbcac53edafd79c8c13c2008be164efbc9724c51f8a18a59e913dbff566570cc856b81c399
7
+ data.tar.gz: 5f1bd90a0bf42fe9448aa2c40f9dd9ac627a113967b7ada1ef4c248c7e5b1b36c96a28fa9fbb8ce16948674d205b3c162fb72761969174b2249aeb18da3eb686
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.7.2"
11
+ gem "bulma-rails", "~> 0.7.3"
12
12
 
13
13
  And then execute:
14
14
 
@@ -1,5 +1,5 @@
1
1
  @charset "utf-8"
2
- /*! bulma.io v0.7.2 | MIT License | github.com/jgthms/bulma */
2
+ /*! bulma.io v0.7.3 | MIT License | github.com/jgthms/bulma */
3
3
  @import "sass/utilities/_all"
4
4
  @import "sass/base/_all"
5
5
  @import "sass/elements/_all"
@@ -103,6 +103,9 @@ strong
103
103
 
104
104
  // Block
105
105
 
106
+ fieldset
107
+ border: none
108
+
106
109
  pre
107
110
  +overflow-touch
108
111
  background-color: $pre-background
@@ -120,6 +120,21 @@ $alignments: ('centered': 'center', 'justified': 'justify', 'left': 'left', 'rig
120
120
  .has-text-weight-bold
121
121
  font-weight: $weight-bold !important
122
122
 
123
+ .is-family-primary
124
+ font-family: $family-primary !important
125
+
126
+ .is-family-secondary
127
+ font-family: $family-secondary !important
128
+
129
+ .is-family-sans-serif
130
+ font-family: $family-sans-serif !important
131
+
132
+ .is-family-monospace
133
+ font-family: $family-monospace !important
134
+
135
+ .is-family-code
136
+ font-family: $family-code !important
137
+
123
138
  // Visibility
124
139
 
125
140
  $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
@@ -25,7 +25,7 @@ $message-header-body-border-width: 0 !default
25
25
  font-size: $size-normal
26
26
  strong
27
27
  color: currentColor
28
- a:not(.button):not(.tag)
28
+ a:not(.button):not(.tag):not(.dropdown-item)
29
29
  color: currentColor
30
30
  text-decoration: underline
31
31
  // Sizes
@@ -420,3 +420,9 @@ a.navbar-item,
420
420
  &.is-active
421
421
  .navbar-link
422
422
  background-color: $navbar-item-hover-background-color
423
+
424
+ // Combination
425
+
426
+ .hero
427
+ &.is-fullheight-with-navbar
428
+ min-height: calc(100vh - #{$navbar-height})
@@ -35,6 +35,8 @@ $button-static-border-color: $grey-lighter !default
35
35
  =button-small
36
36
  border-radius: $radius-small
37
37
  font-size: $size-small
38
+ =button-normal
39
+ font-size: $size-normal
38
40
  =button-medium
39
41
  font-size: $size-medium
40
42
  =button-large
@@ -104,7 +106,8 @@ $button-static-border-color: $grey-lighter !default
104
106
  &.is-active
105
107
  background-color: darken($button-text-hover-background-color, 5%)
106
108
  color: $button-text-hover-color
107
- &[disabled]
109
+ &[disabled],
110
+ fieldset[disabled] &
108
111
  background-color: transparent
109
112
  border-color: transparent
110
113
  box-shadow: none
@@ -131,7 +134,8 @@ $button-static-border-color: $grey-lighter !default
131
134
  background-color: darken($color, 5%)
132
135
  border-color: transparent
133
136
  color: $color-invert
134
- &[disabled]
137
+ &[disabled],
138
+ fieldset[disabled] &
135
139
  background-color: $color
136
140
  border-color: transparent
137
141
  box-shadow: none
@@ -140,7 +144,8 @@ $button-static-border-color: $grey-lighter !default
140
144
  color: $color
141
145
  &:hover
142
146
  background-color: darken($color-invert, 5%)
143
- &[disabled]
147
+ &[disabled],
148
+ fieldset[disabled] &
144
149
  background-color: $color-invert
145
150
  border-color: transparent
146
151
  box-shadow: none
@@ -160,7 +165,8 @@ $button-static-border-color: $grey-lighter !default
160
165
  &.is-loading
161
166
  &::after
162
167
  border-color: transparent transparent $color $color !important
163
- &[disabled]
168
+ &[disabled],
169
+ fieldset[disabled] &
164
170
  background-color: transparent
165
171
  border-color: $color
166
172
  box-shadow: none
@@ -173,7 +179,8 @@ $button-static-border-color: $grey-lighter !default
173
179
  &:focus
174
180
  background-color: $color-invert
175
181
  color: $color
176
- &[disabled]
182
+ &[disabled],
183
+ fieldset[disabled] &
177
184
  background-color: transparent
178
185
  border-color: $color-invert
179
186
  box-shadow: none
@@ -181,12 +188,15 @@ $button-static-border-color: $grey-lighter !default
181
188
  // Sizes
182
189
  &.is-small
183
190
  +button-small
191
+ &.is-normal
192
+ +button-normal
184
193
  &.is-medium
185
194
  +button-medium
186
195
  &.is-large
187
196
  +button-large
188
197
  // Modifiers
189
- &[disabled]
198
+ &[disabled],
199
+ fieldset[disabled] &
190
200
  background-color: $button-disabled-background-color
191
201
  border-color: $button-disabled-border-color
192
202
  box-shadow: $button-disabled-shadow
@@ -225,6 +235,16 @@ $button-static-border-color: $grey-lighter !default
225
235
  margin-bottom: -0.5rem
226
236
  &:not(:last-child)
227
237
  margin-bottom: 1rem
238
+ // Sizes
239
+ &.are-small
240
+ .button:not(.is-normal):not(.is-medium):not(.is-large)
241
+ +button-small
242
+ &.are-medium
243
+ .button:not(.is-small):not(.is-normal):not(.is-large)
244
+ +button-medium
245
+ &.are-large
246
+ .button:not(.is-small):not(.is-normal):not(.is-medium)
247
+ +button-large
228
248
  &.has-addons
229
249
  .button
230
250
  &:not(:first-child)
@@ -3,6 +3,7 @@ $input-background-color: $white !default
3
3
  $input-border-color: $grey-lighter !default
4
4
  $input-height: $control-height !default
5
5
  $input-shadow: inset 0 1px 2px rgba($black, 0.1) !default
6
+ $input-placeholder-color: rgba($input-color, 0.3) !default
6
7
 
7
8
  $input-hover-color: $grey-darker !default
8
9
  $input-hover-border-color: $grey-light !default
@@ -15,6 +16,7 @@ $input-focus-box-shadow-color: rgba($link, 0.25) !default
15
16
  $input-disabled-color: $text-light !default
16
17
  $input-disabled-background-color: $background !default
17
18
  $input-disabled-border-color: $background !default
19
+ $input-disabled-placeholder-color: rgba($input-disabled-color, 0.3) !default
18
20
 
19
21
  $input-arrow: $link !default
20
22
 
@@ -47,7 +49,7 @@ $help-size: $size-small !default
47
49
  border-color: $input-border-color
48
50
  color: $input-color
49
51
  +placeholder
50
- color: rgba($input-color, 0.3)
52
+ color: $input-placeholder-color
51
53
  &:hover,
52
54
  &.is-hovered
53
55
  border-color: $input-hover-border-color
@@ -57,13 +59,14 @@ $help-size: $size-small !default
57
59
  &.is-active
58
60
  border-color: $input-focus-border-color
59
61
  box-shadow: $input-focus-box-shadow-size $input-focus-box-shadow-color
60
- &[disabled]
62
+ &[disabled],
63
+ fieldset[disabled] &
61
64
  background-color: $input-disabled-background-color
62
65
  border-color: $input-disabled-border-color
63
66
  box-shadow: none
64
67
  color: $input-disabled-color
65
68
  +placeholder
66
- color: rgba($input-disabled-color, 0.3)
69
+ color: $input-disabled-placeholder-color
67
70
 
68
71
  .input,
69
72
  .textarea
@@ -135,7 +138,8 @@ $help-size: $size-small !default
135
138
  cursor: pointer
136
139
  &:hover
137
140
  color: $input-hover-color
138
- &[disabled]
141
+ &[disabled],
142
+ fieldset[disabled] &
139
143
  color: $input-disabled-color
140
144
  cursor: not-allowed
141
145
 
@@ -169,7 +173,8 @@ $help-size: $size-small !default
169
173
  outline: none
170
174
  &::-ms-expand
171
175
  display: none
172
- &[disabled]:hover
176
+ &[disabled]:hover,
177
+ fieldset[disabled] &:hover
173
178
  border-color: $input-disabled-border-color
174
179
  &:not([multiple])
175
180
  padding-right: 2.5em
@@ -437,13 +442,13 @@ $help-size: $size-small !default
437
442
  .input,
438
443
  .select select
439
444
  border-radius: 0
440
- &:first-child
445
+ &:first-child:not(:only-child)
441
446
  .button,
442
447
  .input,
443
448
  .select select
444
449
  border-bottom-right-radius: 0
445
450
  border-top-right-radius: 0
446
- &:last-child
451
+ &:last-child:not(:only-child)
447
452
  .button,
448
453
  .input,
449
454
  .select select
@@ -498,7 +503,6 @@ $help-size: $size-small !default
498
503
  margin-bottom: -0.75rem
499
504
  &:not(:last-child)
500
505
  margin-bottom: 0
501
-
502
506
  &.is-horizontal
503
507
  +tablet
504
508
  display: flex
@@ -544,44 +548,12 @@ $help-size: $size-small !default
544
548
  margin-right: 0.75rem
545
549
 
546
550
  .control
551
+ box-sizing: border-box
547
552
  clear: both //fixes the icon floating out of the input when help text is floated right
548
553
  font-size: $size-normal
549
554
  position: relative
550
555
  text-align: left
551
556
  // Modifiers
552
- // DEPRECATED
553
- &.has-icon
554
- .icon
555
- color: $input-icon-color
556
- height: $input-height
557
- pointer-events: none
558
- position: absolute
559
- top: 0
560
- width: $input-height
561
- z-index: 4
562
- .input
563
- &:focus
564
- & + .icon
565
- color: $input-icon-active-color
566
- &.is-small
567
- & + .icon
568
- font-size: $size-small
569
- &.is-medium
570
- & + .icon
571
- font-size: $size-medium
572
- &.is-large
573
- & + .icon
574
- font-size: $size-large
575
- &:not(.has-icon-right)
576
- .icon
577
- left: 0
578
- .input
579
- padding-left: $input-height
580
- &.has-icon-right
581
- .icon
582
- right: 0
583
- .input
584
- padding-right: $input-height
585
557
  &.has-icons-left,
586
558
  &.has-icons-right
587
559
  .input,
@@ -26,7 +26,8 @@ $dimensions: 16 24 32 48 64 96 128 !default
26
26
  &.is-9by16,
27
27
  &.is-1by2,
28
28
  &.is-1by3
29
- img
29
+ img,
30
+ .has-ratio
30
31
  @extend %overlay
31
32
  height: 100%
32
33
  width: 100%
@@ -1,6 +1,8 @@
1
1
  $progress-bar-background-color: $border !default
2
2
  $progress-value-background-color: $text !default
3
3
 
4
+ $progress-indeterminate-duration: 1.5s !default
5
+
4
6
  .progress
5
7
  @extend %block
6
8
  -moz-appearance: none
@@ -21,6 +23,20 @@ $progress-value-background-color: $text !default
21
23
  &::-ms-fill
22
24
  background-color: $progress-value-background-color
23
25
  border: none
26
+ &:indeterminate
27
+ animation-duration: $progress-indeterminate-duration
28
+ animation-iteration-count: infinite
29
+ animation-name: moveIndeterminate
30
+ animation-timing-function: linear
31
+ background-color: $progress-bar-background-color
32
+ background-image: linear-gradient(to right, $text 30%, $progress-bar-background-color 30%)
33
+ background-position: top left
34
+ background-repeat: no-repeat
35
+ background-size: 150% 150%
36
+ &::-webkit-progress-bar
37
+ background-color: transparent
38
+ &::-moz-progress-bar
39
+ background-color: transparent
24
40
  // Colors
25
41
  @each $name, $pair in $colors
26
42
  $color: nth($pair, 1)
@@ -31,6 +47,9 @@ $progress-value-background-color: $text !default
31
47
  background-color: $color
32
48
  &::-ms-fill
33
49
  background-color: $color
50
+ &:indeterminate
51
+ background-image: linear-gradient(to right, $color 30%, $progress-bar-background-color 30%)
52
+
34
53
  // Sizes
35
54
  &.is-small
36
55
  height: $size-small
@@ -38,3 +57,9 @@ $progress-value-background-color: $text !default
38
57
  height: $size-medium
39
58
  &.is-large
40
59
  height: $size-large
60
+
61
+ @keyframes moveIndeterminate
62
+ from
63
+ background-position: 200% 0
64
+ to
65
+ background-position: -200% 0
@@ -11,6 +11,10 @@ $table-head-cell-color: $text-strong !default
11
11
  $table-foot-cell-border-width: 2px 0 0 !default
12
12
  $table-foot-cell-color: $text-strong !default
13
13
 
14
+ $table-head-background-color: transparent !default
15
+ $table-body-background-color: transparent !default
16
+ $table-foot-background-color: transparent !default
17
+
14
18
  $table-row-hover-background-color: $white-bis !default
15
19
 
16
20
  $table-row-active-background-color: $primary !default
@@ -62,16 +66,19 @@ $table-striped-row-even-hover-background-color: $white-ter !default
62
66
  border-color: $table-row-active-color
63
67
  color: currentColor
64
68
  thead
69
+ background-color: $table-head-background-color
65
70
  td,
66
71
  th
67
72
  border-width: $table-head-cell-border-width
68
73
  color: $table-head-cell-color
69
74
  tfoot
75
+ background-color: $table-foot-background-color
70
76
  td,
71
77
  th
72
78
  border-width: $table-foot-cell-border-width
73
79
  color: $table-foot-cell-color
74
80
  tbody
81
+ background-color: $table-body-background-color
75
82
  tr
76
83
  &:last-child
77
84
  td,
@@ -16,6 +16,13 @@ $tag-delete-margin: 1px !default
16
16
  margin-bottom: -0.5rem
17
17
  &:not(:last-child)
18
18
  margin-bottom: 1rem
19
+ // Sizes
20
+ &.are-medium
21
+ .tag:not(.is-normal):not(.is-large)
22
+ font-size: $size-normal
23
+ &.are-large
24
+ .tag:not(.is-normal):not(.is-medium)
25
+ font-size: $size-medium
19
26
  &.has-addons
20
27
  .tag
21
28
  margin-right: 0
@@ -37,6 +44,16 @@ $tag-delete-margin: 1px !default
37
44
  margin-left: 0.5rem
38
45
  &:not(:last-child)
39
46
  margin-right: 0
47
+ &.has-addons
48
+ .tag
49
+ margin-right: 0
50
+ &:not(:first-child)
51
+ margin-left: 0
52
+ border-bottom-left-radius: 0
53
+ border-top-left-radius: 0
54
+ &:not(:last-child)
55
+ border-bottom-right-radius: 0
56
+ border-top-right-radius: 0
40
57
 
41
58
  .tag:not(body)
42
59
  align-items: center
@@ -62,6 +79,8 @@ $tag-delete-margin: 1px !default
62
79
  background-color: $color
63
80
  color: $color-invert
64
81
  // Sizes
82
+ &.is-normal
83
+ font-size: $size-small
65
84
  &.is-medium
66
85
  font-size: $size-normal
67
86
  &.is-large
@@ -1,5 +1,6 @@
1
1
  $footer-background-color: $white-bis !default
2
+ $footer-padding: 3rem 1.5rem 6rem !default
2
3
 
3
4
  .footer
4
5
  background-color: $footer-background-color
5
- padding: 3rem 1.5rem 6rem
6
+ padding: $footer-padding
@@ -109,8 +109,6 @@
109
109
  min-height: 50vh
110
110
  &.is-fullheight
111
111
  min-height: 100vh
112
- &.is-fullheight-with-navbar
113
- min-height: calc(100vh - #{$navbar-height})
114
112
 
115
113
  // Components
116
114
 
@@ -33,7 +33,8 @@ $control-padding-horizontal: calc(0.625em - #{$control-border-width}) !default
33
33
  &:active,
34
34
  &.is-active
35
35
  outline: none
36
- &[disabled]
36
+ &[disabled],
37
+ fieldset[disabled] &
37
38
  cursor: not-allowed
38
39
 
39
40
  %control
@@ -67,6 +67,7 @@ $link-active-border: $grey-dark !default
67
67
  // Typography
68
68
 
69
69
  $family-primary: $family-sans-serif !default
70
+ $family-secondary: $family-sans-serif !default
70
71
  $family-code: $family-monospace !default
71
72
 
72
73
  $size-small: $size-7 !default
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'bulma-rails'
5
- gem.version = '0.7.2'
5
+ gem.version = '0.7.3'
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.2'
16
+ gem.add_runtime_dependency 'sass', '~> 3.5'
17
17
  end
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.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Jansen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-17 00:00:00.000000000 Z
11
+ date: 2019-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.2'
19
+ version: '3.5'
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.2'
26
+ version: '3.5'
27
27
  description: A modern CSS framework based on Flexbox
28
28
  email:
29
29
  - joshuajansen88@gmail.com
@@ -101,8 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  requirements: []
104
- rubyforge_project:
105
- rubygems_version: 2.6.13
104
+ rubygems_version: 3.0.1
106
105
  signing_key:
107
106
  specification_version: 4
108
107
  summary: This gem adds the bulma.io assets to your asset pipeline so you can import