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

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

css sprites

  • Property svn:eol-style set to LF
File size: 14.2 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#menubar .button {
18        margin: -2px 2px 2px;
19        width: auto;
20        padding: 0;
21        text-indent: 0;
22        list-style: none;
23        text-align: center;
24        float: right;
25}
26
27/* H2 properties copied here */
28#menubar DT {
29        font-weight: bold;
30        padding: 5px;
31        font-size: 120%;
32        text-align: center;
33}
34
35#menubar UL,
36#menubar FORM,
37#menubar P {
38        font-size: 92%;
39        margin: 10px 0 10px 5px;
40}
41#menubar UL {
42        list-style-type: square;
43        list-style-position: inside;
44        padding: 0 0 0 2px;
45}
46#menubar UL UL {
47        font-size: 100%;
48        margin-top: 0;
49        margin-bottom: 0;
50}
51
52/*IE6 needs override because of > selector*/
53#menubar LI.selected>A {
54        font-weight: bold;
55}
56
57#menubar .menuInfoCatByChild {
58        font-size: 80%;
59        font-style: italic;
60}
61
62#menubar INPUT {
63        text-indent: 2px;
64}
65
66/* quickconnect form */
67FORM#quickconnect {
68        margin: 5px;
69        padding: 0;
70}
71
72FORM#quickconnect FIELDSET {
73        margin: 0;
74        padding: 0; /*IE6 requires padding 0*/
75}
76
77FORM#quickconnect FIELDSET DIV {
78        margin: 8px 5px;
79        padding: 0;
80}
81
82#menubar #menuTagCloud {
83        text-align: center;
84        margin: 5px 0;
85}
86
87#menubar #menuTagCloud SPAN {
88        white-space: nowrap;
89        margin-right: 5px;
90}
91
92/**
93 * Content
94 */
95.content {
96        margin: 1em;
97}
98
99#theCategoryPage .content
100{
101        margin-left: 20em;  /* = #menubar width + 2em */
102}
103
104.content H2 { margin-bottom: 3px;} /*<- for IE otherwise calendar select is displaced to middle of page*/
105
106.content .navigationBar, .content .additional_info, .content .calendarBar {
107        margin: 8px 4px;
108        text-align: center;
109}
110
111.content .pageNumberSelected {
112        font-style: italic;
113        font-weight: bold;
114}
115
116.content .additional_info {
117        font-size: 110%;
118}
119
120.content DIV.titrePage {
121        padding: 0 0 3px;
122}
123
124/* actions */
125UL.categoryActions {
126        margin: 0 2px;
127        width: auto;
128        padding: 0;
129        text-indent: 0;
130        list-style: none;
131        text-align: center;
132        float: right;
133}
134
135UL.categoryActions LI {
136        display: inline;
137}
138
139UL.categoryActions A IMG, UL.categoryActions A {
140        border: 0;
141        margin-bottom: -5px;
142}
143
144/* begin chronology/calendar elements*/
145.content .calendarViews {
146        display: block;
147        float: right;
148        margin: 2px 0 0;
149}
150
151.calItem, .calItemEmpty {
152        font-weight: bold;
153        margin: 0 1px;
154        border: 1px solid gray;
155}
156
157.calItem A { border:0 }
158
159.content .calendarCalBar {
160        margin: 10px;
161        text-align: left;
162}
163
164.calCalHead {
165        font-weight: bold;
166        font-size: 110%;
167        margin: 0 2px;
168}
169
170.calCal { margin: 0 2px; }
171
172/* nice looking month calendar*/
173TABLE.calMonth {
174        border: 0;
175        border-collapse: collapse;
176        margin-bottom: 10px;    /*<-IE ignores this */
177}
178
179TD.calDayCellFull, TD.calDayCellEmpty {
180        vertical-align: top;
181        font-weight: bold;
182        font-size: 18px;
183        border: 1px solid gray;
184}
185
186TD.calDayHead {
187  font-weight: bold;
188  font-size: 12px;
189        text-align: center;
190}
191
192.calImg {
193        overflow: hidden;
194        vertical-align: bottom;
195        z-index: 1;
196        position: relative; /*<- this required by IE*/
197}
198
199.calImg IMG {
200        position: relative;
201        border: 0;
202}
203
204.calBackDate {
205        padding-left: 4px;
206        padding-top: 0;
207        z-index: 2;
208        position: absolute;
209        vertical-align: top;
210        color: #000;
211}
212
213.calForeDate {
214        padding-left: 5px;
215        padding-top: 1px;
216        z-index: 3;
217        position: absolute;
218        vertical-align: top;
219        color: #fff;
220}
221
222/* Category thumbnails on main page, CSS code inspired from MOD subcatify */
223.content UL.thumbnailCategories {
224        margin: 0;
225        padding: 0;
226        list-style: none;
227        overflow: hidden;
228        width: 100%;
229}
230
231.content UL.thumbnailCategories LI {
232        margin:0;
233        padding:0;
234        float:left;
235}
236
237.content DIV.thumbnailCategory {
238        display:block;
239        padding: 2px 0 0 2px;
240        margin: 5px;
241}
242
243.content DIV.thumbnailCategory DIV.description {
244        font-size: 90%;
245        overflow: auto;
246        /*width: inherit;*/
247}
248
249.content DIV.thumbnailCategory DIV.description H3 {
250        text-align: left;
251        background: transparent;
252        margin: 0;
253        padding: 0.1em;
254        font-size: 120%;
255}
256
257.content DIV.thumbnailCategory DIV.description P {
258        margin: 0;
259}
260
261.content DIV.thumbnailCategory DIV.illustration {
262        text-align: left;
263        margin: 2px 0 0 2px;
264        float: left;
265}
266
267
268/* User comments */
269DIV#comments {
270        padding-left: 5px;
271        padding-right: 5px;
272}
273
274DIV#comments DIV.description {
275        font-size: 100%;
276}
277
278/* Thumbnails */
279UL.thumbnails SPAN.thumbLegend {
280        font-size: 90%;
281        overflow: hidden;/* oversized legend is clipped */
282}
283
284/* Thumbnail "elastic" layout */
285UL.thumbnails {
286        margin: 0;
287        padding: 0;
288        list-style: none;
289        text-align: center;     /* to center the whole collection in .content */
290}
291UL.thumbnails LI { display: inline }
292
293UL.thumbnails SPAN.wrap1 {
294        margin: 0 5px 5px 5px;
295        display: table-cell; display: inline-table;
296        display: inline-block;/* Why 3 display option ??? */
297        vertical-align: top;    /* OK with Opera and IE6 not Geko */
298        text-align: center;             /* to center the thumbnail and legend in Geko/Opera */
299}
300UL.thumbnails SPAN.wrap2 {
301        margin: 0;                      /* important reset the margins */
302        display: table-cell;/* block prevents vertical-align here */
303        vertical-align: middle;/* Ok with Opera and Geko not IE6 */
304        border-radius: 4px;     /* round corners with CSS3 compliant browsers */
305        -moz-border-radius: 4px;        /* round corners with Geko */
306        -webkit-border-radius: 4px; /* Safari webkit project */
307}
308UL.thumbnails SPAN.wrap2 A,
309UL.thumbnails LABEL {
310        display: block;
311        border-bottom: 0;
312}
313UL.thumbnails IMG {
314        margin-bottom: -4px;  /* why ??? something wrong with Geko and Opera ignored by IE6*/
315}
316
317/**
318 * Picture
319 */
320#imageHeaderBar {
321        padding-top: 2px;
322        padding-bottom: 2px;
323        margin-top: 4px;
324        overflow: hidden;
325        width: 100%;
326}
327
328#imageHeaderBar .browsePath {
329        float: left;
330        margin-left: 10px;
331}
332
333#imageHeaderBar .imageNumber {
334        float: right;
335        margin-right: 10px;
336}
337
338#imageHeaderBar H2 {
339        text-align: center;
340        padding: 0;
341        clear: both;
342}
343
344#imageToolBar {
345        text-align: center;
346        position: relative;
347        clear: both;
348        margin-bottom: 4px;
349        padding: 0;
350        height: 28px;
351}
352
353#imageToolBar A, #imageToolBar IMG {
354        display: block;
355        border: 0;
356        margin: 0; padding: 0;
357}
358#imageToolBar A { width: 48px; }
359#imageToolBar IMG { margin: 2px auto; }
360#imageToolBar .randomButtons A { float: left; }
361#imageToolBar .navButtons    A { float: right; }
362
363#theImage {
364        clear: left;
365        text-align: center;
366}
367
368#theImage>IMG {
369        display: block;
370        margin: 0 auto;
371        border: 0;
372}
373
374#linkPrev {
375        float: left;
376        margin-right: 10px;
377        margin-left: 5px;
378}
379
380#linkNext {
381        float: right;
382        margin-right: 5px;
383        margin-left: 10px;
384}
385
386TABLE.infoTable .label {
387        font-weight: bold;
388        text-align: right;
389        padding-right: 0.5em;
390}
391
392TABLE.infoTable TD.value UL {
393        margin: 0;
394        padding: 0 0 0 1.5em;
395        list-style-type: square;
396}
397
398.thumbnailCategories LI { list-style: none; }
399
400.rateButton, .rateButtonSelected, .rateButtonStarFull, .rateButtonStarEmpty  {
401        padding:0;
402        border:0;
403        color:inherit;
404        background-color:transparent !important;        /* Konqueror doesn't accept transparent here */
405}
406
407.rateButton, .rateButtonStarFull, .rateButtonStarEmpty {
408        cursor: pointer;
409}
410
411.rateButtonSelected {
412        font-weight:bold;
413        font-size:120%;
414}
415
416.rateButtonStarFull {
417        background: url('icon/rating-stars.gif') no-repeat scroll; background-position:-16px center; width:16px;
418}
419
420.rateButtonStarEmpty {
421        background: url('icon/rating-stars.gif') no-repeat scroll; background-position:0 center; width:16px;
422}
423
424
425/**
426 * Default Layout
427 */
428BODY {
429        margin: 5px;
430        padding: 0;
431        font-size: 0.8em;
432        font-family: Arial,Helvetica,sans-serif;
433        min-width: 60em;  /* ~ 3* #menubar width; width of the page before getting a scrollbar; IE6 doesn't get that*/
434}
435
436#thePopuphelpPage {
437        min-width: 0; /*reset the min width*/
438}
439
440
441H1 {
442        text-align: center;
443        font-size: 150%;
444        font-weight: bold;
445        padding: 0;
446        margin: 0.5em 0 1em 0;
447}
448
449H2 {
450        margin: 0;
451        padding: 5px 0.5em;
452        text-align: left;
453        font-size: 120%;
454}
455
456A {
457        text-decoration:none;
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;}
820
Note: See TracBrowser for help on using the repository browser.