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}
231button img {
232    max-width: none;
233}
234
235hr {
236    border-top: solid @ini_border;
237    border-bottom: solid @ini_background;
238    border-width: 1px 0;
239    height: 0;
240    text-align: center;
241    clear: both;
242}
243
244acronym,
245abbr {
246    cursor: help;
247    border-bottom: 1px dotted;
248    font-style: normal;
249}
250em acronym,
251em abbr {
252    font-style: italic;
253}
254
255mark {
256    background-color: @ini_highlight;
257    color: inherit;
258}
259
260pre,
261code,
262samp,
263kbd {
264    font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
265    /* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */
266    font-size: 1em;
267    direction: ltr;
268    text-align: left;
269    background-color: @ini_background_site;
270    color: @ini_text;
271    box-shadow: inset 0 0 .3em @ini_border;
272    border-radius: 2px;
273}
274pre {
275    overflow: auto;
276    word-wrap: normal;
277    border: 1px solid @ini_border;
278    border-radius: 2px;
279    box-shadow: inset 0 0 .5em @ini_border;
280    padding: .7em 1em;
281}
282
283blockquote {
284    padding: 0 .5em;
285    border: solid @ini_border;
286    border-width: 0 0 0 .25em;
287}
288[dir=rtl] blockquote {
289    border-width: 0 .25em 0 0;
290}
291q:before,
292q:after {
293    content: '';
294}
295
296sub,
297sup {
298    font-size: .8em;
299    line-height: 1;
300}
301sub {
302    vertical-align: sub;
303}
304sup {
305    vertical-align: super;
306}
307
308small {
309    font-size: .8em;
310}
311
312/*____________ forms ____________*/
313
314/* for all of the form styles, style.ini colours are not used on purpose (except for fieldset border) */
315
316form {
317    display: inline;
318    margin: 0;
319    padding: 0;
320}
321fieldset {
322    padding: .7em 1em 0;
323    padding: .7rem 1rem; /* for those browsers understanding :last-child */
324    border: 1px solid @ini_text_alt;
325}
326fieldset > :last-child {
327    margin-bottom: 0;
328}
329legend {
330    margin: 0;
331    padding: 0 .1em;
332}
333label {
334    vertical-align: middle;
335    cursor: pointer;
336}
337
338input,
339textarea,
340button,
341select,
342optgroup,
343option,
344keygen,
345output,
346meter,
347progress {
348    font: inherit;
349    font-weight: normal;
350    color: #333;
351    background-color: #fff;
352    line-height: normal;
353    margin: 0;
354    vertical-align: middle;
355    box-sizing: border-box;
356}
357
358select {
359    max-width: 100%;
360}
361optgroup {
362    font-style: italic;
363    font-weight: bold;
364}
365option {
366    font-style: normal;
367    font-weight: normal;
368}
369
370input,
371textarea,
372select,
373keygen {
374    border: 1px solid #ccc;
375    box-shadow: inset 0 0 1px #eee;
376    border-radius: 2px;
377}
378input:active,
379input:focus,
380textarea:active,
381textarea:focus,
382select:active,
383select:focus,
384keygen:active,
385keygen:focus {
386    border-color: #999;
387}
388input[type=radio],
389input[type=checkbox],
390input[type=image] {
391    padding: 0;
392    border-style: none;
393    box-shadow: none;
394}
395
396/* all types of buttons */
397input[type=submit],
398input[type=button],
399input[type=reset],
400input.button,
401a.button,
402button,
403.qq-upload-button {
404    color: #333;
405    background-color: #eee;
406    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPgo8bGluZWFyR3JhZGllbnQgaWQ9Imc4MjQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjAlIiB5Mj0iMTAwJSI+CjxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIG9mZnNldD0iMCIvPjxzdG9wIHN0b3AtY29sb3I9IiNGNEY0RjQiIG9mZnNldD0iMC4zIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0VFRUVFRSIgb2Zmc2V0PSIwLjk5Ii8+PHN0b3Agc3RvcC1jb2xvcj0iI0NDQ0NDQyIgb2Zmc2V0PSIuOTkiLz4KPC9saW5lYXJHcmFkaWVudD4KPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNnODI0KSIgLz4KPC9zdmc+);
407    background-image: linear-gradient(to bottom, #ffffff 0%, #f4f4f4 30%, #eeeeee 99%, #cccccc 99%);
408    border: 1px solid #ccc;
409    border-radius: 2px;
410    padding: .1em .5em;
411    cursor: pointer;
412}
413
414input[type=submit]:hover,
415input[type=submit]:active,
416input[type=submit]:focus,
417input[type=button]:hover,
418input[type=button]:active,
419input[type=button]:hover,
420input[type=reset]:hover,
421input[type=reset]:active,
422input[type=reset]:hover,
423input.button:hover,
424input.button:active,
425input.button:focus,
426a.button:hover,
427a.button:active,
428a.button:focus,
429button:hover,
430button:active,
431button:focus,
432.qq-upload-button:hover {
433    border-color: #999;
434    background-color: #ddd;
435    background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPgo8bGluZWFyR3JhZGllbnQgaWQ9Imc2NzAiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjAlIiB5Mj0iMTAwJSI+CjxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIG9mZnNldD0iMCIvPjxzdG9wIHN0b3AtY29sb3I9IiNGNEY0RjQiIG9mZnNldD0iMC4zIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0RERERERCIgb2Zmc2V0PSIwLjk5Ii8+PHN0b3Agc3RvcC1jb2xvcj0iI0JCQkJCQiIgb2Zmc2V0PSIuOTkiLz4KPC9saW5lYXJHcmFkaWVudD4KPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNnNjcwKSIgLz4KPC9zdmc+);
436    background-image: linear-gradient(to bottom, #ffffff 0%, #f4f4f4 30%, #dddddd 99%, #bbbbbb 99%);
437}
438
439input::-moz-focus-inner,
440button::-moz-focus-inner {
441    border: 0;
442    padding: 0;
443}
444
445input[disabled],
446button[disabled],
447select[disabled],
448textarea[disabled],
449option[disabled],
450input[readonly],
451button[readonly],
452select[readonly],
453textarea[readonly] {
454    cursor: auto;
455    opacity: .5;
456    background-color: #eee;
457}
458