source: trunk/themes/default/theme.css @ 14028

Last change on this file since 14028 was 14028, checked in by rvelices, 12 years ago
  • css (removed unused, merge rules, simplified overly complicated selectors)
  • Property svn:eol-style set to LF
File size: 13.1 KB
Line 
1@import "iconset.css";
2/**
3 * Menubar
4 */
5#menubar {
6        float: left;
7        margin: 0 0 10px 1em;
8        padding: 0;
9        display: inline;
10        width: 18em;
11}
12
13#menubar DL, #menubar DT, #menubar DD {
14        margin: 0; padding: 0; display: block;
15}
16
17.menubarFilter {
18        float: right;
19        margin: -4px 0 0;
20}
21
22/* H2 properties copied here */
23#menubar DT {
24        font-weight: bold;
25        padding: 5px;
26        font-size: 120%;
27        text-align: center;
28}
29
30#menubar UL,
31#menubar FORM,
32#menubar P {
33        font-size: 92%;
34        margin: 10px 0 10px 5px;
35}
36#menubar UL {
37        list-style-type: square;
38        list-style-position: inside;
39        padding: 0 0 0 2px;
40}
41#menubar UL UL {
42        font-size: 100%;
43        margin-top: 0;
44        margin-bottom: 0;
45}
46
47/*IE6 needs override because of > selector*/
48#menubar LI.selected>A {
49        font-weight: bold;
50}
51
52#menubar .menuInfoCatByChild {
53        font-size: 80%;
54        font-style: italic;
55}
56
57#mbCategories IMG {
58        vertical-align: bottom; /*otherwise line height changes*/
59}
60
61#menubar INPUT {
62        text-indent: 2px;
63}
64
65/* quickconnect form */
66
67#quickconnect FIELDSET {
68        margin: 0 5px 0 0;
69        padding: 0; /*IE6 requires padding 0*/
70}
71
72#quickconnect DIV {
73        margin: 8px 5px;
74        padding: 0;
75}
76
77#menuTagCloud {
78        text-align: center;
79        margin: 5px 0;
80}
81
82#menuTagCloud SPAN {
83        white-space: nowrap;
84        margin-right: 5px;
85}
86
87/**
88 * Content
89 */
90.contentWithMenu {
91        margin-left: 20em;  /* = #menubar width + 2em */
92}
93
94.content H2 { margin-bottom: 3px;} /*<- for IE otherwise calendar select is displaced to middle of page*/
95
96.content .navigationBar, .content .additional_info, .content .calendarBar {
97        margin: 8px 4px;
98        text-align: center;
99}
100
101.content .pageNumberSelected {
102        font-style: italic;
103        font-weight: bold;
104}
105
106.content .additional_info {
107        font-size: 110%;
108}
109
110.content .titrePage {
111        padding: 0 0 3px;
112}
113
114.content .notification {
115  padding:0 25px;
116}
117
118/* actions */
119.categoryActions {
120        margin: 0 2px;
121        width: auto;
122        padding: 0;
123        text-indent: 0;
124        list-style: none;
125        text-align: center;
126        float: right;
127}
128
129.categoryActions LI {
130        display: inline;
131}
132
133/* begin chronology/calendar elements*/
134.calendarViews {
135        display: block;
136        float: right;
137        margin: 2px 0 0;
138}
139
140.calItem, .calItemEmpty {
141        font-weight: bold;
142        margin: 0 1px;
143        border: 1px solid gray;
144}
145
146.calItem A { border:0 }
147
148.calendarCalBar {
149        margin: 10px;
150        text-align: left;
151}
152
153.calCalHead {
154        font-weight: bold;
155        font-size: 110%;
156        margin: 0 2px;
157}
158
159.calCal { margin: 0 2px; }
160
161/* nice looking month calendar*/
162TABLE.calMonth {
163        border: 0;
164        border-collapse: collapse;
165        margin-bottom: 10px;    /*<-IE ignores this */
166}
167
168TD.calDayCellFull, TD.calDayCellEmpty {
169        vertical-align: top;
170        font-weight: bold;
171        font-size: 18px;
172        border: 1px solid gray;
173}
174
175.calImg {
176        overflow: hidden;
177        vertical-align: bottom;
178        z-index: 1;
179        position: relative; /*<- this required by IE*/
180}
181
182.calImg IMG {
183        position: relative;
184        border: 0;
185}
186
187.calBackDate {
188        padding-left: 4px;
189        padding-top: 0;
190        z-index: 2;
191        position: absolute;
192        vertical-align: top;
193        color: #000;
194}
195
196.calForeDate {
197        padding-left: 5px;
198        padding-top: 1px;
199        z-index: 3;
200        position: absolute;
201        vertical-align: top;
202        color: #fff;
203}
204
205/* Category thumbnails on main page, CSS code inspired from MOD subcatify */
206.thumbnailCategories {
207        margin: 0;
208        padding: 0;
209        list-style: none;
210        overflow: hidden;
211        width: 100%;
212}
213
214.thumbnailCategories LI {
215        margin: 0;
216        padding: 0;
217        float: left;
218        width: 49.7%;    /* 49.7% for 2 per line, 33.2% for 3 per line*/
219}
220
221.thumbnailCategory {
222        display:block;
223        padding: 2px 0 0 2px;
224        margin: 5px;
225}
226
227.thumbnailCategory .description {
228        font-size: 90%;
229        overflow: auto;
230        /*width: inherit;*/
231}
232
233.thumbnailCategory .description H3 {
234        text-align: left;
235        background: transparent;
236        margin: 0;
237        padding: 0.1em;
238        font-size: 120%;
239}
240
241.thumbnailCategory .description P {
242        margin: 0;
243}
244
245.illustration {/*also used by comment lists*/
246        text-align: left;
247        margin: 2px 0 0 2px;
248        float: left;
249}
250
251
252/* User comments */
253#comments {
254        padding-left: 5px;
255        padding-right: 5px;
256}
257
258.commentsList {
259        margin: 0;
260        padding: 0;
261        list-style: none;
262        overflow: hidden;
263        width: 100%;
264}
265
266.commentElement {
267        border-radius: 5px;
268        margin: 5px;
269        padding: 2px 0 0 2px;
270        float: left;
271        width:99%;
272}
273
274.commentElement .description {
275        overflow: auto;
276        /*width: inherit;*/
277}
278
279/* Thumbnails */
280
281/* Thumbnail "elastic" layout */
282.thumbnails {
283        margin: 0;
284        padding: 0;
285        list-style: none;
286        text-align: center;     /* to center the whole collection in .content */
287}
288.thumbnails LI { display: inline }
289
290.thumbnails .wrap1 {
291        margin: 0 7px 5px 7px;
292        display: table-cell; display: inline-table;
293        display: inline-block;/* Why 3 display option ??? */
294        vertical-align: top;    /* OK with Opera and IE6 not Geko */
295        text-align: center;             /* to center the thumbnail and legend in Geko/Opera */
296}
297.thumbnails .wrap2 {
298        margin: 0;                      /* important reset the margins */
299        display: table-cell;/* block prevents vertical-align here */
300        vertical-align: middle;/* Ok with Opera and Geko not IE6 */
301        border-radius: 4px;     /* round corners with CSS3 compliant browsers */
302}
303
304.thumbnails .wrap2 A {
305        display: block;
306        border-bottom: 0;
307}
308.thumbnails IMG {
309        vertical-align: middle;
310}
311
312.thumbnails SPAN.thumbLegend {
313        overflow: hidden;/* oversized legend is clipped */
314        display: block;  /* display: none; if you don't want legend */
315        height: 4em;    /* legend height (don't set auto to be Gecko friendly)*/
316}
317
318/**
319 * Picture
320 */
321#imageHeaderBar {
322        padding-top: 2px;
323        padding-bottom: 2px;
324        overflow: hidden;
325        width: 100%;
326}
327
328#imageHeaderBar .browsePath {
329        float: left;
330        margin-left: 10px;
331}
332
333#imageToolBar .imageNumber {
334        float: right;
335        margin:-20px 9px 0 0;
336}
337
338#imageHeaderBar H2 {
339        display: inline;
340        text-align: center;
341        padding: 0;
342}
343
344#imageToolBar {
345        text-align: center;
346        clear: both;
347        margin-bottom: 2px;
348        padding: 0;
349        height: 28px;
350}
351
352#imageToolBar .actionButtons { float: left; }
353#imageToolBar .navigationButtons   { float: right; }
354#imageToolBar .pwg-button {width:42px;}
355
356.switchBox {
357        padding: 0.5em 5px;
358        border-radius: 4px;
359        z-index: 100;
360        text-align:left;
361        display: none;
362        position: absolute;
363        left: 0; top: 0; /*left, right set through js*/
364}
365
366.switchBoxTitle {
367  border-bottom:1px solid #ccc;
368  padding-bottom:5px;
369  margin-bottom:5px;
370}
371
372.relSwitchBox {
373        position: relative;
374}
375
376#theImage {
377        clear: left;
378        text-align: center;
379}
380
381#imageInfos {
382        position: relative;
383        min-height: 120px;
384}
385
386#linkPrev {
387        float: left;
388        margin: 5px 10px 0 5px;
389}
390
391#linkNext {
392        float: right;
393        margin: 5px 5px 0 10px;
394}
395
396.imageInfoTable UL { /*this is the album list*/
397        margin: 0;
398        padding: 0 0 0 1em;
399        list-style-type: square;
400}
401
402.rateButton, .rateButtonSelected, .rateButtonStarFull, .rateButtonStarEmpty  {
403        padding:0;
404        border:0;
405        color:inherit;
406        background-color:transparent !important;        /* Konqueror doesn't accept transparent here */
407}
408
409.rateButton, .rateButtonStarFull, .rateButtonStarEmpty {
410        cursor: pointer;
411}
412
413.rateButtonSelected {
414        font-weight:bold;
415        font-size:120%;
416}
417
418.rateButtonStarFull {
419        background: url('icon/rating-stars.gif') no-repeat -16px center; width:16px;
420}
421
422.rateButtonStarEmpty {
423        background: url('icon/rating-stars.gif') no-repeat 0 center; width:16px;
424}
425
426.contentWithMenu #imageToolBar, 
427.contentWithMenu #theImage { 
428        clear: none;
429}
430
431/**
432 * Default Layout
433 */
434BODY {
435        margin: 5px;
436        padding: 0;
437        font-size: 0.8em;
438        font-family: Arial,Helvetica,sans-serif;
439        min-width: 60em;  /* ~ 3* #menubar width; width of the page before getting a scrollbar; IE6 doesn't get that*/
440}
441
442IMG {
443        border: 0; /*IE<=9 adds border for linked images*/
444}
445
446#thePopuphelpPage {
447        min-width: 0; /*reset the min width*/
448}
449
450
451H1 {
452        text-align: center;
453        font-size: 150%;
454        font-weight: bold;
455        padding: 0;
456        margin: 0.5em 0 1em 0;
457}
458
459H2 {
460        margin: 0;
461        padding: 5px 0.5em;
462        text-align: left;
463        font-size: 120%;
464}
465
466A {
467        text-decoration:none;
468}
469A:hover {
470        border-bottom: 1px solid #858460;
471}
472A.pwg-state-default:hover {
473        border-bottom: 0; /*reset above for icons*/
474}
475
476#copyright {
477        clear: both;
478        font-size: 83%;
479        text-align: center;
480        margin: 0 0 10px 0;
481}
482
483INPUT, SELECT {
484        margin: 0;
485        font-size: 1em; /* <= some browsers don't set it correctly */
486}
487
488TABLE { /* horizontaly centered */
489        margin-left: auto;
490        margin-right: auto;
491}
492
493
494FORM { padding: 0; margin: 0; }
495
496FORM P {
497        text-align: center;
498        margin-top: 2em;
499        margin-bottom: 2em;
500}
501
502FORM FIELDSET P {
503        margin-top: 1em;
504        margin-bottom: 0;
505}
506
507SELECT.categoryList {
508        height: 20em;
509        width: 500px;
510}
511
512
513/**
514 * Filter forms are displayed label by label with the input (or select...)
515 * below the label. Use an UL to make a group (radiobox for instance).
516 * Use a SPAN to group objects in line
517 */
518FIELDSET {
519        padding: 1em;
520        margin: 1em;
521        overflow: hidden; /* <- makes Opera happy */
522}
523
524.filter UL,
525.filter LABEL {
526        display: block;
527        float: left;
528        margin-right: 1em;
529        padding: 0;
530}
531
532.filter LI {
533        list-style: none;
534        margin-bottom: 0.5em;
535}
536
537.filter LI LABEL {
538        display: inline;
539        float: none;
540}
541
542/*IE6 needs override because of > selector*/
543.filter LABEL>INPUT,
544.filter LABEL>SELECT {
545        display: block;
546        margin: 0.5em 0;
547}
548
549.filter FIELDSET * LABEL>INPUT,
550.filter FIELDSET * LABEL>SELECT {
551        display: inline;
552        vertical-align: top;
553        margin: 0 0.5em 0 0;
554}
555
556
557.properties UL {
558        list-style-type: none;
559        margin: 0;
560        padding: 0;
561}
562
563.properties LI {
564        margin-bottom: 0.5em;
565        padding: 0;
566        line-height: 1.8em;
567        clear: left;
568}
569
570.properties SPAN.property {
571        font-weight: bold;
572        float: left;
573        width: 50%;
574        text-align: right;
575        margin: 0;
576        padding: 0 0.5em 0 0;
577}
578
579.tagSelection {
580        width: 99%;
581        margin: 1em 0;
582        padding: 0;
583}
584
585.tagSelection LI {
586        display:inline-block;
587        width:150px!important;
588        overflow:hidden;
589        white-space: nowrap;
590}
591
592#fullTagCloud {
593        font-size: 120%;
594        text-align: justify;
595        padding: 0;
596        margin: 1em 2em;
597}
598
599#fullTagCloud SPAN {
600        white-space: nowrap;
601        margin: 0 2px;
602}
603
604
605.tagLevel5 { font-size: 150% !important; }
606.tagLevel4 { font-size: 140% !important; }
607.tagLevel3 { font-size: 120% !important; }
608.tagLevel2 { font-size: 100% !important; }
609.tagLevel1 { font-size: 90%  !important; }
610
611
612/* Popup help page */
613#thePopuphelpPage #copyright {
614        display: none;
615}
616
617#thePopuphelpPage P {
618        padding: 0.5em;
619}
620
621#thePopuphelpPage DL  {
622        margin: 0 25px 25px; 
623}
624
625TR.tagLine {
626        border-bottom: 1px solid #ddd;
627}
628TD.nbEntries {
629        text-align: right;
630        font-style: italic;
631        font-size: 90%;
632}
633
634FIELDSET.tagLetter {
635        border: 1px solid #d3d3d3;
636        width: 200px;
637        margin: 0.5em;
638        padding: 10px;
639}
640
641LEGEND.tagLetterLegend {
642        border: 1px solid #d3d3d3;
643        font-size:120%;
644        font-weight: bold;
645        padding: 0 5px;
646        font-style: normal;
647}
648
649TABLE.tagLetterContent {
650        width:100%;
651        font-size:80%;
652        border-collapse : collapse;
653}
654
655#theHeader {text-align: center;}
656
657/* jQuery datepicker */
658IMG.ui-datepicker-trigger {
659        cursor : pointer;
660}
661
662
663/**
664 * Default colors
665 */
666
667 /* So that non-links are slightly greyed out */
668.content .navigationBar, .calItemEmpty, TD.calDayCellEmpty {
669        color: #b0b0b0;
670}
671
672/* Tables & forms */
673/* IE <= 6 is so bad with this that you can't merge with the following rule */
674INPUT[type="text"], INPUT[type="password"], INPUT[type="button"],
675INPUT[type="submit"], INPUT[type="reset"], INPUT[type="file"] {
676        color: #000;
677        background-color: #d3d3d3;      /* lightgrey */
678}
679
680SELECT, TEXTAREA {
681        color: #000;
682        background-color: #d3d3d3;      /* lightgrey */
683}
684
685INPUT:focus, SELECT:focus, TEXTAREA:focus {
686        background-color: #f5f5f5;      /* whitesmoke */
687}
688
689/* some theme set a border on INPUT  which is not pretty for radio/checkbox */
690INPUT[type="radio"], INPUT[type="checkbox"] {
691        border: none;   /* <= Opera needs this */
692}
693
694
695.errors { /* Errors display */
696        color: red;
697        font-weight: bold;
698        margin: 5px;
699        border: 1px solid red;
700        background: #ffe1e1 url(icon/errors.png) no-repeat center right;
701        padding: 10px 50px 10px 10px;
702}
703
704/* Informations box */
705.infos {
706        color: #002000;
707        background: #98fb98 url(icon/infos.png) no-repeat center right;
708        margin: 5px;
709        padding: 10px 50px 10px 10px;
710}
711
712/* Header message like upgrade*/
713.header_msgs {
714        text-align:center;
715        font-weight: bold;
716        color:#696969;  /* dimgray */
717        background-color: #d3d3d3;
718        margin: 1px;
719        padding: 1px;
720}
721
722/* Header notes box */
723.header_notes {
724        border: 1px solid #aaa;
725        text-align: center;
726        background-image: url(icon/note.png);
727        background-repeat: no-repeat;
728        background-position: top left;
729        font-weight: bold;
730        margin: 14px;
731        padding: 5px 0 0 0;
732}
733
734LEGEND {
735        font-style: italic;
736}
737
738#piwigoAbout {width:600px;margin:0 auto;}
739#linkToPiwigo {text-align:center;}
740
741.message {
742  background-color: lightyellow;
743  color:#333;
744  margin-bottom:1em;
745  padding: 12px;
746  -moz-border-radius: 3px;
747  -khtml-border-radius: 3px;
748  -webkit-border-radius: 3px;
749  border-radius: 3px;
750}
751
752#lostPassword {
753  padding: 1em;
754}
755
756#lostPassword p {
757  text-align: left;
758  margin: 1.5em 0;
759  line-height: 1.5em;
760}
761
762/* image comments rules */
763
764#commentAdd, #pictureCommentList        { width: 48%; padding: 0 1%;}
765#commentAdd                                             { float: left; }
766#pictureCommentList                                     { float: right; }
767
768#commentAdd input[type="text"],
769#comments TEXTAREA {
770        max-width: 99%;
771        width: 99%;
772}
773
774.commentAuthor {
775        font-weight: bold;
776}
777
778.commentDate {
779        font-style: italic
780}
781
782#pictureCommentList .commentsOrder      { float: left; margin-bottom: 5px;}
783#pictureCommentList .navigationBar      { float: right; margin-bottom: 5px;}
784#pictureComments h4                                     { margin: 0;}
785#comments FORM P         {
786        margin: 5px 0; text-align: left;
787}
788
789/* image info table */
790
791.imageInfoTable {display:table; margin: auto;}
792.imageInfo {display:table-row; line-height:20px;}
793.imageInfo dt {display:table-cell; text-align:right; font-weight:bold; padding-right:0.5em;}
794.imageInfo dd {display:table-cell; text-align:left; font-weight:normal;}
Note: See TracBrowser for help on using the repository browser.