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