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

Last change on this file since 12491 was 12491, checked in by rvelices, 13 years ago

feature 2477: remove unnecesary css rules + simplify very inefficient overly qualified rules (pagespeed)

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