bulma-rails 0.9.3 → 0.9.4
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.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/app/assets/stylesheets/bulma.sass +1 -1
- data/app/assets/stylesheets/sass/components/pagination.sass +2 -1
- data/app/assets/stylesheets/sass/elements/button.sass +13 -1
- data/app/assets/stylesheets/sass/elements/content.sass +5 -2
- data/app/assets/stylesheets/sass/elements/table.sass +2 -1
- data/app/assets/stylesheets/sass/form/select.sass +2 -1
- data/app/assets/stylesheets/sass/utilities/functions.sass +2 -3
- data/app/assets/stylesheets/sass/utilities/initial-variables.sass +1 -0
- data/app/assets/stylesheets/sass/utilities/mixins.sass +24 -1
- data/bulma-rails.gemspec +1 -1
- metadata +2 -2
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
|
|
@@ -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
|
@@ -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
|
@@ -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,7 +147,7 @@ $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
|
@@ -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
|
@@ -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))
|
@@ -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
|
|
@@ -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
|
@@ -90,6 +95,10 @@
|
|
90
95
|
@media screen and (max-width: $device - 1px)
|
91
96
|
@content
|
92
97
|
|
98
|
+
=between($from, $until)
|
99
|
+
@media screen and (min-width: $from) and (max-width: $until - 1px)
|
100
|
+
@content
|
101
|
+
|
93
102
|
=mobile
|
94
103
|
@media screen and (max-width: $tablet - 1px)
|
95
104
|
@content
|
@@ -140,6 +149,21 @@
|
|
140
149
|
@media screen and (min-width: $fullhd)
|
141
150
|
@content
|
142
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
|
+
|
143
167
|
=ltr
|
144
168
|
@if not $rtl
|
145
169
|
@content
|
@@ -277,4 +301,3 @@
|
|
277
301
|
position: absolute
|
278
302
|
right: $offset
|
279
303
|
top: $offset
|
280
|
-
|
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: 2022-
|
11
|
+
date: 2022-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sassc
|