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

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