xref: /template/retro/css/basic.css (revision 0009a803ac14472872e5e0531e191733c37f0765)
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}
211
212img,
213object {
214    max-width: 100%;
215}
216
217hr {
218    border-style: solid;
219    border-width: 1px 0 0;
220    text-align: center;
221    height: 0;
222    width: 100%;
223    clear: both;
224}
225
226acronym,
227abbr {
228    cursor: help;
229    border-bottom: 1px dotted;
230    font-style: normal;
231}
232
233pre,
234code,
235samp,
236kbd {
237    font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
238    /* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */
239    font-size: 1em;
240    direction: ltr;
241    text-align: left;
242}
243pre {
244    overflow: auto;
245    word-wrap: normal;
246}
247
248blockquote {
249    padding: 0 .5em;
250    border: solid __border__;
251    border-width: 0 0 0 .25em;
252}
253q:before,
254q:after {
255    content: '';
256}
257
258sub,
259sup {
260    font-size: .8em;
261    line-height: 1;
262}
263sub {
264    vertical-align: sub;
265}
266sup {
267    vertical-align: super;
268}
269
270/*____________ forms ____________*/
271
272form {
273    display: inline;
274    margin: 0;
275    padding: 0;
276}
277fieldset {
278    padding: 1em 1em 0;
279    border: 1px solid __text_alt__;
280}
281legend {
282    margin: 0;
283    padding: 0 .1em;
284}
285label {
286    vertical-align: middle;
287    cursor: pointer;
288}
289input,
290textarea,
291button,
292select,
293optgroup,
294option {
295    font: inherit;
296    color: inherit;
297    /* background-color destroys button look */
298    line-height: 1;
299    margin: 0;
300    vertical-align: middle;
301}
302input[type=text],
303input[type=password],
304textarea {
305    padding: .1em;
306}
307input[type=radio],
308input[type=checkbox],
309input.check {
310    padding: 0;
311}
312input[type=submit],
313input.button,
314button {
315    cursor: pointer;
316}
317input[disabled],
318button[disabled],
319input[readonly],
320button[readonly] {
321    cursor: auto;
322}
323optgroup {
324    font-style: italic;
325    font-weight: bold;
326}
327option {
328    font-style: normal;
329    font-weight: normal;
330}
331
332
333/*____________ general classes ____________*/
334
335div.clearer {
336    /* additional to what's already in DokuWiki's lib/styles/all.css: */
337    font-size: 1px;
338    visibility: hidden;
339}
340
341.a11y {
342    position: absolute;
343    left: -9000px;
344    top: -4000px;
345    width: 0;
346    height: 0;
347    overflow: hidden;
348    display: inline;
349}
350