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

Last change on this file since 19883 was 19302, checked in by plg, 12 years ago

improved template/css: create .tag_search_results and .category_search_results
CSS class to avoid inline CSS and make customization easier (ability to hide
these blocks with LocalFiles Editor)

  • Property svn:eol-style set to LF
File size: 13.2 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/* category and tag results paragraphs on a quick search */
119.content .category_search_results, .content .tag_search_results {
120  font-size: 16px;
121  margin: 10px 16px;
122}
123
124/* actions */
125.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
135.categoryActions LI {
136        display: inline;
137}
138
139/* begin chronology/calendar elements*/
140.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.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
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        margin: 0;
242        padding: 0.1em;
243        font-size: 120%;
244}
245
246.thumbnailCategory .description P {
247        margin: 0;
248}
249
250.illustration {/*also used by comment lists*/
251        text-align: left;
252        margin: 2px 0 0 2px;
253        float: left;
254}
255
256
257/* User comments */
258#comments {
259        padding-left: 5px;
260        padding-right: 5px;
261}
262
263.commentsList {
264        margin: 0;
265        padding: 0;
266        list-style: none;
267        overflow: hidden;
268        width: 100%;
269}
270
271.commentElement {
272        border-radius: 5px;
273        margin: 5px;
274        padding: 2px 0 0 2px;
275        float: left;
276        width:99%;
277}
278
279.commentElement .description {
280        overflow: auto;
281        /*width: inherit;*/
282}
283
284/* Thumbnails */
285
286/* Thumbnail "elastic" layout */
287.thumbnails {
288        margin: 0;
289        padding: 0;
290        list-style: none;
291        text-align: center;     /* to center the whole collection in .content */
292}
293.thumbnails LI { display: inline }
294
295.thumbnails .wrap1 {
296        margin: 0 7px 5px 7px;
297        display: table-cell; display: inline-table;
298        display: inline-block;/* Why 3 display option ??? */
299        vertical-align: top;    /* OK with Opera and IE6 not Geko */
300        text-align: center;             /* to center the thumbnail and legend in Geko/Opera */
301}
302.thumbnails .wrap2 {
303        margin: 0;                      /* important reset the margins */
304        display: table-cell;/* block prevents vertical-align here */
305        vertical-align: middle;/* Ok with Opera and Geko not IE6 */
306        border-radius: 4px;     /* round corners with CSS3 compliant browsers */
307}
308
309.thumbnails .wrap2 A {
310        display: block;
311        border-bottom: 0;
312}
313.thumbnails IMG {
314        vertical-align: middle;
315}
316
317.thumbnails SPAN.thumbLegend {
318        overflow: hidden;/* oversized legend is clipped */
319        display: block;  /* display: none; if you don't want legend */
320        height: 4em;    /* legend height (don't set auto to be Gecko friendly)*/
321}
322
323/**
324 * Picture
325 */
326#imageHeaderBar {
327        padding-top: 2px;
328        padding-bottom: 2px;
329        overflow: hidden;
330        width: 100%;
331}
332
333#imageHeaderBar .browsePath {
334        float: left;
335        margin-left: 10px;
336}
337
338#imageToolBar .imageNumber {
339        float: right;
340        margin:-20px 9px 0 0;
341}
342
343#imageHeaderBar H2 {
344        display: inline;
345        text-align: center;
346        padding: 0;
347}
348
349#imageToolBar {
350        text-align: center;
351        margin-bottom: 2px;
352        padding: 0;
353        height: 28px;
354}
355
356#imageToolBar .actionButtons { float: left; }
357#imageToolBar .navigationButtons   { float: right; }
358#imageToolBar .pwg-button {width:42px;}
359
360.switchBox {
361        padding: 0.5em 5px;
362        border-radius: 4px;
363        z-index: 100;
364        text-align:left;
365        display: none;
366        position: absolute;
367        left: 0; top: 0; /*left, right set through js*/
368}
369
370.switchBoxTitle {
371  border-bottom:1px solid #ccc;
372  padding-bottom:5px;
373  margin-bottom:5px;
374}
375
376.relSwitchBox {
377        position: relative;
378}
379
380#theImage {
381        text-align: center;
382}
383
384#imageInfos {
385        position: relative; /*for IE7 positioning of "who can see this photo"*/
386        min-height: 120px;
387}
388
389#linkPrev {
390        float: left;
391        margin: 5px 10px 0 5px;
392}
393
394#linkNext {
395        float: right;
396        margin: 5px 5px 0 10px;
397}
398
399.imageInfoTable UL { /*this is the album list*/
400        margin: 0;
401        padding: 0 0 0 1em;
402        list-style-type: square;
403}
404
405.rateButton, .rateButtonSelected, .rateButtonStarFull, .rateButtonStarEmpty  {
406        padding:0;
407        border:0;
408        color:inherit;
409        background-color:transparent !important;        /* Konqueror doesn't accept transparent here */
410}
411
412.rateButton, .rateButtonStarFull, .rateButtonStarEmpty {
413        cursor: pointer;
414}
415
416.rateButtonSelected {
417        font-weight:bold;
418        font-size:120%;
419}
420
421.rateButtonStarFull {
422        background: url('icon/rating-stars.gif') no-repeat -16px center; width:16px;
423}
424
425.rateButtonStarEmpty {
426        background: url('icon/rating-stars.gif') no-repeat 0 center; width:16px;
427}
428
429/**
430 * Default Layout
431 */
432BODY {
433        margin: 5px;
434        padding: 0;
435        font-size: 0.8em;
436        font-family: Arial,Helvetica,sans-serif;
437        min-width: 60em;  /* ~ 3* #menubar width; width of the page before getting a scrollbar; IE6 doesn't get that*/
438}
439
440IMG {
441        border: 0; /*IE<=9 adds border for linked images*/
442}
443
444#thePopuphelpPage {
445        min-width: 0; /*reset the min width*/
446}
447
448
449H1 {
450        text-align: center;
451        font-size: 150%;
452        font-weight: bold;
453        padding: 0;
454        margin: 0.5em 0 1em 0;
455}
456
457H2 {
458        margin: 0;
459        padding: 5px 0.5em;
460        text-align: left;
461        font-size: 120%;
462}
463
464A {
465        text-decoration:none;
466}
467A:hover {
468        border-bottom: 1px solid #858460;
469}
470A.pwg-state-default:hover {
471        border-bottom: 0; /*reset above for icons*/
472}
473
474#copyright {
475        clear: both;
476        font-size: 83%;
477        text-align: center;
478        margin: 0 0 10px 0;
479}
480
481INPUT, SELECT {
482        margin: 0;
483        font-size: 1em; /* <= some browsers don't set it correctly */
484}
485
486TABLE { /* horizontaly centered */
487        margin-left: auto;
488        margin-right: auto;
489}
490
491
492FORM { padding: 0; margin: 0; }
493
494FORM P {
495        text-align: center;
496        margin-top: 2em;
497        margin-bottom: 2em;
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
517.filter UL,
518.filter LABEL {
519        display: block;
520        float: left;
521        margin-right: 1em;
522        padding: 0;
523}
524
525.filter LI {
526        list-style: none;
527        margin-bottom: 0.5em;
528}
529
530.filter LI LABEL {
531        display: inline;
532        float: none;
533}
534
535/*IE6 needs override because of > selector*/
536.filter LABEL>INPUT,
537.filter LABEL>SELECT {
538        display: block;
539        margin: 0.5em 0;
540}
541
542.filter FIELDSET * LABEL>INPUT {
543        display: inline;
544        vertical-align: top;
545        margin: 0 0.5em 0 0;
546}
547
548
549.properties UL {
550        list-style-type: none;
551        margin: 0;
552        padding: 0;
553}
554
555.properties LI {
556        margin-bottom: 0.5em;
557        padding: 0;
558        line-height: 1.8em;
559        clear: left;
560}
561
562.properties SPAN.property {
563        font-weight: bold;
564        float: left;
565        width: 50%;
566        text-align: right;
567        margin: 0;
568        padding: 0 0.5em 0 0;
569}
570
571.tagSelection {
572        width: 99%;
573        margin: 1em 0;
574        padding: 0;
575}
576
577.tagSelection LI {
578        display:inline-block;
579        width:150px!important;
580        overflow:hidden;
581        white-space: nowrap;
582}
583
584#fullTagCloud {
585        font-size: 120%;
586        text-align: justify;
587        padding: 0;
588        margin: 1em 2em;
589}
590
591#fullTagCloud SPAN {
592        white-space: nowrap;
593        margin: 0 2px;
594}
595
596
597.tagLevel5 { font-size: 150% !important; }
598.tagLevel4 { font-size: 140% !important; }
599.tagLevel3 { font-size: 120% !important; }
600.tagLevel2 { font-size: 100% !important; }
601.tagLevel1 { font-size: 90%  !important; }
602
603
604/* Popup help page */
605#thePopuphelpPage #copyright {
606        display: none;
607}
608
609#thePopuphelpPage P {
610        padding: 0.5em;
611}
612
613#thePopuphelpPage DL  {
614        margin: 0 25px 25px; 
615}
616
617TR.tagLine {
618        border-bottom: 1px solid #ddd;
619}
620TD.nbEntries {
621        text-align: right;
622        font-style: italic;
623        font-size: 90%;
624}
625
626FIELDSET.tagLetter {
627        border: 1px solid #d3d3d3;
628        width: 200px;
629        margin: 0.5em;
630        padding: 10px;
631}
632
633LEGEND.tagLetterLegend {
634        border: 1px solid #d3d3d3;
635        font-size:120%;
636        font-weight: bold;
637        padding: 0 5px;
638        font-style: normal;
639}
640
641TABLE.tagLetterContent {
642        width:100%;
643        font-size:80%;
644        border-collapse : collapse;
645}
646
647#theHeader {text-align: center;}
648
649/* jQuery datepicker */
650IMG.ui-datepicker-trigger {
651        cursor : pointer;
652}
653
654
655/**
656 * Default colors
657 */
658
659 /* So that non-links are slightly greyed out */
660.content .navigationBar, .calItemEmpty, TD.calDayCellEmpty {
661        color: #b0b0b0;
662}
663
664/* Tables & forms */
665/* IE <= 6 is so bad with this that you can't merge with the following rule */
666INPUT[type="text"], INPUT[type="password"], INPUT[type="button"],
667INPUT[type="submit"], INPUT[type="reset"], INPUT[type="file"] {
668        color: #000;
669        background-color: #d3d3d3;      /* lightgrey */
670}
671
672SELECT, TEXTAREA {
673        color: #000;
674        background-color: #d3d3d3;      /* lightgrey */
675}
676
677INPUT:focus, SELECT:focus, TEXTAREA:focus {
678        background-color: #f5f5f5;      /* whitesmoke */
679}
680
681/* some theme set a border on INPUT  which is not pretty for radio/checkbox */
682INPUT[type="radio"], INPUT[type="checkbox"] {
683        border: none;   /* <= Opera needs this */
684}
685
686
687.content.messages {
688  padding:0;
689  background:none;
690  border:none;
691}
692
693.errors { /* Errors display */
694        color: red;
695        font-weight: bold;
696        margin: 5px;
697        border: 1px solid red;
698        background: #ffe1e1 url(icon/errors.png) no-repeat center right;
699        padding: 10px 50px 10px 10px;
700}
701
702/* Informations box */
703.infos {
704        color: #002000;
705        background: #98fb98 url(icon/infos.png) no-repeat center right;
706        margin: 5px;
707        padding: 10px 50px 10px 10px;
708}
709
710/* Header message like upgrade*/
711.header_msgs {
712        text-align:center;
713        font-weight: bold;
714        color:#696969;  /* dimgray */
715        background-color: #d3d3d3;
716        margin: 1px;
717        padding: 1px;
718}
719
720/* Header notes box */
721.header_notes {
722        border: 1px solid #aaa;
723        text-align: center;
724        background-image: url(icon/note.png);
725        background-repeat: no-repeat;
726        background-position: top left;
727        font-weight: bold;
728        margin: 14px;
729        padding: 5px 0 0 0;
730}
731
732LEGEND {
733        font-style: italic;
734        color: inherit; /*for IE*/
735}
736
737#piwigoAbout {width:600px;margin:0 auto;}
738#linkToPiwigo {text-align:center;}
739
740.message {
741  background-color: lightyellow;
742  color:#333;
743  margin-bottom:1em;
744  padding: 12px;
745  -moz-border-radius: 3px;
746  -khtml-border-radius: 3px;
747  -webkit-border-radius: 3px;
748  border-radius: 3px;
749}
750
751#lostPassword {
752  padding: 1em;
753}
754
755#lostPassword p {
756  text-align: left;
757  margin: 1.5em 0;
758  line-height: 1.5em;
759}
760
761/* image comments rules */
762
763#commentAdd, #pictureCommentList        { width: 48%; padding: 0 1%;}
764#commentAdd                                             { float: left; }
765#pictureCommentList                                     { float: right; }
766
767#commentAdd input[type="text"],
768#comments TEXTAREA {
769        max-width: 99%;
770        width: 99%;
771}
772
773.commentAuthor {
774        font-weight: bold;
775}
776
777.commentDate {
778        font-style: italic
779}
780
781#pictureCommentList .commentsOrder      { float: left; margin-bottom: 5px;}
782#pictureCommentList .navigationBar      { float: right; margin-bottom: 5px;}
783#pictureComments h4                                     { margin: 0;}
784#comments FORM P         {
785        margin: 5px 0; text-align: left;
786}
787
788/* image info table */
789
790.imageInfoTable {display:table; margin: auto;}
791.imageInfo {display:table-row; line-height:20px;}
792.imageInfo dt {display:table-cell; text-align:right; font-weight:bold; padding-right:0.5em;}
793.imageInfo dd {display:table-cell; text-align:left; font-weight:normal;}
Note: See TracBrowser for help on using the repository browser.