bulma-sass 0.8.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/app/assets/stylesheets/bulma.sass +2 -1
- data/app/assets/stylesheets/sass/base/_all.sass +4 -3
- data/app/assets/stylesheets/sass/base/animations.sass +5 -0
- data/app/assets/stylesheets/sass/base/generic.sass +4 -1
- data/app/assets/stylesheets/sass/base/helpers.sass +1 -281
- data/app/assets/stylesheets/sass/base/minireset.sass +1 -1
- data/app/assets/stylesheets/sass/components/_all.sass +13 -13
- data/app/assets/stylesheets/sass/components/breadcrumb.sass +5 -3
- data/app/assets/stylesheets/sass/components/card.sass +26 -2
- data/app/assets/stylesheets/sass/components/dropdown.sass +6 -4
- data/app/assets/stylesheets/sass/components/level.sass +5 -3
- data/app/assets/stylesheets/sass/components/media.sass +24 -15
- data/app/assets/stylesheets/sass/components/menu.sass +4 -2
- data/app/assets/stylesheets/sass/components/message.sass +3 -1
- data/app/assets/stylesheets/sass/components/modal.sass +7 -3
- data/app/assets/stylesheets/sass/components/navbar.sass +15 -10
- data/app/assets/stylesheets/sass/components/pagination.sass +19 -3
- data/app/assets/stylesheets/sass/components/panel.sass +5 -3
- data/app/assets/stylesheets/sass/components/tabs.sass +37 -12
- data/app/assets/stylesheets/sass/elements/_all.sass +13 -12
- data/app/assets/stylesheets/sass/elements/box.sass +3 -1
- data/app/assets/stylesheets/sass/elements/button.sass +33 -11
- data/app/assets/stylesheets/sass/elements/container.sass +12 -7
- data/app/assets/stylesheets/sass/elements/content.sass +9 -5
- data/app/assets/stylesheets/sass/elements/icon.sass +25 -0
- data/app/assets/stylesheets/sass/elements/image.sass +2 -0
- data/app/assets/stylesheets/sass/elements/notification.sass +12 -3
- data/app/assets/stylesheets/sass/elements/other.sass +2 -10
- data/app/assets/stylesheets/sass/elements/progress.sass +7 -1
- data/app/assets/stylesheets/sass/elements/table.sass +8 -2
- data/app/assets/stylesheets/sass/elements/tag.sass +29 -17
- data/app/assets/stylesheets/sass/elements/title.sass +2 -2
- data/app/assets/stylesheets/sass/form/_all.sass +7 -6
- data/app/assets/stylesheets/sass/form/checkbox-radio.sass +3 -2
- data/app/assets/stylesheets/sass/form/file.sass +7 -3
- data/app/assets/stylesheets/sass/form/input-textarea.sass +3 -1
- data/app/assets/stylesheets/sass/form/select.sass +7 -5
- data/app/assets/stylesheets/sass/form/shared.sass +5 -0
- data/app/assets/stylesheets/sass/form/tools.sass +21 -11
- data/app/assets/stylesheets/sass/grid/_all.sass +3 -2
- data/app/assets/stylesheets/sass/grid/columns.sass +93 -84
- data/app/assets/stylesheets/sass/grid/tiles.sass +3 -1
- data/app/assets/stylesheets/sass/helpers/_all.sass +12 -0
- data/app/assets/stylesheets/sass/helpers/color.sass +39 -0
- data/app/assets/stylesheets/sass/helpers/flexbox.sass +35 -0
- data/app/assets/stylesheets/sass/helpers/float.sass +10 -0
- data/app/assets/stylesheets/sass/helpers/other.sass +14 -0
- data/app/assets/stylesheets/sass/helpers/overflow.sass +2 -0
- data/app/assets/stylesheets/sass/helpers/position.sass +7 -0
- data/app/assets/stylesheets/sass/helpers/spacing.sass +31 -0
- data/app/assets/stylesheets/sass/helpers/typography.sass +103 -0
- data/app/assets/stylesheets/sass/helpers/visibility.sass +122 -0
- data/app/assets/stylesheets/sass/layout/_all.sass +4 -3
- data/app/assets/stylesheets/sass/layout/footer.sass +2 -0
- data/app/assets/stylesheets/sass/layout/hero.sass +12 -4
- data/app/assets/stylesheets/sass/layout/section.sass +6 -2
- data/app/assets/stylesheets/sass/utilities/_all.sass +7 -6
- data/app/assets/stylesheets/sass/utilities/animations.sass +1 -5
- data/app/assets/stylesheets/sass/utilities/controls.sass +2 -3
- data/app/assets/stylesheets/sass/utilities/derived-variables.sass +9 -1
- data/app/assets/stylesheets/sass/utilities/extends.sass +25 -0
- data/app/assets/stylesheets/sass/utilities/functions.sass +30 -4
- data/app/assets/stylesheets/sass/utilities/initial-variables.sass +6 -5
- data/app/assets/stylesheets/sass/utilities/mixins.sass +42 -23
- data/bulma-sass.gemspec +2 -2
- data/lib/bulma/sass/version.rb +1 -1
- data/release.sh +2 -2
- metadata +18 -7
- data/app/assets/stylesheets/sass/components/list.sass +0 -39
@@ -1,8 +1,12 @@
|
|
1
|
+
@import "../utilities/mixins"
|
2
|
+
|
1
3
|
$tag-background-color: $background !default
|
2
4
|
$tag-color: $text !default
|
3
5
|
$tag-radius: $radius !default
|
4
6
|
$tag-delete-margin: 1px !default
|
5
7
|
|
8
|
+
$tag-colors: $colors !default
|
9
|
+
|
6
10
|
.tags
|
7
11
|
align-items: center
|
8
12
|
display: flex
|
@@ -11,7 +15,7 @@ $tag-delete-margin: 1px !default
|
|
11
15
|
.tag
|
12
16
|
margin-bottom: 0.5rem
|
13
17
|
&:not(:last-child)
|
14
|
-
margin
|
18
|
+
+ltr-property("margin", 0.5rem)
|
15
19
|
&:last-child
|
16
20
|
margin-bottom: -0.5rem
|
17
21
|
&:not(:last-child)
|
@@ -37,14 +41,22 @@ $tag-delete-margin: 1px !default
|
|
37
41
|
margin-right: 0
|
38
42
|
&.has-addons
|
39
43
|
.tag
|
40
|
-
margin
|
44
|
+
+ltr-property("margin", 0)
|
41
45
|
&:not(:first-child)
|
42
|
-
margin
|
43
|
-
|
44
|
-
|
46
|
+
+ltr-property("margin", 0, false)
|
47
|
+
+ltr
|
48
|
+
border-top-left-radius: 0
|
49
|
+
border-bottom-left-radius: 0
|
50
|
+
+rtl
|
51
|
+
border-top-right-radius: 0
|
52
|
+
border-bottom-right-radius: 0
|
45
53
|
&:not(:last-child)
|
46
|
-
|
47
|
-
|
54
|
+
+ltr
|
55
|
+
border-top-right-radius: 0
|
56
|
+
border-bottom-right-radius: 0
|
57
|
+
+rtl
|
58
|
+
border-top-left-radius: 0
|
59
|
+
border-bottom-left-radius: 0
|
48
60
|
|
49
61
|
.tag:not(body)
|
50
62
|
align-items: center
|
@@ -60,10 +72,10 @@ $tag-delete-margin: 1px !default
|
|
60
72
|
padding-right: 0.75em
|
61
73
|
white-space: nowrap
|
62
74
|
.delete
|
63
|
-
margin
|
64
|
-
margin
|
75
|
+
+ltr-property("margin", 0.25rem, false)
|
76
|
+
+ltr-property("margin", -0.375rem)
|
65
77
|
// Colors
|
66
|
-
@each $name, $pair in $colors
|
78
|
+
@each $name, $pair in $tag-colors
|
67
79
|
$color: nth($pair, 1)
|
68
80
|
$color-invert: nth($pair, 2)
|
69
81
|
&.is-#{$name}
|
@@ -85,17 +97,17 @@ $tag-delete-margin: 1px !default
|
|
85
97
|
font-size: $size-medium
|
86
98
|
.icon
|
87
99
|
&:first-child:not(:last-child)
|
88
|
-
margin
|
89
|
-
margin
|
100
|
+
+ltr-property("margin", -0.375em, false)
|
101
|
+
+ltr-property("margin", 0.1875em)
|
90
102
|
&:last-child:not(:first-child)
|
91
|
-
margin
|
92
|
-
margin
|
103
|
+
+ltr-property("margin", 0.1875em, false)
|
104
|
+
+ltr-property("margin", -0.375em)
|
93
105
|
&:first-child:last-child
|
94
|
-
margin
|
95
|
-
margin
|
106
|
+
+ltr-property("margin", -0.375em, false)
|
107
|
+
+ltr-property("margin", -0.375em)
|
96
108
|
// Modifiers
|
97
109
|
&.is-delete
|
98
|
-
margin
|
110
|
+
+ltr-property("margin", $tag-delete-margin, false)
|
99
111
|
padding: 0
|
100
112
|
position: relative
|
101
113
|
width: 2em
|
@@ -1,3 +1,5 @@
|
|
1
|
+
@import "../utilities/mixins"
|
2
|
+
|
1
3
|
$title-color: $text-strong !default
|
2
4
|
$title-family: false !default
|
3
5
|
$title-size: $size-3 !default
|
@@ -41,8 +43,6 @@ $subtitle-negative-margin: -1.25rem !default
|
|
41
43
|
strong
|
42
44
|
color: $title-strong-color
|
43
45
|
font-weight: $title-strong-weight
|
44
|
-
& + .highlight
|
45
|
-
margin-top: -0.75rem
|
46
46
|
&:not(.is-spaced) + .subtitle
|
47
47
|
margin-top: $subtitle-negative-margin
|
48
48
|
// Sizes
|
@@ -1,8 +1,9 @@
|
|
1
|
+
/* Bulma Form */
|
1
2
|
@charset "utf-8"
|
2
3
|
|
3
|
-
@import "shared
|
4
|
-
@import "input-textarea
|
5
|
-
@import "checkbox-radio
|
6
|
-
@import "select
|
7
|
-
@import "file
|
8
|
-
@import "tools
|
4
|
+
@import "shared"
|
5
|
+
@import "input-textarea"
|
6
|
+
@import "checkbox-radio"
|
7
|
+
@import "select"
|
8
|
+
@import "file"
|
9
|
+
@import "tools"
|
@@ -8,7 +8,8 @@
|
|
8
8
|
&:hover
|
9
9
|
color: $input-hover-color
|
10
10
|
&[disabled],
|
11
|
-
fieldset[disabled]
|
11
|
+
fieldset[disabled] &,
|
12
|
+
input[disabled]
|
12
13
|
color: $input-disabled-color
|
13
14
|
cursor: not-allowed
|
14
15
|
|
@@ -18,4 +19,4 @@
|
|
18
19
|
.radio
|
19
20
|
@extend %checkbox-radio
|
20
21
|
& + .radio
|
21
|
-
margin
|
22
|
+
+ltr-property("margin", 0.5em, false)
|
@@ -11,6 +11,8 @@ $file-name-border-style: solid !default
|
|
11
11
|
$file-name-border-width: 1px 1px 1px 0 !default
|
12
12
|
$file-name-max-width: 16em !default
|
13
13
|
|
14
|
+
$file-colors: $form-colors !default
|
15
|
+
|
14
16
|
.file
|
15
17
|
@extend %unselectable
|
16
18
|
align-items: stretch
|
@@ -18,7 +20,7 @@ $file-name-max-width: 16em !default
|
|
18
20
|
justify-content: flex-start
|
19
21
|
position: relative
|
20
22
|
// Colors
|
21
|
-
@each $name, $pair in $colors
|
23
|
+
@each $name, $pair in $file-colors
|
22
24
|
$color: nth($pair, 1)
|
23
25
|
$color-invert: nth($pair, 2)
|
24
26
|
&.is-#{$name}
|
@@ -47,6 +49,8 @@ $file-name-max-width: 16em !default
|
|
47
49
|
// Sizes
|
48
50
|
&.is-small
|
49
51
|
font-size: $size-small
|
52
|
+
&.is-normal
|
53
|
+
font-size: $size-normal
|
50
54
|
&.is-medium
|
51
55
|
font-size: $size-medium
|
52
56
|
.file-icon
|
@@ -166,7 +170,7 @@ $file-name-max-width: 16em !default
|
|
166
170
|
display: block
|
167
171
|
max-width: $file-name-max-width
|
168
172
|
overflow: hidden
|
169
|
-
text-align:
|
173
|
+
text-align: inherit
|
170
174
|
text-overflow: ellipsis
|
171
175
|
|
172
176
|
.file-icon
|
@@ -174,7 +178,7 @@ $file-name-max-width: 16em !default
|
|
174
178
|
display: flex
|
175
179
|
height: 1em
|
176
180
|
justify-content: center
|
177
|
-
margin
|
181
|
+
+ltr-property("margin", 0.5em)
|
178
182
|
width: 1em
|
179
183
|
.fa
|
180
184
|
font-size: 14px
|
@@ -2,6 +2,8 @@ $textarea-padding: $control-padding-horizontal !default
|
|
2
2
|
$textarea-max-height: 40em !default
|
3
3
|
$textarea-min-height: 8em !default
|
4
4
|
|
5
|
+
$textarea-colors: $form-colors !default
|
6
|
+
|
5
7
|
%input-textarea
|
6
8
|
@extend %input
|
7
9
|
box-shadow: $input-shadow
|
@@ -10,7 +12,7 @@ $textarea-min-height: 8em !default
|
|
10
12
|
&[readonly]
|
11
13
|
box-shadow: none
|
12
14
|
// Colors
|
13
|
-
@each $name, $pair in $colors
|
15
|
+
@each $name, $pair in $textarea-colors
|
14
16
|
$color: nth($pair, 1)
|
15
17
|
&.is-#{$name}
|
16
18
|
border-color: $color
|
@@ -1,3 +1,5 @@
|
|
1
|
+
$select-colors: $form-colors !default
|
2
|
+
|
1
3
|
.select
|
2
4
|
display: inline-block
|
3
5
|
max-width: 100%
|
@@ -9,12 +11,12 @@
|
|
9
11
|
&::after
|
10
12
|
@extend %arrow
|
11
13
|
border-color: $input-arrow
|
12
|
-
|
14
|
+
+ltr-position(1.125em)
|
13
15
|
z-index: 4
|
14
16
|
&.is-rounded
|
15
17
|
select
|
16
18
|
border-radius: $radius-rounded
|
17
|
-
padding
|
19
|
+
+ltr-property("padding", 1em, false)
|
18
20
|
select
|
19
21
|
@extend %input
|
20
22
|
cursor: pointer
|
@@ -28,7 +30,7 @@
|
|
28
30
|
fieldset[disabled] &:hover
|
29
31
|
border-color: $input-disabled-border-color
|
30
32
|
&:not([multiple])
|
31
|
-
padding
|
33
|
+
+ltr-property("padding", 2.5em)
|
32
34
|
&[multiple]
|
33
35
|
height: auto
|
34
36
|
padding: 0
|
@@ -39,7 +41,7 @@
|
|
39
41
|
&::after
|
40
42
|
border-color: $input-hover-color
|
41
43
|
// Colors
|
42
|
-
@each $name, $pair in $colors
|
44
|
+
@each $name, $pair in $select-colors
|
43
45
|
$color: nth($pair, 1)
|
44
46
|
&.is-#{$name}
|
45
47
|
&:not(:hover)::after
|
@@ -74,7 +76,7 @@
|
|
74
76
|
@extend %loader
|
75
77
|
margin-top: 0
|
76
78
|
position: absolute
|
77
|
-
|
79
|
+
+ltr-position(0.625em)
|
78
80
|
top: 0.625em
|
79
81
|
transform: none
|
80
82
|
&.is-small:after
|
@@ -3,6 +3,8 @@ $label-weight: $weight-bold !default
|
|
3
3
|
|
4
4
|
$help-size: $size-small !default
|
5
5
|
|
6
|
+
$label-colors: $form-colors !default
|
7
|
+
|
6
8
|
.label
|
7
9
|
color: $label-color
|
8
10
|
display: block
|
@@ -22,7 +24,7 @@ $help-size: $size-small !default
|
|
22
24
|
display: block
|
23
25
|
font-size: $help-size
|
24
26
|
margin-top: 0.25rem
|
25
|
-
@each $name, $pair in $colors
|
27
|
+
@each $name, $pair in $label-colors
|
26
28
|
$color: nth($pair, 1)
|
27
29
|
&.is-#{$name}
|
28
30
|
color: $color
|
@@ -38,7 +40,7 @@ $help-size: $size-small !default
|
|
38
40
|
justify-content: flex-start
|
39
41
|
.control
|
40
42
|
&:not(:last-child)
|
41
|
-
margin
|
43
|
+
+ltr-property("margin", -1px)
|
42
44
|
&:not(:first-child):not(:last-child)
|
43
45
|
.button,
|
44
46
|
.input,
|
@@ -48,14 +50,22 @@ $help-size: $size-small !default
|
|
48
50
|
.button,
|
49
51
|
.input,
|
50
52
|
.select select
|
51
|
-
|
52
|
-
|
53
|
+
+ltr
|
54
|
+
border-bottom-right-radius: 0
|
55
|
+
border-top-right-radius: 0
|
56
|
+
+rtl
|
57
|
+
border-bottom-left-radius: 0
|
58
|
+
border-top-left-radius: 0
|
53
59
|
&:last-child:not(:only-child)
|
54
60
|
.button,
|
55
61
|
.input,
|
56
62
|
.select select
|
57
|
-
|
58
|
-
|
63
|
+
+ltr
|
64
|
+
border-bottom-left-radius: 0
|
65
|
+
border-top-left-radius: 0
|
66
|
+
+rtl
|
67
|
+
border-bottom-right-radius: 0
|
68
|
+
border-top-right-radius: 0
|
59
69
|
.button,
|
60
70
|
.input,
|
61
71
|
.select select
|
@@ -88,7 +98,7 @@ $help-size: $size-small !default
|
|
88
98
|
flex-shrink: 0
|
89
99
|
&:not(:last-child)
|
90
100
|
margin-bottom: 0
|
91
|
-
margin
|
101
|
+
+ltr-property("margin", 0.75rem)
|
92
102
|
&.is-expanded
|
93
103
|
flex-grow: 1
|
94
104
|
flex-shrink: 1
|
@@ -119,7 +129,7 @@ $help-size: $size-small !default
|
|
119
129
|
flex-basis: 0
|
120
130
|
flex-grow: 1
|
121
131
|
flex-shrink: 0
|
122
|
-
margin
|
132
|
+
+ltr-property("margin", 1.5rem)
|
123
133
|
text-align: right
|
124
134
|
&.is-small
|
125
135
|
font-size: $size-small
|
@@ -148,14 +158,14 @@ $help-size: $size-small !default
|
|
148
158
|
&:not(.is-narrow)
|
149
159
|
flex-grow: 1
|
150
160
|
&:not(:last-child)
|
151
|
-
margin
|
161
|
+
+ltr-property("margin", 0.75rem)
|
152
162
|
|
153
163
|
.control
|
154
164
|
box-sizing: border-box
|
155
165
|
clear: both
|
156
166
|
font-size: $size-normal
|
157
167
|
position: relative
|
158
|
-
text-align:
|
168
|
+
text-align: inherit
|
159
169
|
// Modifiers
|
160
170
|
&.has-icons-left,
|
161
171
|
&.has-icons-right
|
@@ -194,7 +204,7 @@ $help-size: $size-small !default
|
|
194
204
|
&::after
|
195
205
|
@extend %loader
|
196
206
|
position: absolute !important
|
197
|
-
|
207
|
+
+ltr-position(0.625em)
|
198
208
|
top: 0.625em
|
199
209
|
z-index: 4
|
200
210
|
&.is-small:after
|