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

Last change on this file since 19281 was 19013, checked in by rvelices, 12 years ago

fix legend color for dark themes with IE

  • Property svn:eol-style set to LF
File size: 13.0 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        margin: 0;
236        padding: 0.1em;
237        font-size: 120%;
238}
239
240.thumbnailCategory .description P {
241        margin: 0;
242}
243
244.illustration {/*also used by comment lists*/
245        text-align: left;
246        margin: 2px 0 0 2px;
247        float: left;
248}
249
250
251/* User comments */
252#comments {
253        padding-left: 5px;
254        padding-right: 5px;
255}
256
257.commentsList {
258        margin: 0;
259        padding: 0;
260        list-style: none;
261        overflow: hidden;
262        width: 100%;
263}
264
265.commentElement {
266        border-radius: 5px;
267        margin: 5px;
268        padding: 2px 0 0 2px;
269        float: left;
270        width:99%;
271}
272
273.commentElement .description {
274        overflow: auto;
275        /*width: inherit;*/
276}
277
278/* Thumbnails */
279
280/* Thumbnail "elastic" layout */
281.thumbnails {
282        margin: 0;
283        padding: 0;
284        list-style: none;
285        text-align: center;     /* to center the whole collection in .content */
286}
287.thumbnails LI { display: inline }
288
289.thumbnails .wrap1 {
290        margin: 0 7px 5px 7px;
291        display: table-cell; display: inline-table;
292        display: inline-block;/* Why 3 display option ??? */
293        vertical-align: top;    /* OK with Opera and IE6 not Geko */
294        text-align: center;             /* to center the thumbnail and legend in Geko/Opera */
295}
296.thumbnails .wrap2 {
297        margin: 0;                      /* important reset the margins */
298        display: table-cell;/* block prevents vertical-align here */
299        vertical-align: middle;/* Ok with Opera and Geko not IE6 */
300        border-radius: 4px;     /* round corners with CSS3 compliant browsers */
301}
302
303.thumbnails .wrap2 A {
304        display: block;
305        border-bottom: 0;
306}
307.thumbnails IMG {
308        vertical-align: middle;
309}
310
311.thumbnails SPAN.thumbLegend {
312        overflow: hidden;/* oversized legend is clipped */
313        display: block;  /* display: none; if you don't want legend */
314        height: 4em;    /* legend height (don't set auto to be Gecko friendly)*/
315}
316
317/**
318 * Picture
319 */
320#imageHeaderBar {
321        padding-top: 2px;
322        padding-bottom: 2px;
323        overflow: hidden;
324        width: 100%;
325}
326
327#imageHeaderBar .browsePath {
328        float: left;
329        margin-left: 10px;
330}
331
332#imageToolBar .imageNumber {
333        float: right;
334        margin:-20px 9px 0 0;
335}
336
337#imageHeaderBar H2 {
338        display: inline;
339        text-align: center;
340        padding: 0;
341}
342
343#imageToolBar {
344        text-align: center;
345        margin-bottom: 2px;
346        padding: 0;
347        height: 28px;
348}
349
350#imageToolBar .actionButtons { float: left; }
351#imageToolBar .navigationButtons   { float: right; }
352#imageToolBar .pwg-button {width:42px;}
353
354.switchBox {
355        padding: 0.5em 5px;
356        border-radius: 4px;
357        z-index: 100;
358        text-align:left;
359        display: none;
360        position: absolute;
361        left: 0; top: 0; /*left, right set through js*/
362}
363
364.switchBoxTitle {
365  border-bottom:1px solid #ccc;
366  padding-bottom:5px;
367  margin-bottom:5px;
368}
369
370.relSwitchBox {
371        position: relative;
372}
373
374#theImage {
375        text-align: center;
376}
377
378#imageInfos {
379        position: relative; /*for IE7 positioning of "who can see this photo"*/
380        min-height: 120px;
381}
382
383#linkPrev {
384        float: left;
385        margin: 5px 10px 0 5px;
386}
387
388#linkNext {
389        float: right;
390        margin: 5px 5px 0 10px;
391}
392
393.imageInfoTable UL { /*this is the album list*/
394        margin: 0;
395        padding: 0 0 0 1em;
396        list-style-type: square;
397}
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 -16px center; width:16px;
417}
418
419.rateButtonStarEmpty {
420        background: url('icon/rating-stars.gif') no-repeat 0 center; width:16px;
421}
422
423/**
424 * Default Layout
425 */
426BODY {
427        margin: 5px;
428        padding: 0;
429        font-size: 0.8em;
430        font-family: Arial,Helvetica,sans-serif;
431        min-width: 60em;  /* ~ 3* #menubar width; width of the page before getting a scrollbar; IE6 doesn't get that*/
432}
433
434IMG {
435        border: 0; /*IE<=9 adds border for linked images*/
436}
437
438#thePopuphelpPage {
439        min-width: 0; /*reset the min width*/
440}
441
442
443H1 {
444        text-align: center;
445        font-size: 150%;
446        font-weight: bold;
447        padding: 0;
448        margin: 0.5em 0 1em 0;
449}
450
451H2 {
452        margin: 0;
453        padding: 5px 0.5em;
454        text-align: left;
455        font-size: 120%;
456}
457
458A {
459        text-decoration:none;
460}
461A:hover {
462        border-bottom: 1px solid #858460;
463}
464A.pwg-state-default:hover {
465        border-bottom: 0; /*reset above for icons*/
466}
467
468#copyright {
469        clear: both;
470        font-size: 83%;
471        text-align: center;
472        margin: 0 0 10px 0;
473}
474
475INPUT, SELECT {
476        margin: 0;
477        font-size: 1em; /* <= some browsers don't set it correctly */
478}
479
480TABLE { /* horizontaly centered */
481        margin-left: auto;
482        margin-right: auto;
483}
484
485
486FORM { padding: 0; margin: 0; }
487
488FORM P {
489        text-align: center;
490        margin-top: 2em;
491        margin-bottom: 2em;
492}
493
494SELECT.categoryList {
495        height: 20em;
496        width: 500px;
497}
498
499
500/**
501 * Filter forms are displayed label by label with the input (or select...)
502 * below the label. Use an UL to make a group (radiobox for instance).
503 * Use a SPAN to group objects in line
504 */
505FIELDSET {
506        padding: 1em;
507        margin: 1em;
508        overflow: hidden; /* <- makes Opera happy */
509}
510
511.filter UL,
512.filter LABEL {
513        display: block;
514        float: left;
515        margin-right: 1em;
516        padding: 0;
517}
518
519.filter LI {
520        list-style: none;
521        margin-bottom: 0.5em;
522}
523
524.filter LI LABEL {
525        display: inline;
526        float: none;
527}
528
529/*IE6 needs override because of > selector*/
530.filter LABEL>INPUT,
531.filter LABEL>SELECT {
532        display: block;
533        margin: 0.5em 0;
534}
535
536.filter FIELDSET * LABEL>INPUT {
537        display: inline;
538        vertical-align: top;
539        margin: 0 0.5em 0 0;
540}
541
542
543.properties UL {
544        list-style-type: none;
545        margin: 0;
546        padding: 0;
547}
548
549.properties LI {
550        margin-bottom: 0.5em;
551        padding: 0;
552        line-height: 1.8em;
553        clear: left;
554}
555
556.properties SPAN.property {
557        font-weight: bold;
558        float: left;
559        width: 50%;
560        text-align: right;
561        margin: 0;
562        padding: 0 0.5em 0 0;
563}
564
565.tagSelection {
566        width: 99%;
567        margin: 1em 0;
568        padding: 0;
569}
570
571.tagSelection LI {
572        display:inline-block;
573        width:150px!important;
574        overflow:hidden;
575        white-space: nowrap;
576}
577
578#fullTagCloud {
579        font-size: 120%;
580        text-align: justify;
581        padding: 0;
582        margin: 1em 2em;
583}
584
585#fullTagCloud SPAN {
586        white-space: nowrap;
587        margin: 0 2px;
588}
589
590
591.tagLevel5 { font-size: 150% !important; }
592.tagLevel4 { font-size: 140% !important; }
593.tagLevel3 { font-size: 120% !important; }
594.tagLevel2 { font-size: 100% !important; }
595.tagLevel1 { font-size: 90%  !important; }
596
597
598/* Popup help page */
599#thePopuphelpPage #copyright {
600        display: none;
601}
602
603#thePopuphelpPage P {
604        padding: 0.5em;
605}
606
607#thePopuphelpPage DL  {
608        margin: 0 25px 25px; 
609}
610
611TR.tagLine {
612        border-bottom: 1px solid #ddd;
613}
614TD.nbEntries {
615        text-align: right;
616        font-style: italic;
617        font-size: 90%;
618}
619
620FIELDSET.tagLetter {
621        border: 1px solid #d3d3d3;
622        width: 200px;
623        margin: 0.5em;
624        padding: 10px;
625}
626
627LEGEND.tagLetterLegend {
628        border: 1px solid #d3d3d3;
629        font-size:120%;
630        font-weight: bold;
631        padding: 0 5px;
632        font-style: normal;
633}
634
635TABLE.tagLetterContent {
636        width:100%;
637        font-size:80%;
638        border-collapse : collapse;
639}
640
641#theHeader {text-align: center;}
642
643/* jQuery datepicker */
644IMG.ui-datepicker-trigger {
645        cursor : pointer;
646}
647
648
649/**
650 * Default colors
651 */
652
653 /* So that non-links are slightly greyed out */
654.content .navigationBar, .calItemEmpty, TD.calDayCellEmpty {
655        color: #b0b0b0;
656}
657
658/* Tables & forms */
659/* IE <= 6 is so bad with this that you can't merge with the following rule */
660INPUT[type="text"], INPUT[type="password"], INPUT[type="button"],
661INPUT[type="submit"], INPUT[type="reset"], INPUT[type="file"] {
662        color: #000;
663        background-color: #d3d3d3;      /* lightgrey */
664}
665
666SELECT, TEXTAREA {
667        color: #000;
668        background-color: #d3d3d3;      /* lightgrey */
669}
670
671INPUT:focus, SELECT:focus, TEXTAREA:focus {
672        background-color: #f5f5f5;      /* whitesmoke */
673}
674
675/* some theme set a border on INPUT  which is not pretty for radio/checkbox */
676INPUT[type="radio"], INPUT[type="checkbox"] {
677        border: none;   /* <= Opera needs this */
678}
679
680
681.content.messages {
682  padding:0;
683  background:none;
684  border:none;
685}
686
687.errors { /* Errors display */
688        color: red;
689        font-weight: bold;
690        margin: 5px;
691        border: 1px solid red;
692        background: #ffe1e1 url(icon/errors.png) no-repeat center right;
693        padding: 10px 50px 10px 10px;
694}
695
696/* Informations box */
697.infos {
698        color: #002000;
699        background: #98fb98 url(icon/infos.png) no-repeat center right;
700        margin: 5px;
701        padding: 10px 50px 10px 10px;
702}
703
704/* Header message like upgrade*/
705.header_msgs {
706        text-align:center;
707        font-weight: bold;
708        color:#696969;  /* dimgray */
709        background-color: #d3d3d3;
710        margin: 1px;
711        padding: 1px;
712}
713
714/* Header notes box */
715.header_notes {
716        border: 1px solid #aaa;
717        text-align: center;
718        background-image: url(icon/note.png);
719        background-repeat: no-repeat;
720        background-position: top left;
721        font-weight: bold;
722        margin: 14px;
723        padding: 5px 0 0 0;
724}
725
726LEGEND {
727        font-style: italic;
728        color: inherit; /*for IE*/
729}
730
731#piwigoAbout {width:600px;margin:0 auto;}
732#linkToPiwigo {text-align:center;}
733
734.message {
735  background-color: lightyellow;
736  color:#333;
737  margin-bottom:1em;
738  padding: 12px;
739  -moz-border-radius: 3px;
740  -khtml-border-radius: 3px;
741  -webkit-border-radius: 3px;
742  border-radius: 3px;
743}
744
745#lostPassword {
746  padding: 1em;
747}
748
749#lostPassword p {
750  text-align: left;
751  margin: 1.5em 0;
752  line-height: 1.5em;
753}
754
755/* image comments rules */
756
757#commentAdd, #pictureCommentList        { width: 48%; padding: 0 1%;}
758#commentAdd                                             { float: left; }
759#pictureCommentList                                     { float: right; }
760
761#commentAdd input[type="text"],
762#comments TEXTAREA {
763        max-width: 99%;
764        width: 99%;
765}
766
767.commentAuthor {
768        font-weight: bold;
769}
770
771.commentDate {
772        font-style: italic
773}
774
775#pictureCommentList .commentsOrder      { float: left; margin-bottom: 5px;}
776#pictureCommentList .navigationBar      { float: right; margin-bottom: 5px;}
777#pictureComments h4                                     { margin: 0;}
778#comments FORM P         {
779        margin: 5px 0; text-align: left;
780}
781
782/* image info table */
783
784.imageInfoTable {display:table; margin: auto;}
785.imageInfo {display:table-row; line-height:20px;}
786.imageInfo dt {display:table-cell; text-align:right; font-weight:bold; padding-right:0.5em;}
787.imageInfo dd {display:table-cell; text-align:left; font-weight:normal;}
Note: See TracBrowser for help on using the repository browser.