bulma-sass 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +29 -0
- data/Rakefile +2 -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 +36 -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 +84 -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 +96 -0
- data/app/assets/stylesheets/bulma/elements/controls.sass +213 -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 +149 -0
- data/app/assets/stylesheets/bulma/layout/hero.sass +143 -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-sass.gemspec +25 -0
- data/lib/bulma-sass.rb +7 -0
- data/lib/bulma/sass/engine.rb +6 -0
- data/lib/bulma/sass/version.rb +5 -0
- metadata +113 -0
@@ -0,0 +1,96 @@
|
|
1
|
+
=button-small
|
2
|
+
border-radius: 2px
|
3
|
+
font-size: 11px
|
4
|
+
height: 24px
|
5
|
+
line-height: 16px
|
6
|
+
padding: 3px 6px
|
7
|
+
=button-medium
|
8
|
+
font-size: 18px
|
9
|
+
height: 40px
|
10
|
+
padding: 7px 14px
|
11
|
+
=button-large
|
12
|
+
font-size: 22px
|
13
|
+
height: 48px
|
14
|
+
padding: 11px 20px
|
15
|
+
|
16
|
+
.button
|
17
|
+
+control
|
18
|
+
padding: 3px 10px
|
19
|
+
strong
|
20
|
+
color: inherit
|
21
|
+
small
|
22
|
+
display: block
|
23
|
+
font-size: $size-small
|
24
|
+
line-height: 1
|
25
|
+
margin-top: 5px
|
26
|
+
.fa
|
27
|
+
line-height: 24px
|
28
|
+
margin: 0 -2px
|
29
|
+
width: 24px
|
30
|
+
&:hover
|
31
|
+
color: $control-hover
|
32
|
+
&:active
|
33
|
+
box-shadow: inset 0 1px 2px rgba(black, 0.2)
|
34
|
+
@each $name, $pair in $colors
|
35
|
+
$color: nth($pair, 1)
|
36
|
+
$color-invert: nth($pair, 2)
|
37
|
+
&.is-#{$name}
|
38
|
+
background: $color
|
39
|
+
border-color: transparent
|
40
|
+
color: $color-invert
|
41
|
+
&:hover,
|
42
|
+
&:focus
|
43
|
+
background: darken($color, 10%)
|
44
|
+
border-color: transparent
|
45
|
+
color: $color-invert
|
46
|
+
&:active
|
47
|
+
border-color: transparent
|
48
|
+
&.is-outlined
|
49
|
+
background: transparent
|
50
|
+
border-color: $color
|
51
|
+
color: $color
|
52
|
+
&:hover,
|
53
|
+
&:focus
|
54
|
+
border-color: darken($color, 10%)
|
55
|
+
color: darken($color, 10%)
|
56
|
+
&.is-inverted
|
57
|
+
background: $color-invert
|
58
|
+
color: $color
|
59
|
+
&:hover
|
60
|
+
background: darken($color-invert, 5%)
|
61
|
+
&.is-outlined
|
62
|
+
background-color: transparent
|
63
|
+
border-color: $color-invert
|
64
|
+
color: $color-invert
|
65
|
+
&:hover
|
66
|
+
background: rgba(black, 0.05)
|
67
|
+
&.is-loading:after
|
68
|
+
border-color: transparent transparent $color-invert $color-invert !important
|
69
|
+
&.is-small
|
70
|
+
+button-small
|
71
|
+
&.is-medium
|
72
|
+
+button-medium
|
73
|
+
&.is-large
|
74
|
+
+button-large
|
75
|
+
&.is-flexible
|
76
|
+
height: auto
|
77
|
+
&.is-loading
|
78
|
+
color: transparent
|
79
|
+
pointer-events: none
|
80
|
+
&:after
|
81
|
+
@extend .loader
|
82
|
+
+center(16px)
|
83
|
+
position: absolute !important
|
84
|
+
&.is-disabled,
|
85
|
+
&[disabled]
|
86
|
+
opacity: 0.5
|
87
|
+
pointer-events: none
|
88
|
+
+tablet
|
89
|
+
small
|
90
|
+
color: $text
|
91
|
+
left: 0
|
92
|
+
margin-top: 10px
|
93
|
+
position: absolute
|
94
|
+
top: 100%
|
95
|
+
width: 100%
|
96
|
+
|
@@ -0,0 +1,213 @@
|
|
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-small
|
55
|
+
+control-small
|
56
|
+
&.is-medium
|
57
|
+
+control-medium
|
58
|
+
&.is-large
|
59
|
+
+control-large
|
60
|
+
&.is-fullwidth
|
61
|
+
display: block
|
62
|
+
width: 100%
|
63
|
+
&.is-inline
|
64
|
+
display: inline
|
65
|
+
width: auto
|
66
|
+
|
67
|
+
.textarea
|
68
|
+
@extend .input
|
69
|
+
line-height: 1.2
|
70
|
+
max-height: 600px
|
71
|
+
max-width: 100%
|
72
|
+
min-height: 120px
|
73
|
+
min-width: 100%
|
74
|
+
padding: 10px
|
75
|
+
resize: vertical
|
76
|
+
|
77
|
+
%control-with-element
|
78
|
+
cursor: pointer
|
79
|
+
display: inline-block
|
80
|
+
line-height: 16px
|
81
|
+
padding-left: 18px
|
82
|
+
position: relative
|
83
|
+
vertical-align: top
|
84
|
+
input
|
85
|
+
+control
|
86
|
+
border-radius: 1px
|
87
|
+
box-shadow: inset 0 1px 1px rgba(black, 0.1)
|
88
|
+
cursor: pointer
|
89
|
+
float: left
|
90
|
+
height: 14px
|
91
|
+
left: 0
|
92
|
+
outline: none
|
93
|
+
padding: 0
|
94
|
+
position: absolute
|
95
|
+
top: 1px
|
96
|
+
width: 14px
|
97
|
+
&:after
|
98
|
+
+arrow($control-active-background-invert)
|
99
|
+
height: 4px
|
100
|
+
left: 3px
|
101
|
+
opacity: 0
|
102
|
+
position: absolute
|
103
|
+
top: 3px
|
104
|
+
transform: rotate(-45deg) scale(1)
|
105
|
+
&:checked
|
106
|
+
background: $control-active-background
|
107
|
+
border-color: $control-active-background
|
108
|
+
box-shadow: none
|
109
|
+
&:after
|
110
|
+
opacity: 1
|
111
|
+
&:hover
|
112
|
+
color: $control-hover
|
113
|
+
input
|
114
|
+
border-color: $control-hover-border
|
115
|
+
&:checked
|
116
|
+
border-color: $control-active-border
|
117
|
+
&.is-disabled
|
118
|
+
&,
|
119
|
+
&:hover
|
120
|
+
color: $text-light
|
121
|
+
|
122
|
+
.checkbox
|
123
|
+
@extend %control-with-element
|
124
|
+
|
125
|
+
.radio
|
126
|
+
@extend %control-with-element
|
127
|
+
& + .radio
|
128
|
+
margin-left: 10px
|
129
|
+
input
|
130
|
+
border-radius: 8px
|
131
|
+
&:after
|
132
|
+
background: $link-invert
|
133
|
+
border: 0
|
134
|
+
border-radius: 2px
|
135
|
+
left: 4px
|
136
|
+
top: 4px
|
137
|
+
transform: none
|
138
|
+
width: 4px
|
139
|
+
|
140
|
+
.select
|
141
|
+
display: inline-block
|
142
|
+
height: 32px
|
143
|
+
position: relative
|
144
|
+
vertical-align: top
|
145
|
+
select
|
146
|
+
+control
|
147
|
+
cursor: pointer
|
148
|
+
display: block
|
149
|
+
outline: none
|
150
|
+
padding-right: 36px
|
151
|
+
&:hover
|
152
|
+
border-color: $control-hover-border
|
153
|
+
&:after
|
154
|
+
+arrow($link)
|
155
|
+
margin-top: -6px
|
156
|
+
right: 16px
|
157
|
+
top: 50%
|
158
|
+
&:hover
|
159
|
+
&:after
|
160
|
+
border-color: $link-hover
|
161
|
+
|
162
|
+
.control
|
163
|
+
position: relative
|
164
|
+
&.is-loading
|
165
|
+
&:after
|
166
|
+
@extend .loader
|
167
|
+
position: absolute !important
|
168
|
+
right: 8px
|
169
|
+
top: 8px
|
170
|
+
&:not(:last-child)
|
171
|
+
margin-bottom: 10px
|
172
|
+
&.is-withicon
|
173
|
+
.fa
|
174
|
+
+fa(14px, 20px)
|
175
|
+
color: $text-light
|
176
|
+
left: 6px
|
177
|
+
pointer-events: none
|
178
|
+
position: absolute
|
179
|
+
top: 6px
|
180
|
+
z-index: 1
|
181
|
+
.input
|
182
|
+
padding-left: 32px
|
183
|
+
&:focus + .fa
|
184
|
+
color: $control-active
|
185
|
+
&.is-horizontal
|
186
|
+
display: flex
|
187
|
+
& > .button,
|
188
|
+
& > .input,
|
189
|
+
& > .select
|
190
|
+
&:not(:last-child)
|
191
|
+
margin-right: 10px
|
192
|
+
& > .input
|
193
|
+
flex: 1
|
194
|
+
&.is-grouped
|
195
|
+
display: flex
|
196
|
+
.input,
|
197
|
+
.button,
|
198
|
+
.select
|
199
|
+
border-radius: 0
|
200
|
+
margin-right: -1px
|
201
|
+
&:hover
|
202
|
+
z-index: 2
|
203
|
+
&:active,
|
204
|
+
&:focus
|
205
|
+
z-index: 3
|
206
|
+
&:first-child
|
207
|
+
border-radius: $radius 0 0 $radius
|
208
|
+
select
|
209
|
+
border-radius: $radius 0 0 $radius
|
210
|
+
&:last-child
|
211
|
+
border-radius: 0 $radius $radius 0
|
212
|
+
&.is-centered
|
213
|
+
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
|