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

Last change on this file since 13774 was 13774, checked in by Zaphod, 12 years ago

feature 2588: uniformization of picture.tpl

picture.tpl is merge between default theme & elegant theme.
css adaptation to have the image info displayed as a table with default.

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