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

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