xref: /plugin/struct/style.less (revision 53ed31251c00ac2e5b0c768ea5bae4cf4ab80c26)
1/**
2 * The input entry form
3 */
4#dw__editform .struct {
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    }
62
63    // this should not influence the design
64    .newtemplate {
65        display: inline;
66    }
67    // add some spacing to multi-value fields
68    .multiwrap {
69        display: inline-block;
70        margin: 0 0.25em 0.25em 0;
71    }
72}
73
74/**
75 * The Schema Editor
76 */
77#plugin__struct_editor {
78    tr.disabled {
79        td {
80            opacity: 0.5;
81        }
82
83        // collapse config block
84        td.config > div {
85            overflow: auto;
86            height: 2em;
87            div.jsoneditor-outer {
88                margin: 0;
89                padding: 0;
90            }
91        }
92
93        td.isenabled {
94            opacity: 1;
95        }
96    }
97}
98
99/**
100 * In page output
101 */
102#plugin__struct_output {
103    table {
104        font-size: 90%;
105        width: 100%;
106        margin-bottom: 1em;
107
108        border: none;
109        td, th {
110            background-color: transparent;
111            border: none;
112            border-top: 1px solid @ini_border;
113        }
114        tr:first-child td,
115        tr:first-child th {
116            border: none;
117        }
118
119        tbody th {
120            width: 20%;
121        }
122
123        thead th {
124            background-color: @ini_background_alt;
125            text-align: center;
126            font-size: 120%;
127            font-weight: normal;
128        }
129    }
130}
131
132/**
133 * Aggregation
134 */
135.structaggregation {
136    table th a {
137        color: @ini_link;
138        font-weight: bold;
139
140        &.sort-up::before {
141                content: '↑';
142        }
143        &.sort-down::before {
144            content: '↓';
145        }
146
147    }
148}
149
150