1/**
2 * This file provides the most basic styles.
3 *
4 * If you integrate DokuWiki into another project, you might either
5 * want to integrate this file into the other project as well, or use
6 * the other project's basic CSS for DokuWiki instead of this one.
7 *
8 * @author Anika Henke <anika@selfthinker.org>
9 */
10
11html {
12    overflow-x: auto;
13    overflow-y: scroll;
14}
15html,
16body {
17    background-color: __background__;
18    color: __text__;
19    margin: 0;
20    padding: 0;
21}
22body {
23    font: normal 100%/1.4 Frutiger, Calibri, "Myriad Pro", Myriad, "Nimbus Sans L", Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
24    /* default font size: 100% => 16px; 93.75% => 15px; 87.5% => 14px; 81.25% => 13px; 75% => 12px */
25    -webkit-text-size-adjust: 100%;
26}
27
28
29/*____________ headers ____________*/
30
31h1,
32h2,
33h3,
34h4,
35h5,
36h6 {
37    font-family: Constantia, Utopia, Lucidabright, Lucida, Georgia, "Nimbus Roman No9 L", serif;
38    font-weight: bold;
39    color: __text_neu__;
40    background-color: inherit;
41    padding: 0;
42    line-height: 1.2;
43    clear: left; /* ideally 'both', but problems with toc */
44}
45[dir=rtl] h1,
46[dir=rtl] h2,
47[dir=rtl] h3,
48[dir=rtl] h4,
49[dir=rtl] h5,
50[dir=rtl] h6 {
51    clear: right;
52}
53
54h1 {
55    font-size: 2.25em;
56    margin: 0 0 0.444em;
57}
58h2 {
59    font-size: 1.5em;
60    margin: 0 0 0.666em;
61}
62h3 {
63    font-size: 1.125em;
64    margin: 0 0 0.888em;
65}
66h4 {
67    font-size: 1em;
68    margin: 0 0 1.0em;
69}
70h5 {
71    font-size: .875em;
72    margin: 0 0 1.1428em;
73}
74h6 {
75    font-size: .75em;
76    margin: 0 0 1.333em;
77}
78/* bottom margin = 1 / font-size */
79
80caption,
81figcaption,
82summary,
83legend {
84    font-style: italic;
85    font-weight: normal;
86    line-height: 1.2;
87    padding: 0;
88    margin: 0 0 .35em;
89}
90
91
92/*____________ basic margins and paddings ____________*/
93
94p,
95ul,
96ol,
97dl,
98pre,
99table,
100hr,
101blockquote,
102figure,
103details,
104fieldset,
105address {
106    margin: 0 0 1.4em 0; /* bottom margin = line-height */
107    padding: 0;
108}
109
110div {
111    margin: 0;
112    padding: 0;
113}
114
115
116/*____________ lists ____________*/
117
118ul,
119ol {
120    padding: 0 0 0 1.5em;
121}
122[dir=rtl] ul,
123[dir=rtl] ol {
124    padding: 0 1.5em 0 0;
125}
126
127li,
128dd {
129    padding: 0;
130    margin: 0 0 0 1.5em;
131}
132[dir=rtl] li,
133[dir=rtl] dd {
134    margin: 0 1.5em 0 0;
135}
136
137dt {
138    font-weight: bold;
139    margin: 0;
140    padding: 0;
141}
142
143li ul,
144li ol,
145li dl,
146dl ul,
147dl ol,
148dl dl {
149    margin-bottom: 0;
150    padding: 0;
151}
152li li {
153    font-size: 100%;
154}
155
156ul {
157    list-style: disc outside;
158}
159ol {
160    list-style: decimal outside;
161}
162ol ol {
163    list-style-type: lower-alpha;
164}
165ol ol ol {
166    list-style-type: upper-roman;
167}
168ol ol ol ol {
169    list-style-type: upper-alpha;
170}
171ol ol ol ol ol {
172    list-style-type: lower-roman;
173}
174
175
176/*____________ tables ____________*/
177
178table {
179    border-collapse: collapse;
180    empty-cells: show;
181    border-spacing: 0;
182    border: 1px solid __border__;
183}
184
185caption {
186    caption-side: top;
187    text-align: left;
188}
189[dir=rtl] caption {
190    text-align: right;
191}
192
193th,
194td {
195    padding: .3em .5em;
196    margin: 0;
197    vertical-align: top;
198    border: 1px solid __border__;
199}
200th {
201    font-weight: bold;
202    background-color: __background_alt__;
203    color: inherit;
204    text-align: left;
205}
206[dir=rtl] th {
207    text-align: right;
208}
209
210
211/*____________ links ____________*/
212
213a {
214}
215a:link,
216a:visited {
217    text-decoration: none;
218    color: #00c; /* §colour */
219}
220a:link:hover,
221a:visited:hover,
222a:link:focus,
223a:visited:focus,
224a:link:active,
225a:visited:active {
226    text-decoration: underline;
227}
228a:link:focus,
229a:visited:focus {
230    outline: 1px dotted;
231}
232a:link:active,
233a:visited:active {
234    color: #c00; /* §colour */
235}
236
237
238/*____________ misc ____________*/
239
240img {
241    border-width: 0;
242    vertical-align: middle;
243    color: #666;
244    background-color: transparent;
245    font-style: italic;
246    height: auto;
247}
248
249img,
250object,
251embed,
252iframe,
253video,
254audio {
255    max-width: 100%;
256}
257
258iframe {
259    border-width: 0;
260    background-color: inherit;
261}
262
263/* IE8 and below won't display the images otherwise */
264#IE7 img,
265#IE8 img,
266button img {
267    max-width: none;
268}
269
270hr {
271    border-style: solid;
272    border-width: 1px 0 0;
273    text-align: center;
274    height: 0;
275    width: 100%;
276    clear: both;
277}
278
279acronym,
280abbr {
281    font-style: normal;
282}
283acronym[title],
284abbr[title] {
285    cursor: help;
286    border-bottom: 1px dotted;
287}
288em acronym,
289em abbr {
290    font-style: italic;
291}
292
293mark {
294    background: __highlight__;
295    color: inherit;
296}
297
298pre,
299code,
300samp,
301kbd {
302    font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
303    /* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */
304    font-size: 1em;
305    background-color: __background_alt__;
306    color: __text__;
307    direction: ltr;
308    text-align: left;
309}
310pre {
311    border: 1px solid __border__;
312    padding: 0 .2em;
313    overflow: auto;
314    word-wrap: normal;
315}
316
317blockquote {
318    padding: 0 .5em;
319    border: solid __border__;
320    border-width: 0 0 0 .25em;
321}
322[dir=rtl] blockquote {
323    border-width: 0 .25em 0 0;
324}
325q:before,
326q:after {
327    content: '';
328}
329
330sub,
331sup {
332    font-size: .8em;
333    line-height: 1;
334}
335sub {
336    vertical-align: sub;
337}
338sup {
339    vertical-align: super;
340}
341
342small {
343    font-size: .8em;
344}
345
346/*____________ forms ____________*/
347
348form {
349    display: inline;
350    margin: 0;
351    padding: 0;
352}
353
354fieldset {
355    padding: .7em 1em 0;
356    padding: .7rem 1rem; /* for those browsers understanding :last-child */
357    border: 1px solid #999;
358}
359fieldset > :last-child {
360    margin-bottom: 0;
361}
362legend {
363    padding: 0 .1em;
364}
365
366label {
367    vertical-align: middle;
368    cursor: pointer;
369}
370
371input,
372textarea,
373button,
374select,
375optgroup,
376option,
377keygen,
378output,
379meter,
380progress {
381    font: inherit;
382    color: inherit;
383    /* background-color destroys button look */
384    line-height: normal;
385    margin: 0;
386    vertical-align: middle;
387    -moz-box-sizing: content-box;
388    -webkit-box-sizing: content-box;
389    box-sizing: content-box;
390}
391
392input,
393button,
394select,
395keygen,
396textarea {
397    padding: .1em;
398}
399input[type=radio],
400input[type=checkbox],
401input[type=image],
402input.check {
403    padding: 0;
404}
405
406input[type=submit],
407input[type=button],
408input[type=reset],
409input.button,
410button {
411    cursor: pointer;
412    overflow: visible;
413    padding: .1em .4em;
414}
415#IE7 .dokuwiki input.button,
416#IE7 .dokuwiki button {
417    line-height: 1.4;
418}
419
420input[disabled],
421button[disabled],
422select[disabled],
423textarea[disabled],
424option[disabled],
425input[readonly],
426button[readonly],
427select[readonly],
428textarea[readonly] {
429    cursor: auto;
430    opacity: .5;
431}
432
433input:focus,
434button:focus,
435select:focus,
436keygen:focus,
437textarea:focus {
438    box-shadow: 0 0 5px #999;
439    outline: 0;
440}
441input::-moz-focus-inner,
442button::-moz-focus-inner {
443    border: 0;
444    padding: 0;
445}
446
447select {
448    max-width: 100%;
449}
450optgroup {
451    font-style: italic;
452    font-weight: bold;
453}
454option {
455    font-style: normal;
456    font-weight: normal;
457}
458
459
460/*____________ general classes ____________*/
461
462div.clearer {
463    /* additional to what's already in DokuWiki's lib/styles/all.css: */
464    font-size: 1px;
465    visibility: hidden;
466}
467
468/* @deprecated: has been in lib/styles/screen.css since Angua */
469.a11y {
470    position: absolute;
471    left: -99999em;
472    top: 0;
473    width: 0;
474    height: 0;
475    overflow: hidden;
476    display: inline;
477}
478[dir=rtl] .a11y {
479    left: auto;
480    right: -99999em;
481}
482