bulma-rails 0.9.2 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- 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 +10 -1
- 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 +19 -7
- data/app/assets/stylesheets/sass/elements/content.sass +7 -2
- 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/table.sass +2 -1
- 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/form/select.sass +2 -1
- 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 +27 -7
- data/app/assets/stylesheets/sass/utilities/initial-variables.sass +6 -5
- data/app/assets/stylesheets/sass/utilities/mixins.sass +40 -5
- 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: bb793337dd5425144623b53744b9505ecbd6bb85d7896099f4381d70f40c00be
|
4
|
+
data.tar.gz: 63b2556f401653e1a20e704154c0cde0ad7335fa8f2ba6422f4bea1913d41001
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0992d9a411de47c501cfd01ef7a4146a4e12376463f416754e5dd8f531f1649e7906d62ef696fe131fc0acefa40d75b6685ab71fdc9f3fbbc83dcd872c828ca
|
7
|
+
data.tar.gz: fe0e2ec8b2c435c9874d6119fefd697c9eb87e985ba5956567cb158cfbbe1072485c42e02d105a0cdf6b580237d5157da215c6dd7ed369da7a53c64b2ab4eae1
|
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.9.
|
11
|
+
gem "bulma-rails", "~> 0.9.4"
|
12
12
|
|
13
13
|
And then execute:
|
14
14
|
|
@@ -22,7 +22,8 @@ To import all assets in your Rails project, add the following line to your appli
|
|
22
22
|
```
|
23
23
|
|
24
24
|
For information about customizing Bulma,
|
25
|
-
see: [
|
25
|
+
see: [Customizing with Sass](http://bulma.io/documentation/overview/customize/). As you don't need to download any files, jump to **2 Set your variables**. Beware that the example shown there uses SASS instead of SCSS syntax.
|
26
|
+
|
26
27
|
|
27
28
|
## Contributing
|
28
29
|
|
@@ -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
|
@@ -88,7 +88,8 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2) !default
|
|
88
88
|
border-color: $pagination-focus-border-color
|
89
89
|
&:active
|
90
90
|
box-shadow: $pagination-shadow-inset
|
91
|
-
&[disabled]
|
91
|
+
&[disabled],
|
92
|
+
&.is-disabled
|
92
93
|
background-color: $pagination-disabled-background-color
|
93
94
|
border-color: $pagination-disabled-border-color
|
94
95
|
box-shadow: none
|
@@ -134,12 +135,20 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2) !default
|
|
134
135
|
flex-shrink: 1
|
135
136
|
justify-content: flex-start
|
136
137
|
order: 1
|
138
|
+
.pagination-previous,
|
139
|
+
.pagination-next,
|
140
|
+
.pagination-link,
|
141
|
+
.pagination-ellipsis
|
142
|
+
margin-bottom: 0
|
143
|
+
margin-top: 0
|
137
144
|
.pagination-previous
|
138
145
|
order: 2
|
139
146
|
.pagination-next
|
140
147
|
order: 3
|
141
148
|
.pagination
|
142
149
|
justify-content: space-between
|
150
|
+
margin-bottom: 0
|
151
|
+
margin-top: 0
|
143
152
|
&.is-centered
|
144
153
|
.pagination-previous
|
145
154
|
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
|
@@ -44,6 +44,7 @@ $button-static-background-color: $scheme-main-ter !default
|
|
44
44
|
$button-static-border-color: $border !default
|
45
45
|
|
46
46
|
$button-colors: $colors !default
|
47
|
+
$button-responsive-sizes: ("mobile": ("small": ($size-small * 0.75), "normal": ($size-small * 0.875), "medium": $size-small, "large": $size-normal), "tablet-only": ("small": ($size-small * 0.875), "normal": ($size-small), "medium": $size-normal, "large": $size-medium)) !default
|
47
48
|
|
48
49
|
// The button sizes use mixins so they can be used at different breakpoints
|
49
50
|
=button-small
|
@@ -84,14 +85,14 @@ $button-colors: $colors !default
|
|
84
85
|
height: 1.5em
|
85
86
|
width: 1.5em
|
86
87
|
&:first-child:not(:last-child)
|
87
|
-
+ltr-property("margin", calc(#{-
|
88
|
-
+ltr-property("margin", $button-padding-horizontal
|
88
|
+
+ltr-property("margin", calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width}), false)
|
89
|
+
+ltr-property("margin", $button-padding-horizontal * 0.25)
|
89
90
|
&:last-child:not(:first-child)
|
90
|
-
+ltr-property("margin", $button-padding-horizontal
|
91
|
-
+ltr-property("margin", calc(#{-
|
91
|
+
+ltr-property("margin", $button-padding-horizontal * 0.25, false)
|
92
|
+
+ltr-property("margin", calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width}))
|
92
93
|
&:first-child:last-child
|
93
|
-
margin-left: calc(#{-
|
94
|
-
margin-right: calc(#{-
|
94
|
+
margin-left: calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width})
|
95
|
+
margin-right: calc(#{-0.5 * $button-padding-horizontal} - #{$button-border-width})
|
95
96
|
// States
|
96
97
|
&:hover,
|
97
98
|
&.is-hovered
|
@@ -163,7 +164,7 @@ $button-colors: $colors !default
|
|
163
164
|
&[disabled],
|
164
165
|
fieldset[disabled] &
|
165
166
|
background-color: $color
|
166
|
-
border-color:
|
167
|
+
border-color: $color
|
167
168
|
box-shadow: none
|
168
169
|
&.is-inverted
|
169
170
|
background-color: $color-invert
|
@@ -343,3 +344,14 @@ $button-colors: $colors !default
|
|
343
344
|
.button:not(.is-fullwidth)
|
344
345
|
margin-left: 0.25rem
|
345
346
|
margin-right: 0.25rem
|
347
|
+
|
348
|
+
@each $bp-name, $bp-sizes in $button-responsive-sizes
|
349
|
+
+breakpoint($bp-name)
|
350
|
+
@each $size, $value in $bp-sizes
|
351
|
+
@if $size != "normal"
|
352
|
+
.button.is-responsive.is-#{$size}
|
353
|
+
font-size: $value
|
354
|
+
@else
|
355
|
+
.button.is-responsive,
|
356
|
+
.button.is-responsive.is-normal
|
357
|
+
font-size: $value
|
@@ -4,6 +4,8 @@ $content-heading-color: $text-strong !default
|
|
4
4
|
$content-heading-weight: $weight-semibold !default
|
5
5
|
$content-heading-line-height: 1.125 !default
|
6
6
|
|
7
|
+
$content-block-margin-bottom: 1em !default
|
8
|
+
|
7
9
|
$content-blockquote-background-color: $background !default
|
8
10
|
$content-blockquote-border-left: 5px solid $border !default
|
9
11
|
$content-blockquote-padding: 1.25em 1.5em !default
|
@@ -16,6 +18,7 @@ $content-table-cell-padding: 0.5em 0.75em !default
|
|
16
18
|
$content-table-cell-heading-color: $text-strong !default
|
17
19
|
$content-table-head-cell-border-width: 0 0 2px !default
|
18
20
|
$content-table-head-cell-color: $text-strong !default
|
21
|
+
$content-table-body-last-row-cell-border-bottom-width: 0 !default
|
19
22
|
$content-table-foot-cell-border-width: 2px 0 0 !default
|
20
23
|
$content-table-foot-cell-color: $text-strong !default
|
21
24
|
|
@@ -33,7 +36,7 @@ $content-table-foot-cell-color: $text-strong !default
|
|
33
36
|
pre,
|
34
37
|
table
|
35
38
|
&:not(:last-child)
|
36
|
-
margin-bottom:
|
39
|
+
margin-bottom: $content-block-margin-bottom
|
37
40
|
h1,
|
38
41
|
h2,
|
39
42
|
h3,
|
@@ -144,13 +147,15 @@ $content-table-foot-cell-color: $text-strong !default
|
|
144
147
|
&:last-child
|
145
148
|
td,
|
146
149
|
th
|
147
|
-
border-bottom-width:
|
150
|
+
border-bottom-width: $content-table-body-last-row-cell-border-bottom-width
|
148
151
|
.tabs
|
149
152
|
li + li
|
150
153
|
margin-top: 0
|
151
154
|
// Sizes
|
152
155
|
&.is-small
|
153
156
|
font-size: $size-small
|
157
|
+
&.is-normal
|
158
|
+
font-size: $size-normal
|
154
159
|
&.is-medium
|
155
160
|
font-size: $size-medium
|
156
161
|
&.is-large
|
@@ -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
|
|
@@ -7,6 +7,7 @@ $table-cell-border: 1px solid $border !default
|
|
7
7
|
$table-cell-border-width: 0 0 1px !default
|
8
8
|
$table-cell-padding: 0.5em 0.75em !default
|
9
9
|
$table-cell-heading-color: $text-strong !default
|
10
|
+
$table-cell-text-align: left !default
|
10
11
|
|
11
12
|
$table-head-cell-border-width: 0 0 2px !default
|
12
13
|
$table-head-cell-color: $text-strong !default
|
@@ -60,7 +61,7 @@ $table-colors: $colors !default
|
|
60
61
|
th
|
61
62
|
color: $table-cell-heading-color
|
62
63
|
&:not([align])
|
63
|
-
text-align:
|
64
|
+
text-align: $table-cell-text-align
|
64
65
|
tr
|
65
66
|
&.is-selected
|
66
67
|
background-color: $table-row-active-background-color
|
@@ -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)
|
@@ -82,7 +82,7 @@
|
|
82
82
|
@else
|
83
83
|
@return #fff
|
84
84
|
|
85
|
-
@function findLightColor($color)
|
85
|
+
@function findLightColor($color, $l: 96%)
|
86
86
|
@if type-of($color) == 'color'
|
87
87
|
$l: 96%
|
88
88
|
@if lightness($color) > 96%
|
@@ -90,9 +90,8 @@
|
|
90
90
|
@return change-color($color, $lightness: $l)
|
91
91
|
@return $background
|
92
92
|
|
93
|
-
@function findDarkColor($color)
|
93
|
+
@function findDarkColor($color, $base-l: 29%)
|
94
94
|
@if type-of($color) == 'color'
|
95
|
-
$base-l: 29%
|
96
95
|
$luminance: colorLuminance($color)
|
97
96
|
$luminance-delta: (0.53 - $luminance)
|
98
97
|
$target-l: round($base-l + ($luminance-delta * 53))
|
@@ -113,3 +112,24 @@
|
|
113
112
|
@if type-of($color) != 'color'
|
114
113
|
@return $color
|
115
114
|
@return lighten($color, $amount)
|
115
|
+
|
116
|
+
// Custom divide function by @mdo from https://github.com/twbs/bootstrap/pull/34245
|
117
|
+
// Replaces old slash division deprecated in Dart Sass
|
118
|
+
@function divide($dividend, $divisor, $precision: 10)
|
119
|
+
$sign: if($dividend > 0 and $divisor > 0, 1, -1)
|
120
|
+
$dividend: abs($dividend)
|
121
|
+
$divisor: abs($divisor)
|
122
|
+
$quotient: 0
|
123
|
+
$remainder: $dividend
|
124
|
+
@if $dividend == 0
|
125
|
+
@return 0
|
126
|
+
@if $divisor == 0
|
127
|
+
@error "Cannot divide by 0"
|
128
|
+
@if $divisor == 1
|
129
|
+
@return $dividend
|
130
|
+
@while $remainder >= $divisor
|
131
|
+
$quotient: $quotient + 1
|
132
|
+
$remainder: $remainder - $divisor
|
133
|
+
@if $remainder > 0 and $precision > 0
|
134
|
+
$remainder: divide($remainder * 10, $divisor, $precision - 1) * .1
|
135
|
+
@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
|
|
@@ -62,6 +62,7 @@ $widescreen-enabled: true !default
|
|
62
62
|
// 1344px container + 4rem
|
63
63
|
$fullhd: 1344px + (2 * $gap) !default
|
64
64
|
$fullhd-enabled: true !default
|
65
|
+
$breakpoints: ("mobile": ("until": $tablet), "tablet": ("from": $tablet), "tablet-only": ("from": $tablet, "until": $desktop), "touch": ("from": $desktop), "desktop": ("from": $desktop), "desktop-only": ("from": $desktop, "until": $widescreen), "until-widescreen": ("until": $widescreen), "widescreen": ("from": $widescreen), "widescreen-only": ("from": $widescreen, "until": $fullhd), "until-fullhd": ("until": $fullhd), "fullhd": ("from": $fullhd)) !default
|
65
66
|
|
66
67
|
// Miscellaneous
|
67
68
|
|
@@ -69,7 +70,7 @@ $easing: ease-out !default
|
|
69
70
|
$radius-small: 2px !default
|
70
71
|
$radius: 4px !default
|
71
72
|
$radius-large: 6px !default
|
72
|
-
$radius-rounded:
|
73
|
+
$radius-rounded: 9999px !default
|
73
74
|
$speed: 86ms !default
|
74
75
|
|
75
76
|
// 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
|
@@ -25,6 +25,11 @@
|
|
25
25
|
width: $dimensions
|
26
26
|
|
27
27
|
=hamburger($dimensions)
|
28
|
+
-moz-appearance: none
|
29
|
+
-webkit-appearance: none
|
30
|
+
appearance: none
|
31
|
+
background: none
|
32
|
+
border: none
|
28
33
|
cursor: pointer
|
29
34
|
display: block
|
30
35
|
height: $dimensions
|
@@ -68,6 +73,18 @@
|
|
68
73
|
&:#{$placeholder}-placeholder
|
69
74
|
@content
|
70
75
|
|
76
|
+
=reset
|
77
|
+
-moz-appearance: none
|
78
|
+
-webkit-appearance: none
|
79
|
+
appearance: none
|
80
|
+
background: none
|
81
|
+
border: none
|
82
|
+
color: currentColor
|
83
|
+
font-family: inherit
|
84
|
+
font-size: 1em
|
85
|
+
margin: 0
|
86
|
+
padding: 0
|
87
|
+
|
71
88
|
// Responsiveness
|
72
89
|
|
73
90
|
=from($device)
|
@@ -78,6 +95,10 @@
|
|
78
95
|
@media screen and (max-width: $device - 1px)
|
79
96
|
@content
|
80
97
|
|
98
|
+
=between($from, $until)
|
99
|
+
@media screen and (min-width: $from) and (max-width: $until - 1px)
|
100
|
+
@content
|
101
|
+
|
81
102
|
=mobile
|
82
103
|
@media screen and (max-width: $tablet - 1px)
|
83
104
|
@content
|
@@ -128,6 +149,21 @@
|
|
128
149
|
@media screen and (min-width: $fullhd)
|
129
150
|
@content
|
130
151
|
|
152
|
+
=breakpoint($name)
|
153
|
+
$breakpoint: map-get($breakpoints, $name)
|
154
|
+
@if $breakpoint
|
155
|
+
$from: map-get($breakpoint, "from")
|
156
|
+
$until: map-get($breakpoint, "until")
|
157
|
+
@if $from and $until
|
158
|
+
+between($from, $until)
|
159
|
+
@content
|
160
|
+
@else if $from
|
161
|
+
+from($from)
|
162
|
+
@content
|
163
|
+
@else if $until
|
164
|
+
+until($until)
|
165
|
+
@content
|
166
|
+
|
131
167
|
=ltr
|
132
168
|
@if not $rtl
|
133
169
|
@content
|
@@ -265,4 +301,3 @@
|
|
265
301
|
position: absolute
|
266
302
|
right: $offset
|
267
303
|
top: $offset
|
268
|
-
|
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.4
|
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-10-17 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
|