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

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

first sprite usage on picture page

  • 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        border-bottom: 1px dotted #005e89;
459}
460A:hover {
461        border-bottom: 1px solid #858460;
462}
463
464IMG {
465        border: 0;
466}
467
468HR.separation {
469        visibility: hidden;
470        clear: both;
471}
472
473#copyright {
474        clear: both;
475        font-size: 83%;
476        text-align: center;
477        margin: 0 0 10px 0;
478}
479
480INPUT, SELECT {
481        margin: 0;
482        font-size: 1em; /* <= some browsers don't set it correctly */
483}
484
485TABLE { /* horizontaly centered */
486        margin-left: auto;
487        margin-right: auto;
488}
489
490
491FORM { padding: 0; margin: 0; }
492
493FORM P {
494        text-align: center;
495        margin-top: 2em;
496        margin-bottom: 2em;
497}
498
499FORM FIELDSET P {
500        margin-top: 1em;
501        margin-bottom: 0;
502}
503
504SELECT.categoryList {
505        height: 20em;
506        width: 500px;
507}
508
509
510/**
511 * Filter forms are displayed label by label with the input (or select...)
512 * below the label. Use an UL to make a group (radiobox for instance).
513 * Use a SPAN to group objects in line
514 */
515FIELDSET {
516        padding: 1em;
517        margin: 1em;
518        overflow: hidden; /* <- makes Opera happy */
519}
520
521FORM.filter FIELDSET UL {
522  margin: 0;
523}
524FORM.filter FIELDSET UL,
525FORM.filter FIELDSET LABEL {
526        display: block;
527        float: left;
528        margin-right: 1em;
529        padding: 0;
530}
531
532FORM.filter FIELDSET LI {
533        list-style: none;
534        margin-bottom: 0.5em;
535}
536
537FORM.filter FIELDSET LI LABEL {
538        display: inline;
539        float: none;
540}
541
542FORM.filter FIELDSET UL.tagSelection LABEL {
543        display: inline;
544        float: none;
545        margin-right:0.5em;/*reduce from above*/
546}
547
548/* cannot use FIELDSET>LABEL because of IE<=6 */
549FORM.filter FIELDSET LABEL INPUT,
550FORM.filter FIELDSET LABEL SELECT,
551FORM.filter FIELDSET LABEL SPAN,
552FORM.filter FIELDSET LABEL TEXTAREA {
553  display: block;
554  margin: 0.5em 0;
555}
556FORM.filter FIELDSET * LABEL INPUT,
557FORM.filter FIELDSET * LABEL SELECT,
558FORM.filter FIELDSET * LABEL TEXTAREA,
559FORM.filter FIELDSET LABEL SPAN INPUT,
560FORM.filter FIELDSET LABEL SPAN SELECT,
561FORM.filter FIELDSET LABEL SPAN TEXTAREA {
562        display: inline;
563        vertical-align: top;
564        margin: 0 0.5em 0 0;
565}
566
567FORM.filter FIELDSET UL.tagSelection LI LABEL INPUT {
568        margin-right:0;
569}
570
571/* following declaration is important to avoid strange FF behaviour */
572FORM.filter FIELDSET LABEL SPAN SELECT {
573        margin: 0;
574}
575
576FORM.filter FIELDSET P
577{
578        clear: left;
579        display: block;
580}
581
582FORM.filter INPUT[type="submit"] {
583        margin-top: 1em;
584}
585
586FORM.properties UL {
587        list-style-type: none;
588        margin: 0;
589        padding: 0;
590}
591
592FORM.properties LI {
593        margin-bottom: 0.5em;
594        padding: 0;
595        line-height: 1.8em;
596        clear: left;
597}
598
599FORM.properties SPAN.property {
600        font-weight: bold;
601        float: left;
602        width: 50%;
603        text-align: right;
604        margin: 0;
605        padding: 0 0.5em 0 0;
606}
607
608/* button tools */
609UL.actions {
610        text-indent: 0;
611        list-style: none;
612}
613UL.actions LI {
614        display: inline;
615}
616UL.actions A, UL.actions IMG {
617        border: none;
618}
619
620UL.tagSelection {
621        width: 99%;
622        margin: 1em 0;
623        padding: 0;
624}
625
626UL.tagSelection LI {
627        display:inline-block;
628        width:150px!important;
629        overflow:hidden;
630        white-space: nowrap;
631}
632
633#fullTagCloud {
634        font-size: 120%;
635        text-align: justify;
636        padding: 0;
637        margin: 1em 2em;
638}
639
640#fullTagCloud SPAN {
641        white-space: nowrap;
642        margin: 0 2px;
643}
644
645
646.tagLevel5 { font-size: 150% !important; }
647.tagLevel4 { font-size: 140% !important; }
648.tagLevel3 { font-size: 120% !important; }
649.tagLevel2 { font-size: 100% !important; }
650.tagLevel1 { font-size: 90%  !important; }
651
652
653/* Popup help page */
654#thePopuphelpPage #copyright {
655        display: none;
656}
657
658#thePopuphelpPage P, #theNotificationPage P {
659        padding: 0.5em;
660}
661
662#theNotificationPage DL, #thePopuphelpPage DL {
663        margin: 0 25px 25px; 
664}
665
666TR.tagLine {
667        border-bottom: 1px solid #ddd;
668}
669TD.nbEntries {
670        text-align: right;
671        font-style: italic;
672        font-size: 90%;
673}
674
675FIELDSET.tagLetter {
676        border: 1px solid #d3d3d3;
677        width: 200px;
678        margin: 0.5em;
679        padding: 10px;
680}
681
682LEGEND.tagLetterLegend {
683        border: 1px solid #d3d3d3;
684        font-size:120%;
685        font-weight: bold;
686        padding: 0 5px;
687        font-style: normal;
688}
689
690TABLE.tagLetterContent {
691        width:100%;
692        font-size:80%;
693        border-collapse : collapse;
694}
695
696#theHeader {text-align: center;}
697
698.content #comments UL.thumbnailCategories LI { width:99%; }
699
700/* jQuery datepicker */
701IMG.ui-datepicker-trigger {
702        cursor : pointer;
703}
704
705/* Set some sizes according to your maximum thumbnail width and height */
706UL.thumbnails SPAN,
707UL.thumbnails SPAN.wrap2 A,
708UL.thumbnails LABEL,
709.content DIV.thumbnailCategory DIV.illustration {
710  width: 140px;      /* max thumbnail width + 2px */
711}
712UL.thumbnails SPAN.wrap2,
713.content DIV.thumbnailCategory DIV.description {
714  height: 140px;    /* max thumbnail height + 2px */
715}
716
717
718/* Category thumbnails on main page */
719.content UL.thumbnailCategories LI {
720  width: 49.7%;    /* 49.7% for 2 per line, 33.2% for 3 per line*/
721}
722
723/* Set defaults for thumbnails legend */
724UL.thumbnails SPAN.thumbLegend {
725  display: block;  /* display: none; if you don't want legend */
726  height: 4em;    /* legend height (don't set auto to be Gecko friendly)*/
727}
728
729/**
730 * Default colors
731 */
732#imageToolBar * {
733        background: inherit;
734}
735
736/* So that non-links are slightly greyed out */
737.content .navigationBar, .calItemEmpty, TD.calDayCellEmpty {
738        color: #b0b0b0;
739}
740
741/* Tables & forms */
742/* IE <= 6 is so bad with this that you can't merge with the following rule */
743INPUT[type="text"], INPUT[type="password"], INPUT[type="button"],
744INPUT[type="submit"], INPUT[type="reset"], INPUT[type="file"] {
745        color: #000;
746        background-color: #d3d3d3;      /* lightgrey */
747}
748
749INPUT.text, INPUT.password, INPUT.button,
750INPUT.submit, INPUT.reset, INPUT.file,
751SELECT, TEXTAREA {
752        color: #000;
753        background-color: #d3d3d3;      /* lightgrey */
754}
755
756INPUT:focus, SELECT:focus, TEXTAREA:focus, INPUT.focus, FORM .focus {
757        background-color: #f5f5f5;      /* whitesmoke */
758}
759
760/* some theme set a border on INPUT  which is not pretty for radio/checkbox */
761INPUT[type="radio"], INPUT[type="checkbox"] {
762        border: none;   /* <= Opera needs this */
763}
764
765INPUT.radio, INPUT.checkbox {
766        border: none;   /* <= IE6 needs this */
767}
768
769
770.errors { /* Errors display */
771        color: red;
772        background-color: #ffe1e1;
773        font-weight: bold;
774        margin: 5px;
775        border: 1px solid red;
776        background-image: url(icon/errors.png);
777        background-repeat: no-repeat;
778        background-position: top right;
779        padding: 10px 50px 10px 10px;
780}
781
782/* Informations box */
783.infos {
784        color: #002000;
785        background-color: #98fb98; /* palegreen */
786        background-image: url(icon/infos.png);
787        background-repeat: no-repeat;
788        background-position: top right;
789        margin: 5px;
790        padding: 10px 50px 10px 10px;
791}
792
793/* Header message like upgrade or adviser mode */
794.header_msgs {
795        text-align:center;
796        font-weight: bold;
797        color:#696969;  /* dimgray */
798        background-color: #d3d3d3;
799        margin: 1px;
800        padding: 1px;
801}
802
803/* Header notes box */
804.header_notes {
805        border: 1px solid #aaa;
806        text-align: center;
807        background-image: url(icon/note.png);
808        background-repeat: no-repeat;
809        background-position: top left;
810        font-weight: bold;
811        margin: 14px;
812        padding: 5px 0 0 0;
813}
814
815LEGEND {
816        font-style: italic;
817}
818
819#piwigoAbout {width:600px;margin:0 auto;}
820#linkToPiwigo {text-align:center;}
821
Note: See TracBrowser for help on using the repository browser.