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

Last change on this file since 7877 was 7877, checked in by rvelices, 13 years ago

-fix css rules

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