1/* content */
2#dokuwiki__content {
3    /* existing wikipage */
4    a.wikilink1 {
5        color: @ini_existing;
6    }
7    /* not existing wikipage */
8    a.wikilink2 {
9        border-bottom: 1px dashed @ini_missing;
10        color: @ini_missing;
11    }
12    a.wikilink2:link,
13    a.wikilink2:visited {
14        border-bottom: none;
15    }
16    a.wikilink2:hover,
17    a.wikilink2:active,
18    a.wikilink2:focus {
19        border-bottom-width: 0;
20    }
21
22    /*____________ Numbered Headings ____________*/
23
24    .page.numbered_heading {
25        /* TOC */
26        #dw__toc li.level1 {
27            counter-reset: toc-level1;
28        }
29        #dw__toc li.level2 > div > a:before {
30            color: @ini_numbered_heading;
31            content: counter(toc-level1) ". ";
32            counter-increment: toc-level1;
33        }
34        #dw__toc li.level2 {
35            counter-reset: toc-level2;
36        }
37        #dw__toc li.level3 > div > a:before {
38            color: @ini_numbered_heading;
39            content: counter(toc-level1) "." counter(toc-level2) ". ";
40            counter-increment: toc-level2;
41        }
42        #dw__toc li.level3 {
43            counter-reset: toc-level3;
44        }
45        #dw__toc li.level4 > div > a:before {
46            color: @ini_numbered_heading;
47            content: counter(toc-level1) "." counter(toc-level2) "." counter(toc-level3) ". ";
48            counter-increment: toc-level3;
49        }
50
51        /* Contents */
52        counter-reset: level1;
53        h2:before {
54            color: @ini_numbered_heading;
55            content: counter(level1) ". ";
56            counter-increment: level1;
57        }
58        h2 {
59            counter-reset: level2;
60        }
61        h3:before {
62            color: @ini_numbered_heading;
63            content: counter(level1) "." counter(level2) ". ";
64            counter-increment: level2;
65        }
66        h3 {
67            counter-reset: level3;
68        }
69        h4:before {
70            color: @ini_numbered_heading;
71            content: counter(level1) "." counter(level2) "." counter(level3) ". ";
72            counter-increment: level3;
73        }
74        h2:before,
75        h3:before,
76        h4:before {
77            font-size: 90%;
78        }
79
80        #dw__toc h3:before {
81            content: '';
82        }
83    }
84
85    div.license {
86        margin: 0 -1em;
87        padding: .4em 1em;
88        background-color: @ini_background_alt;
89    }
90    .medialeft {
91        margin-right: .6em;
92    }
93    .mediaright {
94        margin-left: .6em;
95    }
96}
97
98/* table of contents */
99#dw__toc {
100    float: inherit;
101    display: inline-block;
102    width: auto;
103    margin: 0 0 1.4em 0;
104    border: 1px solid @ini_border;
105    background-color: @ini_background;
106
107    span {
108        float: right;
109    }
110    h3,
111    div {
112        padding: .4em .8em;
113    }
114    h3.toggle {
115        margin: 0;
116        font-size: 1em;
117    }
118    h3.closed {
119        border: none;
120    }
121    a {
122        color: @ini_text;
123    }
124}
125
126/* any link to current page */
127.dokuwiki span.curid a {
128    font-weight: bold;
129}
130
131/* undo "clever" styling from fileuploader.js */
132.qq-upload-button {
133    cursor: inherit !important;
134    direction: inherit !important;
135}
136.qq-upload-button input {
137    font-family: inherit !important;
138    font-size: 1em !important;
139    margin: inherit !important;
140    opacity: 1 !important;
141    padding: inherit !important;
142    position: static !important;
143}
144
145.JSpopup {
146    padding: 0.2em 0.4em;
147    border: 1px solid @ini_border;
148}
149
150/* editor */
151.dokuwiki .editBar {
152    .editButtons,
153    .summary {
154        display: block !important;
155        margin-bottom: .6em;
156    }
157}
158
159
160/* fields */
161.dokuwiki fieldset {
162    width: auto;
163    text-align:left;
164    margin: 0 0 1em 0;
165    padding: 1em;
166    border: none;
167    background: @ini_background_alt;
168
169    legend {
170        display: block;
171        padding: 0;
172        font-weight: bold;
173        font-size: 1.4em;
174    }
175
176    span {
177        display: inline-block;
178        margin: 0 0 .2em 0;
179        vertical-align: top;
180    }
181
182    label.block {
183        text-align: left;
184
185        span {
186            display: block;
187        }
188
189        input.edit {
190            width: 100%;
191            max-width: 400px;
192        }
193    }
194}
195
196/* login */
197#dw__login,
198#dw__register {
199    label.simple {
200        margin-left: 0;
201    }
202}
203
204/* admin */
205/* _admin.less in default template */
206
207/* main task grouped in two columns */
208.dokuwiki div.ui-admin {
209    ul.admin_tasks,
210    ul.admin_plugins {
211        float: left;
212        width: 40%;
213        list-style-type: none;
214
215        /* general menu item styling */
216        li {
217            margin: 0 0 0.5em 0;
218            white-space: nowrap;
219
220            a span {
221                display: inline-block;
222
223                &.icon {
224                    vertical-align: top;
225                    margin-right: 0.5em;
226
227                    svg {
228                        width: 1.5em;
229                        height: 1.5em;
230                    }
231                }
232
233                &.prompt {
234                    white-space: normal;
235                }
236            }
237        }
238    }
239    [dir=rtl] & ul.admin_tasks,
240    [dir=rtl] & ul.admin_plugins {
241        float: right;
242    }
243}
244
245
246/* DokuWiki version */
247#admin__version {
248    clear: left;
249    margin-bottom: 2em;
250    color: @ini_text_alt;
251}
252[dir=rtl] & #admin__version {
253    clear: right;
254    float: left;
255}
256
257
258/* config */
259#config__manager {
260    fieldset {
261        margin: 0 0 2em 0;
262        padding: 0;
263        border: none;
264        background: none;
265
266        legend {
267            text-align: left;
268            font-size: 1.666em; // same as h3
269        }
270        div.table {
271            width: 100%;
272            padding: 0;
273            background: @ini_background_alt;
274        }
275        table {
276            width: 100%;
277        }
278        td.label {
279            padding: .4em .4em 1em;
280            span.outkey {
281                margin-top: -1.2em;
282            }
283        }
284        td {
285            div.input {
286                width: auto;
287                padding: 2px 4px;
288            }
289            input.edit {
290                padding: 4px 6px;
291            }
292            input.edit,
293            select.edit,
294            textarea.edit {
295                width: 100%;
296                border: none;
297            }
298        }
299        div.selection {
300            width: 40%;
301            padding: 2px 4px;
302
303            label {
304                width: 90%;
305            }
306        }
307        div.other {
308            background: none;
309        }
310    }
311}
312
313/* media manager */
314#mediamanager__page {
315    min-width: 0 !important;
316
317    .namespaces {
318        min-width: 0;
319    }
320    .filelist {
321        min-width: 0;
322        .rows li  {
323            dt a {
324                vertical-align: top;
325            }
326            dt a img {
327                max-width: 100%;
328            }
329            .name,
330            .size,
331            .filesize,
332            .date {
333                white-space: normal;
334                word-wrap: break-word;
335            }
336        }
337    }
338    .file {
339        min-width: 0;
340    }
341}
342