xref: /dokuwiki/lib/plugins/extension/style.less (revision f910b299e4bbc59cfbe4e68af5d34ea2e5815574)
1/*
2 * Extension plugin styles
3 *
4 * @author  Christopher Smith <chris@jalakai.co.uk>
5 * @author  Piyush Mishra <me@piyushmishra.com>
6 * @author  Håkan Sandell <sandell.hakan@gmail.com>
7 * @author  Anika Henke <anika@selfthinker.org>
8 */
9
10/**
11 * very simple lightbox
12 * @link http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/super-simple-lightbox-with-css-and-jquery/
13 */
14#plugin__extensionlightbox {
15    position: fixed;
16    top: 0;
17    left: 0;
18    width: 100%;
19    height: 100%;
20    background: url(images/overlay.png) repeat;
21    text-align: center;
22    cursor: pointer;
23    z-index: 9999;
24
25    p {
26        text-align: right;
27        color: #fff;
28        margin-right: 20px;
29        font-size: 12px;
30    }
31
32    img {
33        box-shadow: 0 0 25px #111;
34        -webkit-box-shadow: 0 0 25px #111;
35        -moz-box-shadow: 0 0 25px #111;
36        max-width: 90%;
37        max-height: 90%;
38    }
39}
40
41/**
42 * general styles
43 */
44#extension__manager {
45    // tab layout - most of it is in the main template
46    ul.tabs li.active a {
47        background-color: @ini_background_alt;
48        border-bottom: solid 1px @ini_background_alt;
49        z-index: 2;
50    }
51    .panelHeader {
52        background-color: @ini_background_alt;
53        margin: 0 0 10px 0;
54        padding: 10px 10px 8px;
55        text-align: left;
56        overflow: hidden;
57    }
58
59    // message spacing
60    div.msg {
61        margin: 0.4em 0 0 0;
62    }
63}
64
65/*
66 * extensions table
67 */
68#extension__list {
69    ul.extensionList {
70        margin-left: 0;
71        margin-right: 0;
72        padding: 0;
73        list-style: none;
74    }
75
76    ul.extensionList li {
77        margin: 0 0 .5em;
78        padding: 0 0 .5em;
79        color: @ini_text;
80        border-bottom: 1px solid @ini_border;
81        overflow: hidden;
82    }
83
84    input.button {
85        margin: 0 .3em .3em 0;
86    }
87}
88
89/**
90 * extension table left column
91 */
92#extension__list .legend {
93    position: relative;
94    width: 75%;
95    float: left;
96
97    // padding
98    > div {
99        padding: 0 .5em 0 132px;
100        border-right: 1px solid @ini_background_alt;
101        overflow: hidden;
102    }
103
104    // screenshot
105    div.screenshot {
106        margin-top: 4px;
107        margin-left: -132px;
108        max-width: 120px;
109        float: left;
110        position: relative;
111
112        img {
113            width: 120px;
114            height: 70px;
115            border-radius: 5px;
116            box-shadow: 2px 2px 2px #666;
117        }
118
119        span {
120            min-height: 24px;
121            min-width: 24px;
122            position: absolute;
123            left: 0px;
124            top: 0px;
125        }
126    }
127
128    // plugin headline
129    h2 {
130        width: 100%;
131        float: right;
132        margin: 0.2em 0 0.5em;
133        font-size: 100%;
134        font-weight: normal;
135        border: none;
136
137        strong {
138            font-size: 120%;
139            font-weight: bold;
140            vertical-align: baseline;
141        }
142    }
143
144    // description
145    p {
146        margin: 0 0 0.6em 0;
147    }
148
149    // popularity bar
150    div.popularity {
151        background-color: @ini_background;
152        border: 1px solid silver;
153        height: .4em;
154        margin: 0 auto;
155        padding: 1px;
156        width: 5.5em;
157        position: absolute;
158        right: .5em;
159        top: 0.2em;
160
161        div {
162            background-color: @ini_border;
163            height: 100%;
164
165            span {
166                display: none;// @todo: hide accessibly
167            }
168        }
169    }
170
171    // Docs, Bugs, Tags
172    span.linkbar {
173        font-size: 85%;
174
175        span.tags {
176            padding-left: 18px;
177            background: transparent url(images/tag.png) no-repeat 0 0;
178        }
179    }
180
181    // more info button
182    a.info {
183        background: transparent url(images/up.png) no-repeat 0 0;
184        border-width: 0;
185        height: 13px;
186        width: 13px;
187        text-indent: -9999px;
188        float: right;
189        margin: .5em 0 0;
190        overflow: hidden;
191
192        &.close {
193            background: transparent url(images/down.png) no-repeat 0 0;
194        }
195    }
196
197    // detailed info box
198    dl.details {
199        margin: 0.4em 0 0 0;
200        font-size: 85%;
201        border-top: 1px solid @ini_background_alt;
202        clear: both;
203
204        dt {
205            clear: left;
206            float: left;
207            width: 25%;
208            margin: 0;
209            text-align: right;
210            font-weight: normal;
211            padding: 0.2em 5px 0 0;
212        }
213
214        dd {
215            margin-left: 25%;
216            font-weight: bold;
217            padding: 0.2em 0 0 5px;
218
219            a {
220                font-weight: normal;
221            }
222        }
223    }
224}
225
226/*
227 * Enabled/Disabled overrides
228 */
229#extension__list {
230    .enabled div.screenshot span {
231        background: transparent url(images/enabled.png) no-repeat 2px 2px;
232    }
233
234    .disabled div.screenshot span {
235        background: transparent url(images/disabled.png) no-repeat 2px 2px;
236    }
237
238    .disabled .legend {
239        opacity: 0.7;
240    }
241}
242
243/**
244 * extension table right column
245 */
246#extension__manager .actions {
247    padding: 0;
248    font-size: 95%;
249    width: 25%;
250    float: right;
251    text-align: right;
252
253    .version {
254        display: block;
255    }
256
257    p {
258        margin: 0.2em 0;
259        text-align: center;
260    }
261}
262
263/**
264 * Search form
265 */
266#extension__manager form.search {
267    display: block;
268    margin-bottom: 2em;
269
270    span {
271        font-weight: bold;
272    }
273
274    input.edit {
275        width: 25em;
276    }
277}
278
279/**
280 * Install form
281 */
282#extension__manager form.install {
283    text-align: center;
284    display: block;
285    width: 60%;
286}
287