xref: /plugin/struct/style.less (revision 8f6959ae5d44612d1ca91a62a06c9e5f1241c859)
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            margin-left: 1em;
17            background: transparent url(../../images/open.png) 5px center no-repeat;
18            font-weight: bold;
19        }
20    }
21
22    fieldset.closed {
23        padding: 0;
24
25        * {
26            display: none;
27        }
28
29        legend {
30            display: block;
31            background: transparent url(../../images/closed.png) 5px center no-repeat;
32        }
33    }
34
35    label {
36        display: table-row;
37        text-align: left;
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
51        span.label.hashint {
52            background: url(../../images/info.png) no-repeat right center;
53        }
54
55        span.input {
56            display: table-cell;
57            padding-left: 0.25em;
58            padding-top: 0.25em;
59            padding-bottom: 0.25em;
60
61            input:not([type='checkbox']), textarea, select {
62                width: 190px;
63            }
64        }
65    }
66
67    // this should not influence the design
68    .newtemplate {
69        display: inline;
70    }
71    // add some spacing to multi-value fields
72    .multiwrap {
73        display: inline-block;
74        margin: 0 0.25em 0.25em 0;
75    }
76}
77
78/**
79 * Bureaucracy form adjustments
80 */
81.dokuwiki form.bureaucracy__plugin label {
82    span {
83        line-height: 2em;
84    }
85
86    span.label {
87        vertical-align: top;
88    }
89
90    span.input {
91        width: 50%;
92        display: inline-block;
93        text-align: left;
94        padding-left: 0.25em;
95        color: @ini_text;
96
97        input, select, textarea {
98            width: 100%;
99        }
100
101        input[type='checkbox'] {
102            width: auto;
103            margin-right: 0;
104        }
105
106        label {
107            text-align: left;
108            line-height: 1.5em;
109        }
110    }
111}
112
113/**
114 * Tabs in the Schema Editor
115 */
116#plugin__struct_delete,
117#plugin__struct_json {
118    border: 1px solid @ini_border;
119    border-top: none;
120    display: block;
121    padding: 2em;
122
123    fieldset {
124        margin-bottom: 1em;
125    }
126}
127
128
129form.struct_newschema {
130    label {
131        display: block;
132        text-align: left;
133
134        span {
135            display: inline-block;
136            width: 45%;
137            text-align: right;
138            padding-right: 1em;
139        }
140    }
141}
142
143/**
144 * The Schema Editor
145 */
146#plugin__struct_editor {
147    table.inline {
148        width: 100%;
149        border-top: none;
150
151        tr:first-child {
152            border-top: none;
153
154            th {
155                border-top: none;
156            }
157        }
158    }
159
160    tr.disabled {
161        td {
162            opacity: 0.5;
163        }
164
165        // collapse config block
166        td.config > div {
167            overflow: auto;
168            height: 2em;
169            div.jsoneditor-outer {
170                margin: 0;
171                padding: 0;
172            }
173        }
174
175        td.isenabled {
176            opacity: 1;
177        }
178    }
179}
180
181/**
182 * In page output
183 */
184#plugin__struct_output {
185    margin-right: 16em; // space for the TOC
186    border: 1px solid @ini_border;
187    margin-bottom: 1.2em;
188
189    div.table {
190        margin: 0;
191
192        table {
193            font-size: 90%;
194            width: 100%;
195            border: none;
196            margin: 0;
197
198            td, th {
199                background-color: transparent;
200                vertical-align: top;
201                border: none;
202            }
203
204            tbody th {
205                width: 20%;
206                text-align: right;
207
208                &::after {
209                    content: ':';
210                }
211            }
212
213            thead th {
214                background-color: @ini_background_alt;
215                text-align: center;
216                font-size: 110%;
217                font-weight: normal;
218            }
219        }
220    }
221}
222
223/**
224 * Aggregation
225 */
226.dokuwiki .structaggregation {
227    table th {
228        a {
229            color: @ini_link;
230            font-weight: bold;
231
232            &.sort-up::before {
233                content: '↑';
234            }
235            &.sort-down::before {
236                content: '↓';
237            }
238        }
239
240        input {
241            width: 20px;
242            background-image: url(../../tpl/dokuwiki/images/search.png);
243            background-repeat: no-repeat;
244            background-position: 2px center;
245            padding-left: 20px;
246        }
247
248        input:not([value]) {
249            opacity: 0.5;
250        }
251
252        input:focus {
253            width: auto;
254            opacity: 1;
255        }
256    }
257}
258
259.dokuwiki .structlookup {
260    table.inline {
261        min-width: 100%;
262
263        th.action {
264            width: 30px; //16px icon + margins
265        }
266    }
267}
268
269.dokuwiki .struct_inlineditor {
270    position: absolute;
271    top: 0;
272    left: 0;
273    width: 300px;
274
275    background-color: @ini_background;
276    color: @ini_text;
277    border: 1px solid @ini_border;
278    padding: 5px;
279
280    box-shadow: 5px 5px 10px 0 rgba(0,0,0,0.5);
281
282    .ctl {
283        margin-top: 5px;
284    }
285
286    .err {
287        font-size: 90%;
288        margin-top: 5px;
289        padding: 5px;
290        background-color: @ini_highlight;
291        color: @ini_text;
292    }
293}
294