forked from madrobby/zepto
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
489 lines (473 loc) · 13.3 KB
/
style.css
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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
/* yanked from <http://underscorejs.org> */
body {
font-size: 14px;
line-height: 22px;
background: #fff;
color: #000;
font-weight: 300;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
strong, b {
font-weight: 500;
}
.interface {
font-weight: 300;
font-family: "Helvetica Neue", Helvetica Arial, sans-serif;
}
#tour {
max-width: 100%;
width: 512px;
overflow-x: hidden;
position: relative;
-webkit-transform: translateZ(0);
}
#tour img {
max-width: 500%;
}
#sidebar {
background: #f3eaff;
position: fixed;
top: 0; left: 0; bottom: 0;
width: 200px;
overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
padding: 15px 0 30px 30px;
border-right: 1px solid #d4b4ff;
background: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(0.92, transparent), color-stop(0.9201, rgba(212, 180, 255, 0.0)), to(rgba(212, 180, 255, 0.3))), #f3eaff;
}
a.toc_title, a.toc_title:visited {
display: block;
color: black;
font-weight: 500;
margin-top: 15px;
text-decoration: none;
}
#sidebar .version {
font-size: 10px;
font-weight: normal;
}
ul.downloads {
padding-left: 0;
list-style-type: none;
}
ul.downloads li {
margin: 10px 0;
}
ul.toc_section {
font-size: 12px;
line-height: 15px;
margin: 5px 0 0 0;
padding-left: 0px;
list-style-type: none;
}
.toc_section li {
margin: 0 0 3px 0;
}
.toc_section li a {
text-decoration: none;
color: black;
}
.container {
max-width: 690px;
margin: 30px 0 50px 260px;
}
p {
margin: 20px 0;
}
a, a:visited {
color: #724dff;
}
a:active, a:hover {
color: #6180f4;
}
h1, h2, h3, h4, h5, h6 {
margin: 0;
padding-top: 1.5em;
line-height: 1.1;
font-weight: 500;
}
h1:first-child {
margin-top: 0;
padding-top: 0;
font-size: 2.2em;
font-weight: 200;
}
img[src^=logo] { max-width: 100% }
h2 {
font-size: 20px;
padding-bottom: .5em;
}
h4 { padding-top: .5em }
#sidebar hr {
margin: 25px 0 0 0;
}
hr {
height: 1px;
border: 0;
padding: 0;
margin: 35px 0 0 0;
background: rgba(0,0,0,0.20);
background: -moz-linear-gradient(left center, rgba(165, 69, 243, 0.0) rgba(165, 69, 243, 0.33) 50%, rgba(165, 69, 243, 0.0));
background: -webkit-gradient(linear, left top, right top, from(rgba(165, 69, 243, 0.0)), color-stop(0.5, rgba(165, 69, 243, 0.33)), to(rgba(165, 69, 243, 0.0)));
}
ul {
list-style-type: circle;
padding: 0 0 0 20px;
}
li + li {
margin-top: .3em;
}
li > ul { margin-top: .3em }
li li { margin-top: 0 }
code, pre, tt {
font: normal 12px/18px Monaco, Consolas, "Lucida Console", monospace;
}
pre {
background: #f8f8ff;
border: 2px solid #eee;
padding: 10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
overflow: auto;
}
pre.signature {
border: 0;
padding: 0;
border-radius: 0;
background: 0;
overflow: visible;
white-space: pre-wrap;
}
pre.signature code {
background-color: transparent !important;
}
pre.signature .return {
color: gray;
}
code {
background-color: #f8f8ff;
padding: 1px 3px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
pre code {
padding: 0;
}
p > code, li > code {
border: 1px solid #eee;
}
tt {
padding: 0px 3px;
background: #fff;
border: 1px solid #ddd;
zoom: 1;
}
article {
margin: 0 0 20px 0;
}
article.method h3 { margin-bottom: .2em; }
article.method h3 .emoji { display: none }
.emoji-enabled article.method h3 .emoji {
display: inline;
font-weight: normal;
font-size: 28px;
cursor: default;
}
article.method p { margin: .5em 0 }
article.method .warning, article.method .version {
margin: 0;
font: bold 11px Arial;
color: #770000;
}
article.method .warning a {
color: #770000;
}
article.method .version {
background: #ccf;
color: #000;
padding: 1px 3px;
margin: 0 0 0 5px;
font-weight: normal;
border-radius: 3px;
cursor: default;
}
article.changelog h3 small { font-weight: normal }
a.download {
-webkit-user-select: none;
background: #fff;
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,32,0.01)), to(rgba(0,0,32,0.08)));
background-image: -moz-linear-gradient(rgba(0,0,32,0.01), rgba(0,0,32,0.08));
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
color: #202028;
padding: 4px 10px;
border: 1px solid #a8a8af;
text-decoration: none !important;
text-shadow: 0 1px 1px rgba(255,255,255,0.9);
font-size: 14px;
line-height: 19px;
font-family: helvetica, arial, sans-serif;
display: inline-block;
cursor: pointer;
font-weight: bold;
}
a.download:hover {
color: #202028;
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,32,0.01)), to(rgba(0,0,32,0.16)));
background-image: -moz-linear-gradient(rgba(0,0,32,0.01), rgba(0,0,32,0.16));
border-color: #707078;
}
a.download:active {
background-color: rgba(0,0,32,0.05);
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,32,0.16)), to(rgba(0,0,32,0.01)));
background-image: -moz-linear-gradient(rgba(0,0,32,0.16), rgba(0,0,32,0.01));
box-shadow: inset 0 2px 2px rgba(0,0,0,0.1);
}
p.important {
padding: 4px 10px;
background: #ffd;
color: #000;
}
p.compat {
padding: 4px 10px;
background: #ffd;
color: #000;
}
p.compat::before {
content: '💔';
}
p.compat a {
font-weight: bold;
color: #000 !important;
}
table {
margin: 1em 0;
border-collapse: collapse;
}
table td, table th {
border: 1px solid silver;
padding: .2em .5em;
}
table td:nth-child(2) {
text-align: center;
color: darkgreen;
}
@media only screen and (device-width: 768px) {
/* this solves scrolling issues and taps not being recognized specifically on ipad */
.container {
-webkit-overflow-scrolling: touch;
position: fixed;
overflow: auto;
top: 0;
right: 0;
bottom: 0;
padding: 20px 30px 20px 260px;
box-sizing: border-box;
margin: 0;
max-width: none;
width: 100%;
z-index: -10;
}
#tour { -webkit-overflow-scrolling: auto }
img[src^=logo] { max-width: 460px }
#sidebar {
z-index: 10;
}
ul.toc_section li {
font-size: 16px;
line-height: 22px;
}
pre { white-space: pre-wrap }
}
@media only screen and (max-width: 480px) {
html {
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
}
body { margin: 0; padding: 0 }
p { margin: .5em 0 }
h1, h2, h3, h4, h5, h6 { padding-top: .5em }
#sidebar {
display: none;
-ms-box-sizing: border-box;
box-sizing: border-box;
padding: 12px 16px 30px;
width: 140px;
height: 100%;
font-family: helvetica, sans-serif;
left: auto;
right: 0px;
-webkit-transform: translateX(140px);
-webkit-transition: -webkit-transform 0.2s ease-out;
-moz-transform: translateX(140px);
transform: translateX(140px);
z-index: 1000;
border-right: none;
border-left: 1px solid #d4b4ff;
background: -webkit-gradient(linear, right top, left top, from(transparent), color-stop(0.92, transparent), color-stop(0.9201, rgba(212, 180, 255, 0.0)), to(rgba(212, 180, 255, 0.3))), #f3eaff;
background: -moz-gradient(linear, right top, left top, from(transparent), color-stop(0.92, transparent), color-stop(0.9201, rgba(212, 180, 255, 0.0)), to(rgba(212, 180, 255, 0.3))), #f3eaff;
background: -ms-gradient(linear, right top, left top, from(transparent), color-stop(0.92, transparent), color-stop(0.9201, rgba(212, 180, 255, 0.0)), to(rgba(212, 180, 255, 0.3))), #f3eaff;
}
.navigating #sidebar {
-webkit-transform: translateX(0);
-moz-transform: translateX(0);
transform: translateX(0);
}
#menu_icon {
position: fixed;
top: 5px;
right: 5px;
font-size: 25px;
line-height: 25px;
text-align: center;
border-radius: 3px;
background: #b01df9;
color: #fff;
text-shadow: 0px -1px rgba(0,0,0,0.5);
padding: 3px 4px;
width: 34px;
height: 34px;
box-sizing: border-box;
z-index: 10000;
-webkit-transform: translateX(0px);
-webkit-transition: -webkit-transform 0.2s ease-out;
-moz-transform: translateX(0px);
-moz-transition: -moz-transform 0.2s ease-out;
transform: translateX(0px);
transition: transform 0.2s ease-out;
}
.navigating #menu_icon {
-webkit-transform: translateX(-140px);
-moz-transform: translateX(-140px);
transform: translateX(-140px);
}
a.toc_title { margin-top: .2em }
ul.toc_section {
font-size: 13px; line-height: 18px
}
.container {
margin: 12px;
max-width: none;
padding: 0;
-webkit-backface-visibility: hidden;
-webkit-perspective: 1000;
-webkit-transform: translateX(0px);
-webkit-transition: -webkit-transform 0.2s ease-out;
-moz-transform: translateX(0px);
-moz-transition: -moz-transform 0.2s ease-out;
transform: translateX(0px);
transition: transform 0.2s ease-out;
}
.navigating .container {
-webkit-transform: translateX(-140px);
-moz-transform: translateX(-140px);
transform: translateX(-140px);
}
img[src^=logo] { max-width: 250px }
article {
margin-bottom: 12px;
}
article.method h3 { padding-top: 10px }
article.method p { margin: .2em 0 }
article.method pre { margin: 0; white-space: pre-wrap }
pre { padding: 2px 8px }
}
@media only screen and (max-width: 568px) and (orientation: landscape) {
html { -webkit-text-size-adjust: 100% }
#menu_icon {
display: none;
}
#sidebar {
width: 135px;
padding: 0 15px;
}
.container {
max-width: 568px;
margin: 30px 10px 50px 175px;
}
ul.toc_section li {
font-size: 15px;
line-height: 20px
}
}
@media only screen and (min-width: 569px) and (max-width: 767px) {
html { -webkit-text-size-adjust: 100% }
#sidebar {
width: 135px;
padding: 0 15px;
}
.container {
max-width: 100%;
margin: 0px 10px 50px 175px;
}
ul.toc_section li {
font-size: 15px;
line-height: 20px
}
}
/* syntax */
.hll { background-color: #ffffdd }
.c { color: #888888 } /* Comment */
.err { color: #a61717; background-color: #e3d2d2 } /* Error */
.k { color: #008800; font-weight: bold } /* Keyword */
.cm { color: #888888 } /* Comment.Multiline */
.cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.c1 { color: #888888 } /* Comment.Single */
.cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.ge { font-style: italic } /* Generic.Emph */
.gr { color: #aa0000 } /* Generic.Error */
.gh { color: #303030 } /* Generic.Heading */
.gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.go { color: #888888 } /* Generic.Output */
.gp { color: #555555 } /* Generic.Prompt */
.gs { font-weight: bold } /* Generic.Strong */
.gu { color: #606060 } /* Generic.Subheading */
.gt { color: #aa0000 } /* Generic.Traceback */
.kc { color: #008800; font-weight: bold } /* Keyword.Constant */
.kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
.kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
.kp { color: #008800 } /* Keyword.Pseudo */
.kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
.kt { color: #888888; font-weight: bold } /* Keyword.Type */
.m { color: #0000DD; font-weight: bold } /* Literal.Number */
.s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
.na { color: #336699 } /* Name.Attribute */
.nb { color: #003388 } /* Name.Builtin */
.nc { color: #bb0066; font-weight: bold } /* Name.Class */
.no { color: #003366; font-weight: bold } /* Name.Constant */
.nd { color: #555555 } /* Name.Decorator */
.ne { color: #bb0066; font-weight: bold } /* Name.Exception */
.nf { color: #0066bb; font-weight: bold } /* Name.Function */
.nl { color: #336699; font-style: italic } /* Name.Label */
.nn { color: #bb0066; font-weight: bold } /* Name.Namespace */
.py { color: #336699; font-weight: bold } /* Name.Property */
.nt { color: #bb0066; font-weight: bold } /* Name.Tag */
.nv { color: #336699 } /* Name.Variable */
.ow { color: #008800 } /* Operator.Word */
.w { color: #bbbbbb } /* Text.Whitespace */
.mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */
.mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */
.mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
.mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */
.sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */
.sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */
.sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */
.s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */
.se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */
.sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */
.si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */
.sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */
.sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */
.s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */
.ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */
.bp { color: #003388 } /* Name.Builtin.Pseudo */
.vc { color: #336699 } /* Name.Variable.Class */
.vg { color: #dd7700 } /* Name.Variable.Global */
.vi { color: #3333bb } /* Name.Variable.Instance */
.il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
.hll *[class^=s] { background-color: inherit }