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

Last change on this file since 6577 was 6577, checked in by rvelices, 14 years ago

merge r6575-6576 from branch 2.1
-removed use of fix-khtml.css (I tried Safari and it does not need it)

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