bulma-rails 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/stylesheets/bulma.sass +1 -1
- data/app/assets/stylesheets/sass/components/card.sass +2 -1
- data/app/assets/stylesheets/sass/components/dropdown.sass +1 -1
- data/app/assets/stylesheets/sass/components/level.sass +1 -1
- data/app/assets/stylesheets/sass/components/navbar.sass +1 -0
- data/app/assets/stylesheets/sass/components/pagination.sass +8 -0
- data/app/assets/stylesheets/sass/components/panel.sass +1 -1
- data/app/assets/stylesheets/sass/elements/box.sass +1 -1
- data/app/assets/stylesheets/sass/elements/button.sass +6 -6
- data/app/assets/stylesheets/sass/elements/content.sass +2 -0
- data/app/assets/stylesheets/sass/elements/icon.sass +8 -2
- data/app/assets/stylesheets/sass/elements/other.sass +0 -10
- data/app/assets/stylesheets/sass/elements/title.sass +0 -2
- data/app/assets/stylesheets/sass/form/file.sass +2 -0
- data/app/assets/stylesheets/sass/grid/columns.sass +14 -14
- data/app/assets/stylesheets/sass/grid/tiles.sass +1 -1
- data/app/assets/stylesheets/sass/helpers/spacing.sass +1 -1
- data/app/assets/stylesheets/sass/helpers/typography.sass +3 -0
- data/app/assets/stylesheets/sass/layout/hero.sass +6 -2
- data/app/assets/stylesheets/sass/layout/section.sass +4 -2
- data/app/assets/stylesheets/sass/utilities/derived-variables.sass +4 -0
- data/app/assets/stylesheets/sass/utilities/extends.sass +3 -0
- data/app/assets/stylesheets/sass/utilities/functions.sass +25 -4
- data/app/assets/stylesheets/sass/utilities/initial-variables.sass +5 -5
- data/app/assets/stylesheets/sass/utilities/mixins.sass +16 -4
- data/bulma-rails.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f23802006ea243e64255a3d2ba2c9bd82e4c6350fbbd8f9cf9a3feb700d1f56
|
4
|
+
data.tar.gz: 40de97f9bff592255f906be8eb1704a3b6f8514625536a1c17b8c7b10911feb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6593971d948f8acfe1d51e6f431ab8ca3c31219c521ac6225da8017790b1e54bb3b1df61d1ceded04470d2777ec7e00edf25b92b334c1b6d145fe72a7b4f93cf
|
7
|
+
data.tar.gz: c4671fbe80312a4f2b5b169788126cd4cc2f576ecfbf573127dcbb3489878e195f1fafc5c6388fae04cb5d321acd4ae324ad21752d5fc8c060bfb83e708ce4c5
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
$card-color: $text !default
|
4
4
|
$card-background-color: $scheme-main !default
|
5
|
-
$card-shadow:
|
5
|
+
$card-shadow: $shadow !default
|
6
6
|
$card-radius: 0.25rem !default
|
7
7
|
|
8
8
|
$card-header-background-color: transparent !default
|
@@ -54,6 +54,7 @@ $card-media-margin: $block-spacing !default
|
|
54
54
|
justify-content: center
|
55
55
|
|
56
56
|
.card-header-icon
|
57
|
+
+reset
|
57
58
|
align-items: center
|
58
59
|
cursor: pointer
|
59
60
|
display: flex
|
@@ -8,7 +8,7 @@ $dropdown-content-offset: 4px !default
|
|
8
8
|
$dropdown-content-padding-bottom: 0.5rem !default
|
9
9
|
$dropdown-content-padding-top: 0.5rem !default
|
10
10
|
$dropdown-content-radius: $radius !default
|
11
|
-
$dropdown-content-shadow:
|
11
|
+
$dropdown-content-shadow: $shadow !default
|
12
12
|
$dropdown-content-z: 20 !default
|
13
13
|
|
14
14
|
$dropdown-item-color: $text !default
|
@@ -134,12 +134,20 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2) !default
|
|
134
134
|
flex-shrink: 1
|
135
135
|
justify-content: flex-start
|
136
136
|
order: 1
|
137
|
+
.pagination-previous,
|
138
|
+
.pagination-next,
|
139
|
+
.pagination-link,
|
140
|
+
.pagination-ellipsis
|
141
|
+
margin-bottom: 0
|
142
|
+
margin-top: 0
|
137
143
|
.pagination-previous
|
138
144
|
order: 2
|
139
145
|
.pagination-next
|
140
146
|
order: 3
|
141
147
|
.pagination
|
142
148
|
justify-content: space-between
|
149
|
+
margin-bottom: 0
|
150
|
+
margin-top: 0
|
143
151
|
&.is-centered
|
144
152
|
.pagination-previous
|
145
153
|
order: 1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
$panel-margin: $block-spacing !default
|
4
4
|
$panel-item-border: 1px solid $border-light !default
|
5
5
|
$panel-radius: $radius-large !default
|
6
|
-
$panel-shadow:
|
6
|
+
$panel-shadow: $shadow !default
|
7
7
|
|
8
8
|
$panel-heading-background-color: $border-light !default
|
9
9
|
$panel-heading-color: $text-strong !default
|
@@ -3,7 +3,7 @@
|
|
3
3
|
$box-color: $text !default
|
4
4
|
$box-background-color: $scheme-main !default
|
5
5
|
$box-radius: $radius-large !default
|
6
|
-
$box-shadow:
|
6
|
+
$box-shadow: $shadow !default
|
7
7
|
$box-padding: 1.25rem !default
|
8
8
|
|
9
9
|
$box-link-hover-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0 0 1px $link !default
|
@@ -84,14 +84,14 @@ $button-colors: $colors !default
|
|
84
84
|
height: 1.5em
|
85
85
|
width: 1.5em
|
86
86
|
&:first-child:not(:last-child)
|
87
|
-
+ltr-property("margin", calc(#{-
|
88
|
-
+ltr-property("margin", $button-padding-horizontal
|
87
|
+
+ltr-property("margin", calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width}), false)
|
88
|
+
+ltr-property("margin", $button-padding-horizontal * 0.25)
|
89
89
|
&:last-child:not(:first-child)
|
90
|
-
+ltr-property("margin", $button-padding-horizontal
|
91
|
-
+ltr-property("margin", calc(#{-
|
90
|
+
+ltr-property("margin", $button-padding-horizontal * 0.25, false)
|
91
|
+
+ltr-property("margin", calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width}))
|
92
92
|
&:first-child:last-child
|
93
|
-
margin-left: calc(#{-
|
94
|
-
margin-right: calc(#{-
|
93
|
+
margin-left: calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width})
|
94
|
+
margin-right: calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width})
|
95
95
|
// States
|
96
96
|
&:hover,
|
97
97
|
&.is-hovered
|
@@ -32,9 +32,15 @@ $icon-text-spacing: 0.25em !default
|
|
32
32
|
flex-grow: 0
|
33
33
|
flex-shrink: 0
|
34
34
|
&:not(:last-child)
|
35
|
-
|
35
|
+
+ltr
|
36
|
+
margin-right: $icon-text-spacing
|
37
|
+
+rtl
|
38
|
+
margin-left: $icon-text-spacing
|
36
39
|
&:not(:first-child)
|
37
|
-
|
40
|
+
+ltr
|
41
|
+
margin-left: $icon-text-spacing
|
42
|
+
+rtl
|
43
|
+
margin-right: $icon-text-spacing
|
38
44
|
|
39
45
|
div.icon-text
|
40
46
|
display: flex
|
@@ -13,16 +13,6 @@
|
|
13
13
|
margin-bottom: 5px
|
14
14
|
text-transform: uppercase
|
15
15
|
|
16
|
-
.highlight
|
17
|
-
@extend %block
|
18
|
-
font-weight: $weight-normal
|
19
|
-
max-width: 100%
|
20
|
-
overflow: hidden
|
21
|
-
padding: 0
|
22
|
-
pre
|
23
|
-
overflow: auto
|
24
|
-
max-width: 100%
|
25
|
-
|
26
16
|
.loader
|
27
17
|
@extend %loader
|
28
18
|
|
@@ -62,9 +62,9 @@ $column-gap: 0.75rem !default
|
|
62
62
|
@for $i from 0 through 12
|
63
63
|
.columns.is-mobile > &.is-#{$i}
|
64
64
|
flex: none
|
65
|
-
width: percentage($i
|
65
|
+
width: percentage(divide($i, 12))
|
66
66
|
.columns.is-mobile > &.is-offset-#{$i}
|
67
|
-
+ltr-property("margin", percentage($i
|
67
|
+
+ltr-property("margin", percentage(divide($i, 12)), false)
|
68
68
|
+mobile
|
69
69
|
&.is-narrow-mobile
|
70
70
|
flex: none
|
@@ -120,9 +120,9 @@ $column-gap: 0.75rem !default
|
|
120
120
|
@for $i from 0 through 12
|
121
121
|
&.is-#{$i}-mobile
|
122
122
|
flex: none
|
123
|
-
width: percentage($i
|
123
|
+
width: percentage(divide($i, 12))
|
124
124
|
&.is-offset-#{$i}-mobile
|
125
|
-
+ltr-property("margin", percentage($i
|
125
|
+
+ltr-property("margin", percentage(divide($i, 12)), false)
|
126
126
|
+tablet
|
127
127
|
&.is-narrow,
|
128
128
|
&.is-narrow-tablet
|
@@ -199,10 +199,10 @@ $column-gap: 0.75rem !default
|
|
199
199
|
&.is-#{$i},
|
200
200
|
&.is-#{$i}-tablet
|
201
201
|
flex: none
|
202
|
-
width: percentage($i
|
202
|
+
width: percentage(divide($i, 12))
|
203
203
|
&.is-offset-#{$i},
|
204
204
|
&.is-offset-#{$i}-tablet
|
205
|
-
+ltr-property("margin", percentage($i
|
205
|
+
+ltr-property("margin", percentage(divide($i, 12)), false)
|
206
206
|
+touch
|
207
207
|
&.is-narrow-touch
|
208
208
|
flex: none
|
@@ -258,9 +258,9 @@ $column-gap: 0.75rem !default
|
|
258
258
|
@for $i from 0 through 12
|
259
259
|
&.is-#{$i}-touch
|
260
260
|
flex: none
|
261
|
-
width: percentage($i
|
261
|
+
width: percentage(divide($i, 12))
|
262
262
|
&.is-offset-#{$i}-touch
|
263
|
-
+ltr-property("margin", percentage($i
|
263
|
+
+ltr-property("margin", percentage(divide($i, 12)), false)
|
264
264
|
+desktop
|
265
265
|
&.is-narrow-desktop
|
266
266
|
flex: none
|
@@ -316,9 +316,9 @@ $column-gap: 0.75rem !default
|
|
316
316
|
@for $i from 0 through 12
|
317
317
|
&.is-#{$i}-desktop
|
318
318
|
flex: none
|
319
|
-
width: percentage($i
|
319
|
+
width: percentage(divide($i, 12))
|
320
320
|
&.is-offset-#{$i}-desktop
|
321
|
-
+ltr-property("margin", percentage($i
|
321
|
+
+ltr-property("margin", percentage(divide($i, 12)), false)
|
322
322
|
+widescreen
|
323
323
|
&.is-narrow-widescreen
|
324
324
|
flex: none
|
@@ -374,9 +374,9 @@ $column-gap: 0.75rem !default
|
|
374
374
|
@for $i from 0 through 12
|
375
375
|
&.is-#{$i}-widescreen
|
376
376
|
flex: none
|
377
|
-
width: percentage($i
|
377
|
+
width: percentage(divide($i, 12))
|
378
378
|
&.is-offset-#{$i}-widescreen
|
379
|
-
+ltr-property("margin", percentage($i
|
379
|
+
+ltr-property("margin", percentage(divide($i, 12)), false)
|
380
380
|
+fullhd
|
381
381
|
&.is-narrow-fullhd
|
382
382
|
flex: none
|
@@ -432,9 +432,9 @@ $column-gap: 0.75rem !default
|
|
432
432
|
@for $i from 0 through 12
|
433
433
|
&.is-#{$i}-fullhd
|
434
434
|
flex: none
|
435
|
-
width: percentage($i
|
435
|
+
width: percentage(divide($i, 12))
|
436
436
|
&.is-offset-#{$i}-fullhd
|
437
|
-
+ltr-property("margin", percentage($i
|
437
|
+
+ltr-property("margin", percentage(divide($i, 12)), false)
|
438
438
|
|
439
439
|
.columns
|
440
440
|
+ltr-property("margin", (-$column-gap), false)
|
@@ -8,7 +8,7 @@ $spacing-shortcuts: ("margin": "m", "padding": "p") !default
|
|
8
8
|
$spacing-directions: ("top": "t", "right": "r", "bottom": "b", "left": "l") !default
|
9
9
|
$spacing-horizontal: "x" !default
|
10
10
|
$spacing-vertical: "y" !default
|
11
|
-
$spacing-values: ("0": 0, "1": 0.25rem, "2": 0.5rem, "3": 0.75rem, "4": 1rem, "5": 1.5rem, "6": 3rem) !default
|
11
|
+
$spacing-values: ("0": 0, "1": 0.25rem, "2": 0.5rem, "3": 0.75rem, "4": 1rem, "5": 1.5rem, "6": 3rem, "auto": auto) !default
|
12
12
|
|
13
13
|
@each $property, $shortcut in $spacing-shortcuts
|
14
14
|
@each $name, $value in $spacing-values
|
@@ -72,6 +72,9 @@ $alignments: ('centered': 'center', 'justified': 'justify', 'left': 'left', 'rig
|
|
72
72
|
|
73
73
|
.is-italic
|
74
74
|
font-style: italic !important
|
75
|
+
|
76
|
+
.is-underlined
|
77
|
+
text-decoration: underline !important
|
75
78
|
|
76
79
|
.has-text-weight-light
|
77
80
|
font-weight: $weight-light !important
|
@@ -1,9 +1,10 @@
|
|
1
1
|
@import "../utilities/mixins"
|
2
2
|
|
3
3
|
$hero-body-padding: 3rem 1.5rem !default
|
4
|
+
$hero-body-padding-tablet: 3rem 3rem !default
|
4
5
|
$hero-body-padding-small: 1.5rem !default
|
5
|
-
$hero-body-padding-medium: 9rem
|
6
|
-
$hero-body-padding-large: 18rem
|
6
|
+
$hero-body-padding-medium: 9rem 4.5rem !default
|
7
|
+
$hero-body-padding-large: 18rem 6rem !default
|
7
8
|
|
8
9
|
$hero-colors: $colors !default
|
9
10
|
|
@@ -55,6 +56,7 @@ $hero-colors: $colors !default
|
|
55
56
|
opacity: 1
|
56
57
|
li
|
57
58
|
&.is-active a
|
59
|
+
color: $color !important
|
58
60
|
opacity: 1
|
59
61
|
&.is-boxed,
|
60
62
|
&.is-toggle
|
@@ -147,3 +149,5 @@ $hero-colors: $colors !default
|
|
147
149
|
flex-grow: 1
|
148
150
|
flex-shrink: 0
|
149
151
|
padding: $hero-body-padding
|
152
|
+
+tablet
|
153
|
+
padding: $hero-body-padding-tablet
|
@@ -1,13 +1,15 @@
|
|
1
1
|
@import "../utilities/mixins"
|
2
2
|
|
3
3
|
$section-padding: 3rem 1.5rem !default
|
4
|
-
$section-padding-
|
5
|
-
$section-padding-
|
4
|
+
$section-padding-desktop: 3rem 3rem !default
|
5
|
+
$section-padding-medium: 9rem 4.5rem !default
|
6
|
+
$section-padding-large: 18rem 6rem !default
|
6
7
|
|
7
8
|
.section
|
8
9
|
padding: $section-padding
|
9
10
|
// Responsiveness
|
10
11
|
+desktop
|
12
|
+
padding: $section-padding-desktop
|
11
13
|
// Sizes
|
12
14
|
&.is-medium
|
13
15
|
padding: $section-padding-medium
|
@@ -99,6 +99,10 @@ $size-normal: $size-6 !default
|
|
99
99
|
$size-medium: $size-5 !default
|
100
100
|
$size-large: $size-4 !default
|
101
101
|
|
102
|
+
// Effects
|
103
|
+
|
104
|
+
$shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default
|
105
|
+
|
102
106
|
// Lists and maps
|
103
107
|
$custom-colors: null !default
|
104
108
|
$custom-shades: null !default
|
@@ -58,7 +58,7 @@
|
|
58
58
|
$value: $value * $number
|
59
59
|
@else if $exp < 0
|
60
60
|
@for $i from 1 through -$exp
|
61
|
-
$value: $value
|
61
|
+
$value: divide($value, $number)
|
62
62
|
@return $value
|
63
63
|
|
64
64
|
@function colorLuminance($color)
|
@@ -67,11 +67,11 @@
|
|
67
67
|
$color-rgb: ('red': red($color),'green': green($color),'blue': blue($color))
|
68
68
|
@each $name, $value in $color-rgb
|
69
69
|
$adjusted: 0
|
70
|
-
$value: $value
|
70
|
+
$value: divide($value, 255)
|
71
71
|
@if $value < 0.03928
|
72
|
-
$value: $value
|
72
|
+
$value: divide($value, 12.92)
|
73
73
|
@else
|
74
|
-
$value: ($value + .055)
|
74
|
+
$value: divide(($value + .055), 1.055)
|
75
75
|
$value: powerNumber($value, 2)
|
76
76
|
$color-rgb: map-merge($color-rgb, ($name: $value))
|
77
77
|
@return (map-get($color-rgb, 'red') * .2126) + (map-get($color-rgb, 'green') * .7152) + (map-get($color-rgb, 'blue') * .0722)
|
@@ -113,3 +113,24 @@
|
|
113
113
|
@if type-of($color) != 'color'
|
114
114
|
@return $color
|
115
115
|
@return lighten($color, $amount)
|
116
|
+
|
117
|
+
// Custom divide function by @mdo from https://github.com/twbs/bootstrap/pull/34245
|
118
|
+
// Replaces old slash division deprecated in Dart Sass
|
119
|
+
@function divide($dividend, $divisor, $precision: 10)
|
120
|
+
$sign: if($dividend > 0 and $divisor > 0, 1, -1)
|
121
|
+
$dividend: abs($dividend)
|
122
|
+
$divisor: abs($divisor)
|
123
|
+
$quotient: 0
|
124
|
+
$remainder: $dividend
|
125
|
+
@if $dividend == 0
|
126
|
+
@return 0
|
127
|
+
@if $divisor == 0
|
128
|
+
@error "Cannot divide by 0"
|
129
|
+
@if $divisor == 1
|
130
|
+
@return $dividend
|
131
|
+
@while $remainder >= $divisor
|
132
|
+
$quotient: $quotient + 1
|
133
|
+
$remainder: $remainder - $divisor
|
134
|
+
@if $remainder > 0 and $precision > 0
|
135
|
+
$remainder: divide($remainder * 10, $divisor, $precision - 1) * .1
|
136
|
+
@return ($quotient + $remainder) * $sign
|
@@ -16,11 +16,11 @@ $white-bis: hsl(0, 0%, 98%) !default
|
|
16
16
|
$white: hsl(0, 0%, 100%) !default
|
17
17
|
|
18
18
|
$orange: hsl(14, 100%, 53%) !default
|
19
|
-
$yellow: hsl(
|
20
|
-
$green: hsl(
|
19
|
+
$yellow: hsl(44, 100%, 77%) !default
|
20
|
+
$green: hsl(153, 53%, 53%) !default
|
21
21
|
$turquoise: hsl(171, 100%, 41%) !default
|
22
|
-
$cyan: hsl(
|
23
|
-
$blue: hsl(
|
22
|
+
$cyan: hsl(207, 61%, 53%) !default
|
23
|
+
$blue: hsl(229, 53%, 53%) !default
|
24
24
|
$purple: hsl(271, 100%, 71%) !default
|
25
25
|
$red: hsl(348, 86%, 61%) !default
|
26
26
|
|
@@ -69,7 +69,7 @@ $easing: ease-out !default
|
|
69
69
|
$radius-small: 2px !default
|
70
70
|
$radius: 4px !default
|
71
71
|
$radius-large: 6px !default
|
72
|
-
$radius-rounded:
|
72
|
+
$radius-rounded: 9999px !default
|
73
73
|
$speed: 86ms !default
|
74
74
|
|
75
75
|
// Flags
|
@@ -9,11 +9,11 @@
|
|
9
9
|
=center($width, $height: 0)
|
10
10
|
position: absolute
|
11
11
|
@if $height != 0
|
12
|
-
left: calc(50% - (#{$width}
|
13
|
-
top: calc(50% - (#{$height}
|
12
|
+
left: calc(50% - (#{$width} * 0.5))
|
13
|
+
top: calc(50% - (#{$height} * 0.5))
|
14
14
|
@else
|
15
|
-
left: calc(50% - (#{$width}
|
16
|
-
top: calc(50% - (#{$width}
|
15
|
+
left: calc(50% - (#{$width} * 0.5))
|
16
|
+
top: calc(50% - (#{$width} * 0.5))
|
17
17
|
|
18
18
|
=fa($size, $dimensions)
|
19
19
|
display: inline-block
|
@@ -68,6 +68,18 @@
|
|
68
68
|
&:#{$placeholder}-placeholder
|
69
69
|
@content
|
70
70
|
|
71
|
+
=reset
|
72
|
+
-moz-appearance: none
|
73
|
+
-webkit-appearance: none
|
74
|
+
appearance: none
|
75
|
+
background: none
|
76
|
+
border: none
|
77
|
+
color: currentColor
|
78
|
+
font-family: inherit
|
79
|
+
font-size: 1em
|
80
|
+
margin: 0
|
81
|
+
padding: 0
|
82
|
+
|
71
83
|
// Responsiveness
|
72
84
|
|
73
85
|
=from($device)
|
data/bulma-rails.gemspec
CHANGED
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.9.
|
4
|
+
version: 0.9.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:
|
11
|
+
date: 2022-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sassc
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
|
-
rubygems_version: 3.
|
122
|
+
rubygems_version: 3.3.3
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: This gem adds the bulma.io assets to your asset pipeline so you can import
|