/[svn]/doc/tmpl/css/preview.css
ViewVC logotype

Contents of /doc/tmpl/css/preview.css

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2959 - (show annotations) (download) (as text)
Sat Jul 16 16:41:24 2016 UTC (7 years, 9 months ago) by schoenebeck
File MIME type: text/css
File size: 8113 byte(s)
- Site Layout Fix: note boxes were displayed incorrectly within
  the context of a table cell.

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 td > note {
322 display:block; /*HACK: override "table" default value assigned above in the context of a table cell, otherwise padding will be ignored */
323 }
324
325 body note.important {
326 border-left:solid 10px #ff4141;
327 }
328
329 body > img, example > img {
330 display:block;
331 clear:both;
332 max-width:100%;
333 margin-left:auto;
334 margin-right:auto;
335 /*border:solid 1px #8e8e8e;*/
336 padding-top:25px;
337 border:none;
338 }
339
340 body p img {
341 display:inline-block;
342 float:left;
343 margin:4px 20px 19px 0px;
344 padding:0 0 0 0;
345 /*border:solid 1px #8e8e8e;*/
346 border:none;
347 max-width:99%;
348 }
349
350 body div.imgcptn {
351 display:block;
352 width:100%;
353 text-align:center;
354 font-weight:200;
355 color:#999999;
356 font-size:16px;
357 font-style:italic;
358 margin: 8px 0 16px 0;
359 }
360
361 body example:before {
362 display:block;
363 position:relative; top:-5px; left:-32px;
364 content:'Example';
365 font-weight:500;
366 color:white;
367 border:none;
368 margin:0;
369 padding:0;
370 width:100px;
371 background-color:#dedede;
372 /* -moz-transform: rotate(30deg);
373 -ms-transform: rotate(30deg);
374 -o-transform: rotate(30deg);
375 -webkit-transform: rotate(30deg);
376 transform: rotate(90deg);
377 transform-origin: 0% 50%;*/
378 text-align:center;
379 }
380
381 body example {
382 display:inline-block;
383
384 width: -webkit-calc(100% - 80px);
385 width: -moz-calc(100% - 80px);
386 width: -o-calc(100% - 80px);
387 width: calc(100% - 80px);
388
389 border-top:solid 1px #e5e5e5;
390 border-right:solid 18px #dedede;
391 border-bottom:solid 1px #e5e5e5;
392 border-left:solid 18px #dedede;
393 margin:0px, 20px, 0px, 20px;
394 padding:5px 15px 8px 24px;
395 }
396
397 body dir {
398 display:block;
399 list-style-type:none;
400 background-image:url('../pix/folder.png');
401 background-repeat:no-repeat;
402 background-position:2px top;
403 padding:0px;
404 margin:0px;
405 font-family:CRDCour;
406 font-size:15px;
407 color:#000000;
408 }
409
410 body > dir, example > dir {
411 padding-left:66px;
412 background-position:36px top;
413 }
414
415 body dir > * {
416 padding-top:2px;
417 padding-bottom:2px;
418 padding-left:31px;
419 }
420
421 body dir file {
422 display:block;
423 list-style-type:none;
424 background-image:url('../pix/file.png');
425 background-repeat:no-repeat;
426 background-position:2px top;
427 font-family:CRDCour;
428 font-size:15px;
429 color:#6f6f6f;
430 }

  ViewVC Help
Powered by ViewVC