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

Last change on this file since 18712 was 18712, checked in by mistic100, 11 years ago

bug 2775: on index page, errors/infos messages can be at the bottom with PWG Stuffs

  • Property svn:eol-style set to LF
File size: 13.1 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        clear: both;
346        margin-bottom: 2px;
347        padding: 0;
348        height: 28px;
349}
350
351#imageToolBar .actionButtons { float: left; }
352#imageToolBar .navigationButtons   { float: right; }
353#imageToolBar .pwg-button {width:42px;}
354
355.switchBox {
356        padding: 0.5em 5px;
357        border-radius: 4px;
358        z-index: 100;
359        text-align:left;
360        display: none;
361        position: absolute;
362        left: 0; top: 0; /*left, right set through js*/
363}
364
365.switchBoxTitle {
366  border-bottom:1px solid #ccc;
367  padding-bottom:5px;
368  margin-bottom:5px;
369}
370
371.relSwitchBox {
372        position: relative;
373}
374
375#theImage {
376        clear: left;
377        text-align: center;
378}
379
380#imageInfos {
381        position: relative;
382        min-height: 120px;
383}
384
385#linkPrev {
386        float: left;
387        margin: 5px 10px 0 5px;
388}
389
390#linkNext {
391        float: right;
392        margin: 5px 5px 0 10px;
393}
394
395.imageInfoTable UL { /*this is the album list*/
396        margin: 0;
397        padding: 0 0 0 1em;
398        list-style-type: square;
399}
400
401.rateButton, .rateButtonSelected, .rateButtonStarFull, .rateButtonStarEmpty  {
402        padding:0;
403        border:0;
404        color:inherit;
405        background-color:transparent !important;        /* Konqueror doesn't accept transparent here */
406}
407
408.rateButton, .rateButtonStarFull, .rateButtonStarEmpty {
409        cursor: pointer;
410}
411
412.rateButtonSelected {
413        font-weight:bold;
414        font-size:120%;
415}
416
417.rateButtonStarFull {
418        background: url('icon/rating-stars.gif') no-repeat -16px center; width:16px;
419}
420
421.rateButtonStarEmpty {
422        background: url('icon/rating-stars.gif') no-repeat 0 center; width:16px;
423}
424
425.contentWithMenu #imageToolBar, 
426.contentWithMenu #theImage { 
427        clear: none;
428}
429
430/**
431 * Default Layout
432 */
433BODY {
434        margin: 5px;
435        padding: 0;
436        font-size: 0.8em;
437        font-family: Arial,Helvetica,sans-serif;
438        min-width: 60em;  /* ~ 3* #menubar width; width of the page before getting a scrollbar; IE6 doesn't get that*/
439}
440
441IMG {
442        border: 0; /*IE<=9 adds border for linked images*/
443}
444
445#thePopuphelpPage {
446        min-width: 0; /*reset the min width*/
447}
448
449
450H1 {
451        text-align: center;
452        font-size: 150%;
453        font-weight: bold;
454        padding: 0;
455        margin: 0.5em 0 1em 0;
456}
457
458H2 {
459        margin: 0;
460        padding: 5px 0.5em;
461        text-align: left;
462        font-size: 120%;
463}
464
465A {
466        text-decoration:none;
467}
468A:hover {
469        border-bottom: 1px solid #858460;
470}
471A.pwg-state-default:hover {
472        border-bottom: 0; /*reset above for icons*/
473}
474
475#copyright {
476        clear: both;
477        font-size: 83%;
478        text-align: center;
479        margin: 0 0 10px 0;
480}
481
482INPUT, SELECT {
483        margin: 0;
484        font-size: 1em; /* <= some browsers don't set it correctly */
485}
486
487TABLE { /* horizontaly centered */
488        margin-left: auto;
489        margin-right: auto;
490}
491
492
493FORM { padding: 0; margin: 0; }
494
495FORM P {
496        text-align: center;
497        margin-top: 2em;
498        margin-bottom: 2em;
499}
500
501SELECT.categoryList {
502        height: 20em;
503        width: 500px;
504}
505
506
507/**
508 * Filter forms are displayed label by label with the input (or select...)
509 * below the label. Use an UL to make a group (radiobox for instance).
510 * Use a SPAN to group objects in line
511 */
512FIELDSET {
513        padding: 1em;
514        margin: 1em;
515        overflow: hidden; /* <- makes Opera happy */
516}
517
518.filter UL,
519.filter LABEL {
520        display: block;
521        float: left;
522        margin-right: 1em;
523        padding: 0;
524}
525
526.filter LI {
527        list-style: none;
528        margin-bottom: 0.5em;
529}
530
531.filter LI LABEL {
532        display: inline;
533        float: none;
534}
535
536/*IE6 needs override because of > selector*/
537.filter LABEL>INPUT,
538.filter LABEL>SELECT {
539        display: block;
540        margin: 0.5em 0;
541}
542
543.filter FIELDSET * LABEL>INPUT {
544        display: inline;
545        vertical-align: top;
546        margin: 0 0.5em 0 0;
547}
548
549
550.properties UL {
551        list-style-type: none;
552        margin: 0;
553        padding: 0;
554}
555
556.properties LI {
557        margin-bottom: 0.5em;
558        padding: 0;
559        line-height: 1.8em;
560        clear: left;
561}
562
563.properties SPAN.property {
564        font-weight: bold;
565        float: left;
566        width: 50%;
567        text-align: right;
568        margin: 0;
569        padding: 0 0.5em 0 0;
570}
571
572.tagSelection {
573        width: 99%;
574        margin: 1em 0;
575        padding: 0;
576}
577
578.tagSelection LI {
579        display:inline-block;
580        width:150px!important;
581        overflow:hidden;
582        white-space: nowrap;
583}
584
585#fullTagCloud {
586        font-size: 120%;
587        text-align: justify;
588        padding: 0;
589        margin: 1em 2em;
590}
591
592#fullTagCloud SPAN {
593        white-space: nowrap;
594        margin: 0 2px;
595}
596
597
598.tagLevel5 { font-size: 150% !important; }
599.tagLevel4 { font-size: 140% !important; }
600.tagLevel3 { font-size: 120% !important; }
601.tagLevel2 { font-size: 100% !important; }
602.tagLevel1 { font-size: 90%  !important; }
603
604
605/* Popup help page */
606#thePopuphelpPage #copyright {
607        display: none;
608}
609
610#thePopuphelpPage P {
611        padding: 0.5em;
612}
613
614#thePopuphelpPage DL  {
615        margin: 0 25px 25px; 
616}
617
618TR.tagLine {
619        border-bottom: 1px solid #ddd;
620}
621TD.nbEntries {
622        text-align: right;
623        font-style: italic;
624        font-size: 90%;
625}
626
627FIELDSET.tagLetter {
628        border: 1px solid #d3d3d3;
629        width: 200px;
630        margin: 0.5em;
631        padding: 10px;
632}
633
634LEGEND.tagLetterLegend {
635        border: 1px solid #d3d3d3;
636        font-size:120%;
637        font-weight: bold;
638        padding: 0 5px;
639        font-style: normal;
640}
641
642TABLE.tagLetterContent {
643        width:100%;
644        font-size:80%;
645        border-collapse : collapse;
646}
647
648#theHeader {text-align: center;}
649
650/* jQuery datepicker */
651IMG.ui-datepicker-trigger {
652        cursor : pointer;
653}
654
655
656/**
657 * Default colors
658 */
659
660 /* So that non-links are slightly greyed out */
661.content .navigationBar, .calItemEmpty, TD.calDayCellEmpty {
662        color: #b0b0b0;
663}
664
665/* Tables & forms */
666/* IE <= 6 is so bad with this that you can't merge with the following rule */
667INPUT[type="text"], INPUT[type="password"], INPUT[type="button"],
668INPUT[type="submit"], INPUT[type="reset"], INPUT[type="file"] {
669        color: #000;
670        background-color: #d3d3d3;      /* lightgrey */
671}
672
673SELECT, TEXTAREA {
674        color: #000;
675        background-color: #d3d3d3;      /* lightgrey */
676}
677
678INPUT:focus, SELECT:focus, TEXTAREA:focus {
679        background-color: #f5f5f5;      /* whitesmoke */
680}
681
682/* some theme set a border on INPUT  which is not pretty for radio/checkbox */
683INPUT[type="radio"], INPUT[type="checkbox"] {
684        border: none;   /* <= Opera needs this */
685}
686
687
688.content.messages {
689  padding:0;
690  background:none;
691  border:none;
692}
693
694.errors { /* Errors display */
695        color: red;
696        font-weight: bold;
697        margin: 5px;
698        border: 1px solid red;
699        background: #ffe1e1 url(icon/errors.png) no-repeat center right;
700        padding: 10px 50px 10px 10px;
701}
702
703/* Informations box */
704.infos {
705        color: #002000;
706        background: #98fb98 url(icon/infos.png) no-repeat center right;
707        margin: 5px;
708        padding: 10px 50px 10px 10px;
709}
710
711/* Header message like upgrade*/
712.header_msgs {
713        text-align:center;
714        font-weight: bold;
715        color:#696969;  /* dimgray */
716        background-color: #d3d3d3;
717        margin: 1px;
718        padding: 1px;
719}
720
721/* Header notes box */
722.header_notes {
723        border: 1px solid #aaa;
724        text-align: center;
725        background-image: url(icon/note.png);
726        background-repeat: no-repeat;
727        background-position: top left;
728        font-weight: bold;
729        margin: 14px;
730        padding: 5px 0 0 0;
731}
732
733LEGEND {
734        font-style: italic;
735}
736
737#piwigoAbout {width:600px;margin:0 auto;}
738#linkToPiwigo {text-align:center;}
739
740.message {
741  background-color: lightyellow;
742  color:#333;
743  margin-bottom:1em;
744  padding: 12px;
745  -moz-border-radius: 3px;
746  -khtml-border-radius: 3px;
747  -webkit-border-radius: 3px;
748  border-radius: 3px;
749}
750
751#lostPassword {
752  padding: 1em;
753}
754
755#lostPassword p {
756  text-align: left;
757  margin: 1.5em 0;
758  line-height: 1.5em;
759}
760
761/* image comments rules */
762
763#commentAdd, #pictureCommentList        { width: 48%; padding: 0 1%;}
764#commentAdd                                             { float: left; }
765#pictureCommentList                                     { float: right; }
766
767#commentAdd input[type="text"],
768#comments TEXTAREA {
769        max-width: 99%;
770        width: 99%;
771}
772
773.commentAuthor {
774        font-weight: bold;
775}
776
777.commentDate {
778        font-style: italic
779}
780
781#pictureCommentList .commentsOrder      { float: left; margin-bottom: 5px;}
782#pictureCommentList .navigationBar      { float: right; margin-bottom: 5px;}
783#pictureComments h4                                     { margin: 0;}
784#comments FORM P         {
785        margin: 5px 0; text-align: left;
786}
787
788/* image info table */
789
790.imageInfoTable {display:table; margin: auto;}
791.imageInfo {display:table-row; line-height:20px;}
792.imageInfo dt {display:table-cell; text-align:right; font-weight:bold; padding-right:0.5em;}
793.imageInfo dd {display:table-cell; text-align:left; font-weight:normal;}
Note: See TracBrowser for help on using the repository browser.