source: extensions/modus/css/base.css.tpl @ 25794

Last change on this file since 25794 was 25794, checked in by rvelices, 10 years ago
File size: 9.0 KB
Line 
1BODY {
2        margin: 0;
3        padding: 0;
4        font-size: 13px;
5        font-family: Arial,Helvetica,sans-serif;
6        min-width: 300px; /*responsive layout*/
7        background-color: {$skin.BODY.backgroundColor};
8        color: {$skin.BODY.color};
9}
10
11A {
12        text-decoration:none;
13        color: {$skin.A.color};
14}
15
16A:hover {
17        text-decoration:underline;
18        color: {$skin['A:hover'].color};
19}
20
21A .pwg-icon {
22        opacity: 0.9;
23}
24A:hover .pwg-icon {
25        opacity: 1;
26}
27
28IMG {
29        border: 0; /*IE <= 9 adds border for linked images*/
30}
31
32H2 {
33        margin: 0;
34        padding: 2px 5px 3px 0;
35        text-align: left;
36        font-size: 20px;
37        font-weight: normal;
38}
39
40BLOCKQUOTE {
41        margin: 8px 10px; /*reduce default user agent margin too large for mobiles*/
42}
43
44INPUT, SELECT {
45        margin: 0;
46        font-size: 1em; /* <= some browsers don't set it correctly */
47}
48
49TABLE { /* horizontaly centered */
50        margin-left: auto;
51        margin-right: auto;
52}
53
54
55FORM { padding: 0; margin: 0; }
56
57
58{if !empty($skin.controls)}
59INPUT[type="text"], INPUT[type="password"], SELECT, TEXTAREA
60{if empty($skin.buttons)}
61,INPUT[type="button"], INPUT[type="submit"], INPUT[type="reset"]
62{/if}
63{
64{if !empty($skin.controls.backgroundColor)}
65        background-color: {$skin.controls.backgroundColor};
66{/if}
67{if !empty($skin.controls.gradient)}
68        {$skin.controls.gradient|cssGradient};
69{/if}
70{if !empty($skin.controls.color)}
71        color: {$skin.controls.color};
72{/if}
73{if !empty($skin.controls.border)}
74        border: {$skin.controls.border};
75{/if}
76}
77{/if}
78
79{if !empty($skin['controls:focus'])}
80INPUT:focus, TEXTAREA:focus {
81{if !empty($skin['controls:focus'].backgroundColor)}
82        background-color: {$skin['controls:focus'].backgroundColor};
83{/if}
84{if !empty($skin['controls:focus'].color)}
85        color: {$skin['controls:focus'].color};
86{/if}
87{if !empty($skin['controls:focus'].boxShadow)}
88        box-shadow: {$skin['controls:focus'].boxShadow};
89{/if}
90}
91{/if}
92
93
94{if !empty($skin.buttons)}
95INPUT[type="button"], INPUT[type="submit"], INPUT[type="reset"] {
96{if !empty($skin.buttons.backgroundColor)}
97        background-color: {$skin.buttons.backgroundColor};
98{/if}
99{if !empty($skin.buttons.gradient)}
100        {$skin.buttons.gradient|cssGradient};
101{/if}
102{if !empty($skin.buttons.color)}
103        color: {$skin.buttons.color};
104{/if}
105{if !empty($skin.buttons.border)}
106        border: {$skin.buttons.border};
107{/if}
108}
109{/if}
110
111{if !empty($skin.buttonsHover)}
112INPUT[type="button"]:hover, INPUT[type="submit"]:hover, INPUT[type="reset"]:hover {
113{if !empty($skin.buttonsHover.backgroundColor)}
114        background-color: {$skin.buttonsHover.backgroundColor};
115{/if}
116{if !empty($skin.buttonsHover.gradient)}
117        {$skin.buttonsHover.gradient|cssGradient};
118{/if}
119{if !empty($skin.buttonsHover.color)}
120        color: {$skin.buttonsHover.color};
121{/if}
122{if !empty($skin.buttonsHover.boxShadow)}
123        box-shadow: {$skin.buttonsHover.boxShadow};
124{/if}
125{if !empty($skin.buttonsHover.border)}
126        border: {$skin.buttonsHover.border};
127{/if}
128}
129{/if}
130
131FIELDSET {
132        padding: 1em;
133        margin: 1em 0.5em;
134        overflow: hidden; /* <- makes Opera happy */
135        border: 1px solid gray;
136}
137
138LEGEND {
139        font-style: italic;
140        color: inherit; /*for IE*/
141}
142
143
144/**
145 * Content
146 */
147
148.titrePage {
149        padding: 3px 10px;
150        line-height: 24px;
151{if !empty($skin.pageTitle.backgroundColor)}
152        background-color: {$skin.pageTitle.backgroundColor};
153{/if}
154{if !empty($skin.pageTitle.gradient)}
155        {$skin.pageTitle.gradient|cssGradient}
156{/if}
157{if !empty($skin.pageTitle.color)}
158        color: {$skin.pageTitle.color};
159{/if}
160}
161
162{if !empty($skin.pageTitle.link.color)}
163.titrePage A {
164        color: {$skin.pageTitle.link.color};
165}
166{/if}
167
168{if !empty($skin.pageTitle.linkHover.color)}
169.titrePage A:hover {
170        color: {$skin.pageTitle.linkHover.color};
171}
172{/if}
173
174/* now revert text colors to dropdowns*/
175{if !empty($skin.pageTitle.color)}
176.titrePage .switchBox {
177        color: {$skin.BODY.color};
178}
179{/if}
180{if !empty($skin.pageTitle.link.color)}
181.titrePage .switchBox A {
182        color: {$skin.A.color};
183}
184{/if}
185
186{if !empty($skin.pageTitle.linkHover.color)}
187.titrePage .switchBox A:hover {
188        color: {$skin['A:hover'].color|default:$skin.A.color};
189}
190{/if}
191
192{if !empty($skin.pageTitle.textShadowColor)}
193.titrePage H2 A, #imageHeaderBar H2{
194        text-shadow: 1px 1px 3px {$skin.pageTitle.textShadowColor};
195}
196{/if}
197
198.content .navigationBar, .content .additional_info, .content .calendarBar {
199        margin: 8px 4px;
200        text-align: center;
201}
202
203.content .pageNumberSelected {
204        font-style: italic;
205        font-weight: bold;
206}
207
208.content .additional_info {
209        font-size: 110%;
210}
211
212.content .notification {
213  padding:0 25px;
214}
215
216/* category and tag results paragraphs on a quick search */
217.category_search_results, .tag_search_results {
218  font-size: 16px;
219  margin: 10px 16px;
220}
221
222/* actions */
223.categoryActions {
224        margin: 0 2px;
225        width: auto;
226        padding: 0;
227        text-indent: 0;
228        list-style: none;
229        text-align: center;
230        float: right;
231}
232
233.categoryActions LI {
234        display: inline;
235}
236
237.switchBox {
238        display: none;
239        position: absolute;
240        left: 0; top: 0; /*left, right set through js*/
241        padding: 0.5em;
242        z-index: 100;
243        text-align:left;
244        box-shadow: 2px 2px 5px gray;
245        background-color: {$skin.dropdowns.backgroundColor};
246}
247
248.switchBoxTitle {
249  border-bottom:1px solid gray;
250  padding-bottom:5px;
251  margin-bottom:5px;
252}
253
254#copyright {
255        clear: both;
256        font-size: 83%;
257        text-align: center;
258        margin: 0 0 10px 0;
259}
260
261A.wiki { cursor:help; }
262
263/* Loader gif new in 2.5 */
264.loader {
265  display: none;
266  position: fixed;
267  right: 0;
268  bottom: 0;
269}
270
271/* User comments */
272#comments {
273        padding-left: 5px;
274        padding-right: 5px;
275        clear: both; /*the main image and info table might float on picture page for large screens*/
276}
277
278.commentsList {
279        margin: 5px;
280        padding: 0;
281        list-style: none;
282}
283
284.commentElement {
285        border-radius: 5px;
286        margin: 5px 0;
287        padding: 2px 0 0 2px;
288        width: 100%;
289{if !empty($skin.comment.backgroundColor)}
290        background-color: {$skin.comment.backgroundColor};
291{/if}
292}
293
294.commentElement .description {
295        overflow: auto;
296        /*width: inherit;*/
297}
298
299#comments input[type="text"],
300#comments TEXTAREA {
301        max-width: 100%;
302        width: 100%;
303        -moz-box-sizing: border-box;
304        box-sizing: border-box;
305}
306
307.commentAuthor {
308        font-weight: bold;
309}
310
311.commentDate {
312        font-style: italic
313}
314
315#comments FORM P         {
316        margin: 5px 0;
317}
318
319
320/**
321 * Filter forms are displayed label by label with the input (or select...)
322 * below the label. Use an UL to make a group (radiobox for instance).
323 * Use a SPAN to group objects in line
324 */
325
326.filter UL,
327.filter FIELDSET>LABEL {
328        display: block;
329        float: left;
330        margin-right: 1em;
331        padding: 0;
332}
333
334.filter LI {
335        list-style: none;
336        margin-bottom: 0.5em;
337}
338
339/*IE6 needs override because of > selector*/
340.filter FIELDSET>LABEL>INPUT,
341.filter FIELDSET>LABEL>SELECT {
342        display: block;
343        margin: 0.5em 0;
344}
345
346
347.properties UL {
348        list-style: none;
349        margin: 0;
350        padding: 0;
351}
352
353.properties LI {
354        margin-bottom: 0.5em;
355        padding: 0;
356        line-height: 1.8em;
357        clear: left;
358}
359
360.properties SPAN.property {
361        font-weight: bold;
362        float: left;
363        width: 50%;
364        text-align: right;
365        margin: 0;
366        padding: 0 0.5em 0 0;
367}
368
369.properties P, .filter P {
370        text-align: center;
371        margin-top: 2em;
372        margin-bottom: 2em;
373}
374
375.tagSelection {
376        margin: 1em 0 !important;
377}
378
379.tagSelection LI {
380        display: inline-block;
381        width: 150px;
382        max-width: 49%;
383        overflow: hidden;
384        white-space: nowrap;
385}
386
387
388
389
390/* jQuery datepicker */
391/*IMG.ui-datepicker-trigger {
392        cursor : pointer;
393}*/
394
395
396/**
397 * Default colors
398 */
399
400 /* So that non-links are slightly greyed out */
401.content .navigationBar, SPAN.calItem, TD.calDayCellEmpty {
402        color: gray;
403}
404
405
406.errors { /* Errors display */
407        color: red;
408        font-weight: bold;
409        margin: 5px;
410        border: 1px solid red;
411        background: #ffe1e1 url(../../default/icon/errors.png) no-repeat center right;
412        padding: 10px 50px 10px 10px;
413}
414
415/* Informations box */
416.infos {
417        color: #002000;
418        background: #98fb98 url(../../default/icon/infos.png) no-repeat center right;
419        margin: 5px;
420        padding: 10px 50px 10px 10px;
421}
422
423/* Header message like upgrade*/
424.header_msgs {
425        text-align:center;
426        font-weight: bold;
427        color:#696969;  /* dimgray */
428        background-color: #d3d3d3;
429        margin: 1px;
430        padding: 1px;
431}
432
433.message {
434  color:white;
435  background-color:#666;
436  margin-bottom:1em;
437  padding: 12px;
438  border-radius: 3px;
439}
440
441/* image comments rules */
442
443#commentAdd {
444        float: left;
445        padding: 0 1%;
446        width: 48%;
447}
448
449#pictureCommentList {
450        float: right;
451        width: 50%;
452}
453
454/*#pictureCommentList .commentsOrder    { float: left; margin-bottom: 5px;}
455#pictureCommentList .navigationBar      { float: right; margin-bottom: 5px;}*/
456#pictureComments h4                                     { margin: 0;}
457
458
459
460@media screen and (max-width:480px) {
461        SELECT,INPUT { /*controls in fieldset should not trigger "scroll"*/
462                max-width: 270px;
463        }
464}
465
466
467#albumActionsSwitcher {
468        display: none;
469}
470
471@media screen and (max-width:640px) {
472        #albumActionsSwitcher {
473                display: block;
474                width: 42px;
475                padding-top: 2px;
476                text-align: right;
477                float: right;
478        }
479
480        #albumActionsSwitcher + .categoryActions {
481                display: none;
482                position: absolute;
483                z-index: 1;
484                background-color: {$skin.dropdowns.backgroundColor};
485                padding: 10px 5px 5px;
486                box-shadow: 2px 2px 5px gray;
487                opacity: 0.95;
488                text-align: left;
489                min-width: 180px;
490        }
491       
492        #albumActionsSwitcher + .categoryActions LI{
493                display: block;
494        }
495       
496        #albumActionsSwitcher + .categoryActions .pwg-button{
497                display: block;
498        }
499       
500        #albumActionsSwitcher + .categoryActions .pwg-button-text{
501                display: inline;
502                margin-left: 5px;
503                text-transform: capitalize;
504        }
505}
Note: See TracBrowser for help on using the repository browser.