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    color: @ini_text;
18    background: @ini_background_site url(images/page-gradient.png) top left repeat-x;
19    margin: 0;
20    padding: 0;
21}
22body {
23    font: normal 87.5%/1.4 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
31caption,
32figcaption,
33summary,
34legend {
35    padding: 0;
36    margin: 0 0 .35em;
37    line-height: 1.2;
38}
39h1,
40h2,
41h3,
42h4,
43h5,
44h6 {
45    font-weight: bold;
46    padding: 0;
47    line-height: 1.2;
48    clear: left; /* ideally 'both', but problems with toc */
49}
50[dir=rtl] h1,
51[dir=rtl] h2,
52[dir=rtl] h3,
53[dir=rtl] h4,
54[dir=rtl] h5,
55[dir=rtl] h6 {
56    clear: right;
57}
58
59h1 {
60    font-size: 2em;
61    margin: 0 0 0.444em;
62}
63h2 {
64    font-size: 1.5em;
65    margin: 0 0 0.666em;
66}
67h3 {
68    font-size: 1.125em;
69    margin: 0 0 0.888em;
70}
71h4 {
72    font-size: 1em;
73    margin: 0 0 1.0em;
74}
75h5 {
76    font-size: .875em;
77    margin: 0 0 1.1428em;
78}
79h6 {
80    font-size: .75em;
81    margin: 0 0 1.333em;
82}
83/* bottom margin = 1 / font-size */
84
85
86/*____________ basic margins and paddings ____________*/
87
88p,
89ul,
90ol,
91dl,
92pre,
93table,
94hr,
95blockquote,
96figure,
97details,
98fieldset,
99address {
100    margin: 0 0 1.4em 0; /* bottom margin = line-height */
101    padding: 0;
102}
103
104div,
105video,
106audio {
107    margin: 0;
108    padding: 0;
109}
110
111
112/*____________ lists ____________*/
113
114ul,
115ol {
116    padding: 0 0 0 1.5em;
117}
118[dir=rtl] ul,
119[dir=rtl] ol {
120    padding: 0 1.5em 0 0;
121}
122
123li,
124dd {
125    padding: 0;
126    margin: 0 0 0 1.5em;
127}
128[dir=rtl] li,
129[dir=rtl] dd {
130    margin: 0 1.5em 0 0;
131}
132dt {
133    font-weight: bold;
134    margin: 0;
135    padding: 0;
136}
137
138li ul,
139li ol,
140li dl,
141dl ul,
142dl ol,
143dl dl {
144    margin-bottom: 0;
145    padding: 0;
146}
147li li {
148    font-size: 100%;
149}
150
151ul             { list-style: square outside; }
152ol             { list-style: decimal outside; }
153ol ol          { list-style-type: lower-alpha; }
154ol ol ol       { list-style-type: upper-roman; }
155ol ol ol ol    { list-style-type: upper-alpha; }
156ol ol ol ol ol { list-style-type: lower-roman; }
157
158
159/*____________ tables ____________*/
160
161table {
162    border-collapse: collapse;
163    empty-cells: show;
164    border-spacing: 0;
165    border: 1px solid @ini_border;
166}
167
168caption {
169    caption-side: top;
170    text-align: left;
171}
172[dir=rtl] caption {
173    text-align: right;
174}
175
176th,
177td {
178    padding: .3em .5em;
179    margin: 0;
180    vertical-align: top;
181    border: 1px solid @ini_border;
182}
183th {
184    font-weight: bold;
185    background-color: @ini_background_alt;
186    text-align: left;
187}
188[dir=rtl] th {
189    text-align: right;
190}
191
192
193/*____________ links ____________*/
194
195a {
196    outline: none;
197}
198a:link,
199a:visited {
200    text-decoration: none;
201    color: @ini_link;
202}
203a:link:hover,
204a:visited:hover,
205a:link:focus,
206a:visited:focus,
207a:link:active,
208a:visited:active {
209    text-decoration: underline;
210}
211
212
213/*____________ misc ____________*/
214
215img {
216    border-width: 0;
217    vertical-align: middle;
218    color: #666;
219    background-color: transparent;
220    font-style: italic;
221    height: auto;
222}
223img,
224object,
225embed,
226iframe,
227video,
228audio {
229    max-width: 100%;
230}
231#IE7 img,
232#IE8 img,
233button img {
234    max-width: none;
235}
236
237hr {
238    border-top: solid @ini_border;
239    border-bottom: solid @ini_background;
240    border-width: 1px 0;
241    height: 0;
242    text-align: center;
243    clear: both;
244}
245
246acronym,
247abbr {
248    cursor: help;
249    border-bottom: 1px dotted;
250    font-style: normal;
251}
252em acronym,
253em abbr {
254    font-style: italic;
255}
256
257mark {
258    background-color: @ini_highlight;
259    color: inherit;
260}
261
262pre,
263code,
264samp,
265kbd {
266    font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
267    /* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */
268    font-size: 1em;
269    direction: ltr;
270    text-align: left;
271    background-color: @ini_background_site;
272    color: @ini_text;
273    box-shadow: inset 0 0 .3em @ini_border;
274    border-radius: 2px;
275}
276pre {
277    overflow: auto;
278    word-wrap: normal;
279    border: 1px solid @ini_border;
280    border-radius: 2px;
281    box-shadow: inset 0 0 .5em @ini_border;
282    padding: .7em 1em;
283}
284
285blockquote {
286    padding: 0 .5em;
287    border: solid @ini_border;
288    border-width: 0 0 0 .25em;
289}
290[dir=rtl] blockquote {
291    border-width: 0 .25em 0 0;
292}
293q:before,
294q:after {
295    content: '';
296}
297
298sub,
299sup {
300    font-size: .8em;
301    line-height: 1;
302}
303sub {
304    vertical-align: sub;
305}
306sup {
307    vertical-align: super;
308}
309
310small {
311    font-size: .8em;
312}
313
314/*____________ forms ____________*/
315
316/* for all of the form styles, style.ini colours are not used on purpose (except for fieldset border) */
317
318form {
319    display: inline;
320    margin: 0;
321    padding: 0;
322}
323fieldset {
324    padding: .7em 1em 0;
325    padding: .7rem 1rem; /* for those browsers understanding :last-child */
326    border: 1px solid @ini_text_alt;
327}
328fieldset > :last-child {
329    margin-bottom: 0;
330}
331legend {
332    margin: 0;
333    padding: 0 .1em;
334}
335label {
336    vertical-align: middle;
337    cursor: pointer;
338}
339
340input,
341textarea,
342button,
343select,
344optgroup,
345option,
346keygen,
347output,
348meter,
349progress {
350    font: inherit;
351    font-weight: normal;
352    color: #333;
353    background-color: #fff;
354    line-height: normal;
355    margin: 0;
356    vertical-align: middle;
357    -moz-box-sizing: border-box;
358    -webkit-box-sizing: border-box;
359    box-sizing: border-box;
360}
361
362select {
363    max-width: 100%;
364}
365optgroup {
366    font-style: italic;
367    font-weight: bold;
368}
369option {
370    font-style: normal;
371    font-weight: normal;
372}
373
374input,
375textarea,
376select,
377keygen {
378    border: 1px solid #ccc;
379    box-shadow: inset 0 0 1px #eee;
380    border-radius: 2px;
381}
382input:active,
383input:focus,
384textarea:active,
385textarea:focus,
386select:active,
387select:focus,
388keygen:active,
389keygen:focus {
390    border-color: #999;
391}
392input[type=radio],
393input[type=checkbox],
394input[type=image] {
395    padding: 0;
396    border-style: none;
397    box-shadow: none;
398}
399
400/* all types of buttons */
401input[type=submit],
402input[type=button],
403input[type=reset],
404input.button,
405a.button,
406button,
407.qq-upload-button {
408    color: #333;
409    background-color: #eee;
410    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPgo8bGluZWFyR3JhZGllbnQgaWQ9Imc4MjQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjAlIiB5Mj0iMTAwJSI+CjxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIG9mZnNldD0iMCIvPjxzdG9wIHN0b3AtY29sb3I9IiNGNEY0RjQiIG9mZnNldD0iMC4zIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0VFRUVFRSIgb2Zmc2V0PSIwLjk5Ii8+PHN0b3Agc3RvcC1jb2xvcj0iI0NDQ0NDQyIgb2Zmc2V0PSIuOTkiLz4KPC9saW5lYXJHcmFkaWVudD4KPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNnODI0KSIgLz4KPC9zdmc+);
411    .linear-gradient("top, #ffffff 0%, #f4f4f4 30%, #eeeeee 99%, #cccccc 99%");
412    border: 1px solid #ccc;
413    border-radius: 2px;
414    padding: .1em .5em;
415    cursor: pointer;
416}
417#IE7 input.button,
418#IE7 button {
419    line-height: 1.4;
420    overflow: visible;
421}
422
423input[type=submit]:hover,
424input[type=submit]:active,
425input[type=submit]:focus,
426input[type=button]:hover,
427input[type=button]:active,
428input[type=button]:hover,
429input[type=reset]:hover,
430input[type=reset]:active,
431input[type=reset]:hover,
432input.button:hover,
433input.button:active,
434input.button:focus,
435a.button:hover,
436a.button:active,
437a.button:focus,
438button:hover,
439button:active,
440button:focus,
441.qq-upload-button:hover {
442    border-color: #999;
443    background-color: #ddd;
444    background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPgo8bGluZWFyR3JhZGllbnQgaWQ9Imc2NzAiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjAlIiB5Mj0iMTAwJSI+CjxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIG9mZnNldD0iMCIvPjxzdG9wIHN0b3AtY29sb3I9IiNGNEY0RjQiIG9mZnNldD0iMC4zIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0RERERERCIgb2Zmc2V0PSIwLjk5Ii8+PHN0b3Agc3RvcC1jb2xvcj0iI0JCQkJCQiIgb2Zmc2V0PSIuOTkiLz4KPC9saW5lYXJHcmFkaWVudD4KPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNnNjcwKSIgLz4KPC9zdmc+);
445    .linear-gradient("top, #ffffff 0%, #f4f4f4 30%, #dddddd 99%, #bbbbbb 99%");
446}
447
448input::-moz-focus-inner,
449button::-moz-focus-inner {
450    border: 0;
451    padding: 0;
452}
453
454input[disabled],
455button[disabled],
456select[disabled],
457textarea[disabled],
458option[disabled],
459input[readonly],
460button[readonly],
461select[readonly],
462textarea[readonly] {
463    cursor: auto;
464    opacity: .5;
465    background-color: #eee;
466}
467