5f77037e402bf852dbdc59305e817b9ead05cb44
[ikiwiki.git] / doc / style.css
1 /* ikiwiki style sheet */
2
3 /* Note that instead of modifying this style sheet, you can instead edit
4  * local.css and use it to override or change settings in this one.
5  */
6
7 /* html5 compat */
8 article,
9 header,
10 footer,
11 nav {
12         display: block;
13 }
14
15 .header {
16         margin: 0;
17         font-size: 22px;
18         font-weight: bold;
19         line-height: 1em;
20         display: block;
21 }
22
23 .inlineheader .author {
24         margin: 0;
25         font-size: 18px;
26         font-weight: bold;
27         display: block;
28 }
29
30 .actions ul {
31         margin: 0;
32         padding: 6px;
33         list-style-type: none;
34 }
35 .actions li {
36         display: inline;
37         padding: .2em .4em;
38 }
39 .pageheader .actions ul {
40         border-bottom: 1px solid #000;
41 }
42
43 .inlinepage .actions ul {
44         border-bottom: 0;
45 }
46
47 #otherlanguages ul {
48         margin: 0;
49         padding: 6px;
50         list-style-type: none;
51 }
52 #otherlanguages li {
53         display: inline;
54         padding: .2em .4em;
55 }
56 .pageheader #otherlanguages {
57         border-bottom: 1px solid #000;
58 }
59
60 .inlinecontent {
61         margin-top: .4em;
62 }
63
64 .pagefooter {
65         clear: both;
66 }
67 .inlinefooter {
68         clear: both;
69 }
70
71 #pageinfo {
72         margin: 1em 0;
73         border-top: 1px solid #000;
74 }
75
76 .tags {
77         margin-top: 1em;
78 }
79
80 .inlinepage .tags {
81         display: inline;
82 }
83
84 .mapparent {
85         text-decoration: none;
86 }
87
88 .img caption {
89         font-size: 80%;
90         caption-side: bottom;
91         text-align: center;
92 }
93
94 .align-left {
95         float:left;
96 }
97
98 .align-right {
99         float:right;
100 }
101
102 #backlinks {
103         margin-top: 1em;
104 }
105
106 #searchform {
107         display: inline;
108         float: right;
109 }
110
111 #editcontent {
112         width: 100%;
113 }
114
115 img {
116         border-style: none;
117 }
118
119 div.recentchanges {
120         border-style: solid;
121         border-width: 1px;
122         overflow: auto;
123         clear: both;
124         width: 100%;
125         background: #eee;
126         color: black !important;
127 }
128 .recentchanges .metadata {
129         padding: 0px 0.5em;
130 }
131 .recentchanges .changelog {
132         font-style: italic;
133         clear: both;
134         display: block;
135         padding: 1px 2px;
136         background: white !important;
137         color: black !important;
138 }
139 .recentchanges .desc {
140         display: none;
141 }
142 .recentchanges .diff {
143         display: none;
144 }
145 .recentchanges .committer {
146         float: left;
147         margin: 0;
148         width: 40%;
149 }
150 .recentchanges .committype {
151         float: left;
152         margin: 0;
153         width: 5%;
154         font-size: small;
155 }
156 .recentchanges .changedate {
157         float: left;
158         margin: 0;
159         width: 35%;
160         font-size: small;
161 }
162 .recentchanges .pagelinks {
163         float: right;
164         margin: 0;
165         width: 60%;
166 }
167
168 #blogform {
169         padding: 10px 10px;
170         border: 1px solid #aaa;
171         background: #eee;
172         color: black !important;
173 }
174
175 .inlinepage {
176         padding: 10px 10px;
177         border: 1px solid #aaa;
178 }
179
180 .pagedate,
181 .pagelicense,
182 .pagecopyright {
183         font-style: italic;
184         display: block;
185         margin-top: 1em;
186 }
187
188 .error {
189         color: #C00;
190 }
191
192 .sidebar {
193         width: 30ex;
194         float: right;
195         margin-left: 4px;
196         margin-bottom: 4px;
197         margin-top: -1px;
198         padding: 0ex 2ex;
199         background: white;
200         border: 1px solid black;
201         color: black !important;
202 }
203
204 hr.poll {
205         height: 10pt;
206         color: white !important;
207         background: #eee;
208         border: 2px solid black;
209 }
210 div.poll {
211         margin-top: 1ex;
212         margin-bottom: 1ex;
213         padding: 1ex 1ex;
214         border: 1px solid #aaa;
215 }
216
217 span.color {
218         padding: 2px;
219 }
220
221 .comment-header,
222 .microblog-header {
223         font-style: italic;
224         margin-top: .3em;
225 }
226 .comment .author,
227 .microblog .author {
228         font-weight: bold;
229 }
230 .comment-subject {
231         font-weight: bold;
232 }
233 .comment {
234         border: 1px solid #aaa;
235         padding: 3px;
236 }
237
238 div.progress {
239         margin-top: 1ex;
240         margin-bottom: 1ex;
241         border: 1px solid #888;
242         width: 400px;
243         background: #eee;
244         color: black !important;
245         padding: 1px;
246 }
247 div.progress-done {
248         background: #ea6 !important;
249         color: black !important;
250         text-align: center;
251         padding: 1px;
252 }
253
254 /* things to hide in printouts */
255 @media print {
256         .actions { display: none; }
257         .tags { display: none; }
258         .feedbutton { display: none; }
259         #searchform { display: none; }
260         #blogform { display: none; }
261         #backlinks { display: none; }
262 }
263
264 /* infobox template */
265 .infobox {
266         float: right;
267         margin-left: 2ex;
268         margin-top: 1ex;
269         margin-bottom: 1ex;
270         padding: 1ex 1ex;
271         border: 1px solid #aaa;
272         background: white;
273         color: black !important;
274 }
275
276 /* notebox template */
277 .notebox {
278         float: right;
279         margin-left: 2ex;
280         margin-top: 1ex;
281         margin-bottom: 1ex;
282         padding: 1ex 1ex;
283         border: 1px solid #aaa;
284         width: 25%;
285         background: white;
286         color: black !important;
287 }
288
289 /* popup template and backlinks hiding */
290 .popup {
291         border-bottom: 1px dotted #366;
292         color: #366;
293 }
294 .popup .balloon,
295 .popup .paren,
296 .popup .expand {
297         display: none;
298 }
299 .popup:hover .balloon,
300 .popup:focus .balloon {
301         position: absolute;
302         display: inline;
303         margin: 1em 0 0 -2em;
304         padding: 0.625em;
305         border: 2px solid;
306         background-color: #dee;
307         color: black;
308 }
309
310 /* form styling */
311 fieldset {
312         margin: 1ex 0;
313         border: 1px solid black;
314 }
315 legend {
316         padding: 0 1ex;
317 }
318 .fb_submit {
319         float: left;
320         margin: 2px 0;
321 }
322 #signin_openid_url_label {
323         float: left;
324         margin-right: 1ex;
325 }
326 #signin_openid {
327         padding: 10px 10px;
328         border: 1px solid #aaa;
329         background: #eee; 
330         color: black !important;
331 }
332 label.block {    
333         display: block;   
334 }
335 label.inline {    
336         display: inline;
337 }
338 ol.form {
339         list-style: none;
340         padding: 0;
341 }
342 li.form {
343         padding-bottom: 1em;
344 }
345 input#openid_url {
346         background: url(wikiicons/openidlogin-bg.gif) no-repeat;
347         background-color: #fff;
348         background-position: 0 50%;
349         color: #000;
350         padding-left: 18px;
351 }
352 input#searchbox {
353         background: url(wikiicons/search-bg.gif) no-repeat;
354         background-color: #fff;
355         background-position: 100% 50%;
356         color: #000;
357         padding-right: 16px;
358 }
359 /* invalid form fields */
360 .fb_invalid {
361         color: red;
362         background: white !important;
363 }
364 /* required form fields */
365 .fb_required {
366         font-weight: bold;
367 }
368
369 /* highlight plugin */
370 pre.hl { color:#000000; background-color:#ffffff; }
371 .hl.num { color:#2928ff; }
372 .hl.esc { color:#ff00ff; }
373 .hl.str { color:#ff0000; }
374 .hl.dstr { color:#818100; }
375 .hl.slc { color:#838183; font-style:italic; }
376 .hl.com { color:#838183; font-style:italic; }
377 .hl.dir { color:#008200; }
378 .hl.sym { color:#000000; }
379 .hl.line { color:#555555; }
380 .hl.mark { background-color:#ffffbb; }
381 .hl.kwa { color:#000000; font-weight:bold; }
382 .hl.kwb { color:#830000; }
383 .hl.kwc { color:#000000; font-weight:bold; }
384 .hl.kwd { color:#010181; }
385
386 /* calendar plugin */
387 .month-calendar-day-this-day { background-color: #eee; }
388 .year-calendar-this-month { background-color: #eee; }
389 .month-calendar-arrow A:link,
390 .year-calendar-arrow A:link,
391 .month-calendar-arrow A:visited,
392 .year-calendar-arrow A:visited {
393         text-decoration: none;
394         font-weight: normal;
395         font-size: 150%;
396 }
397
398 /* outlines */
399 li.L1 { list-style: upper-roman; }
400 li.L2 { list-style: decimal; }
401 li.L3 { list-style: lower-alpha; }
402 li.L4 { list-style: disc; }
403 li.L5 { list-style: square; }
404 li.L6 { list-style: circle; }
405 li.L7 { list-style: lower-roman; }
406 li.L8 { list-style: upper-alpha; }
407
408 /* tag cloud */
409 .pagecloud {
410         float: right;
411         width: 30%;
412         text-align: center;
413         padding: 10px 10px;
414         border: 1px solid #aaa;
415         background: #eee;
416         color: black !important;
417 }
418 .smallestPC { font-size: 70%; }
419 .smallPC { font-size: 85%; }
420 .normalPC { font-size: 100%; }
421 .bigPC { font-size: 115%; }
422 .biggestPC { font-size: 130%; }
423
424 /* orange feed button */
425 .feedbutton {
426         background: #ff6600;
427         color: white !important;
428         border-left: 1px solid #cc9966;
429         border-top: 1px solid #ccaa99;
430         border-right: 1px solid #993300;
431         border-bottom: 1px solid #331100;
432         padding: 0px 0.5em 0px 0.5em;
433         font-family: sans-serif;
434         font-weight: bold;
435         font-size: small;
436         text-decoration: none;
437         margin-top: 1em;
438 }
439 .feedbutton:hover {
440         color: white !important;
441         background: #ff9900;
442 }