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

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