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

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