1/**
2 * This file provides the main design styles for the page content.
3 *
4 * @author Anika Henke <anika@selfthinker.org>
5 * @author Andreas Gohr <andi@splitbrain.org>
6 * @author Clarence Lee <clarencedglee@gmail.com>
7 */
8
9/*____________ section indenting ____________
10
11.dokuwiki .page  h1 {margin-left: 0;}
12.dokuwiki .page  h2 {margin-left: .666em;}
13.dokuwiki .page  h3 {margin-left: 1.776em;}
14.dokuwiki .page  h4 {margin-left: 3em;}
15.dokuwiki .page  h5 {margin-left: 4.5712em;}
16.dokuwiki .page  div.level1 {margin-left: 0;}
17.dokuwiki .page  div.level2 {margin-left: 1em;}
18.dokuwiki .page  div.level3 {margin-left: 2em;}
19.dokuwiki .page  div.level4 {margin-left: 3em;}
20.dokuwiki .page  div.level5 {margin-left: 4em;}
21
22[dir=rtl] .dokuwiki .page h1 {margin-left: 0; margin-right: 0;}
23[dir=rtl] .dokuwiki .page h2 {margin-left: 0; margin-right: .666em;}
24[dir=rtl] .dokuwiki .page h3 {margin-left: 0; margin-right: 1.776em;}
25[dir=rtl] .dokuwiki .page h4 {margin-left: 0; margin-right: 3em;}
26[dir=rtl] .dokuwiki .page h5 {margin-left: 0; margin-right: 4.5712em;}
27[dir=rtl] .dokuwiki .page div.level1 {margin-left: 0; margin-right: 0;}
28[dir=rtl] .dokuwiki .page div.level2 {margin-left: 0; margin-right: 1em;}
29[dir=rtl] .dokuwiki .page div.level3 {margin-left: 0; margin-right: 2em;}
30[dir=rtl] .dokuwiki .page div.level4 {margin-left: 0; margin-right: 3em;}
31[dir=rtl] .dokuwiki .page div.level5 {margin-left: 0; margin-right: 4em;}
32*/
33/* hx margin-left = (1 / font-size) * .levelx-margin */
34
35/*____________ links to wiki pages (addition to _links) ____________*/
36
37/* existing wikipage */
38.dokuwiki a.wikilink1 {
39    color: @ini_existing;
40    background-color: inherit;
41}
42
43/* not existing wikipage */
44.dokuwiki a.wikilink2 {
45    color: @ini_missing;
46    background-color: inherit;
47}
48
49/*____________ images ____________*/
50
51/* embedded images (styles are already partly set in lib/styles/all.css) */
52.dokuwiki img.media {
53    margin: .2em 0;
54}
55
56.dokuwiki img.medialeft {
57    margin: .2em 1em .2em 0;
58}
59
60.dokuwiki img.mediaright {
61    margin: .2em 0 .2em 1em;
62}
63
64.dokuwiki img.mediacenter {
65    margin: .2em auto;
66}
67
68/*____________ lists ____________*/
69
70.dokuwiki .page,
71.dokuwiki .aside {
72    ul li {
73        color: @ini_text_alt;
74    }
75
76    ol li {
77        color: @ini_text_neu;
78    }
79
80    li .li {
81        color: @ini_text;
82    }
83}
84
85/*____________ tables ____________*/
86
87/* div around each table */
88.dokuwiki div.table {
89    overflow-x: auto;
90    margin-bottom: 1.4em;
91}
92
93.dokuwiki div.table table {
94    margin-bottom: 0;
95}
96
97.dokuwiki table.inline {
98    min-width: 50%;
99}
100
101.dokuwiki table.inline tr:hover td {
102    background-color: @ini_background_alt;
103}
104
105.dokuwiki table.inline tr:hover th {
106    background-color: @ini_border;
107}
108
109/*____________ code ____________*/
110
111/* fix if background-color hides underlining */
112.dokuwiki em.u code {
113    text-decoration: underline;
114}
115
116/* filenames for downloadable file and code blocks */
117.dokuwiki dl.code,
118.dokuwiki dl.file {
119    dt {
120        background-color: @ini_background_site;
121        background: linear-gradient(to bottom, @ini_background_alt 0%, @ini_background_site 100%);
122        color: inherit;
123        border: 1px solid @ini_border;
124        border-bottom-color: @ini_background_site;
125        border-top-left-radius: .3em;
126        border-top-right-radius: .3em;
127        padding: .3em .6em .1em;
128        margin-bottom: -1px;
129        float: left;
130
131        a {
132            background-color: transparent;
133            font-size: 0.875em;
134            font-weight: normal;
135            display: block;
136            min-height: 16px;
137        }
138    }
139
140    dd {
141        margin: 0;
142        clear: left;
143    }
144
145    pre {
146        box-shadow: inset -4px -4px .5em -.3em @ini_border;
147    }
148}
149
150[dir=rtl] .dokuwiki dl.code,
151[dir=rtl] .dokuwiki dl.file {
152    dt {
153        float: right;
154    }
155
156    dd {
157        clear: right;
158    }
159}
160
161/* for code in <file> */
162.dokuwiki dl.file {
163    pre,
164    dt {
165        border-style: dashed;
166    }
167    dt {
168        border-bottom-style: solid;
169    }
170}
171
172/*____________ JS popup ____________*/
173
174.JSpopup {
175    background-color: @ini_background;
176    color: @ini_text;
177    border: 1px solid @ini_border;
178    box-shadow: .1em .1em .1em @ini_border;
179    border-radius: 2px;
180    padding: .3em .5em;
181    font-size: .9em;
182}
183
184.dokuwiki form.search div.ajax_qsearch {
185    top: -.35em;
186    font-size: 1em;
187    text-overflow: ellipsis;
188}
189
190.JSpopup ul,
191.JSpopup ol {
192    padding-left: 0;
193}
194
195[dir=rtl] .JSpopup ul,
196[dir=rtl] .JSpopup ol {
197    padding-right: 0;
198}
199
200/* changes to underscored CSS files
201********************************************************************/
202
203#acl__tree li {
204    margin: 0;
205}
206
207#dokuwiki__content span.curid a {
208    font-weight: normal;
209}
210
211#dokuwiki__content strong span.curid a {
212    font-weight: bold;
213}
214
215/*____________ changes to _edit ____________*/
216
217.dokuwiki div.toolbar {
218    button.toolbutton {
219        border-radius: 0;
220        border-left-width: 0;
221        padding: .1em .35em;
222    }
223
224    button.toolbutton:first-child {
225        border-top-left-radius: 4px;
226        border-bottom-left-radius: 4px;
227        border-left-width: 1px;
228    }
229
230    button.toolbutton:last-child {
231        border-top-right-radius: 4px;
232        border-bottom-right-radius: 4px;
233    }
234}
235
236[dir=rtl] .dokuwiki div.toolbar {
237    button.toolbutton:last-child {
238        border-top-left-radius: 4px;
239        border-bottom-left-radius: 4px;
240        border-top-right-radius: 0;
241        border-bottom-right-radius: 0;
242        border-left-width: 1px;
243    }
244
245    button.toolbutton:first-child {
246        border-top-left-radius: 0;
247        border-bottom-left-radius: 0;
248        border-top-right-radius: 4px;
249        border-bottom-right-radius: 4px;
250        border-left-width: 0;
251        border-right-width: 1px;
252    }
253}
254
255.dokuwiki div.section_highlight {
256    margin: 0 -2em;
257    padding: 0 1em;
258    border-width: 0 1em;
259}
260
261.dokuwiki textarea.edit {
262    font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
263}
264
265.dokuwiki div.preview {
266    margin: 0 -2em;
267    padding: 0 2em;
268}
269
270.dokuwiki.hasSidebar div.preview {
271    border-right: @ini_sidebar_width solid @ini_background_alt;
272}
273
274[dir=rtl] .dokuwiki.hasSidebar div.preview {
275    border-right-width: 0;
276    border-left: @ini_sidebar_width solid @ini_background_alt;
277}
278
279.dokuwiki div.preview div.pad {
280    padding: 1.556em 0 2em;
281}
282
283/*____________ changes to _toc ____________*/
284
285#dw__toc {
286    margin: -1.556em -2em .5em 1.4em;
287    width: @ini_sidebar_width;
288    border-left: 1px solid @ini_border;
289    background: @ini_background;
290    color: inherit;
291}
292
293[dir=rtl] #dw__toc {
294    margin: -1.556em 1.4em .5em -2em;
295    border-left-width: 0;
296    border-right: 1px solid @ini_border;
297}
298
299.dokuwiki h3.toggle {
300    padding: .5em 1em;
301    margin-bottom: 0;
302    font-size: .875em;
303    letter-spacing: .1em;
304}
305
306#dokuwiki__aside h3.toggle {
307    display: none;
308}
309
310.dokuwiki .toggle strong {
311    background: transparent url(images/toc-arrows.png) 0 0;
312    width: 8px;
313    height: 5px;
314    margin: .4em 0 0;
315}
316
317.dokuwiki .toggle.closed strong {
318    background-position: 0 -5px;
319}
320
321.dokuwiki .toggle strong span {
322    display: none;
323}
324
325#dw__toc {
326    > div {
327        font-size: 0.875em;
328        padding: .5em 1em 1em;
329    }
330
331    ul {
332        padding: 0 0 0 1.2em;
333
334        li {
335            list-style-image: url(images/toc-bullet.png);
336        }
337    }
338
339    ul li.clear {
340        list-style: none;
341    }
342
343    ul li div.li {
344        padding: .2em 0;
345    }
346}
347
348[dir=rtl] #dw__toc ul {
349    padding: 0 1.5em 0 0;
350}
351
352/*____________ changes to _imgdetail ____________*/
353
354#dokuwiki__detail {
355    padding: 0;
356
357    img {
358        float: none;
359        margin-bottom: 1.4em;
360    }
361
362    div.img_detail {
363        float: none;
364    }
365
366    div.img_detail dl {
367        overflow: hidden;
368    }
369
370    div.img_detail dl dt {
371        float: left;
372        width: 9em;
373        text-align: right;
374        clear: left;
375    }
376
377    div.img_detail dl dd {
378        margin-left: 9.5em;
379    }
380}
381
382[dir=rtl] #dokuwiki__detail div.img_detail {
383    dl dt {
384        float: right;
385        text-align: left;
386        clear: right;
387    }
388
389    dl dd {
390        margin-left: 0;
391        margin-right: 9.5em;
392    }
393}
394