xref: /template/retro/css/basic.css (revision 6b6248f07e7e72e510665a8b7262219b55bef7ac)
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, "Frutiger Linotype", Univers, Calibri, Myriad, "Nimbus Sans L", Tahoma, 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}
26
27
28/*____________ headers ____________*/
29
30h1,
31h2,
32h3,
33h4,
34h5,
35h6,
36caption,
37legend {
38    font-family: Constantia, Utopia, Lucidabright, Lucida, Georgia, "Nimbus Roman No9 L", serif;
39    font-weight: bold;
40    color: __text_neu__;
41    background-color: inherit;
42    padding: 0;
43    line-height: 1.2;
44    clear: left; /* ideally 'both', but problems with toc */
45}
46
47h1 {
48    font-size: 2.25em;
49    margin: 0 0 0.444em;
50}
51h2 {
52    font-size: 1.5em;
53    margin: 0 0 0.666em;
54}
55h3 {
56    font-size: 1.125em;
57    margin: 0 0 0.888em;
58}
59h4 {
60    font-size: 1em;
61    margin: 0 0 1.0em;
62}
63h5 {
64    font-size: .875em;
65    margin: 0 0 1.1428em;
66}
67h6 {
68    font-size: .75em;
69    margin: 0 0 1.333em;
70}
71/* bottom margin = 1 / font-size */
72
73
74/*____________ basic margins and paddings ____________*/
75
76p,
77ul,
78ol,
79dl,
80pre,
81table,
82hr,
83blockquote,
84fieldset,
85address {
86    margin: 0 0 1.4em 0; /* bottom margin = line-height */
87    padding: 0;
88}
89
90div {
91    margin: 0;
92    padding: 0;
93}
94
95
96/*____________ lists ____________*/
97
98ul,
99ol {
100    padding: 0 0 0 1.5em;
101}
102li,
103dd {
104    padding: 0;
105    margin: 0 0 0 1.5em;
106}
107dt {
108    font-weight: bold;
109    margin: 0;
110    padding: 0;
111}
112
113li ul,
114li ol,
115li dl,
116dl ul,
117dl ol,
118dl dl {
119    margin-bottom: 0;
120    padding: 0;
121}
122li li {
123    font-size: 100%;
124}
125
126ul {
127    list-style: disc outside;
128}
129ol {
130    list-style: decimal outside;
131}
132ol ol {
133    list-style-type: lower-alpha;
134}
135ol ol ol {
136    list-style-type: upper-roman;
137}
138ol ol ol ol {
139    list-style-type: upper-alpha;
140}
141ol ol ol ol ol {
142    list-style-type: lower-roman;
143}
144
145
146/*____________ tables ____________*/
147
148table {
149    border-collapse: collapse;
150    empty-cells: show;
151    border-spacing: 0;
152    border: 1px solid __border__;
153}
154
155caption {
156    caption-side: top;
157    text-align: left;
158    margin: 0 0 .3em;
159}
160
161th,
162td {
163    padding: .3em .5em;
164    margin: 0;
165    vertical-align: top;
166    border: 1px solid __border__;
167    text-align: left;
168}
169th {
170    font-weight: bold;
171    background-color: __background_alt__;
172}
173
174
175/*____________ links ____________*/
176
177a {
178}
179a:link,
180a:visited {
181    text-decoration: none;
182    color: #00c; /* §colour */
183}
184a:link:hover,
185a:visited:hover,
186a:link:focus,
187a:visited:focus,
188a:link:active,
189a:visited:active {
190    text-decoration: underline;
191}
192a:link:focus,
193a:visited:focus {
194    outline: 1px dotted;
195}
196a:link:active,
197a:visited:active {
198    color: #c00; /* §colour */
199}
200
201
202/*____________ misc ____________*/
203
204img {
205    border-width: 0;
206    vertical-align: middle;
207    color: #666;
208    background-color: transparent;
209    font-style: italic;
210    height: auto;
211}
212
213img,
214object {
215    max-width: 100%;
216}
217
218/* IE8 and below won't display the images otherwise */
219button img {
220    max-width: none;
221}
222
223hr {
224    border-style: solid;
225    border-width: 1px 0 0;
226    text-align: center;
227    height: 0;
228    width: 100%;
229    clear: both;
230}
231
232acronym,
233abbr {
234    cursor: help;
235    border-bottom: 1px dotted;
236    font-style: normal;
237}
238
239pre,
240code,
241samp,
242kbd {
243    font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
244    /* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */
245    font-size: 1em;
246    direction: ltr;
247    text-align: left;
248}
249pre {
250    overflow: auto;
251    word-wrap: normal;
252}
253
254blockquote {
255    padding: 0 .5em;
256    border: solid __border__;
257    border-width: 0 0 0 .25em;
258}
259q:before,
260q:after {
261    content: '';
262}
263
264sub,
265sup {
266    font-size: .8em;
267    line-height: 1;
268}
269sub {
270    vertical-align: sub;
271}
272sup {
273    vertical-align: super;
274}
275
276/*____________ forms ____________*/
277
278form {
279    display: inline;
280    margin: 0;
281    padding: 0;
282}
283fieldset {
284    padding: 1em 1em 0;
285    border: 1px solid __text_alt__;
286}
287legend {
288    margin: 0;
289    padding: 0 .1em;
290}
291label {
292    vertical-align: middle;
293    cursor: pointer;
294}
295input,
296textarea,
297button,
298select,
299optgroup,
300option {
301    font: inherit;
302    color: inherit;
303    /* background-color destroys button look */
304    line-height: 1;
305    margin: 0;
306    vertical-align: middle;
307}
308input[type=text],
309input[type=password],
310textarea {
311    padding: .1em;
312}
313input[type=radio],
314input[type=checkbox],
315input.check {
316    padding: 0;
317}
318input[type=submit],
319input.button,
320button {
321    cursor: pointer;
322}
323input[disabled],
324button[disabled],
325input[readonly],
326button[readonly] {
327    cursor: auto;
328}
329optgroup {
330    font-style: italic;
331    font-weight: bold;
332}
333option {
334    font-style: normal;
335    font-weight: normal;
336}
337
338
339/*____________ general classes ____________*/
340
341div.clearer {
342    /* additional to what's already in DokuWiki's lib/styles/all.css: */
343    font-size: 1px;
344    visibility: hidden;
345}
346
347.a11y {
348    position: absolute;
349    left: -9000px;
350    top: -4000px;
351    width: 0;
352    height: 0;
353    overflow: hidden;
354    display: inline;
355}
356
357
358/*____________ rtl corrections ____________*/
359
360[dir=rtl] caption,
361[dir=rtl] td,
362[dir=rtl] th {
363    text-align: right;
364}
365
366[dir=rtl] ul,
367[dir=rtl] ol {
368    padding: 0 1.5em 0 0;
369}
370[dir=rtl] li,
371[dir=rtl] dd {
372    margin: 0 1.5em 0 0;
373}
374[dir=rtl] blockquote {
375    border-width: 0 .25em 0 0;
376}
377
378[dir=rtl] h1,
379[dir=rtl] h2,
380[dir=rtl] h3,
381[dir=rtl] h4,
382[dir=rtl] h5,
383[dir=rtl] h6,
384[dir=rtl] caption,
385[dir=rtl] legend {
386    clear: right;
387}
388
389[dir=rtl] .a11y {
390    left: auto;
391    right: -9000px;
392}
393