xref: /plugin/struct/style.less (revision 02effca59fe5680fc3c86d1f50d704b739f4696c)
1/**
2 * The input entry form
3 */
4.dokuwiki .struct_entry_form {
5    margin-bottom: 1em;
6
7    fieldset {
8        width: 100%;
9        padding: 0.5em 0;
10        display: table;
11
12        legend {
13            text-align: left;
14            padding-left: 17px;
15            cursor: pointer;
16            background: transparent url(../../images/open.png) 5px center no-repeat;
17            font-weight: bold;
18        }
19    }
20
21    fieldset.closed {
22        padding: 0;
23
24        * {
25            display: none;
26        }
27
28        legend {
29            display: block;
30            background: transparent url(../../images/closed.png) 5px center no-repeat;
31        }
32    }
33
34    label {
35        display: table-row;
36        text-align: left;
37        font-weight: normal;
38
39        &:hover {
40            background-color: @ini_background_alt;
41        }
42
43        span.label {
44            width: 10em;
45            display: table-cell;
46            padding-left: 0.5em;
47            padding-top: 0.25em;
48            padding-bottom: 0.25em;
49
50            // fixes for bootstrap3 template
51            color: @ini_text;
52            font-size: 100%;
53            text-align: left;
54        }
55
56        span.label.hashint {
57            background: url(../../images/info.png) no-repeat right center;
58        }
59
60        span.input {
61            display: table-cell;
62            padding-left: 0.25em;
63            padding-top: 0.25em;
64            padding-bottom: 0.25em;
65
66            input:not([type='checkbox']:not[type='color']), textarea, select {
67                width: 380px;
68            }
69        }
70    }
71
72    // this should not influence the design
73    .newtemplate {
74        display: inline;
75    }
76    // add some spacing to multi-value fields
77    .multiwrap {
78        display: inline-block;
79        margin: 0 0.25em 0.25em 0;
80    }
81}
82
83/**
84 * Bureaucracy form adjustments
85 */
86.dokuwiki form.bureaucracy__plugin label {
87    span {
88        line-height: 2em;
89    }
90
91    span.label {
92        vertical-align: top;
93
94        // fixes for bootstrap3 template
95        color: @ini_text;
96        font-size: 100%;
97        text-align: left;
98    }
99
100    span.input {
101        width: 50%;
102        display: inline-block;
103        text-align: left;
104        padding-left: 0.25em;
105        color: @ini_text;
106
107        input, select, textarea {
108            width: 100%;
109        }
110
111        input[type='checkbox'] {
112            width: auto;
113            margin-right: 0;
114        }
115
116        label {
117            text-align: left;
118            line-height: 1.5em;
119        }
120    }
121}
122
123/**
124 * Tabs in the Schema Editor
125 */
126#plugin__struct_delete,
127#plugin__struct_json {
128    border: 1px solid @ini_border;
129    border-top: none;
130    display: block;
131    padding: 2em;
132
133    fieldset {
134        margin-bottom: 1em;
135    }
136}
137
138
139form.struct_newschema {
140    label {
141        display: block;
142        text-align: left;
143
144        span {
145            display: inline-block;
146            width: 45%;
147            text-align: right;
148            padding-right: 1em;
149        }
150    }
151}
152
153/**
154 * The Schema Editor
155 */
156#plugin__struct_editor {
157    table.inline {
158        width: 100%;
159        border-top: none;
160
161        tr:first-child {
162            border-top: none;
163
164            th {
165                border-top: none;
166            }
167        }
168    }
169
170    tr.disabled {
171        td {
172            opacity: 0.5;
173        }
174
175        // collapse config block
176        td.config > div {
177            overflow: auto;
178            height: 2em;
179            div.jsoneditor-outer {
180                margin: 0;
181                padding: 0;
182            }
183        }
184
185        td.isenabled {
186            opacity: 1;
187        }
188    }
189    fieldset {
190        width: 100%;
191        padding-left: 0;
192        padding-right: 0;
193        margin-bottom: 1em;
194    }
195}
196
197/**
198 * In page output
199 */
200#plugin__struct_output {
201    margin-right: 16em; // space for the TOC
202    border: 1px solid @ini_border;
203    margin-bottom: 1.2em;
204
205    div.table {
206        margin: 0;
207
208        table {
209            font-size: 90%;
210            width: 100%;
211            border: none;
212            margin: 0;
213
214            td, th {
215                background-color: transparent;
216                vertical-align: top;
217                border: none;
218            }
219
220            tbody th {
221                width: 20%;
222                text-align: right;
223
224                &::after {
225                    content: ':';
226                }
227            }
228
229            thead th {
230                background-color: @ini_background_alt;
231                text-align: center;
232                font-size: 110%;
233                font-weight: normal;
234            }
235        }
236    }
237}
238
239/**
240 * Aggregation
241 */
242.dokuwiki .structaggregation {
243    table th {
244        a {
245            color: @ini_link;
246            font-weight: bold;
247
248            &.sort-up::before {
249                content: '↑';
250            }
251            &.sort-down::before {
252                content: '↓';
253            }
254        }
255
256        input {
257            width: 20px;
258            background-image: url(../../tpl/dokuwiki/images/search.png);
259            background-repeat: no-repeat;
260            background-position: 2px center;
261            padding-left: 20px;
262        }
263
264        input:not([value]) {
265            opacity: 0.5;
266        }
267
268        input:focus {
269            width: auto;
270            opacity: 1;
271        }
272    }
273
274    img.media {
275        box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.5);
276    }
277
278    div.table {
279        margin-bottom: 2.4em;
280    }
281
282    a.export {
283        float: left;
284        margin-top: -2.4em;
285        margin-left: 1em;
286        border: 1px solid @ini_border;
287        border-top: none;
288        border-bottom-right-radius: 4px;
289        border-bottom-left-radius: 4px;
290        padding: 2px 5px 2px 22px;
291        background-position-x: 2px;
292    }
293}
294/**
295 * Lookup Aggregation Editor
296 */
297.dokuwiki .structlookup {
298    table.inline {
299        min-width: 100%;
300
301        th.action {
302            width: 30px; //16px icon + margins
303        }
304    }
305}
306
307/**
308 * General Output styles
309 */
310.dokuwiki div.struct_color {
311    width: 1.2em;
312    height: 1.2em;
313    display: inline-block;
314    margin-right: 0.5em;
315}
316
317/**
318 * Inline Editor Overlay
319 */
320.dokuwiki .struct_inlineditor {
321    position: absolute;
322    top: 0;
323    left: 0;
324    width: 300px;
325
326    background-color: @ini_background;
327    color: @ini_text;
328    border: 1px solid @ini_border;
329    padding: 5px;
330
331    box-shadow: 5px 5px 10px 0 rgba(0,0,0,0.5);
332
333    .ctl {
334        margin-top: 5px;
335    }
336
337}
338
339/**
340 * Errors on AJAX
341 */
342.dokuwiki .structlookup form,
343.dokuwiki .struct_inlineditor {
344    .err {
345        font-size: 90%;
346        margin-top: 5px;
347        padding: 5px;
348        background-color: @ini_highlight;
349        color: @ini_text;
350        text-align: left;
351    }
352}
353