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

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

feature 2548 multisize - code cleanup + better usage in category_cats + i.php logs memory usage peak

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