1 |
/* |
2 |
CrudeDoc CSS Style |
3 |
Copyright (c) 2015 - 2017 Christian Schoenebeck. All rights reserved. |
4 |
http://www.crudebyte.com |
5 |
*/ |
6 |
|
7 |
@import 'fontsbase.css'; |
8 |
@import 'jquery-ui.css'; |
9 |
|
10 |
html { |
11 |
font-family:CRDSans; |
12 |
font-weight:200; |
13 |
font-size:17px; |
14 |
line-height:1.2; |
15 |
background-color:#c1b5b5; |
16 |
} |
17 |
|
18 |
body { |
19 |
padding:0; |
20 |
margin:0; |
21 |
background-color:#cbc3c2; /* fallback (non CSS3 browsers) */ |
22 |
background: -webkit-linear-gradient(left, rgba(203,195,194,1.0), rgba(171,154,151,1.0)); /* For Safari 5.1 to 6.0 */ |
23 |
background: -o-linear-gradient(right, rgba(203,195,194,1.0), rgba(171,154,151,1.0)); /* For Opera 11.1 to 12.0 */ |
24 |
background: -moz-linear-gradient(right, rgba(203,195,194,1.0), rgba(171,154,151,1.0)); /* For Firefox 3.6 to 15 */ |
25 |
background: linear-gradient(to left, #cbc3c2, #bfb2b0); /* Standard syntax */ |
26 |
counter-reset:oli; |
27 |
counter-reset:codeline; |
28 |
-webkit-text-size-adjust:100%; |
29 |
} |
30 |
|
31 |
|
32 |
|
33 |
/* top most header strip */ |
34 |
|
35 |
.lslogo { |
36 |
position:fixed; top:2px; left:6px; |
37 |
border:none; |
38 |
} |
39 |
|
40 |
header a { |
41 |
color:#eaeaea; |
42 |
text-decoration:none; |
43 |
outline:none; |
44 |
border:0; |
45 |
} |
46 |
|
47 |
header { |
48 |
position:fixed; top:0px; |
49 |
z-index:4; |
50 |
display:table; |
51 |
background-color:#898989; |
52 |
color:#eaeaea; |
53 |
width:100%; |
54 |
padding: 6px 0px 6px 0px; |
55 |
font-size:18px; |
56 |
font-weight:200; |
57 |
vertical-align:middle; |
58 |
} |
59 |
|
60 |
header > div { |
61 |
display:table-cell; |
62 |
text-align:left; |
63 |
padding-left:39px; |
64 |
vertical-align:middle; |
65 |
} |
66 |
|
67 |
header > menu { |
68 |
display:table-cell; |
69 |
font-family:CRDHigh; |
70 |
font-weight:300; |
71 |
font-size:17px; |
72 |
text-align:right; |
73 |
vertical-align:middle; |
74 |
padding:0; margin:0; |
75 |
} |
76 |
|
77 |
header > menu a { |
78 |
padding-right:20px; |
79 |
text-shadow:none; |
80 |
-webkit-transition: text-shadow 0.9s, color 0.9s; /* Safari */ |
81 |
-ms-transition: text-shadow 0.9s, color 0.9s; |
82 |
-moz-transition: text-shadow 0.9s, color 0.9s; |
83 |
-o-transition: text-shadow 0.9s, color 0.9s; |
84 |
transition: text-shadow 0.9s linear, color 0.9s linear; |
85 |
} |
86 |
|
87 |
.no-touch header > menu a:hover, |
88 |
.touch header > menu a:focus, |
89 |
.touch header > menu a:active |
90 |
{ |
91 |
color:#ffffff; |
92 |
text-shadow: 0px 0px 13px #ff9999; |
93 |
-webkit-transition: text-shadow 0.31s, color 0.31s; /* Safari */ |
94 |
-ms-transition: text-shadow 0.31s, color 0.31s; |
95 |
-moz-transition: text-shadow 0.31s, color 0.31s; |
96 |
-o-transition: text-shadow 0.31s, color 0.31s; |
97 |
transition: text-shadow 0.31s linear, color 0.31s linear; |
98 |
} |
99 |
|
100 |
header > menu a:last-child { |
101 |
padding-right:26px; |
102 |
} |
103 |
|
104 |
|
105 |
|
106 |
/* upper horizontal document tree navigation strip */ |
107 |
|
108 |
nav { |
109 |
position:fixed; top:33px; |
110 |
z-index:3; |
111 |
width:100%; |
112 |
font-size:18px; |
113 |
border-bottom-style:solid; |
114 |
border-bottom-width:1px; |
115 |
border-bottom-color:#898989; |
116 |
padding: 3px 0px 3px 172px; |
117 |
background-color:#eaeaea; /* fallback (pre CSS3 browsers) */ |
118 |
background: -webkit-linear-gradient(rgba(251,251,251,1.0), rgba(186,186,186,1.0)); /* For Safari 5.1 to 6.0 */ |
119 |
background: -o-linear-gradient(rgba(251,251,251,1.0), rgba(186,186,186,1.0)); /* For Opera 11.1 to 12.0 */ |
120 |
background: -moz-linear-gradient(rgba(251,251,251,1.0), rgba(186,186,186,1.0)); /* For Firefox 3.6 to 15 */ |
121 |
background: linear-gradient(rgba(251,251,251,1.0), rgba(186,186,186,1.0)); /* Standard syntax */ |
122 |
box-shadow: 0px 10px 8px rgba(15,15,15,0.25); |
123 |
} |
124 |
|
125 |
nav > div.foldbtn { |
126 |
display:block; |
127 |
position:fixed; |
128 |
top:34; |
129 |
left:10; |
130 |
color:#998952; |
131 |
font-weight:200; |
132 |
font-size:28px; |
133 |
} |
134 |
|
135 |
nav > ul { |
136 |
list-style:none; |
137 |
padding:0; |
138 |
margin:0; |
139 |
} |
140 |
|
141 |
nav > ul > li { |
142 |
color:#5d5d5d; |
143 |
font-weight:200; |
144 |
text-decoration:none; |
145 |
float:left; |
146 |
padding:4px 4px 4px 3px; |
147 |
} |
148 |
|
149 |
nav > ul > li:hover { |
150 |
color:white; |
151 |
background-color:rgba(80,80,80,0.5); |
152 |
border-left-style:solid; |
153 |
border-left-width:2px; |
154 |
border-left-color:#a4a4a4; |
155 |
border-right-style:solid; |
156 |
border-right-width:2px; |
157 |
border-right-color:#898989; |
158 |
-webkit-border-top-right-radius: 8px; |
159 |
-moz-border-radius-topright: 8px; |
160 |
border-top-right-radius: 8px; |
161 |
padding:4px 2px 4px 1px; |
162 |
} |
163 |
|
164 |
nav > ul > li:last-child { |
165 |
color:black; |
166 |
font-weight:500; |
167 |
} |
168 |
|
169 |
nav > ul > li:last-child:hover { |
170 |
color:white; |
171 |
} |
172 |
|
173 |
nav > ul > li::before { |
174 |
content: "���"; |
175 |
color:#b4b4b4; |
176 |
padding-left:2px; |
177 |
padding-right:5px; |
178 |
} |
179 |
|
180 |
.iOS |
181 |
nav > ul > li::before { |
182 |
font-family:"Hiragino Mincho ProN"; |
183 |
} |
184 |
|
185 |
nav > ul > li:first-child::before { |
186 |
content: ""; |
187 |
} |
188 |
|
189 |
nav a { |
190 |
text-decoration:none; |
191 |
color:inherit; |
192 |
outline:none; |
193 |
border:0; |
194 |
} |
195 |
|
196 |
nav > ul > li ul { /* base rule for drop down menu */ |
197 |
overflow:auto; |
198 |
position:absolute; top:32px; |
199 |
min-width:230px; |
200 |
list-style-type:none; |
201 |
margin:0px 0px 0px -3px; |
202 |
padding:1px 1px 1px 1px; |
203 |
background-color:rgba(80,80,80,0.77); |
204 |
border-bottom-style:solid; |
205 |
border-bottom-width:4px; |
206 |
border-bottom-color:#898989; |
207 |
border-right-style:solid; |
208 |
border-right-width:2px; |
209 |
border-right-color:#898989; |
210 |
border-left-style:solid; |
211 |
border-left-width:2px; |
212 |
border-left-color:#a4a4a4; |
213 |
color:white; |
214 |
-webkit-border-bottom-left-radius: 5px; |
215 |
-moz-border-radius-bottomleft: 5px; |
216 |
border-bottom-left-radius: 5px; |
217 |
-webkit-border-bottom-right-radius: 5px; |
218 |
-moz-border-radius-bottomright: 5px; |
219 |
border-bottom-right-radius: 5px; |
220 |
-webkit-border-top-right-radius: 5px; |
221 |
-moz-border-radius-topright: 5px; |
222 |
border-top-right-radius: 5px; |
223 |
} |
224 |
|
225 |
.hasTransform |
226 |
nav > ul > li ul { /* rule extension for drop down menu */ |
227 |
display:block; |
228 |
opacity:0; |
229 |
|
230 |
-webkit-transform: scaleY(0); |
231 |
-o-transform: scaleY(0); |
232 |
-ms-transform: scaleY(0); |
233 |
-moz-transform: scaleY(0); |
234 |
transform: scaleY(0); |
235 |
|
236 |
-webkit-transform-origin: top; |
237 |
-o-transform-origin: top; |
238 |
-ms-transform-origin: top; |
239 |
-moz-transform-origin: top; |
240 |
transform-origin: top; |
241 |
|
242 |
-webkit-transition: -webkit-transform 0.16s ease, opacity 0.2s ease; |
243 |
-o-transition: -o-transform 0.16s ease, opacity 0.2s ease; |
244 |
-ms-transition: -ms-transform 0.16s ease, opacity 0.2s ease; |
245 |
-moz-transition: -moz-transform 0.16s ease, opacity 0.2s ease; |
246 |
transition: transform 0.16s ease, opacity 0.2s ease; |
247 |
} |
248 |
|
249 |
.hasTransform |
250 |
nav > ul > li:hover ul { /* rule extension for drop down menu */ |
251 |
display:block; |
252 |
opacity:1; |
253 |
|
254 |
-webkit-transform: scaleY(1); |
255 |
-o-transform: scaleY(1); |
256 |
-ms-transform: scaleY(1); |
257 |
-moz-transform: scaleY(1); |
258 |
transform: scaleY(1); |
259 |
|
260 |
-webkit-transition: -webkit-transform 0.1s ease; |
261 |
-o-transition: -o-transform 0.1s ease; |
262 |
-ms-transition: -ms-transform 0.1s ease; |
263 |
-moz-transition: -moz-transform 0.1s ease; |
264 |
transition: transform 0.1s ease; |
265 |
} |
266 |
|
267 |
body:not(.hasTransform) |
268 |
nav > ul > li ul { /* fallback rule extension for older browsers */ |
269 |
display:none; |
270 |
} |
271 |
|
272 |
body:not(.hasTransform) |
273 |
nav > ul > li:hover ul { /* fallback rule extension for older browsers */ |
274 |
display:block; |
275 |
} |
276 |
|
277 |
nav > ul > li li { |
278 |
padding:3px 14px 3px 14px; |
279 |
-webkit-transition: background-color 0.45s; /* Safari */ |
280 |
-moz-transition: background-color 0.45s; |
281 |
-ms-transition: background-color 0.45s; |
282 |
-o-transition: background-color 0.45s; |
283 |
transition: background-color 0.45s linear; |
284 |
} |
285 |
|
286 |
nav > ul > li li:hover { |
287 |
background-color:rgba(255,0,0,0.32); |
288 |
-webkit-transition: background-color 0.21s; /* Safari */ |
289 |
-moz-transition: background-color 0.21s; |
290 |
-ms-transition: background-color 0.21s; |
291 |
-o-transition: background-color 0.21s; |
292 |
transition: background-color 0.21s linear; |
293 |
} |
294 |
|
295 |
|
296 |
|
297 |
/* article's table of contents (on left side) */ |
298 |
|
299 |
aside { |
300 |
position:fixed; top:66px; |
301 |
z-index:2; |
302 |
width:180px; |
303 |
max-height: -webkit-calc(100% - 67px); |
304 |
max-height: -moz-calc(100% - 67px); |
305 |
max-height: -o-calc(100% - 67px); |
306 |
max-height: calc(100% - 67px); |
307 |
overflow:auto; |
308 |
overflow-x:hidden; |
309 |
font-family:CRDHigh; |
310 |
color:#5d5d5d; |
311 |
padding:0 0 0 0; |
312 |
margin:0 0 0 0; |
313 |
border-right-style:solid; |
314 |
border-right-width:1px; |
315 |
border-right-color:#ababab; |
316 |
|
317 |
-webkit-border-bottom-right-radius: 11px; |
318 |
-moz-border-radius-bottomright: 11px; |
319 |
border-bottom-right-radius: 11px; |
320 |
|
321 |
-webkit-border-bottom-left-radius: 11px; |
322 |
-moz-border-radius-bottomleft: 11px; |
323 |
border-bottom-left-radius: 11px; |
324 |
|
325 |
-webkit-transition: -webkit-transform 0.16s ease, width 0.2s ease; |
326 |
-o-transition: -o-transform 0.16s ease, width 0.2s ease; |
327 |
-ms-transition: -ms-transform 0.16s ease, width 0.2s ease; |
328 |
-moz-transition: -moz-transform 0.16s ease, width 0.2s ease; |
329 |
transition: transform 0.16s ease, width 0.2s ease; |
330 |
} |
331 |
|
332 |
.no-toc aside { |
333 |
overflow:hidden; |
334 |
width:0; |
335 |
|
336 |
-webkit-transition: -webkit-transform 0.16s ease, width 0.2s ease; |
337 |
-o-transition: -o-transform 0.16s ease, width 0.2s ease; |
338 |
-ms-transition: -ms-transform 0.16s ease, width 0.2s ease; |
339 |
-moz-transition: -moz-transform 0.16s ease, width 0.2s ease; |
340 |
transition: transform 0.16s ease, width 0.2s ease; |
341 |
} |
342 |
|
343 |
aside > div.toc { |
344 |
z-index:2; |
345 |
width:inherit; |
346 |
padding:0px 0px 0px 0px; |
347 |
margin:0px 0px 0px 0px; |
348 |
|
349 |
background-color:#cbc3c2; /* fallback (non CSS3 browsers) */ |
350 |
background: -webkit-linear-gradient(left, rgba(203,195,194,1.0), rgba(171,154,151,1.0)); /* For Safari 5.1 to 6.0 */ |
351 |
background: -o-linear-gradient(right, rgba(203,195,194,1.0), rgba(171,154,151,1.0)); /* For Opera 11.1 to 12.0 */ |
352 |
background: -moz-linear-gradient(right, rgba(203,195,194,1.0), rgba(171,154,151,1.0)); /* For Firefox 3.6 to 15 */ |
353 |
background: linear-gradient(to left, #cbc3c2, #bfb2b0); /* Standard syntax */ |
354 |
|
355 |
-webkit-border-bottom-left-radius: 11px; |
356 |
-moz-border-radius-bottomleft: 11px; |
357 |
border-bottom-left-radius: 11px; |
358 |
|
359 |
-webkit-border-bottom-right-radius: 11px; |
360 |
-moz-border-radius-bottomright: 11px; |
361 |
border-bottom-right-radius: 11px; |
362 |
} |
363 |
|
364 |
aside a { |
365 |
text-decoration:inherit; |
366 |
color:inherit; |
367 |
outline:none; |
368 |
border:0; |
369 |
} |
370 |
|
371 |
aside > div.toc ul { |
372 |
list-style-type:none; |
373 |
list-style-position:inside; |
374 |
padding:0px 0px 0px 0px; |
375 |
margin:0px 0px 0px 0px; |
376 |
} |
377 |
|
378 |
aside > div.toc > ul { |
379 |
background-color:#d0d0d0; /* fallback (pre CSS3 browsers) */ |
380 |
background: -webkit-linear-gradient(rgba(255,255,255,0.43), rgba(136,136,136,1.49)); /* For Safari 5.1 to 6.0 */ |
381 |
background: -o-linear-gradient(rgba(255,255,255,0.43), rgba(136,136,136,0.49)); /* For Opera 11.1 to 12.0 */ |
382 |
background: -moz-linear-gradient(rgba(255,255,255,0.43), rgba(136,136,136,0.49)); /* For Firefox 3.6 to 15 */ |
383 |
background: linear-gradient(rgba(255,255,255,0.43), rgba(136,136,136,0.49)); /* Standard syntax */ |
384 |
} |
385 |
|
386 |
aside > div.toc > ul > li { |
387 |
font-size:20px; |
388 |
font-weight:400; |
389 |
margin:0px 0px 0px 0px; |
390 |
padding:5px 20px 5px 24px; |
391 |
border-bottom-style:solid; |
392 |
border-bottom-width:1px; |
393 |
border-bottom-color:#898989; |
394 |
text-align:right; |
395 |
-webkit-transition: background-color 0.45s; /* Safari */ |
396 |
-moz-transition: background-color 0.45s; |
397 |
-ms-transition: background-color 0.45s; |
398 |
-o-transition: background-color 0.45s; |
399 |
transition: background-color 0.45s linear; |
400 |
} |
401 |
|
402 |
aside .current { |
403 |
color:#caad2c; |
404 |
text-shadow: 0px 0px 8px #fbf1f1; |
405 |
} |
406 |
|
407 |
aside > div.toc > ul > li > ul { |
408 |
color:#5d5d5d; |
409 |
} |
410 |
|
411 |
aside > div.toc > ul > li > ul > li { |
412 |
font-size:15px; |
413 |
font-weight:200; |
414 |
text-align:right; |
415 |
padding:0; |
416 |
margin: 4px 0px 4px 0px; |
417 |
} |
418 |
|
419 |
aside > div.toc > ul > li > ul > li.current { |
420 |
color:#caad2c; |
421 |
text-shadow: 0px 0px 8px #fbf1f1; |
422 |
} |
423 |
|
424 |
|
425 |
.no-touch aside > div.toc > ul > li:hover, |
426 |
.touch aside > div.toc > ul > li:focus, |
427 |
.touch aside > div.toc > ul > li:active |
428 |
{ |
429 |
background-color:rgba(255,0,0,0.22); |
430 |
-webkit-transition: background-color 0.25s; /* Safari */ |
431 |
-moz-transition: background-color 0.25s; |
432 |
-ms-transition: background-color 0.25s; |
433 |
-o-transition: background-color 0.25s; |
434 |
transition: background-color 0.25s linear; |
435 |
} |
436 |
|
437 |
.no-touch aside > div.toc > ul > li > ul > li:hover, |
438 |
.touch aside > div.toc > ul > li > ul > li:focus, |
439 |
.touch aside > div.toc > ul > li > ul > li:active |
440 |
{ |
441 |
list-style-type:disc; |
442 |
} |
443 |
|
444 |
aside > div.toc > div.buttons { |
445 |
display:table; |
446 |
width:100%; |
447 |
overflow:hidden; |
448 |
margin:3px 0px 0px 0px; |
449 |
position:relative; bottom:2px; |
450 |
z-index:8; |
451 |
color:#5d5d5d; |
452 |
|
453 |
-webkit-border-bottom-right-radius: 11px; |
454 |
-moz-border-radius-bottomright: 11px; |
455 |
border-bottom-right-radius: 11px; |
456 |
|
457 |
-webkit-border-bottom-left-radius: 11px; |
458 |
-moz-border-radius-bottomleft: 11px; |
459 |
border-bottom-left-radius: 11px; |
460 |
} |
461 |
|
462 |
aside > div.toc > div.buttons > * { |
463 |
display:table-cell; |
464 |
width:50%; |
465 |
font-family:CRDHigh; |
466 |
font-weight:400; |
467 |
color:#5d5d5d; |
468 |
padding:4px 4px 4px 4px; |
469 |
border-bottom-style:solid; |
470 |
border-bottom-width:1px; |
471 |
border-bottom-color:#898989; |
472 |
} |
473 |
|
474 |
aside > div.toc > div.buttons > .disabled { |
475 |
color:#959595; |
476 |
} |
477 |
|
478 |
aside > div.toc > div.buttons > * { |
479 |
background-color:#d4d4d8; /* fallback */ |
480 |
background-color:rgba(242,242,248,0.45); |
481 |
-webkit-transition: background-color 0.5s; /* Safari */ |
482 |
-moz-transition: background-color 0.5s; |
483 |
-ms-transition: background-color 0.5s; |
484 |
-o-transition: background-color 0.5s; |
485 |
transition: background-color 0.5s linear; |
486 |
} |
487 |
|
488 |
aside > div.toc > div.buttons > *:first-child { |
489 |
text-align:left; |
490 |
|
491 |
border-left-style:solid; |
492 |
border-left-width:1px; |
493 |
border-left-color:#898989; |
494 |
|
495 |
-webkit-border-bottom-left-radius: 11px; |
496 |
-moz-border-radius-bottomleft: 11px; |
497 |
border-bottom-left-radius: 11px; |
498 |
} |
499 |
|
500 |
aside > div.toc > div.buttons > *:last-child { |
501 |
text-align:right; |
502 |
|
503 |
border-left-style:solid; |
504 |
border-left-width:1px; |
505 |
border-left-color:#898989; |
506 |
|
507 |
/* FIXME: would create an undesired 1px gap on the right */ |
508 |
/*border-right-style:solid; |
509 |
border-right-width:1px; |
510 |
border-right-color:#898989;*/ |
511 |
|
512 |
-webkit-border-bottom-right-radius: 11px; |
513 |
-moz-border-radius-bottomright: 11px; |
514 |
border-bottom-right-radius: 11px; |
515 |
} |
516 |
|
517 |
.no-touch aside > div.toc > div.buttons > *:not(.disabled):hover, |
518 |
.touch aside > div.toc > div.buttons > *:not(.disabled):focus, |
519 |
.touch aside > div.toc > div.buttons > *:not(.disabled):active |
520 |
{ |
521 |
background-color:rgba(255,0,0,0.21); |
522 |
-webkit-transition: background-color 0.25s; /* Safari */ |
523 |
-moz-transition: background-color 0.25s; |
524 |
-ms-transition: background-color 0.25s; |
525 |
-o-transition: background-color 0.25s; |
526 |
transition: background-color 0.25s linear; |
527 |
} |
528 |
|
529 |
aside > div.toc > div.buttons .arrow { |
530 |
vertical-align:top; |
531 |
font-size:15px; |
532 |
} |
533 |
|
534 |
.iOS |
535 |
aside > div.toc > div.buttons .arrow { |
536 |
font-family:"Hiragino Mincho ProN"; |
537 |
} |
538 |
|
539 |
|
540 |
|
541 |
/* Article */ |
542 |
|
543 |
article { |
544 |
display:block; |
545 |
width: -webkit-calc(100% - 181); |
546 |
width: -moz-calc(100% - 181); |
547 |
width: -o-calc(100% - 181); |
548 |
width: calc(100% - 181); |
549 |
background-color:white; |
550 |
margin-top: 67px; |
551 |
padding: 16px 70px 95px 70px; |
552 |
margin-left:181px; |
553 |
font-size:18px; |
554 |
font-weight:200; |
555 |
border-left-style:solid; |
556 |
border-left-width:1px; |
557 |
border-left-color:#898989; |
558 |
|
559 |
-webkit-transition: -webkit-transform 0.16s ease, margin-left 0.2s ease; |
560 |
-o-transition: -o-transform 0.16s ease, margin-left 0.2s ease; |
561 |
-ms-transition: -ms-transform 0.16s ease, margin-left 0.2s ease; |
562 |
-moz-transition: -moz-transform 0.16s ease, margin-left 0.2s ease; |
563 |
transition: transform 0.16s ease, margin-left 0.2s ease; |
564 |
} |
565 |
|
566 |
.no-toc article { |
567 |
margin-left:0px; |
568 |
|
569 |
-webkit-transition: -webkit-transform 0.16s ease, margin-left 0.2s ease; |
570 |
-o-transition: -o-transform 0.16s ease, margin-left 0.2s ease; |
571 |
-ms-transition: -ms-transform 0.16s ease, margin-left 0.2s ease; |
572 |
-moz-transition: -moz-transform 0.16s ease, margin-left 0.2s ease; |
573 |
transition: transform 0.16s ease, margin-left 0.2s ease; |
574 |
} |
575 |
|
576 |
article h1 { |
577 |
clear:both; |
578 |
border-bottom-style:solid; |
579 |
border-bottom-width:1px; |
580 |
border-bottom-color:#898989; |
581 |
text-align:center; |
582 |
font-family:CRDHigh; |
583 |
font-size:32px; |
584 |
font-weight:700; |
585 |
color:#a19f9f; |
586 |
padding-top:45px; |
587 |
padding-bottom:28px; |
588 |
margin-top:0; |
589 |
margin-bottom:40px; |
590 |
} |
591 |
|
592 |
article h2 { |
593 |
clear:both; |
594 |
border-bottom-style:solid; |
595 |
border-bottom-width:1px; |
596 |
border-bottom-color:#898989; |
597 |
font-family:CRDHigh; |
598 |
font-size:26px; |
599 |
font-weight:400; |
600 |
padding-top:35px; |
601 |
padding-bottom:16px; |
602 |
margin-top:0; |
603 |
margin-bottom:28px; |
604 |
} |
605 |
|
606 |
article h3 { |
607 |
clear:both; |
608 |
padding-top:20px; |
609 |
padding-bottom:0px; |
610 |
margin-top:0; |
611 |
margin-bottom:0; |
612 |
font-family:CRDHigh; |
613 |
color:#9a6938; |
614 |
font-size:24px; |
615 |
font-weight:300; |
616 |
} |
617 |
|
618 |
article p { |
619 |
clear:both; |
620 |
} |
621 |
|
622 |
/* automatically center the 1st paragraph (block) directly after a h1 type header (since that header type is centered as well) */ |
623 |
article h1 + p { |
624 |
display:table; /*HACK: "block" would stretch the entire page width */ |
625 |
margin-left:auto; |
626 |
margin-right:auto; |
627 |
} |
628 |
|
629 |
article a { |
630 |
font-weight:400; |
631 |
color:#1ba1dd; |
632 |
text-decoration:none; |
633 |
outline:none; |
634 |
border:none; |
635 |
} |
636 |
|
637 |
article a img { |
638 |
border:none; |
639 |
text-decoration:none; |
640 |
} |
641 |
|
642 |
article li img { |
643 |
float:left; |
644 |
} |
645 |
|
646 |
.no-touch article a:hover, |
647 |
.touch article a:focus, |
648 |
.touch article a:active |
649 |
{ |
650 |
text-decoration:underline; |
651 |
} |
652 |
|
653 |
article ul { |
654 |
font-weight:inherit; |
655 |
padding:0 0 0 60px; |
656 |
margin:0 0 21px 0; |
657 |
} |
658 |
|
659 |
article ul li { |
660 |
list-style-type:disc; |
661 |
padding:4px 0 0 14px; |
662 |
margin:12px 0 0 0; |
663 |
} |
664 |
|
665 |
|
666 |
article ol { |
667 |
counter-reset:oli; |
668 |
font-weight:inherit; |
669 |
padding:0 0 0 29px; |
670 |
margin:0 0 21px 0; |
671 |
} |
672 |
|
673 |
article ol li:before { |
674 |
content:counters(oli,".") "."; |
675 |
counter-increment:oli; |
676 |
font-weight:600; |
677 |
margin:0 20px 0 0; |
678 |
} |
679 |
|
680 |
article ol li { |
681 |
list-style-type:none; |
682 |
padding:4px 0 0 14px; |
683 |
margin:12px 0 0 0; |
684 |
} |
685 |
|
686 |
|
687 |
|
688 |
article code, article .code { |
689 |
font-family:CRDCour; |
690 |
color:#404040; |
691 |
white-space:pre; |
692 |
} |
693 |
|
694 |
article code { |
695 |
display:inline-block; |
696 |
font-size:15px; |
697 |
margin:0 3px 0px 3px; |
698 |
padding:2px 6px 0px 6px; |
699 |
background-color:#fcf9f9; |
700 |
} |
701 |
|
702 |
article > code { |
703 |
display:block; |
704 |
font-size:15px; |
705 |
margin:0 37px 0 37px; |
706 |
padding:2px 6px 0px 6px; |
707 |
background-color:#fcf9f9; |
708 |
} |
709 |
|
710 |
article ul.code { |
711 |
list-style:outside none none; |
712 |
counter-reset:codeline; |
713 |
font-size:14px; |
714 |
font-weight:normal; |
715 |
line-height:1.1; |
716 |
margin:0 0 0 0; |
717 |
padding:8px 0px 8px 0px; |
718 |
} |
719 |
|
720 |
article .code li { |
721 |
display:block; |
722 |
list-style-type:none; |
723 |
white-space:pre-wrap; |
724 |
border-left:32px solid #f9f3f3; |
725 |
text-indent:-30px; |
726 |
background-color:#fcf9f9; |
727 |
margin:0 0 0 0; |
728 |
padding:0 0 0 0; |
729 |
} |
730 |
|
731 |
article .code li:first-child { |
732 |
padding-top:6px; |
733 |
} |
734 |
|
735 |
article .code li:last-child { |
736 |
padding-bottom:3px; |
737 |
} |
738 |
|
739 |
article .code li:before { |
740 |
display:inline-block; |
741 |
white-space:pre; |
742 |
content:counter(codeline,decimal) ". "; |
743 |
counter-increment:codeline; |
744 |
min-width:38px; |
745 |
text-align:right; |
746 |
color:#c9c9c9; |
747 |
} |
748 |
|
749 |
article .code .k, article code .k { /*keyword*/ |
750 |
font-weight:bold; |
751 |
color:black; |
752 |
} |
753 |
|
754 |
article .code .n, article code .n { /*number*/ |
755 |
color:#c4950c; |
756 |
} |
757 |
|
758 |
article .code .i, article code .i { /*identifier (function name)*/ |
759 |
/*color:#0c4fc4;*/ |
760 |
color:#1ba1dd; |
761 |
} |
762 |
|
763 |
article .code .a, article code .a { /*array variable*/ |
764 |
color:#790cc4; |
765 |
/*color:black;*/ |
766 |
} |
767 |
|
768 |
article .code .c, article code .c { /*characters*/ |
769 |
color:#c40c0c; |
770 |
} |
771 |
|
772 |
article .code .s, article code .s { /*string variable*/ |
773 |
/*color:#9a693c;*/ |
774 |
/*color:black;*/ |
775 |
color:#790cc4; |
776 |
} |
777 |
|
778 |
article .code .v, article code .v { /*integer variable*/ |
779 |
/*color:black;*/ |
780 |
color:#790cc4; |
781 |
} |
782 |
|
783 |
article .code .h, article code .h { /*event handler*/ |
784 |
font-weight:bold; |
785 |
color:#07c0cf; |
786 |
} |
787 |
|
788 |
article .code .q, article code .q { /*comment*/ |
789 |
color:#9c9c9c; |
790 |
font-style:italic; |
791 |
} |
792 |
|
793 |
article .code .p, article code .p { /*preprocessor statements*/ |
794 |
/*color:#87b1a8;*/ |
795 |
color:#2f8a33; |
796 |
/*font-style:italic;*/ |
797 |
font-weight:normal; |
798 |
} |
799 |
|
800 |
article .code .m, article code .m { /* metaphor (natural language text used as pseudo code) */ |
801 |
background-color:#ddf4fd; |
802 |
font-size:14px; |
803 |
color:black; |
804 |
font-weight:normal; |
805 |
border:solid 1px #73a3ab; |
806 |
-webkit-border-radius: 10px; |
807 |
-moz-border-radius: 10px; |
808 |
border-radius: 10px; |
809 |
margin:0 0 0 0; |
810 |
padding:2px 4px 0px 4px; |
811 |
} |
812 |
|
813 |
article table { |
814 |
margin:20px 37px 20px 37px; |
815 |
padding:0 0 0 0; |
816 |
/*background-color:red;*/ |
817 |
border:none; |
818 |
border-collapse:collapse; |
819 |
} |
820 |
|
821 |
article tr { |
822 |
padding:0 0 0 0; |
823 |
margin:0 0 0 0; |
824 |
} |
825 |
|
826 |
article th { |
827 |
background-color:#e0e0ff; |
828 |
padding:0px 8px 0px 8px; |
829 |
margin:0 0 0 0; |
830 |
border:3px solid white; |
831 |
font-size:16px; |
832 |
font-weight:600; |
833 |
} |
834 |
|
835 |
article td { |
836 |
background-color:#f9f7f7; |
837 |
padding:4px 8px 4px 8px; |
838 |
margin:0 0 0 0; |
839 |
border:3px solid white; |
840 |
font-size:16px; |
841 |
font-weight:300; |
842 |
line-height:1.2; |
843 |
} |
844 |
|
845 |
article table a { |
846 |
font-weight:400; |
847 |
} |
848 |
|
849 |
article note:before { |
850 |
white-space:pre-wrap; |
851 |
content:'NOTE: '; |
852 |
font-weight:500; |
853 |
} |
854 |
|
855 |
article note.important:before { |
856 |
white-space:pre-wrap; |
857 |
content:'IMPORTANT: '; |
858 |
font-weight:500; |
859 |
} |
860 |
|
861 |
article note { |
862 |
display:table; /*HACK: "block" would stretch the entire page width */ |
863 |
background-color:#ede8e8; |
864 |
border-top:none; |
865 |
border-right:none; |
866 |
border-bottom:none; |
867 |
border-left:solid 10px #898989; |
868 |
margin: 24px auto 27px 43px; |
869 |
padding: 15px 18px 15px 18px; |
870 |
max-width: -webkit-calc(100% - 145px); |
871 |
max-width: -moz-calc(100% - 145px); |
872 |
max-width: -o-calc(100% - 145px); |
873 |
max-width: calc(100% - 145px); |
874 |
} |
875 |
|
876 |
article td > note { |
877 |
display:block; /*HACK: override "table" default value assigned above in the context of a table cell, otherwise padding will be ignored */ |
878 |
} |
879 |
|
880 |
article note.important { |
881 |
border-left:solid 10px #ff4141; |
882 |
} |
883 |
|
884 |
article > img, example > img { |
885 |
display:block; |
886 |
clear:both; |
887 |
max-width:100%; |
888 |
margin-left:auto; |
889 |
margin-right:auto; |
890 |
/*border:solid 1px #8e8e8e;*/ |
891 |
padding-top:25px; |
892 |
border:none; |
893 |
} |
894 |
|
895 |
article p img { |
896 |
display:inline-block; |
897 |
float:left; |
898 |
margin:4px 20px 19px 0px; |
899 |
padding:0 0 0 0; |
900 |
/*border:solid 1px #8e8e8e;*/ |
901 |
border:none; |
902 |
max-width:99%; |
903 |
} |
904 |
|
905 |
article div.imgcptn { |
906 |
display:block; |
907 |
width:100%; |
908 |
text-align:center; |
909 |
font-weight:200; |
910 |
color:#999999; |
911 |
font-size:16px; |
912 |
font-style:italic; |
913 |
margin: 8px 0 16px 0; |
914 |
} |
915 |
|
916 |
article example:before { |
917 |
display:block; |
918 |
position:relative; top:-5px; left:-32px; |
919 |
content:'Example'; |
920 |
font-weight:500; |
921 |
color:white; |
922 |
border:none; |
923 |
margin:0; |
924 |
padding:0; |
925 |
width:100px; |
926 |
background-color:#dedede; |
927 |
/* -moz-transform: rotate(30deg); |
928 |
-ms-transform: rotate(30deg); |
929 |
-o-transform: rotate(30deg); |
930 |
-webkit-transform: rotate(30deg); |
931 |
transform: rotate(90deg); |
932 |
transform-origin: 0% 50%;*/ |
933 |
text-align:center; |
934 |
} |
935 |
|
936 |
article example { |
937 |
display:inline-block; |
938 |
|
939 |
width: -webkit-calc(100% - 80px); |
940 |
width: -moz-calc(100% - 80px); |
941 |
width: -o-calc(100% - 80px); |
942 |
width: calc(100% - 80px); |
943 |
|
944 |
border-top:solid 1px #e5e5e5; |
945 |
border-right:solid 18px #dedede; |
946 |
border-bottom:solid 1px #e5e5e5; |
947 |
border-left:solid 18px #dedede; |
948 |
margin:0px, 20px, 0px, 20px; |
949 |
padding:5px 15px 8px 24px; |
950 |
} |
951 |
|
952 |
article dir { |
953 |
display:block; |
954 |
list-style-type:none; |
955 |
background-image:url('../pix/folder.png'); |
956 |
background-repeat:no-repeat; |
957 |
background-position:2px top; |
958 |
padding:0px; |
959 |
margin:0px; |
960 |
font-family:CRDCour; |
961 |
font-size:15px; |
962 |
color:#000000; |
963 |
} |
964 |
|
965 |
article > dir, example > dir { |
966 |
padding-left:66px; |
967 |
background-position:36px top; |
968 |
} |
969 |
|
970 |
article dir > * { |
971 |
padding-top:2px; |
972 |
padding-bottom:2px; |
973 |
padding-left:31px; |
974 |
} |
975 |
|
976 |
article dir file { |
977 |
display:block; |
978 |
list-style-type:none; |
979 |
background-image:url('../pix/file.png'); |
980 |
background-repeat:no-repeat; |
981 |
background-position:2px top; |
982 |
font-family:CRDCour; |
983 |
font-size:15px; |
984 |
color:#6f6f6f; |
985 |
} |
986 |
|
987 |
|
988 |
|
989 |
/* article footer */ |
990 |
|
991 |
article > ul.docpager { |
992 |
display:table; |
993 |
margin:0 0 0 0; |
994 |
padding:50px 0 0 0; |
995 |
width:100%; |
996 |
} |
997 |
|
998 |
article > ul.docpager > li { |
999 |
display:table-cell; |
1000 |
width:33%; |
1001 |
margin:0 0 0 0; |
1002 |
padding:0 0 0 0; |
1003 |
} |
1004 |
|
1005 |
article > ul.docpager > li:nth-child(1) { |
1006 |
text-align:left; |
1007 |
padding-right:10px; |
1008 |
} |
1009 |
|
1010 |
article > ul.docpager > li:nth-child(1) > a:before { |
1011 |
content: "��� "; |
1012 |
} |
1013 |
|
1014 |
.iOS |
1015 |
article > ul.docpager > li:nth-child(1) > a:before { |
1016 |
font-family:"Hiragino Mincho ProN"; |
1017 |
} |
1018 |
|
1019 |
article > ul.docpager > li:nth-child(2) { |
1020 |
text-align:center; |
1021 |
padding-left:10px; |
1022 |
padding-right:10px; |
1023 |
} |
1024 |
|
1025 |
article > ul.docpager > li:nth-child(2) > a:before { |
1026 |
content: "��� "; |
1027 |
} |
1028 |
|
1029 |
.iOS |
1030 |
article > ul.docpager > li:nth-child(2) > a:before { |
1031 |
font-family:"Hiragino Mincho ProN"; |
1032 |
} |
1033 |
|
1034 |
article > ul.docpager > li:nth-child(3) { |
1035 |
text-align:right; |
1036 |
padding-left:10px; |
1037 |
} |
1038 |
|
1039 |
article > ul.docpager > li:nth-child(3) > a:after { |
1040 |
content: " ���"; |
1041 |
} |
1042 |
|
1043 |
.iOS |
1044 |
article > ul.docpager > li:nth-child(3) > a:after { |
1045 |
font-family:"Hiragino Mincho ProN"; |
1046 |
} |
1047 |
|
1048 |
article > .endline { |
1049 |
font-family:CRDSans; |
1050 |
font-size:16px; |
1051 |
font-weight:300; |
1052 |
color:#9d9d9d; |
1053 |
border-top:solid 1px #dedede; |
1054 |
border-left:none; |
1055 |
border-right:none; |
1056 |
border-bottom:none; |
1057 |
margin:30px 0 0 0; |
1058 |
padding:10px 0 0 0; |
1059 |
} |
1060 |
|
1061 |
|
1062 |
|
1063 |
/* very bottom footer */ |
1064 |
|
1065 |
footer { |
1066 |
position:relative; |
1067 |
z-index:1; |
1068 |
display:block; |
1069 |
width:100%; |
1070 |
background-color:#aaaaaa; /* fallback */ |
1071 |
background: -webkit-linear-gradient(left, rgba(203,195,194,1.0), rgba(171,154,151,1.0)); /* For Safari 5.1 to 6.0 */ |
1072 |
background: -o-linear-gradient(right, rgba(203,195,194,1.0), rgba(171,154,151,1.0)); /* For Opera 11.1 to 12.0 */ |
1073 |
background: -moz-linear-gradient(right, rgba(203,195,194,1.0), rgba(171,154,151,1.0)); /* For Firefox 3.6 to 15 */ |
1074 |
background: linear-gradient(to left, #cbc3c2, #bfb2b0); /* Standard syntax */ |
1075 |
margin:0px 0px 0px 0px; |
1076 |
padding: 24px 0px 28px 0px; |
1077 |
font-family: CRDHigh; |
1078 |
font-size:15px; |
1079 |
font-weight:200; |
1080 |
color:white; |
1081 |
text-align:center; |
1082 |
border-top-style:solid; |
1083 |
border-top-width:1px; |
1084 |
border-top-color:#898989; |
1085 |
} |
1086 |
|
1087 |
footer a { |
1088 |
color:inherit; |
1089 |
text-decoration:none; |
1090 |
outline:none; |
1091 |
border:0; |
1092 |
} |
1093 |
|
1094 |
.no-touch footer a:hover, |
1095 |
.touch footer a:focus, |
1096 |
.touch footer a:active |
1097 |
{ |
1098 |
text-decoration:underline; |
1099 |
} |