1 |
/* |
2 |
CrudeDoc CSS Style (for previewing an article on a local machine) |
3 |
Copyright (c) 2015 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 |
} |
16 |
|
17 |
|
18 |
/* Article */ |
19 |
|
20 |
body { |
21 |
padding: 16px 70px 95px 70px; |
22 |
font-size:18px; |
23 |
font-weight:200; |
24 |
counter-reset:oli; |
25 |
counter-reset:codeline; |
26 |
background-color:white; |
27 |
border:none; |
28 |
} |
29 |
|
30 |
|
31 |
body h1 { |
32 |
clear:both; |
33 |
border-bottom-style:solid; |
34 |
border-bottom-width:1px; |
35 |
border-bottom-color:#898989; |
36 |
text-align:center; |
37 |
font-family:CRDHigh; |
38 |
font-size:32px; |
39 |
font-weight:700; |
40 |
color:#a19f9f; |
41 |
padding-top:45px; |
42 |
padding-bottom:28px; |
43 |
margin-top:0; |
44 |
margin-bottom:40px; |
45 |
} |
46 |
|
47 |
body h2 { |
48 |
clear:both; |
49 |
border-bottom-style:solid; |
50 |
border-bottom-width:1px; |
51 |
border-bottom-color:#898989; |
52 |
font-family:CRDHigh; |
53 |
font-size:26px; |
54 |
font-weight:400; |
55 |
padding-top:35px; |
56 |
padding-bottom:16px; |
57 |
margin-top:0; |
58 |
margin-bottom:28px; |
59 |
} |
60 |
|
61 |
body h3 { |
62 |
clear:both; |
63 |
padding-top:20px; |
64 |
padding-bottom:0px; |
65 |
margin-top:0; |
66 |
margin-bottom:0; |
67 |
font-family:CRDHigh; |
68 |
color:#9a6938; |
69 |
font-size:24px; |
70 |
font-weight:300; |
71 |
} |
72 |
|
73 |
body p { |
74 |
clear:both; |
75 |
} |
76 |
|
77 |
body a { |
78 |
font-weight:400; |
79 |
color:#1ba1dd; |
80 |
text-decoration:none; |
81 |
outline:none; |
82 |
border:none; |
83 |
} |
84 |
|
85 |
body a img { |
86 |
border:none; |
87 |
text-decoration:none; |
88 |
} |
89 |
|
90 |
body li img { |
91 |
float:left; |
92 |
} |
93 |
|
94 |
body a:hover { |
95 |
text-decoration:underline; |
96 |
} |
97 |
|
98 |
body ul { |
99 |
font-weight:inherit; |
100 |
padding:0 0 0 60px; |
101 |
margin:0 0 21px 0; |
102 |
} |
103 |
|
104 |
body ul li { |
105 |
list-style-type:disc; |
106 |
padding:4px 0 0 14px; |
107 |
margin:12px 0 0 0; |
108 |
} |
109 |
|
110 |
|
111 |
body ol { |
112 |
counter-reset:oli; |
113 |
font-weight:inherit; |
114 |
padding:0 0 0 29px; |
115 |
margin:0 0 21px 0; |
116 |
} |
117 |
|
118 |
body ol li:before { |
119 |
content:counters(oli,".") "."; |
120 |
counter-increment:oli; |
121 |
font-weight:600; |
122 |
margin:0 20px 0 0; |
123 |
} |
124 |
|
125 |
body ol li { |
126 |
list-style-type:none; |
127 |
padding:4px 0 0 14px; |
128 |
margin:12px 0 0 0; |
129 |
} |
130 |
|
131 |
|
132 |
|
133 |
body code, body .code { |
134 |
font-family:CRDCour; |
135 |
color:#404040; |
136 |
white-space:pre; |
137 |
} |
138 |
|
139 |
body code { |
140 |
display:inline-block; |
141 |
font-size:15px; |
142 |
margin:0 3px 0px 3px; |
143 |
padding:2px 6px 0px 6px; |
144 |
background-color:#fcf9f9; |
145 |
} |
146 |
|
147 |
body > code { |
148 |
display:block; |
149 |
font-size:15px; |
150 |
margin:0 37px 0 37px; |
151 |
padding:2px 6px 0px 6px; |
152 |
background-color:#fcf9f9; |
153 |
} |
154 |
|
155 |
body ul.code { |
156 |
list-style:outside none none; |
157 |
counter-reset:codeline; |
158 |
font-size:14px; |
159 |
font-weight:normal; |
160 |
line-height:1.1; |
161 |
margin:0 0 0 0; |
162 |
padding:8px 0px 8px 0px; |
163 |
} |
164 |
|
165 |
body .code li { |
166 |
display:block; |
167 |
list-style-type:none; |
168 |
white-space:pre-wrap; |
169 |
border-left:32px solid #f9f3f3; |
170 |
text-indent:-30px; |
171 |
background-color:#fcf9f9; |
172 |
margin:0 0 0 0; |
173 |
padding:0 0 0 0; |
174 |
} |
175 |
|
176 |
body .code li:first-child { |
177 |
padding-top:6px; |
178 |
} |
179 |
|
180 |
body .code li:last-child { |
181 |
padding-bottom:3px; |
182 |
} |
183 |
|
184 |
body .code li:before { |
185 |
display:inline-block; |
186 |
white-space:pre; |
187 |
content:counter(codeline,decimal) ". "; |
188 |
counter-increment:codeline; |
189 |
min-width:38px; |
190 |
text-align:right; |
191 |
color:#c9c9c9; |
192 |
} |
193 |
|
194 |
body .code .k, body code .k { /*keyword*/ |
195 |
font-weight:bold; |
196 |
color:black; |
197 |
} |
198 |
|
199 |
body .code .n, body code .n { /*number*/ |
200 |
color:#c4950c; |
201 |
} |
202 |
|
203 |
body .code .i, body code .i { /*identifier (function name)*/ |
204 |
/*color:#0c4fc4;*/ |
205 |
color:#1ba1dd; |
206 |
} |
207 |
|
208 |
body .code .a, body code .a { /*array variable*/ |
209 |
color:#790cc4; |
210 |
/*color:black;*/ |
211 |
} |
212 |
|
213 |
body .code .c, body code .c { /*characters*/ |
214 |
color:#c40c0c; |
215 |
} |
216 |
|
217 |
body .code .s, body code .s { /*string variable*/ |
218 |
/*color:#9a693c;*/ |
219 |
/*color:black;*/ |
220 |
color:#790cc4; |
221 |
} |
222 |
|
223 |
body .code .v, body code .v { /*integer variable*/ |
224 |
/*color:black;*/ |
225 |
color:#790cc4; |
226 |
} |
227 |
|
228 |
body .code .h, body code .h { /*event handler*/ |
229 |
font-weight:bold; |
230 |
color:#07c0cf; |
231 |
} |
232 |
|
233 |
body .code .q, body code .q { /*comment*/ |
234 |
color:#9c9c9c; |
235 |
font-style:italic; |
236 |
} |
237 |
|
238 |
body .code .p, body code .p { /*preprocessor statements*/ |
239 |
/*color:#87b1a8;*/ |
240 |
color:#2f8a33; |
241 |
/*font-style:italic;*/ |
242 |
font-weight:normal; |
243 |
} |
244 |
|
245 |
body .code .m, body code .m { /* metaphor (natural language text used as pseudo code) */ |
246 |
background-color:#ddf4fd; |
247 |
font-size:14px; |
248 |
color:black; |
249 |
font-weight:normal; |
250 |
border:solid 1px #73a3ab; |
251 |
-webkit-border-radius: 10px; |
252 |
-moz-border-radius: 10px; |
253 |
border-radius: 10px; |
254 |
margin:0 0 0 0; |
255 |
padding:2px 4px 0px 4px; |
256 |
} |
257 |
|
258 |
body table { |
259 |
margin:20px 37px 20px 37px; |
260 |
padding:0 0 0 0; |
261 |
/*background-color:red;*/ |
262 |
border:none; |
263 |
border-collapse:collapse; |
264 |
} |
265 |
|
266 |
body tr { |
267 |
padding:0 0 0 0; |
268 |
margin:0 0 0 0; |
269 |
} |
270 |
|
271 |
body th { |
272 |
background-color:#e8e2e2; |
273 |
padding:0px 8px 0px 8px; |
274 |
margin:0 0 0 0; |
275 |
border:3px solid white; |
276 |
font-size:16px; |
277 |
font-weight:600; |
278 |
} |
279 |
|
280 |
body td { |
281 |
background-color:#f9f7f7; |
282 |
padding:4px 8px 4px 8px; |
283 |
margin:0 0 0 0; |
284 |
border:3px solid white; |
285 |
font-size:16px; |
286 |
font-weight:300; |
287 |
line-height:1.2; |
288 |
} |
289 |
|
290 |
body table a { |
291 |
font-weight:400; |
292 |
} |
293 |
|
294 |
body note:before { |
295 |
white-space:pre-wrap; |
296 |
content:'NOTE: '; |
297 |
font-weight:500; |
298 |
} |
299 |
|
300 |
body note.important:before { |
301 |
white-space:pre-wrap; |
302 |
content:'IMPORTANT: '; |
303 |
font-weight:500; |
304 |
} |
305 |
|
306 |
body note { |
307 |
display:table; /*HACK: "block" would stretch the entire page width */ |
308 |
background-color:#ede8e8; |
309 |
border-top:none; |
310 |
border-right:none; |
311 |
border-bottom:none; |
312 |
border-left:solid 10px #898989; |
313 |
margin: 24px auto 27px 43px; |
314 |
padding: 15px 18px 15px 18px; |
315 |
max-width: -webkit-calc(100% - 145px); |
316 |
max-width: -moz-calc(100% - 145px); |
317 |
max-width: -o-calc(100% - 145px); |
318 |
max-width: calc(100% - 145px); |
319 |
} |
320 |
|
321 |
body note.important { |
322 |
border-left:solid 10px #ff4141; |
323 |
} |
324 |
|
325 |
body > img, example > img { |
326 |
display:block; |
327 |
clear:both; |
328 |
max-width:100%; |
329 |
margin-left:auto; |
330 |
margin-right:auto; |
331 |
/*border:solid 1px #8e8e8e;*/ |
332 |
padding-top:25px; |
333 |
border:none; |
334 |
} |
335 |
|
336 |
body p img { |
337 |
display:inline-block; |
338 |
float:left; |
339 |
margin:4px 20px 19px 0px; |
340 |
padding:0 0 0 0; |
341 |
/*border:solid 1px #8e8e8e;*/ |
342 |
border:none; |
343 |
max-width:99%; |
344 |
} |
345 |
|
346 |
body div.imgcptn { |
347 |
display:block; |
348 |
width:100%; |
349 |
text-align:center; |
350 |
font-weight:200; |
351 |
color:#999999; |
352 |
font-size:16px; |
353 |
font-style:italic; |
354 |
margin: 8px 0 16px 0; |
355 |
} |
356 |
|
357 |
body example:before { |
358 |
display:block; |
359 |
position:relative; top:-5px; left:-32px; |
360 |
content:'Example'; |
361 |
font-weight:500; |
362 |
color:white; |
363 |
border:none; |
364 |
margin:0; |
365 |
padding:0; |
366 |
width:100px; |
367 |
background-color:#dedede; |
368 |
/* -moz-transform: rotate(30deg); |
369 |
-ms-transform: rotate(30deg); |
370 |
-o-transform: rotate(30deg); |
371 |
-webkit-transform: rotate(30deg); |
372 |
transform: rotate(90deg); |
373 |
transform-origin: 0% 50%;*/ |
374 |
text-align:center; |
375 |
} |
376 |
|
377 |
body example { |
378 |
display:inline-block; |
379 |
|
380 |
width: -webkit-calc(100% - 80px); |
381 |
width: -moz-calc(100% - 80px); |
382 |
width: -o-calc(100% - 80px); |
383 |
width: calc(100% - 80px); |
384 |
|
385 |
border-top:solid 1px #e5e5e5; |
386 |
border-right:solid 18px #dedede; |
387 |
border-bottom:solid 1px #e5e5e5; |
388 |
border-left:solid 18px #dedede; |
389 |
margin:0px, 20px, 0px, 20px; |
390 |
padding:5px 15px 8px 24px; |
391 |
} |
392 |
|
393 |
body dir { |
394 |
display:block; |
395 |
list-style-type:none; |
396 |
background-image:url('../pix/folder.png'); |
397 |
background-repeat:no-repeat; |
398 |
background-position:2px top; |
399 |
padding:0px; |
400 |
margin:0px; |
401 |
font-family:CRDCour; |
402 |
font-size:15px; |
403 |
color:#000000; |
404 |
} |
405 |
|
406 |
body > dir, example > dir { |
407 |
padding-left:66px; |
408 |
background-position:36px top; |
409 |
} |
410 |
|
411 |
body dir > * { |
412 |
padding-top:2px; |
413 |
padding-bottom:2px; |
414 |
padding-left:31px; |
415 |
} |
416 |
|
417 |
body dir file { |
418 |
display:block; |
419 |
list-style-type:none; |
420 |
background-image:url('../pix/file.png'); |
421 |
background-repeat:no-repeat; |
422 |
background-position:2px top; |
423 |
font-family:CRDCour; |
424 |
font-size:15px; |
425 |
color:#6f6f6f; |
426 |
} |