bulma-rails 0.0.4.1
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 +7 -0
- data/.gitignore +2 -0
- data/README.md +44 -0
- data/app/assets/stylesheets/bulma.sass +9 -0
- data/app/assets/stylesheets/bulma/base/base.sass +6 -0
- data/app/assets/stylesheets/bulma/base/content.sass +51 -0
- data/app/assets/stylesheets/bulma/base/generic.sass +101 -0
- data/app/assets/stylesheets/bulma/base/helpers.sass +27 -0
- data/app/assets/stylesheets/bulma/base/highlight.sass +123 -0
- data/app/assets/stylesheets/bulma/components/card.sass +39 -0
- data/app/assets/stylesheets/bulma/components/components.sass +11 -0
- data/app/assets/stylesheets/bulma/components/grid.sass +48 -0
- data/app/assets/stylesheets/bulma/components/media.sass +69 -0
- data/app/assets/stylesheets/bulma/components/menu.sass +25 -0
- data/app/assets/stylesheets/bulma/components/navbar.sass +45 -0
- data/app/assets/stylesheets/bulma/components/table.sass +73 -0
- data/app/assets/stylesheets/bulma/components/tabs.sass +101 -0
- data/app/assets/stylesheets/bulma/config/generated-variables.sass +74 -0
- data/app/assets/stylesheets/bulma/config/variables.sass +41 -0
- data/app/assets/stylesheets/bulma/elements/buttons.sass +100 -0
- data/app/assets/stylesheets/bulma/elements/controls.sass +224 -0
- data/app/assets/stylesheets/bulma/elements/elements.sass +172 -0
- data/app/assets/stylesheets/bulma/elements/messages.sass +41 -0
- data/app/assets/stylesheets/bulma/elements/notifications.sass +20 -0
- data/app/assets/stylesheets/bulma/elements/titles.sass +57 -0
- data/app/assets/stylesheets/bulma/layout/footer.sass +11 -0
- data/app/assets/stylesheets/bulma/layout/header.sass +145 -0
- data/app/assets/stylesheets/bulma/layout/hero.sass +147 -0
- data/app/assets/stylesheets/bulma/layout/layout.sass +6 -0
- data/app/assets/stylesheets/bulma/layout/section.sass +11 -0
- data/app/assets/stylesheets/bulma/utilities/animations.sass +5 -0
- data/app/assets/stylesheets/bulma/utilities/functions.sass +34 -0
- data/app/assets/stylesheets/bulma/utilities/mixins.sass +83 -0
- data/app/assets/stylesheets/bulma/utilities/reset.sass +174 -0
- data/app/assets/stylesheets/bulma/utilities/utilities.sass +6 -0
- data/bulma-rails.gemspec +18 -0
- data/lib/bulma-rails.rb +4 -0
- metadata +95 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
=control
|
|
2
|
+
-moz-appearance: none
|
|
3
|
+
-webkit-appearance: none
|
|
4
|
+
background: $control-background
|
|
5
|
+
border: 1px solid $control-border
|
|
6
|
+
border-radius: $radius
|
|
7
|
+
color: $control
|
|
8
|
+
display: inline-block
|
|
9
|
+
font-size: $size-normal
|
|
10
|
+
height: 32px
|
|
11
|
+
line-height: 24px
|
|
12
|
+
padding: 3px 8px
|
|
13
|
+
position: relative
|
|
14
|
+
vertical-align: top
|
|
15
|
+
&:hover
|
|
16
|
+
border-color: $control-hover-border
|
|
17
|
+
&:active,
|
|
18
|
+
&:focus
|
|
19
|
+
border-color: $control-active-border
|
|
20
|
+
outline: none
|
|
21
|
+
&[disabled]
|
|
22
|
+
&,
|
|
23
|
+
&:hover
|
|
24
|
+
background: $background
|
|
25
|
+
border-color: $control-border
|
|
26
|
+
+placeholder
|
|
27
|
+
color: rgba($control, 0.3)
|
|
28
|
+
|
|
29
|
+
=control-small
|
|
30
|
+
border-radius: 2px
|
|
31
|
+
font-size: 11px
|
|
32
|
+
height: 24px
|
|
33
|
+
line-height: 16px
|
|
34
|
+
padding: 3px 6px
|
|
35
|
+
=control-medium
|
|
36
|
+
font-size: 18px
|
|
37
|
+
height: 40px
|
|
38
|
+
line-height: 32px
|
|
39
|
+
padding: 3px 10px
|
|
40
|
+
=control-large
|
|
41
|
+
font-size: 24px
|
|
42
|
+
height: 48px
|
|
43
|
+
line-height: 40px
|
|
44
|
+
padding: 3px 12px
|
|
45
|
+
|
|
46
|
+
.input
|
|
47
|
+
+control
|
|
48
|
+
box-shadow: inset 0 1px 2px rgba(black, 0.1)
|
|
49
|
+
display: block
|
|
50
|
+
max-width: 100%
|
|
51
|
+
width: 100%
|
|
52
|
+
&[type="search"]
|
|
53
|
+
border-radius: 290486px
|
|
54
|
+
&.is-flat
|
|
55
|
+
border: none
|
|
56
|
+
box-shadow: none
|
|
57
|
+
padding: 4px 8px
|
|
58
|
+
&.is-small
|
|
59
|
+
+control-small
|
|
60
|
+
&.is-flat
|
|
61
|
+
padding: 4px 6px
|
|
62
|
+
&.is-medium
|
|
63
|
+
+control-medium
|
|
64
|
+
&.is-flat
|
|
65
|
+
padding: 4px 10px
|
|
66
|
+
&.is-large
|
|
67
|
+
+control-large
|
|
68
|
+
&.is-flat
|
|
69
|
+
padding: 4px 12px
|
|
70
|
+
&.is-fullwidth
|
|
71
|
+
display: block
|
|
72
|
+
width: 100%
|
|
73
|
+
&.is-inline
|
|
74
|
+
display: inline
|
|
75
|
+
width: auto
|
|
76
|
+
|
|
77
|
+
.textarea
|
|
78
|
+
@extend .input
|
|
79
|
+
line-height: 1.2
|
|
80
|
+
max-height: 600px
|
|
81
|
+
max-width: 100%
|
|
82
|
+
min-height: 120px
|
|
83
|
+
min-width: 100%
|
|
84
|
+
padding: 10px
|
|
85
|
+
resize: vertical
|
|
86
|
+
|
|
87
|
+
%control-with-element
|
|
88
|
+
cursor: pointer
|
|
89
|
+
display: inline-block
|
|
90
|
+
line-height: 16px
|
|
91
|
+
padding-left: 18px
|
|
92
|
+
position: relative
|
|
93
|
+
vertical-align: top
|
|
94
|
+
input
|
|
95
|
+
+control
|
|
96
|
+
border-radius: 1px
|
|
97
|
+
box-shadow: inset 0 1px 1px rgba(black, 0.1)
|
|
98
|
+
cursor: pointer
|
|
99
|
+
float: left
|
|
100
|
+
height: 14px
|
|
101
|
+
left: 0
|
|
102
|
+
outline: none
|
|
103
|
+
padding: 0
|
|
104
|
+
position: absolute
|
|
105
|
+
top: 1px
|
|
106
|
+
width: 14px
|
|
107
|
+
&:after
|
|
108
|
+
+arrow($control-active-background-invert)
|
|
109
|
+
height: 4px
|
|
110
|
+
left: 3px
|
|
111
|
+
opacity: 0
|
|
112
|
+
position: absolute
|
|
113
|
+
top: 3px
|
|
114
|
+
transform: rotate(-45deg) scale(1)
|
|
115
|
+
&:checked
|
|
116
|
+
background: $control-active-background
|
|
117
|
+
border-color: $control-active-background
|
|
118
|
+
box-shadow: none
|
|
119
|
+
&:after
|
|
120
|
+
opacity: 1
|
|
121
|
+
&:hover
|
|
122
|
+
color: $control-hover
|
|
123
|
+
input
|
|
124
|
+
border-color: $control-hover-border
|
|
125
|
+
&:checked
|
|
126
|
+
border-color: $control-active-border
|
|
127
|
+
&.is-disabled
|
|
128
|
+
&,
|
|
129
|
+
&:hover
|
|
130
|
+
color: $text-light
|
|
131
|
+
|
|
132
|
+
.checkbox
|
|
133
|
+
@extend %control-with-element
|
|
134
|
+
|
|
135
|
+
.radio
|
|
136
|
+
@extend %control-with-element
|
|
137
|
+
& + .radio
|
|
138
|
+
margin-left: 10px
|
|
139
|
+
input
|
|
140
|
+
border-radius: 8px
|
|
141
|
+
&:after
|
|
142
|
+
background: $link-invert
|
|
143
|
+
border: 0
|
|
144
|
+
border-radius: 2px
|
|
145
|
+
left: 4px
|
|
146
|
+
top: 4px
|
|
147
|
+
transform: none
|
|
148
|
+
width: 4px
|
|
149
|
+
|
|
150
|
+
.select
|
|
151
|
+
display: inline-block
|
|
152
|
+
height: 32px
|
|
153
|
+
position: relative
|
|
154
|
+
vertical-align: top
|
|
155
|
+
select
|
|
156
|
+
+control
|
|
157
|
+
cursor: pointer
|
|
158
|
+
display: block
|
|
159
|
+
outline: none
|
|
160
|
+
padding-right: 36px
|
|
161
|
+
&:hover
|
|
162
|
+
border-color: $control-hover-border
|
|
163
|
+
&:after
|
|
164
|
+
+arrow($link)
|
|
165
|
+
margin-top: -6px
|
|
166
|
+
right: 16px
|
|
167
|
+
top: 50%
|
|
168
|
+
&:hover
|
|
169
|
+
&:after
|
|
170
|
+
border-color: $link-hover
|
|
171
|
+
|
|
172
|
+
.control
|
|
173
|
+
position: relative
|
|
174
|
+
text-align: left
|
|
175
|
+
&.is-loading
|
|
176
|
+
&:after
|
|
177
|
+
@extend .loader
|
|
178
|
+
position: absolute !important
|
|
179
|
+
right: 8px
|
|
180
|
+
top: 8px
|
|
181
|
+
&:not(:last-child)
|
|
182
|
+
margin-bottom: 10px
|
|
183
|
+
&.is-withicon
|
|
184
|
+
.fa
|
|
185
|
+
+fa(14px, 20px)
|
|
186
|
+
color: $text-light
|
|
187
|
+
left: 6px
|
|
188
|
+
pointer-events: none
|
|
189
|
+
position: absolute
|
|
190
|
+
top: 6px
|
|
191
|
+
z-index: 1
|
|
192
|
+
.input
|
|
193
|
+
padding-left: 32px
|
|
194
|
+
&:focus + .fa
|
|
195
|
+
color: $control-active
|
|
196
|
+
&.is-horizontal
|
|
197
|
+
display: flex
|
|
198
|
+
& > .button,
|
|
199
|
+
& > .input,
|
|
200
|
+
& > .select
|
|
201
|
+
&:not(:last-child)
|
|
202
|
+
margin-right: 10px
|
|
203
|
+
& > .input
|
|
204
|
+
flex: 1
|
|
205
|
+
&.is-grouped
|
|
206
|
+
display: flex
|
|
207
|
+
.input,
|
|
208
|
+
.button,
|
|
209
|
+
.select
|
|
210
|
+
border-radius: 0
|
|
211
|
+
margin-right: -1px
|
|
212
|
+
&:hover
|
|
213
|
+
z-index: 2
|
|
214
|
+
&:active,
|
|
215
|
+
&:focus
|
|
216
|
+
z-index: 3
|
|
217
|
+
&:first-child
|
|
218
|
+
border-radius: $radius 0 0 $radius
|
|
219
|
+
select
|
|
220
|
+
border-radius: $radius 0 0 $radius
|
|
221
|
+
&:last-child
|
|
222
|
+
border-radius: 0 $radius $radius 0
|
|
223
|
+
&.is-centered
|
|
224
|
+
justify-content: center
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
@charset "utf-8"
|
|
2
|
+
|
|
3
|
+
@import controls
|
|
4
|
+
@import buttons
|
|
5
|
+
@import titles
|
|
6
|
+
@import messages
|
|
7
|
+
@import notifications
|
|
8
|
+
|
|
9
|
+
.highlight
|
|
10
|
+
font-size: 12px
|
|
11
|
+
font-weight: normal
|
|
12
|
+
max-width: 100%
|
|
13
|
+
overflow: hidden
|
|
14
|
+
padding: 0
|
|
15
|
+
&:not(:last-child)
|
|
16
|
+
margin-bottom: 20px
|
|
17
|
+
pre
|
|
18
|
+
overflow: auto
|
|
19
|
+
max-width: 100%
|
|
20
|
+
|
|
21
|
+
.delete
|
|
22
|
+
background: rgba(black, 0.2)
|
|
23
|
+
border-radius: 290486px
|
|
24
|
+
cursor: pointer
|
|
25
|
+
display: inline-block
|
|
26
|
+
height: 24px
|
|
27
|
+
position: relative
|
|
28
|
+
vertical-align: top
|
|
29
|
+
width: 24px
|
|
30
|
+
&:before,
|
|
31
|
+
&:after
|
|
32
|
+
background: white
|
|
33
|
+
content: ""
|
|
34
|
+
display: block
|
|
35
|
+
height: 2px
|
|
36
|
+
left: 6px
|
|
37
|
+
position: absolute
|
|
38
|
+
top: 11px
|
|
39
|
+
width: 12px
|
|
40
|
+
&:before
|
|
41
|
+
transform: rotate(45deg)
|
|
42
|
+
&:after
|
|
43
|
+
transform: rotate(-45deg)
|
|
44
|
+
&:hover
|
|
45
|
+
background: rgba(black, 0.5)
|
|
46
|
+
&.is-small
|
|
47
|
+
height: 16px
|
|
48
|
+
width: 16px
|
|
49
|
+
&:before,
|
|
50
|
+
&:after
|
|
51
|
+
left: 4px
|
|
52
|
+
top: 7px
|
|
53
|
+
width: 8px
|
|
54
|
+
|
|
55
|
+
.icon
|
|
56
|
+
+fa(21px, 24px)
|
|
57
|
+
.fa
|
|
58
|
+
font-size: inherit
|
|
59
|
+
line-height: inherit
|
|
60
|
+
&.is-small
|
|
61
|
+
+fa(14px, 20px)
|
|
62
|
+
&.is-medium
|
|
63
|
+
+fa(28px, 32px)
|
|
64
|
+
&.is-large
|
|
65
|
+
+fa(42px, 48px)
|
|
66
|
+
|
|
67
|
+
.hamburger
|
|
68
|
+
cursor: pointer
|
|
69
|
+
display: block
|
|
70
|
+
height: $header-height
|
|
71
|
+
padding: 19px 17px
|
|
72
|
+
position: relative
|
|
73
|
+
width: $header-height
|
|
74
|
+
span
|
|
75
|
+
background: $text
|
|
76
|
+
display: block
|
|
77
|
+
height: 1px
|
|
78
|
+
left: 17px
|
|
79
|
+
position: absolute
|
|
80
|
+
transition: none $speed $easing
|
|
81
|
+
transition-property: background, left, opacity, transform
|
|
82
|
+
width: 15px
|
|
83
|
+
&:nth-child(1)
|
|
84
|
+
top: 19px
|
|
85
|
+
&:nth-child(2)
|
|
86
|
+
top: 24px
|
|
87
|
+
&:nth-child(3)
|
|
88
|
+
bottom: 20px
|
|
89
|
+
&:hover
|
|
90
|
+
background: $background
|
|
91
|
+
&.is-active
|
|
92
|
+
span
|
|
93
|
+
background: $link
|
|
94
|
+
&:nth-child(1)
|
|
95
|
+
left: 20px
|
|
96
|
+
transform: rotate(45deg)
|
|
97
|
+
transform-origin: left top
|
|
98
|
+
&:nth-child(2)
|
|
99
|
+
opacity: 0
|
|
100
|
+
&:nth-child(3)
|
|
101
|
+
left: 20px
|
|
102
|
+
transform: rotate(-45deg)
|
|
103
|
+
transform-origin: left bottom
|
|
104
|
+
|
|
105
|
+
.heading
|
|
106
|
+
display: block
|
|
107
|
+
font-size: 11px
|
|
108
|
+
letter-spacing: 1px
|
|
109
|
+
margin-bottom: 5px
|
|
110
|
+
text-transform: uppercase
|
|
111
|
+
|
|
112
|
+
.loader
|
|
113
|
+
animation: spin-around 500ms infinite linear
|
|
114
|
+
border: 2px solid $border
|
|
115
|
+
border-radius: 290486px
|
|
116
|
+
border-right-color: transparent
|
|
117
|
+
border-top-color: transparent
|
|
118
|
+
content: ""
|
|
119
|
+
display: block
|
|
120
|
+
height: 16px
|
|
121
|
+
position: relative
|
|
122
|
+
width: 16px
|
|
123
|
+
|
|
124
|
+
.number
|
|
125
|
+
background: $background
|
|
126
|
+
border-radius: 290486px
|
|
127
|
+
display: inline-block
|
|
128
|
+
font-size: $size-medium
|
|
129
|
+
vertical-align: top
|
|
130
|
+
|
|
131
|
+
.tag
|
|
132
|
+
background: $background
|
|
133
|
+
border-radius: $radius
|
|
134
|
+
box-shadow: inset 0 -1px 0 rgba(black, 0.1)
|
|
135
|
+
color: $text
|
|
136
|
+
display: inline-block
|
|
137
|
+
font-size: 12px
|
|
138
|
+
height: 24px
|
|
139
|
+
line-height: 16px
|
|
140
|
+
padding: 4px 10px
|
|
141
|
+
vertical-align: top
|
|
142
|
+
white-space: nowrap
|
|
143
|
+
&.is-dark
|
|
144
|
+
background: $text
|
|
145
|
+
color: $text-invert
|
|
146
|
+
&.is-rounded
|
|
147
|
+
border-radius: 290486px
|
|
148
|
+
&.is-medium
|
|
149
|
+
box-shadow: inset 0 -2px 0 rgba(black, 0.1)
|
|
150
|
+
font-size: $size-normal
|
|
151
|
+
height: 32px
|
|
152
|
+
padding: 7px 14px 9px
|
|
153
|
+
&:not(.is-large)
|
|
154
|
+
.delete
|
|
155
|
+
@extend .delete.is-small
|
|
156
|
+
margin-left: 4px
|
|
157
|
+
margin-right: -6px
|
|
158
|
+
&.is-large
|
|
159
|
+
box-shadow: inset 0 -2px 0 rgba(black, 0.1)
|
|
160
|
+
font-size: $size-5
|
|
161
|
+
height: 40px
|
|
162
|
+
line-height: 24px
|
|
163
|
+
padding: 7px 18px 9px
|
|
164
|
+
.delete
|
|
165
|
+
margin-left: 4px
|
|
166
|
+
margin-right: -8px
|
|
167
|
+
@each $name, $pair in $colors
|
|
168
|
+
$color: nth($pair, 1)
|
|
169
|
+
$color-invert: nth($pair, 2)
|
|
170
|
+
&.is-#{$name}
|
|
171
|
+
background: $color
|
|
172
|
+
color: $color-invert
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
.message-body
|
|
2
|
+
border: 1px solid $border
|
|
3
|
+
border-radius: $radius
|
|
4
|
+
padding: 12px 15px
|
|
5
|
+
strong
|
|
6
|
+
color: inherit
|
|
7
|
+
|
|
8
|
+
.message-header
|
|
9
|
+
background: $text
|
|
10
|
+
border-radius: $radius $radius 0 0
|
|
11
|
+
color: $text-invert
|
|
12
|
+
font-size: 10px
|
|
13
|
+
font-weight: bold
|
|
14
|
+
letter-spacing: 1px
|
|
15
|
+
padding: 3px 8px
|
|
16
|
+
text-transform: uppercase
|
|
17
|
+
& + .message-body
|
|
18
|
+
border-radius: 0 0 $radius $radius
|
|
19
|
+
border-top: none
|
|
20
|
+
|
|
21
|
+
.message
|
|
22
|
+
background: $background
|
|
23
|
+
border-radius: $radius
|
|
24
|
+
&:not(:last-child)
|
|
25
|
+
margin-bottom: 20px
|
|
26
|
+
@each $name, $pair in $colors
|
|
27
|
+
$color: nth($pair, 1)
|
|
28
|
+
$color-invert: nth($pair, 2)
|
|
29
|
+
$lightning: (100% - lightness($color)) - 4%
|
|
30
|
+
$darkness: max(lightness($color) - 10%, lightness($color))
|
|
31
|
+
&.is-#{$name}
|
|
32
|
+
background: lighten($color, $lightning)
|
|
33
|
+
.message-header
|
|
34
|
+
background: $color
|
|
35
|
+
color: $color-invert
|
|
36
|
+
.message-body
|
|
37
|
+
border-color: $color
|
|
38
|
+
@if (colorLuminance($color) > 0.8)
|
|
39
|
+
color: desaturate(lighten(darken($color, 100%), 40%), 40%)
|
|
40
|
+
@else
|
|
41
|
+
color: desaturate(lighten(darken($color, 100%), 50%), 30%)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.notification
|
|
2
|
+
+clearfix
|
|
3
|
+
background: $background
|
|
4
|
+
border-radius: $radius
|
|
5
|
+
padding: 16px 20px
|
|
6
|
+
position: relative
|
|
7
|
+
&:not(:last-child)
|
|
8
|
+
margin-bottom: 20px
|
|
9
|
+
.title
|
|
10
|
+
color: inherit
|
|
11
|
+
@each $name, $pair in $colors
|
|
12
|
+
$color: nth($pair, 1)
|
|
13
|
+
$color-invert: nth($pair, 2)
|
|
14
|
+
&.is-#{$name}
|
|
15
|
+
background: $color
|
|
16
|
+
color: $color-invert
|
|
17
|
+
.delete
|
|
18
|
+
border-radius: 0 $radius
|
|
19
|
+
float: right
|
|
20
|
+
margin: -16px -20px 0 20px
|