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

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

css rules simplification

  • merged rules
  • remove overly qualified inefficient selectors

etc...

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