e0f0dd0be301ada7949818e26923c2671094e88f
[e-DoKo.git] / css / standard.css
1 /* Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012 Arun Persaud <arun@nubati.net>
2  *
3  *   This file is part of e-DoKo.
4  *
5  *   e-DoKo is free software: you can redistribute it and/or modify
6  *   it under the terms of the GNU General Public License as published by
7  *   the Free Software Foundation, either version 3 of the License, or
8  *   (at your option) any later version.
9  *
10  *   e-DoKo is distributed in the hope that it will be useful,
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *   GNU General Public License for more details.
14  *
15  *   You should have received a copy of the GNU General Public License
16  *   along with e-DoKo.  If not, see <http://www.gnu.org/licenses/>.
17  *
18  */
19
20 body { background-color: #ddd; }
21
22 /* the header, footer, etc */
23 header {
24   background-color: #fff;
25   text-align:       center;
26   padding-top: 1.5em;
27   margin: 0em 3em;
28   border-bottom:    3px solid gray;
29 }
30
31 .lastlogin {
32   position:absolute;
33   top:0;
34   left:3em;
35 }
36 .lastlogin span { font-size:smaller;}
37
38 .main {
39   background-color: #fff;
40   padding: 1px 0em;
41   margin:  0em 3em;
42   padding-bottom: 1em;
43 }
44
45 footer {
46   background-color: #fff;
47   margin: 0em 3em;
48   padding:0em 0.2em;
49   border-top: 2px solid gray;
50 }
51 footer .right { text-align:right;   font-size:smaller;}
52 footer .left  { float:left;         font-size:smaller;}
53
54 .status {
55   position:absolute;
56   right:4em;
57   top:0.1em;
58   font-size: smaller;
59 }
60
61 .WIP {
62   background-color: #eee;
63   text-size: larger;
64   text-align: center;
65   margin: 30px 10% ;
66   border-radius: 5px;
67   border: 2px solid red;
68   padding: 10px;
69 }
70
71 /* sessions */
72 .session {
73   border-bottom: 1px solid #000;
74   padding: 0.5em;
75   text-align: center;
76 }
77 .session div.sessionrules {
78   width: 19em;
79   float: left;
80   text-align: left;
81 }
82 .session div.sessionrules div{
83   display:none;
84   background-color: #fff;
85   border: 1px solid #000;
86   position:absolute;
87   z-index: 30;
88   padding:0.5em;
89 }
90 .session div.sessionrules:hover div{ display:block; }
91 .session div.sessionscore {
92   width: 19em;
93   float: right;
94   text-align: right;
95 }
96 .session div.sessionscore div{
97   position:absolute;
98   width:12em;
99   right:3em;
100   display:none;
101   background-color: #fff;
102   border: 1px solid #000;
103   z-index: 30;
104 }
105 .session div.sessionscore:hover div{ display:block;}
106 .session img.rulesicon{ height: 1em; }
107
108 .session .scoretable{
109   height:20em;
110   overflow: auto;
111 }
112 .session table.score {
113   margin:0.5em;
114   width:10em;
115   border-collapse:collapse;
116 }
117
118 /* all kind of message that should appear in the middle of the page/table */
119 .message {
120  position: absolute;
121  background-color: #fff;
122  width: 20%;
123  top:19em;
124  left:40%;
125  right:40%;
126  text-align: center;
127  z-index:33;
128 }
129 .message >div { border: 2px solid black; }
130 .message div div {
131     width: 100%;
132     text-align: right;
133     font-size: smaller;
134 }
135
136 .joingame,.sickness,.poverty,.total {
137  position: absolute;
138  background-color: #fff;
139  border-radius: 5px;
140  width: 20%;
141  top: 30%;
142  left: 40%;
143  margin: auto;
144  text-align: center;
145  z-index:42;
146 }
147 .total {
148     width: 14%;
149     left: 43%;
150 }
151 /* scoring */
152 .total .re {
153  position: absolute;
154  left: -12em;
155  top:8em;
156  background-color: #eee;
157  padding: 0.3em;
158  z-index:15;
159 }
160 .total .contra {
161  position: absolute;
162  right: -14em;
163  top:8em;
164  background-color: #eee;
165  padding: 0.3em;
166  z-index:15;
167 }
168
169 /* playing cards*/
170 .card {
171   position:absolute;
172   z-index:20;
173   top:18em;
174   left:28em;
175   text-align:center;
176   background-color:#fff;
177   border:2px solid gray;
178 }
179 .card img { width:8em; }
180
181 form {  position: relative;}
182
183 /* display the table and the names */
184 div.table {
185   position:relative;
186   text-align:center;
187   margin: 0;
188   padding:0;
189   border-bottom:1px solid #444;
190 }
191
192 div.table div.table1 {
193   width:10.5%;
194   min-width: 10em;
195   text-align:center;
196   z-index:20;
197   margin: 0 auto;
198 }
199
200 div.middle {
201     position:relative;
202     min-height: 6em;
203 }
204 div.table div.table0 {
205   position:absolute;
206   width:10.5%;
207   min-width: 10em;
208   min-height: 4em;
209   top:20%;
210   right: 64.5%;
211   text-align:center;
212   z-index:20;
213 }
214 div.table div.table0 .start {
215   background-color: #f00;
216   border-radius: 5px;
217   padding: 3px;
218   padding-bottom: 1px;
219   margin: 3px;
220 }
221
222 div.table img.table {
223   width:25%;
224   z-index:5;
225   margin:  0 auto;
226   min-margin-left: 10xem;
227   min-margin-right: 10em;
228   min-height: 6em;
229   display: block;
230   vertical-align:middle;
231 }
232 div.table div.table2 {
233   position:absolute;
234   width:10.5%;
235   min-width: 10em;
236   min-height: 4em;
237   top:20%;
238   left:64.5%;
239   text-align:center;
240   z-index:20;
241 }
242 div.table div.table3 {
243   width:10.5%;
244   min-width: 10em;
245   text-align:center;
246   z-index:20;
247   margin: 0 auto;
248 }
249
250 img.gravatar  {
251     width:  4em;
252     height: 4em;
253     border: 3px solid #aaa;
254 }
255
256 div img.button {
257     width: 2em;
258 }
259
260 div span.numberoftricks {
261     text-align:center;
262 }
263
264 /* display the card tricks */
265
266 ul.tricks {
267   text-align:center;
268   list-style:none;
269   margin:0px;
270   padding:3px;
271   padding-bottom:3px;
272   border-bottom:1px solid #444;
273 }
274 ul.tricks a { text-decoration:none; color:#000;}
275 ul.tricks li {
276   /*background-color:blue;*/
277   padding:0.1em;
278   margin:0.2em 0.5em;
279   display:inline;
280 }
281 ul.tricks li.old {  background-color:#fff; }
282 ul.tricks li a:hover {  background-color: #bbb;}
283 ul.tricks li.nohighlight a:hover {  background-color: #fff;}
284
285 div.tricks {
286   position: absolute;
287   top: 0;
288   left: 0;
289   right:0;
290   bottom: 0;
291   text-align:center;
292   margin: 0;
293   padding:0 0;
294 }
295
296 div.tricks div.trick {
297   position: absolute;
298   top: 0%;
299   left: 0;
300   right:0;
301   bottom: 0%;
302   display:none;
303 }
304 .tricks div.trick img.arrow {
305   position:relative;
306   display:inline;
307   text-align:center;
308   height: 60%;
309   top: 20%;
310   z-index:8;
311 }
312
313 #trick0 img { float:left; width: 3em; }
314
315 hr {clear:both;}
316
317 /* left player */
318 .tricks div div.card0 img,
319 .tricks div div.card0 .score,
320 .vorbehalt0 {
321   position:absolute;
322   margin:0;
323   padding:0;
324  /*border: 1px solid red;*/
325   top: 30%;
326   left:33.5%;
327   right:59.5%;
328   height:40%;
329   z-index:30;
330   width:10%;
331   text-align:left;
332 }
333
334 .tricks div div.card0 span.comment{
335   position:absolute;
336   margin:0;
337   padding:0;
338   /*border: 1px solid red;*/
339   top: 5%;
340   right:66.5%;
341   left:17.5%;
342   width:16%;
343 }
344
345 /* top player */
346 .tricks div div.card1 img,
347 .tricks div div.card1 .score,
348 .vorbehalt1 {
349   position:absolute;
350   margin:0;
351   padding:0;
352   /*border: 1px solid red;*/
353   top: 0%;
354   left:45%;
355   right:45%;
356   width:10%;
357   height:40%;
358   text-align:center;
359   z-index:30;
360 }
361
362 .tricks div div.card1 span.comment{
363   position:absolute;
364   margin:0;
365   padding:0;
366   /*border: 1px solid red;*/
367   top: 5%;
368   left:66.5%;
369   right:17.5%;
370   width:16%;
371   text-align:center;
372 }
373
374 /* right player */
375 .tricks div div.card2 img,
376 .tricks div div.card2 .score,
377 .vorbehalt2{
378   position:absolute;
379   margin:0;
380   padding:0;
381   /*border: 1px solid red;*/
382   top: 30%;
383   right:34%;
384   width:10%;
385   left:56%;
386   height:40%;
387   z-index:30;
388   text-align:right;
389 }
390
391 .tricks div div.card2 span.comment{
392   position:absolute;
393   margin:0;
394   padding:0;
395   /*border: 1px solid red;*/
396   top: 85%;
397   left:66.5%;
398   right:17.5%;
399   width:16%;
400   text-align:center;
401 }
402
403 /* bottom player */
404 .tricks div div.card3 img,
405 .tricks div div.card3 .score,
406 .vorbehalt3{
407   position:absolute;
408   margin:0;
409   padding:0;
410   /*border: 1px solid red;*/
411   bottom: 0%;
412   left:45%;
413   right:45%;
414   height: 40%;
415   z-index:30;
416   width:10%;
417   height: 3em;
418   text-align:center;
419 }
420 .tricks div div.card3 .score{
421   left:45%;
422   right:45%;
423   width:10%;
424   height: 3em;
425   text-align:center;
426 }
427 .tricks div div.card3 span.comment{
428   position:absolute;
429   margin:0;
430   padding:0;
431   /*border: 1px solid red;*/
432   top: 85%;
433   right:66.5%;
434   left:17.5%;
435   width:16%;
436 }
437
438 span.comment{
439  border: 3px solid green;
440  max-height:6em;
441  overflow: auto;
442  word-wrap: break-word;
443 }
444
445 .tricks div div span.comment span{
446   display:block;
447   text-align:left;
448   border-top:1px solid green;
449 }
450
451 .mycards {
452   margin:0;
453   padding:0;
454   border-top:       2px solid gray;
455 /* border-bottom:    2px solid green;*/
456   background-color: #faffc7;
457   text-align:center;
458 }
459
460 .mycards img { height:6em;}
461
462 .exchange {
463   clear:both;
464   margin:0;
465   padding:0;
466   border:1px solid red;
467   background-color:yellow;
468 }
469
470 .exchange img { height:6em;}
471
472 .line{
473   clear:both;
474   border-top:2px solid gray;
475   margin:0;
476   padding:0;
477 }
478
479 .gameinfo {
480   position:relative;
481   top:0em;
482   margin:0em;
483   padding:0em;
484   width:100%;
485   border-top:    2px solid gray;
486   background-color: #efaaaa;
487   text-align:center;
488 }
489
490 .usermenu {
491   text-align: center;
492   padding:0.7em;
493   border-bottom: 1px solid black;
494 }
495
496 .notes {
497   position:absolute;
498   top:3em;
499   left:0;
500   margin:1em;
501   margin-top:0em;
502   margin-left:2em;
503
504   width: 12em;
505
506   border:  2px solid gray;
507
508   padding:0.3em;
509
510   background-color: #efefef;
511
512   height:10em;
513   overflow: auto;
514   z-index:50;
515 }
516
517 .user {
518     margin-left:25%;
519     margin-right:5%;
520 }
521
522 div.user ul {
523   list-style:none;
524   padding: 0px;
525 }
526
527 div.user ul li {
528   position: relative;
529   padding:3px;
530   margin: 0px;
531   width: 80%;
532   min-height: 1.2em;
533   border-left: 2px solid #babdb6 ;
534   border-right: 2px solid #babdb6 ;
535   border-bottom: 2px solid #babdb6 ;
536 }
537
538 div.user ul li:first-child {
539   border-top: 2px solid #babdb6 ;
540 }
541 .gamessession {
542     display:none;
543 }
544
545 .user .gameid {
546     float: left;
547     width: 5em;
548 }
549 .user .turn {
550     padding-left: 1em;
551     width: 20em;
552 }
553
554 .user .gameshidesession {
555   display: none;
556 }
557
558 .user .gameshidesession , .user .gamesshowsession {
559     float:right;
560     width: 10em;
561 }
562
563 .wide { margin-left:5%;margin-right:5%; }
564
565 .over {
566   text-align:center;
567   margin-bottom:0.1em;
568 }
569
570 .cardinput {
571   display:inline;
572   position:relative;
573   border: 1px solid #000;
574 }
575 .cardinput img { width: 4em;}
576 .cardinput:hover{ background-color:red;}
577
578 .gamestatuspre {
579   padding: 0 0.3em;
580   background-color: #f57900;
581 }
582 .gamestatusover {
583   padding:0 0.3em;
584   background-color: #e9b96e ;
585   color: #fff;
586 }
587 .gamestatusplay {
588   padding:0 0.3em;
589   background-color: #8ae234;
590 }
591
592 .bigger{ font-size:larger;}
593
594
595 /* statistics using jquery*/
596 caption {
597   text-align: center;
598   margin: 0.5em;
599   padding: 0.5em;
600   padding-bottom: 0em;
601   margin-bottom: 0;
602  }
603
604 table.stats {
605   margin: 0.5em 1em;
606   border: solid 0.2em #aeaeae;
607   -moz-border-radius: 0.5em ;
608   float: left;
609 }
610 table.stats tbody tr.odd td  { background-color:#aeaeae; }
611 table.stats tbody tr.even td { background-color:#eaeaea; }
612 table.stats td, table.stats th {
613   margin-left:  0.2em;
614   margin-right: 0.2em;
615   padding-left:  0.2em;
616   padding-right: 0.2em;
617   border-right: solid 0.1em #000;
618 }
619 table.stats tr td:last-child, table.stats  tr th:last-child { border-right: solid 0 #000; }
620 table.stats th { border-bottom: solid 0.2em #000 }
621
622 table.stats thead tr .header {
623     background-image: url(bg.png);
624     background-repeat: no-repeat;
625     background-position: center right;
626     padding-right: 15px;
627     cursor: pointer;
628 }
629 table.stats tbody td {
630     padding: 4px;
631     background-color: #eaeaea;
632     vertical-align: top;
633 }
634 table.stats thead tr .headerSortUp {
635     background-image: url(asc.png);
636 }
637 table.stats thead tr .headerSortDown {
638     background-image: url(desc.png);
639 }
640 table.stats thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
641     background-color: #8dbdd8;
642 }
643
644
645
646 /* the login window */
647 .login {
648   text-align:center;
649   padding-top: 1em;
650 }
651
652 .login p {
653   padding: 0.1em 0.1em 0.15em;
654 }
655 .login h4 {
656   padding: 0.3em 0.3em 0.45em;
657 }
658
659 /* the login/register form */
660 ul.loginregister {
661   width: 24em;
662   margin: 0.25em auto;
663   margin-top: 1.0em;
664   padding: 0.0em;
665   padding-top:0.5em;
666   text-align: right;
667   z-index: 1;
668  }
669
670 ul.loginregister li {
671   display:inline;
672   border: 0px;
673   border-top: 2px solid #000;
674   border-left: 2px solid #000;
675   padding: 0.5em 0.75em;
676   padding-bottom: 0.25em;
677   background-color: #eee;
678 }
679
680 ul.loginregister li:last-child { border-right: 2px solid #000;}
681 ul.loginregister li:hover {background-color: #aaa; }
682
683 .doregister {display: none;}
684 .dologin label,.doregister label {float:left; width: 6em; }
685
686
687 .login fieldset{
688   width: 24em;
689   margin: 0.0em auto;
690   margin-bottom: 0.5em;
691   padding: 0.5em 0.5em  1.5em;
692   text-align: center;
693 }
694
695 fieldset {
696   border: 2px solid #000;
697   padding: 0.5em 0.5em 0.75em;
698   background-color: #eee;
699 }
700
701 fieldset p {
702   font-size:smaller;
703 }
704
705 .login label, .login input{ margin: 0.5em 0.5em 0.75em;}
706
707 .login label{
708   float:left;
709   width:7em;
710   text-align: left;
711 }
712
713 .login input #email, .login input #password{
714   width:9em;
715   float:right;
716 }
717
718 .login .submitbutton { background-color: #fff;}
719 .login .submitbutton:hover { background-color: #aaa;}
720
721 #openid_url {
722   background: #FFFFFF url('openid-icon-small.gif') no-repeat scroll 0pt 50%;
723   padding-left: 18px;
724 }
725
726 table.openid td, table.openid th{
727     padding: 0.0em 0.3em;;
728 }
729
730 .newbiehint {
731     background-color: #fee;
732 }
733
734 .vacation {
735     color: #666;
736     background-color: #fc3;
737 }
738
739 .highcall {
740     background-color: #fc3;
741 }
742
743 .about {
744     margin-left: 20%;
745     margin-right: 20%;
746     padding-top: 10%;
747 }
748
749 .about ul {
750     margin-left: 2em;
751 }
752
753 .about div {
754     width:12em;
755     height: 6em;
756     margin: 2em;
757     padding: 1em;
758     float:left;
759     border: 1px solid black;
760 }
761
762 .about .code {
763     background-color: #729fcf;
764 }
765 .about .database {
766     background-color: #8ae234;
767 }
768 .about .graphics {
769     background-color: #e9b96e;
770 }
771 .about .translation {
772     background-color: #fce94f;
773 }
774
775
776 /* special layout for mobile devices */
777 @media only screen and (max-width: 900px) {
778 .main {
779   background-color: #fff;
780   margin-left: 0em;
781   margin-right: 0em;
782 }
783
784 header, footer {
785   margin-left: 0em;
786   margin-right: 0em;
787 }
788
789 .lastlogin {
790   position: relative;
791   left: 0em;
792   top:  0em;
793   width: 100%;
794   text-align: center;
795   border-top: 1px solid gray;
796 }
797
798 .session div.sessionscore div, .status {
799   right:0em;
800 }
801
802 .notes {
803   position:relative;
804   top:0em;
805   left:0;
806   margin:0.1em;
807   margin-top:0em;
808   margin-left:0em;
809
810   width: 100%;
811
812   border:    2px solid gray;
813
814   padding:0.3em;
815
816   background-color: #efefef;
817
818   height:100%;
819   overflow: auto;
820   z-index:0;
821 }
822
823 .user { margin-left:5%;margin-right:5%; }
824
825 .message {
826  position: relative;
827  background-color: #fff;
828  width: 100%;
829  top:0em;
830  left:0%;
831  right:0%;
832  text-align: center;
833  z-index:1;
834 }
835 .message >div { border: 2px solid black; }
836 .message div div {
837     width: 100%;
838     text-align: right;
839     font-size: smaller;
840 }
841 }