bulma-sass 0.7.2 → 0.7.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +4 -2
- data/app/assets/stylesheets/bulma.sass +1 -1
- data/app/assets/stylesheets/sass/base/generic.sass +3 -0
- data/app/assets/stylesheets/sass/base/helpers.sass +15 -0
- data/app/assets/stylesheets/sass/components/message.sass +1 -1
- data/app/assets/stylesheets/sass/components/navbar.sass +6 -0
- data/app/assets/stylesheets/sass/elements/button.sass +26 -6
- data/app/assets/stylesheets/sass/elements/form.sass +13 -41
- data/app/assets/stylesheets/sass/elements/image.sass +2 -1
- data/app/assets/stylesheets/sass/elements/progress.sass +25 -0
- data/app/assets/stylesheets/sass/elements/table.sass +7 -0
- data/app/assets/stylesheets/sass/elements/tag.sass +19 -0
- data/app/assets/stylesheets/sass/layout/footer.sass +2 -1
- data/app/assets/stylesheets/sass/layout/hero.sass +0 -2
- data/app/assets/stylesheets/sass/utilities/controls.sass +2 -1
- data/app/assets/stylesheets/sass/utilities/derived-variables.sass +1 -0
- data/bulma-sass.gemspec +1 -1
- data/lib/bulma/sass/version.rb +1 -1
- data/release.sh +15 -0
- metadata +3 -3
- data/app/assets/stylesheets/sass/.DS_Store +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9fda8464edc9d318daedc75dceec791e5f1fb84a37f13eb8d130ad6d968e5da
|
4
|
+
data.tar.gz: 216e37077ed2f1455990ca959b87a8815828a6aa8bd9349c313924ac6447bbc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 163f35dac5e36b21e3f509469b8b1d51e90dbdc0a0eafecfeace60595a81da8e42412cf7a8f376edbb16989a3f9ff2888c1830da64eef2d27fb83ebfe369e5c5
|
7
|
+
data.tar.gz: 1c3fe11e62404f533d8d243cfeeaa4830aed0f2e788d1e5ac088f977f3852d4c93d71a30163bb2d552f5210e6af2b7535372ed23bd73c3d7373d486d6307cf15
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
# Bulma-sass
|
2
2
|
|
3
|
-
Bulma, modern CSS framework based on Flexbox
|
4
|
-
|
5
3
|
`bulma-sass` gem supports Rails and Sprockets
|
6
4
|
|
5
|
+
Bulma is a **modern CSS framework** based on [Flexbox](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Using_CSS_flexible_boxes).
|
6
|
+
|
7
|
+
<a href="https://bulma.io"><img src="https://raw.githubusercontent.com/jgthms/bulma/master/docs/images/bulma-banner.png" alt="Bulma: a Flexbox CSS framework" style="max-width:100%;" width="600" height="315"></a>
|
8
|
+
|
7
9
|
## Rails
|
8
10
|
|
9
11
|
### Installation
|
@@ -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'
|
@@ -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:
|
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:
|
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,
|
@@ -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
|
data/bulma-sass.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = "https://github.com/bananaappletw/bulma-sass"
|
15
15
|
spec.license = "MIT"
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
|
-
|
17
|
+
f.match(%r{^(test|spec|features|release.sh)/})
|
18
18
|
end
|
19
19
|
spec.bindir = "exe"
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
data/lib/bulma/sass/version.rb
CHANGED
data/release.sh
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
echo "Enter version"
|
3
|
+
read version
|
4
|
+
sed -i "s/VERSION = \".*\"/VERSION = \"$version\"/g" lib/bulma/sass/version.rb
|
5
|
+
rm -rf app/assets/stylesheets/*
|
6
|
+
rm -rf build/
|
7
|
+
git clone -b "$version" https://github.com/jgthms/bulma build/
|
8
|
+
mv build/bulma.sass app/assets/stylesheets/
|
9
|
+
mv build/sass/ app/assets/stylesheets/
|
10
|
+
rm -rf build/
|
11
|
+
git add .
|
12
|
+
git commit -m "Release v$version"
|
13
|
+
git tag -a "v$version" -m "v$version"
|
14
|
+
gem build bulma-sass.gemspec
|
15
|
+
gem push "bulma-sass-$version.gem"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bulma-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bananaappletw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -65,7 +65,6 @@ files:
|
|
65
65
|
- README.md
|
66
66
|
- Rakefile
|
67
67
|
- app/assets/stylesheets/bulma.sass
|
68
|
-
- app/assets/stylesheets/sass/.DS_Store
|
69
68
|
- app/assets/stylesheets/sass/base/_all.sass
|
70
69
|
- app/assets/stylesheets/sass/base/generic.sass
|
71
70
|
- app/assets/stylesheets/sass/base/helpers.sass
|
@@ -123,6 +122,7 @@ files:
|
|
123
122
|
- lib/bulma-sass.rb
|
124
123
|
- lib/bulma/sass/engine.rb
|
125
124
|
- lib/bulma/sass/version.rb
|
125
|
+
- release.sh
|
126
126
|
homepage: https://github.com/bananaappletw/bulma-sass
|
127
127
|
licenses:
|
128
128
|
- MIT
|
Binary file
|