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

Last change on this file since 28764 was 28744, checked in by rvelices, 10 years ago

feature 3094: redesign of search form

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