bulma-sass 0.7.4 → 0.7.5

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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/bulma.sass +2 -1
  3. data/app/assets/stylesheets/sass/base/generic.sass +21 -9
  4. data/app/assets/stylesheets/sass/base/helpers.sass +5 -0
  5. data/app/assets/stylesheets/sass/base/minireset.sass +2 -1
  6. data/app/assets/stylesheets/sass/components/card.sass +10 -5
  7. data/app/assets/stylesheets/sass/components/dropdown.sass +7 -3
  8. data/app/assets/stylesheets/sass/components/level.sass +5 -3
  9. data/app/assets/stylesheets/sass/components/list.sass +3 -3
  10. data/app/assets/stylesheets/sass/components/menu.sass +15 -8
  11. data/app/assets/stylesheets/sass/components/message.sass +2 -1
  12. data/app/assets/stylesheets/sass/components/modal.sass +1 -1
  13. data/app/assets/stylesheets/sass/components/navbar.sass +16 -1
  14. data/app/assets/stylesheets/sass/components/pagination.sass +9 -4
  15. data/app/assets/stylesheets/sass/components/panel.sass +4 -2
  16. data/app/assets/stylesheets/sass/elements/_all.sass +0 -1
  17. data/app/assets/stylesheets/sass/elements/button.sass +33 -3
  18. data/app/assets/stylesheets/sass/elements/container.sass +9 -11
  19. data/app/assets/stylesheets/sass/elements/content.sass +5 -1
  20. data/app/assets/stylesheets/sass/elements/form.sass +1 -602
  21. data/app/assets/stylesheets/sass/elements/progress.sass +15 -13
  22. data/app/assets/stylesheets/sass/elements/table.sass +2 -1
  23. data/app/assets/stylesheets/sass/elements/tag.sass +0 -9
  24. data/app/assets/stylesheets/sass/elements/title.sass +6 -0
  25. data/app/assets/stylesheets/sass/grid/columns.sass +7 -7
  26. data/app/assets/stylesheets/sass/grid/tiles.sass +8 -6
  27. data/app/assets/stylesheets/sass/layout/footer.sass +3 -0
  28. data/app/assets/stylesheets/sass/layout/hero.sass +1 -14
  29. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +5 -1
  30. data/app/assets/stylesheets/sass/utilities/mixins.sass +2 -2
  31. data/lib/bulma/sass/version.rb +1 -1
  32. metadata +1 -1
@@ -1,5 +1,6 @@
1
1
  $progress-bar-background-color: $border !default
2
2
  $progress-value-background-color: $text !default
3
+ $progress-border-radius: $radius-rounded !default
3
4
 
4
5
  $progress-indeterminate-duration: 1.5s !default
5
6
 
@@ -8,7 +9,7 @@ $progress-indeterminate-duration: 1.5s !default
8
9
  -moz-appearance: none
9
10
  -webkit-appearance: none
10
11
  border: none
11
- border-radius: $radius-rounded
12
+ border-radius: $progress-border-radius
12
13
  display: block
13
14
  height: $size-normal
14
15
  overflow: hidden
@@ -23,6 +24,19 @@ $progress-indeterminate-duration: 1.5s !default
23
24
  &::-ms-fill
24
25
  background-color: $progress-value-background-color
25
26
  border: none
27
+ // Colors
28
+ @each $name, $pair in $colors
29
+ $color: nth($pair, 1)
30
+ &.is-#{$name}
31
+ &::-webkit-progress-value
32
+ background-color: $color
33
+ &::-moz-progress-bar
34
+ background-color: $color
35
+ &::-ms-fill
36
+ background-color: $color
37
+ &:indeterminate
38
+ background-image: linear-gradient(to right, $color 30%, $progress-bar-background-color 30%)
39
+
26
40
  &:indeterminate
27
41
  animation-duration: $progress-indeterminate-duration
28
42
  animation-iteration-count: infinite
@@ -37,18 +51,6 @@ $progress-indeterminate-duration: 1.5s !default
37
51
  background-color: transparent
38
52
  &::-moz-progress-bar
39
53
  background-color: transparent
40
- // Colors
41
- @each $name, $pair in $colors
42
- $color: nth($pair, 1)
43
- &.is-#{$name}
44
- &::-webkit-progress-value
45
- background-color: $color
46
- &::-moz-progress-bar
47
- background-color: $color
48
- &::-ms-fill
49
- background-color: $color
50
- &:indeterminate
51
- background-image: linear-gradient(to right, $color 30%, $progress-bar-background-color 30%)
52
54
 
53
55
  // Sizes
54
56
  &.is-small
@@ -53,7 +53,8 @@ $table-striped-row-even-hover-background-color: $white-ter !default
53
53
  color: currentColor
54
54
  th
55
55
  color: $table-cell-heading-color
56
- text-align: left
56
+ &:not([align])
57
+ text-align: left
57
58
  tr
58
59
  &.is-selected
59
60
  background-color: $table-row-active-background-color
@@ -23,15 +23,6 @@ $tag-delete-margin: 1px !default
23
23
  &.are-large
24
24
  .tag:not(.is-normal):not(.is-medium)
25
25
  font-size: $size-medium
26
- &.has-addons
27
- .tag
28
- margin-right: 0
29
- &:not(:first-child)
30
- border-bottom-left-radius: 0
31
- border-top-left-radius: 0
32
- &:not(:last-child)
33
- border-bottom-right-radius: 0
34
- border-top-right-radius: 0
35
26
  &.is-centered
36
27
  justify-content: center
37
28
  .tag
@@ -1,4 +1,5 @@
1
1
  $title-color: $grey-darker !default
2
+ $title-family: false !default
2
3
  $title-size: $size-3 !default
3
4
  $title-weight: $weight-semibold !default
4
5
  $title-line-height: 1.125 !default
@@ -8,6 +9,7 @@ $title-sub-size: 0.75em !default
8
9
  $title-sup-size: 0.75em !default
9
10
 
10
11
  $subtitle-color: $grey-dark !default
12
+ $subtitle-family: false !default
11
13
  $subtitle-size: $size-5 !default
12
14
  $subtitle-weight: $weight-normal !default
13
15
  $subtitle-line-height: 1.25 !default
@@ -31,6 +33,8 @@ $subtitle-negative-margin: -1.25rem !default
31
33
 
32
34
  .title
33
35
  color: $title-color
36
+ @if $title-family
37
+ font-family: $title-family
34
38
  font-size: $title-size
35
39
  font-weight: $title-weight
36
40
  line-height: $title-line-height
@@ -49,6 +53,8 @@ $subtitle-negative-margin: -1.25rem !default
49
53
 
50
54
  .subtitle
51
55
  color: $subtitle-color
56
+ @if $subtitle-family
57
+ font-family: $subtitle-family
52
58
  font-size: $subtitle-size
53
59
  font-weight: $subtitle-weight
54
60
  line-height: $subtitle-line-height
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Bulma
2
2
  module Sass
3
- VERSION = "0.7.4"
3
+ VERSION = "0.7.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulma-sass
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
  - bananaappletw