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