-
Notifications
You must be signed in to change notification settings - Fork 2
/
lib.styl
327 lines (277 loc) · 5.04 KB
/
lib.styl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
@import 'vars'
@import 'basic'
.spc1
height: 0
&:after
content: " "
#debug
&:after
content: "DEBUG"
display: block
position: fixed
top: 10px
left: 10px
z-index: 99999
background: #f00
width: 48px
height: 19px
font-size: 10px
color: #fff
padding: 4px 7px
opacity: 0.8
box-shadow: 0 1px 2px rgba(0,0,0,0.3)
border-radius: 3px
.spc-right
margin-right: 5px
.sep
border-top: 1px solid rgba(0,0,0,0.2)
width: 100%
margin: 7px auto
height: 0
.sep.huge-gap
margin: 21px auto
.sep.dashed
border-top-style: dashed
.sep.nogap
margin: 0 auto
.sep.light
border-top: 1px solid rgba(0,0,0,0.1)
.btn.has-tips, .has-tips
position: relative
overflow: visible
.inner
width: 100%
height: 100%
overflow: hidden
position: absolute
top: 0
left: 0
.hover-tip
display: block
opacity: 0
z-index: -1
transition(all 0.5s linear)
.btn.has-tips:hover, .has-tips:hover
.hover-tip
display: block
opacity: 1
z-index: 10
.btn-upload
position: relative
overflow: hidden
input
position: absolute
width: 100%
height: 100%
z-index: 10
top: 0
left: 0
opacity: 0.005
cursor: pointer
.loader
display: none
opacity: 0
transition(all 0.5s linear)
&.active
display: block
opacity: 1
.loader.fade
display: block
svg
display: block
no-selection()
.no-select
no-selection()
.clickable
cursor: pointer!important
+keyframes(bk-drift)
0%
background-position: 0 0
50%
background-position: 1440px 0
100%
background-position: 0 0
hr
border-top: 1px solid rgba(200,200,200,0.8)
h1,h2,h3,h4,h5,h6
font-weight: bold
&.tag
display: inline-block
clear: both
padding: 5px 15px 7px 50px
border-radius: 10px 4px 4px 10px
min-width: 200px
text-align: right
margin-left: -10px
margin-right: 10px
border-left: 10px solid #520
background: #920
color: #fff
text-shadow: 0 2px 2px rgba(0,0,0,0.4)
.tag-center
text-align: center
h1,h2,h3,h4,h5,h6
&.tag
text-align: center
padding-left: 25px
padding-right: 25px
border-radius: 10px
border-right: 10px solid #520
.light
font-weight: normal
.code
font-family: 'courier new'
overflow-x: scroll
padding: 10px
background: rgba(0,0,0,0.1)
white-space: pre
margin: 15px auto
.hidden-xs-inline
display: inline
@media (max-width: 480px)
display: none!important
.shown-xs-inline
display: none
@media (max-width: 480px)
display: inline
.hidden-640-inline
display: inline
@media (max-width: 640px)
display: none!important
.hidden-800-inline
display: inline
@media (max-width: 800px)
display: none
.grayed
cursor: default
color: #999
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak
display: none !important
.hover-tip
background: #000
border-radius: 3px
position: absolute
left: 50%
transform: translateX(-50%)
min-width: 100px
color: #fff
padding: 5px 10px
text-align: center
z-index: index(order, 'hover-tip')
font-size: 13px
a
color: #73baf7
&:before
width: 10px
height: 10px
position: absolute
top: -5px
left: 50%
margin-left: -7px
background: #000
display: block
content: " "
transform(rotate(45deg))
.hover-tip.right
&:before
top: 50%
left: 2px
margin-top: -5px
margin-left: -5px
.hover-tip.bottom
top: 100%
margin-top: 14px
.hover-tip.top
top: auto
bottom: 100%
&:before
top: auto
bottom: -5px
.hover-tip.as-tag
padding: 2px
display: inline-block
left: 10px
transform: none
width: 80%
&:before
display: none
.hover-tip.as-tag.top
border-radius: 5px 5px 0 0
.hover-tip.danger
background: color.danger
&:before
background: color.danger
.hover-tip.warning
background: color.warning
&:before
background: color.warning
.hover-tip.success
background: color.success
&:before
background: color.success
.hover-tip.info
background: color.info
&:before
background: color.info
.hover-tip.primary
background: color.primary
&:before
background: color.primary
.rel
position: relative
.abs
position: absolute
.inline
display: inline!important
.inline-block
display: inline-block!important
.block
display: block!important
.flexbox
flexbox()
flex-wrap(wrap)
.flexbox.nowrap
flex-wrap(nowrap)
.flex
flex(1 1 auto)
.flex-end
&:after
content: " "
display: inline-block
flex(999 1 auto!important)
.red
color: color.red
.green
color: color.green
.blue
color: color.blue
.ellipsis
ellipsis()
.block1024
max-width: 1024px
width: 95%
margin: auto
.block800
max-width: 800px
width: 95%
margin: auto
.centered
centered()
.chunk
padding: 10px 10px
box-shadow: 0 1px 3px rgba(0,0,0,0.05)
border-radius: 3px
border: 1px solid #ddd
.blurred
filter: blur(10px)
transition: filter 1s linear
.clearfix
clear: both
.btn .fa.check-icon
color: #999
&:before
content: "\f10c"
.btn.active .fa.check-icon
color: #15b73e
&:before
content: "\f00c"