6330a8d18ae6e8521fc132493a4d44c4327b3b35
[e-DoKo.git] / css / standard.less
1 /* Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 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:0.2em 0.2em;
47   border-top: 2px solid gray;
48 }
49 footer .right { text-align:right;  margin-top:1em; line-height:90%;font-size:smaller; margin-right:1em;}
50 footer .left  { float:left;   margin-top:1em; line-height:90%;font-size:smaller; margin-left: 1em;}
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 }
245
246 div img.button {
247     width: 2em;
248 }
249
250 div span.numberoftricks {
251     text-align:center;
252 }
253
254 /* display the card tricks */
255
256 div.tricks {
257   position: absolute;
258   top: 0;
259   left: 0;
260   right:0;
261   bottom: 0;
262   text-align:center;
263   margin: 0;
264   padding:0 0;
265 }
266
267 div.tricks div.trick {
268   position: absolute;
269   top: 0%;
270   left: 0;
271   right:0;
272   bottom: 0%;
273   display:none;
274 }
275 .tricks div.trick img.arrow {
276   position:relative;
277   display:inline;
278   text-align:center;
279   height: 60%;
280   top: 20%;
281   z-index:8;
282 }
283
284 #trick0 img { float:left; width: 3em; }
285
286 hr {clear:both;}
287
288 /* left player */
289 .tricks div div.card0 img,
290 .tricks div div.card0 .score,
291 .vorbehalt0 {
292   position:absolute;
293   margin:0;
294   padding:0;
295  /*border: 1px solid red;*/
296   top: 30%;
297   left:37.5%;
298   right:56.5%;
299   height:40%;
300   z-index:30;
301 }
302
303 .vorbehalt0 {
304   left:33.5%;
305   right:59.5%;
306   width:10%;
307   text-align:left;
308 }
309
310 .tricks div div.card0 span.comment{
311   position:absolute;
312   margin:0;
313   padding:0;
314   /*border: 1px solid red;*/
315   top: 5%;
316   right:66.5%;
317   left:17.5%;
318   width:16%;
319 }
320
321 /* top player */
322 .tricks div div.card1 img,
323 .tricks div div.card1 .score,
324 .vorbehalt1 {
325   position:absolute;
326   margin:0;
327   padding:0;
328   /*border: 1px solid red;*/
329   top: 0%;
330   left:47%;
331   right:47%;
332   height:40%;
333   text-align:center;
334   z-index:30;
335 }
336 .vorbehalt1{
337   left:45%;
338   right:45%;
339   width:10%;
340   z-index:30;
341 }
342
343 .tricks div div.card1 span.comment{
344   position:absolute;
345   margin:0;
346   padding:0;
347   /*border: 1px solid red;*/
348   top: 5%;
349   left:66.5%;
350   right:17.5%;
351   width:16%;
352   text-align:center;
353 }
354
355 /* right player */
356 .tricks div div.card2 img,
357 .tricks div div.card2 .score,
358 .vorbehalt2{
359   position:absolute;
360   margin:0;
361   padding:0;
362   /*border: 1px solid red;*/
363   top: 30%;
364   right:37.5%;
365   left:56.5%;
366   height:40%;
367   z-index:30;
368 }
369 .vorbehalt2{
370   left:56%;
371   right:34%;
372   width:10%;
373   text-align:right;
374 }
375
376 .tricks div div.card2 span.comment{
377   position:absolute;
378   margin:0;
379   padding:0;
380   /*border: 1px solid red;*/
381   top: 85%;
382   left:66.5%;
383   right:17.5%;
384   width:16%;
385   text-align:center;
386 }
387
388 /* bottom player */
389 .tricks div div.card3 img,
390 .tricks div div.card3 .score,
391 .vorbehalt3{
392   position:absolute;
393   margin:0;
394   padding:0;
395   /*border: 1px solid red;*/
396   bottom: 0%;
397   left:47%;
398   right:47%;
399   height: 40%;
400   z-index:30;
401 }
402 .tricks div div.card3 .score, .vorbehalt3{
403   left:45%;
404   right:45%;
405   width:10%;
406   height: 3em;
407   text-align:center;
408 }
409 .tricks div div.card3 span.comment{
410   position:absolute;
411   margin:0;
412   padding:0;
413   /*border: 1px solid red;*/
414   top: 85%;
415   right:66.5%;
416   left:17.5%;
417   width:16%;
418 }
419
420 span.comment{
421  border: 3px solid green;
422  max-height:6em;
423  overflow: auto;
424  word-wrap: break-word;
425 }
426
427 .tricks div div span.comment span{
428   display:block;
429   text-align:left;
430   border-top:1px solid green;
431 }
432
433 .mycards {
434   margin:0;
435   padding:0;
436   border-top:       2px solid gray;
437 /* border-bottom:    2px solid green;*/
438   background-color: #faffc7;
439   text-align:center;
440 }
441
442 .mycards img { height:6em;}
443
444 .exchange {
445   clear:both;
446   margin:0;
447   padding:0;
448   border:1px solid red;
449   background-color:yellow;
450 }
451
452 .exchange img { height:6em;}
453
454 .line{
455   clear:both;
456   border-top:2px solid gray;
457   margin:0;
458   padding:0;
459 }
460
461 .gameinfo {
462   position:relative;
463   top:0em;
464   margin:0em;
465   padding:0em;
466   width:100%;
467   border-top:    2px solid gray;
468   background-color: #efaaaa;
469   text-align:center;
470 }
471
472 .usermenu {
473   text-align: center;
474   padding:0.7em;
475   border-bottom: 1px solid black;
476 }
477
478 .notes {
479   position:absolute;
480   top:3em;
481   left:0;
482   margin:1em;
483   margin-top:0em;
484   margin-left:2em;
485
486   width: 12em;
487
488   border:  2px solid gray;
489
490   padding:0.3em;
491
492   background-color: #efefef;
493
494   height:10em;
495   overflow: auto;
496   z-index:50;
497 }
498
499 .user {
500     margin-left:25%;
501     margin-right:5%;
502 }
503
504 div.user ul {
505   list-style:none;
506   padding: 0px;
507 }
508
509 div.user ul li {
510   position: relative;
511   padding:3px;
512   margin: 0px;
513   width: 80%;
514   min-height: 1.2em;
515   border-left: 2px solid #babdb6 ;
516   border-right: 2px solid #babdb6 ;
517   border-bottom: 2px solid #babdb6 ;
518 }
519
520 div.user ul li:first-child {
521   border-top: 2px solid #babdb6 ;
522 }
523 .gamessession {
524     display:none;
525 }
526
527 .user .gameid {
528     float: left;
529     width: 5em;
530 }
531 .user .turn {
532     padding-left: 1em;
533     width: 20em;
534 }
535
536 .user .gameshidesession {
537   display: none;
538 }
539
540 .user .gameshidesession , .user .gamesshowsession {
541     float:right;
542     width: 10em;
543 }
544
545 .wide { margin-left:5%;margin-right:5%; }
546
547 .over {
548   text-align:center;
549   margin-bottom:0.1em;
550 }
551
552 .cardinput {
553   display:inline;
554   position:relative;
555   border: 1px solid #000;
556 }
557 .cardinput img { width: 4em;}
558 .cardinput:hover{ background-color:red;}
559
560 .gamestatuspre {
561   padding: 0 0.3em;
562   background-color: #f57900;
563 }
564 .gamestatusover {
565   padding:0 0.3em;
566   background-color: #e9b96e ;
567   color: #fff;
568 }
569 .gamestatusplay {
570   padding:0 0.3em;
571   background-color: #8ae234;
572 }
573
574 /* statistics using jquery*/
575 caption {
576   text-align: center;
577   margin: 0.5em;
578   padding: 0.5em;
579   padding-bottom: 0em;
580   margin-bottom: 0;
581  }
582
583 table.stats {
584   margin: 0.5em 1em;
585   border: solid 0.2em #aeaeae;
586   -moz-border-radius: 0.5em ;
587   float: left;
588 }
589 table.stats tbody tr.odd td  { background-color:#aeaeae; }
590 table.stats tbody tr.even td { background-color:#eaeaea; }
591 table.stats td, table.stats th {
592   margin-left:  0.2em;
593   margin-right: 0.2em;
594   padding-left:  0.2em;
595   padding-right: 0.2em;
596   border-right: solid 0.1em #000;
597 }
598 table.stats tr td:last-child, table.stats  tr th:last-child { border-right: solid 0 #000; }
599 table.stats th { border-bottom: solid 0.2em #000 }
600
601 table.stats thead tr .header {
602     background-image: url(bg.png);
603     background-repeat: no-repeat;
604     background-position: center right;
605     padding-right: 15px;
606     cursor: pointer;
607 }
608 table.stats tbody td {
609     padding: 4px;
610     background-color: #eaeaea;
611     vertical-align: top;
612 }
613 table.stats thead tr .headerSortUp {
614     background-image: url(asc.png);
615 }
616 table.stats thead tr .headerSortDown {
617     background-image: url(desc.png);
618 }
619 table.stats thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
620     background-color: #8dbdd8;
621 }
622
623
624
625 /* the login window */
626 /* the login/register form */
627 #openid_url {
628   background: #FFFFFF url('openid-icon-small.gif') no-repeat scroll 0pt 50%;
629   padding-left: 18px;
630 }
631
632 table.openid td, table.openid th{
633     padding: 0.0em 0.3em;
634 }
635
636 .newbiehint {
637     background-color: #fee;
638 }
639
640 .vacation {
641     color: #666;
642     background-color: #fc3;
643 }
644
645 .highcall {
646     background-color: #fc3;
647 }
648
649 .about ul {
650     margin-left: 2em;
651 }
652
653 .about div {
654     margin-top: 3em;
655     border: 1px solid black;
656 }
657
658 .about .code {
659     background-color: #729fcf;
660 }
661 .about .database {
662     background-color: #8ae234;
663 }
664 .about .graphics {
665     background-color: #e9b96e;
666 }
667 .about .translation {
668     background-color: #fce94f;
669 }
670
671
672 /* special layout for mobile devices */
673 @media only screen and (max-width: 600px) {
674
675 .nav > li > a .navhide{ display:none; }
676
677 .lastlogin {
678   position: relative;
679   left: 0em;
680   top:  0em;
681   width: 100%;
682   text-align: center;
683   border-top: 1px solid gray;
684 }
685
686 .session div.sessionscore div {
687   right:0em;
688 }
689
690 .notes {
691   position:relative;
692   top:0em;
693   left:0;
694   margin:0.1em;
695   margin-top:0em;
696   margin-left:0em;
697
698   width: 100%;
699
700   border:    2px solid gray;
701
702   padding:0.3em;
703
704   background-color: #efefef;
705
706   height:100%;
707   overflow: auto;
708   z-index:0;
709 }
710
711 .user { margin-left:5%;margin-right:5%; }
712
713 .message {
714  position: relative;
715  background-color: #fff;
716  width: 100%;
717  top:0em;
718  left:0%;
719  right:0%;
720  text-align: center;
721  z-index:1;
722 }
723 .message >div { border: 2px solid black; }
724 .message div div {
725     width: 100%;
726     text-align: right;
727     font-size: smaller;
728 }
729 }
730
731 // bootstrap stuff
732 .pagination {  text-align:center;}
733 .nav > li > img { height: (@navbarHeight/1.5); }