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