bulma-rails 0.8.2 → 0.9.0
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 +2 -1
- data/app/assets/stylesheets/sass/base/_all.sass +0 -1
- data/app/assets/stylesheets/sass/base/generic.sass +1 -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 +0 -1
- data/app/assets/stylesheets/sass/components/breadcrumb.sass +3 -3
- data/app/assets/stylesheets/sass/components/card.sass +1 -1
- data/app/assets/stylesheets/sass/components/dropdown.sass +3 -3
- data/app/assets/stylesheets/sass/components/level.sass +2 -2
- data/app/assets/stylesheets/sass/components/media.sass +10 -8
- data/app/assets/stylesheets/sass/components/menu.sass +2 -2
- data/app/assets/stylesheets/sass/components/message.sass +1 -1
- data/app/assets/stylesheets/sass/components/modal.sass +2 -2
- data/app/assets/stylesheets/sass/components/navbar.sass +9 -9
- data/app/assets/stylesheets/sass/components/panel.sass +2 -2
- data/app/assets/stylesheets/sass/components/tabs.sass +35 -12
- data/app/assets/stylesheets/sass/elements/button.sass +7 -7
- data/app/assets/stylesheets/sass/elements/content.sass +5 -5
- data/app/assets/stylesheets/sass/elements/notification.sass +7 -2
- data/app/assets/stylesheets/sass/elements/table.sass +3 -1
- data/app/assets/stylesheets/sass/elements/tag.sass +24 -16
- data/app/assets/stylesheets/sass/form/checkbox-radio.sass +1 -1
- data/app/assets/stylesheets/sass/form/file.sass +2 -2
- data/app/assets/stylesheets/sass/form/select.sass +4 -4
- data/app/assets/stylesheets/sass/form/tools.sass +18 -10
- data/app/assets/stylesheets/sass/helpers/_all.sass +10 -0
- data/app/assets/stylesheets/sass/helpers/color.sass +37 -0
- data/app/assets/stylesheets/sass/helpers/float.sass +8 -0
- data/app/assets/stylesheets/sass/helpers/other.sass +8 -0
- data/app/assets/stylesheets/sass/helpers/overflow.sass +2 -0
- data/app/assets/stylesheets/sass/helpers/position.sass +5 -0
- data/app/assets/stylesheets/sass/helpers/spacing.sass +28 -0
- data/app/assets/stylesheets/sass/helpers/typography.sass +98 -0
- data/app/assets/stylesheets/sass/helpers/visibility.sass +122 -0
- data/app/assets/stylesheets/sass/layout/hero.sass +1 -1
- data/app/assets/stylesheets/sass/utilities/_all.sass +1 -1
- data/app/assets/stylesheets/sass/utilities/derived-variables.scss +132 -0
- data/app/assets/stylesheets/sass/utilities/functions.sass +5 -0
- data/app/assets/stylesheets/sass/utilities/initial-variables.sass +1 -0
- data/app/assets/stylesheets/sass/utilities/mixins.sass +24 -0
- data/bulma-rails.gemspec +1 -1
- metadata +12 -4
- data/app/assets/stylesheets/sass/components/list.sass +0 -39
- data/app/assets/stylesheets/sass/utilities/derived-variables.sass +0 -106
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c187d8e95e7482bbecab4a5e320ccdce88f049367e3d639054d1845fc99d0f4
|
4
|
+
data.tar.gz: 020c68825cef7a2d45a64d59f61b008326a99bd8cad9b6bd41a17a5c39b5edcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01e0140a8537b859ea5ca35a1b31a93fd93a25737a69d42ce8d6f25ab4de50be9a7b3c8aedfeae6bfe1937475b620f4ad62dc97f1be3d0088080b3728e8b8650
|
7
|
+
data.tar.gz: a84d032d4f015c10933c1d3cdf6a6a616da806c8301e887da6134c19a257f7c8941a126f4dd2157cf9ab8f23d93920495db9f54d2d9a0d4b3e675e556f98a782
|
data/README.md
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
@charset "utf-8"
|
2
|
-
/*! bulma.io v0.
|
2
|
+
/*! bulma.io v0.9.0 | MIT License | github.com/jgthms/bulma */
|
3
3
|
@import "sass/utilities/_all"
|
4
4
|
@import "sass/base/_all"
|
5
5
|
@import "sass/elements/_all"
|
6
6
|
@import "sass/form/_all"
|
7
7
|
@import "sass/components/_all"
|
8
8
|
@import "sass/grid/_all"
|
9
|
+
@import "sass/helpers/_all"
|
9
10
|
@import "sass/layout/_all"
|
@@ -1,281 +1 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
.is-clearfix
|
4
|
-
+clearfix
|
5
|
-
|
6
|
-
.is-pulled-left
|
7
|
-
float: left !important
|
8
|
-
|
9
|
-
.is-pulled-right
|
10
|
-
float: right !important
|
11
|
-
|
12
|
-
// Overflow
|
13
|
-
|
14
|
-
.is-clipped
|
15
|
-
overflow: hidden !important
|
16
|
-
|
17
|
-
// Overlay
|
18
|
-
|
19
|
-
.is-overlay
|
20
|
-
@extend %overlay
|
21
|
-
|
22
|
-
// Typography
|
23
|
-
|
24
|
-
=typography-size($target:'')
|
25
|
-
@each $size in $sizes
|
26
|
-
$i: index($sizes, $size)
|
27
|
-
.is-size-#{$i}#{if($target == '', '', '-' + $target)}
|
28
|
-
font-size: $size !important
|
29
|
-
|
30
|
-
+typography-size()
|
31
|
-
|
32
|
-
+mobile
|
33
|
-
+typography-size('mobile')
|
34
|
-
|
35
|
-
+tablet
|
36
|
-
+typography-size('tablet')
|
37
|
-
|
38
|
-
+touch
|
39
|
-
+typography-size('touch')
|
40
|
-
|
41
|
-
+desktop
|
42
|
-
+typography-size('desktop')
|
43
|
-
|
44
|
-
+widescreen
|
45
|
-
+typography-size('widescreen')
|
46
|
-
|
47
|
-
+fullhd
|
48
|
-
+typography-size('fullhd')
|
49
|
-
|
50
|
-
$alignments: ('centered': 'center', 'justified': 'justify', 'left': 'left', 'right': 'right')
|
51
|
-
|
52
|
-
@each $alignment, $text-align in $alignments
|
53
|
-
.has-text-#{$alignment}
|
54
|
-
text-align: #{$text-align} !important
|
55
|
-
|
56
|
-
@each $alignment, $text-align in $alignments
|
57
|
-
+mobile
|
58
|
-
.has-text-#{$alignment}-mobile
|
59
|
-
text-align: #{$text-align} !important
|
60
|
-
+tablet
|
61
|
-
.has-text-#{$alignment}-tablet
|
62
|
-
text-align: #{$text-align} !important
|
63
|
-
+tablet-only
|
64
|
-
.has-text-#{$alignment}-tablet-only
|
65
|
-
text-align: #{$text-align} !important
|
66
|
-
+touch
|
67
|
-
.has-text-#{$alignment}-touch
|
68
|
-
text-align: #{$text-align} !important
|
69
|
-
+desktop
|
70
|
-
.has-text-#{$alignment}-desktop
|
71
|
-
text-align: #{$text-align} !important
|
72
|
-
+desktop-only
|
73
|
-
.has-text-#{$alignment}-desktop-only
|
74
|
-
text-align: #{$text-align} !important
|
75
|
-
+widescreen
|
76
|
-
.has-text-#{$alignment}-widescreen
|
77
|
-
text-align: #{$text-align} !important
|
78
|
-
+widescreen-only
|
79
|
-
.has-text-#{$alignment}-widescreen-only
|
80
|
-
text-align: #{$text-align} !important
|
81
|
-
+fullhd
|
82
|
-
.has-text-#{$alignment}-fullhd
|
83
|
-
text-align: #{$text-align} !important
|
84
|
-
|
85
|
-
.is-capitalized
|
86
|
-
text-transform: capitalize !important
|
87
|
-
|
88
|
-
.is-lowercase
|
89
|
-
text-transform: lowercase !important
|
90
|
-
|
91
|
-
.is-uppercase
|
92
|
-
text-transform: uppercase !important
|
93
|
-
|
94
|
-
.is-italic
|
95
|
-
font-style: italic !important
|
96
|
-
|
97
|
-
@each $name, $pair in $colors
|
98
|
-
$color: nth($pair, 1)
|
99
|
-
.has-text-#{$name}
|
100
|
-
color: $color !important
|
101
|
-
a.has-text-#{$name}
|
102
|
-
&:hover,
|
103
|
-
&:focus
|
104
|
-
color: bulmaDarken($color, 10%) !important
|
105
|
-
.has-background-#{$name}
|
106
|
-
background-color: $color !important
|
107
|
-
|
108
|
-
@each $name, $shade in $shades
|
109
|
-
.has-text-#{$name}
|
110
|
-
color: $shade !important
|
111
|
-
.has-background-#{$name}
|
112
|
-
background-color: $shade !important
|
113
|
-
|
114
|
-
.has-text-weight-light
|
115
|
-
font-weight: $weight-light !important
|
116
|
-
.has-text-weight-normal
|
117
|
-
font-weight: $weight-normal !important
|
118
|
-
.has-text-weight-medium
|
119
|
-
font-weight: $weight-medium !important
|
120
|
-
.has-text-weight-semibold
|
121
|
-
font-weight: $weight-semibold !important
|
122
|
-
.has-text-weight-bold
|
123
|
-
font-weight: $weight-bold !important
|
124
|
-
|
125
|
-
.is-family-primary
|
126
|
-
font-family: $family-primary !important
|
127
|
-
|
128
|
-
.is-family-secondary
|
129
|
-
font-family: $family-secondary !important
|
130
|
-
|
131
|
-
.is-family-sans-serif
|
132
|
-
font-family: $family-sans-serif !important
|
133
|
-
|
134
|
-
.is-family-monospace
|
135
|
-
font-family: $family-monospace !important
|
136
|
-
|
137
|
-
.is-family-code
|
138
|
-
font-family: $family-code !important
|
139
|
-
|
140
|
-
// Visibility
|
141
|
-
|
142
|
-
$displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
|
143
|
-
|
144
|
-
@each $display in $displays
|
145
|
-
.is-#{$display}
|
146
|
-
display: #{$display} !important
|
147
|
-
+mobile
|
148
|
-
.is-#{$display}-mobile
|
149
|
-
display: #{$display} !important
|
150
|
-
+tablet
|
151
|
-
.is-#{$display}-tablet
|
152
|
-
display: #{$display} !important
|
153
|
-
+tablet-only
|
154
|
-
.is-#{$display}-tablet-only
|
155
|
-
display: #{$display} !important
|
156
|
-
+touch
|
157
|
-
.is-#{$display}-touch
|
158
|
-
display: #{$display} !important
|
159
|
-
+desktop
|
160
|
-
.is-#{$display}-desktop
|
161
|
-
display: #{$display} !important
|
162
|
-
+desktop-only
|
163
|
-
.is-#{$display}-desktop-only
|
164
|
-
display: #{$display} !important
|
165
|
-
+widescreen
|
166
|
-
.is-#{$display}-widescreen
|
167
|
-
display: #{$display} !important
|
168
|
-
+widescreen-only
|
169
|
-
.is-#{$display}-widescreen-only
|
170
|
-
display: #{$display} !important
|
171
|
-
+fullhd
|
172
|
-
.is-#{$display}-fullhd
|
173
|
-
display: #{$display} !important
|
174
|
-
|
175
|
-
.is-hidden
|
176
|
-
display: none !important
|
177
|
-
|
178
|
-
.is-sr-only
|
179
|
-
border: none !important
|
180
|
-
clip: rect(0, 0, 0, 0) !important
|
181
|
-
height: 0.01em !important
|
182
|
-
overflow: hidden !important
|
183
|
-
padding: 0 !important
|
184
|
-
position: absolute !important
|
185
|
-
white-space: nowrap !important
|
186
|
-
width: 0.01em !important
|
187
|
-
|
188
|
-
+mobile
|
189
|
-
.is-hidden-mobile
|
190
|
-
display: none !important
|
191
|
-
|
192
|
-
+tablet
|
193
|
-
.is-hidden-tablet
|
194
|
-
display: none !important
|
195
|
-
|
196
|
-
+tablet-only
|
197
|
-
.is-hidden-tablet-only
|
198
|
-
display: none !important
|
199
|
-
|
200
|
-
+touch
|
201
|
-
.is-hidden-touch
|
202
|
-
display: none !important
|
203
|
-
|
204
|
-
+desktop
|
205
|
-
.is-hidden-desktop
|
206
|
-
display: none !important
|
207
|
-
|
208
|
-
+desktop-only
|
209
|
-
.is-hidden-desktop-only
|
210
|
-
display: none !important
|
211
|
-
|
212
|
-
+widescreen
|
213
|
-
.is-hidden-widescreen
|
214
|
-
display: none !important
|
215
|
-
|
216
|
-
+widescreen-only
|
217
|
-
.is-hidden-widescreen-only
|
218
|
-
display: none !important
|
219
|
-
|
220
|
-
+fullhd
|
221
|
-
.is-hidden-fullhd
|
222
|
-
display: none !important
|
223
|
-
|
224
|
-
.is-invisible
|
225
|
-
visibility: hidden !important
|
226
|
-
|
227
|
-
+mobile
|
228
|
-
.is-invisible-mobile
|
229
|
-
visibility: hidden !important
|
230
|
-
|
231
|
-
+tablet
|
232
|
-
.is-invisible-tablet
|
233
|
-
visibility: hidden !important
|
234
|
-
|
235
|
-
+tablet-only
|
236
|
-
.is-invisible-tablet-only
|
237
|
-
visibility: hidden !important
|
238
|
-
|
239
|
-
+touch
|
240
|
-
.is-invisible-touch
|
241
|
-
visibility: hidden !important
|
242
|
-
|
243
|
-
+desktop
|
244
|
-
.is-invisible-desktop
|
245
|
-
visibility: hidden !important
|
246
|
-
|
247
|
-
+desktop-only
|
248
|
-
.is-invisible-desktop-only
|
249
|
-
visibility: hidden !important
|
250
|
-
|
251
|
-
+widescreen
|
252
|
-
.is-invisible-widescreen
|
253
|
-
visibility: hidden !important
|
254
|
-
|
255
|
-
+widescreen-only
|
256
|
-
.is-invisible-widescreen-only
|
257
|
-
visibility: hidden !important
|
258
|
-
|
259
|
-
+fullhd
|
260
|
-
.is-invisible-fullhd
|
261
|
-
visibility: hidden !important
|
262
|
-
|
263
|
-
// Other
|
264
|
-
|
265
|
-
.is-marginless
|
266
|
-
margin: 0 !important
|
267
|
-
|
268
|
-
.is-paddingless
|
269
|
-
padding: 0 !important
|
270
|
-
|
271
|
-
.is-radiusless
|
272
|
-
border-radius: 0 !important
|
273
|
-
|
274
|
-
.is-shadowless
|
275
|
-
box-shadow: none !important
|
276
|
-
|
277
|
-
.is-unselectable
|
278
|
-
@extend %unselectable
|
279
|
-
|
280
|
-
.is-relative
|
281
|
-
position: relative !important
|
1
|
+
@warn "The helpers.sass file is DEPRECATED. It has moved into its own /helpers folder. Please import sass/helpers/_all instead."
|
@@ -24,7 +24,7 @@ $breadcrumb-item-separator-color: $border-hover !default
|
|
24
24
|
align-items: center
|
25
25
|
display: flex
|
26
26
|
&:first-child a
|
27
|
-
padding
|
27
|
+
+ltr-property("padding", 0, false)
|
28
28
|
&.is-active
|
29
29
|
a
|
30
30
|
color: $breadcrumb-item-active-color
|
@@ -41,9 +41,9 @@ $breadcrumb-item-separator-color: $border-hover !default
|
|
41
41
|
justify-content: flex-start
|
42
42
|
.icon
|
43
43
|
&:first-child
|
44
|
-
margin
|
44
|
+
+ltr-property("margin", 0.5em)
|
45
45
|
&:last-child
|
46
|
-
margin
|
46
|
+
+ltr-property("margin", 0.5em, false)
|
47
47
|
// Alignment
|
48
48
|
&.is-centered
|
49
49
|
ol,
|
@@ -38,7 +38,7 @@ $dropdown-divider-background-color: $border-light !default
|
|
38
38
|
|
39
39
|
.dropdown-menu
|
40
40
|
display: none
|
41
|
-
|
41
|
+
+ltr-position(0, false)
|
42
42
|
min-width: $dropdown-menu-min-width
|
43
43
|
padding-top: $dropdown-content-offset
|
44
44
|
position: absolute
|
@@ -62,8 +62,8 @@ $dropdown-divider-background-color: $border-light !default
|
|
62
62
|
|
63
63
|
a.dropdown-item,
|
64
64
|
button.dropdown-item
|
65
|
-
padding
|
66
|
-
text-align:
|
65
|
+
+ltr-property("padding", 3rem)
|
66
|
+
text-align: inherit
|
67
67
|
white-space: nowrap
|
68
68
|
width: 100%
|
69
69
|
&:hover
|
@@ -20,7 +20,7 @@ $level-item-spacing: ($block-spacing / 2) !default
|
|
20
20
|
.level-item
|
21
21
|
&:not(:last-child)
|
22
22
|
margin-bottom: 0
|
23
|
-
margin
|
23
|
+
+ltr-property("margin", $level-item-spacing)
|
24
24
|
&:not(.is-narrow)
|
25
25
|
flex-grow: 1
|
26
26
|
// Responsiveness
|
@@ -57,7 +57,7 @@ $level-item-spacing: ($block-spacing / 2) !default
|
|
57
57
|
// Responsiveness
|
58
58
|
+tablet
|
59
59
|
&:not(:last-child)
|
60
|
-
margin
|
60
|
+
+ltr-property("margin", $level-item-spacing)
|
61
61
|
|
62
62
|
.level-left
|
63
63
|
align-items: center
|
@@ -1,9 +1,11 @@
|
|
1
1
|
$media-border-color: bulmaRgba($border, 0.5) !default
|
2
|
+
$media-spacing: 1rem
|
3
|
+
$media-spacing-large: 1.5rem
|
2
4
|
|
3
5
|
.media
|
4
6
|
align-items: flex-start
|
5
7
|
display: flex
|
6
|
-
text-align:
|
8
|
+
text-align: inherit
|
7
9
|
.content:not(:last-child)
|
8
10
|
margin-bottom: 0.75rem
|
9
11
|
.media
|
@@ -19,13 +21,13 @@ $media-border-color: bulmaRgba($border, 0.5) !default
|
|
19
21
|
margin-top: 0.5rem
|
20
22
|
& + .media
|
21
23
|
border-top: 1px solid $media-border-color
|
22
|
-
margin-top:
|
23
|
-
padding-top:
|
24
|
+
margin-top: $media-spacing
|
25
|
+
padding-top: $media-spacing
|
24
26
|
// Sizes
|
25
27
|
&.is-large
|
26
28
|
& + .media
|
27
|
-
margin-top:
|
28
|
-
padding-top:
|
29
|
+
margin-top: $media-spacing-large
|
30
|
+
padding-top: $media-spacing-large
|
29
31
|
|
30
32
|
.media-left,
|
31
33
|
.media-right
|
@@ -34,16 +36,16 @@ $media-border-color: bulmaRgba($border, 0.5) !default
|
|
34
36
|
flex-shrink: 0
|
35
37
|
|
36
38
|
.media-left
|
37
|
-
margin-
|
39
|
+
+ltr-property("margin", $media-spacing)
|
38
40
|
|
39
41
|
.media-right
|
40
|
-
margin-
|
42
|
+
+ltr-property("margin", $media-spacing, false)
|
41
43
|
|
42
44
|
.media-content
|
43
45
|
flex-basis: auto
|
44
46
|
flex-grow: 1
|
45
47
|
flex-shrink: 1
|
46
|
-
text-align:
|
48
|
+
text-align: inherit
|
47
49
|
|
48
50
|
+mobile
|
49
51
|
.media-content
|