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

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