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

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