added bootstrap 2.1.1; fixed paths to match edoko (img->pics)
[e-DoKo.git] / css / standard.css
index a3bb40e33c05a6f97fa7a338859b08ea3a772794..ea6cbe536342b3ffa9fd2c47ed99c0eae8f20900 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright 2006, 2007, 2008, 2009, 2010 Arun Persaud <arun@nubati.net>
+/* Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012 Arun Persaud <arun@nubati.net>
  *
  *   This file is part of e-DoKo.
  *
  *
  */
 
-/* reset CSS (taken from blueprint and modified a bit) */
-
-html, body, div, span,
-h1, h2, h3, h4, h5, h6, p,
-a,img,  dl, dt, dd, ol, ul, li,
-fieldset, form, label, legend,
-table, tbody, tfoot, thead, tr, th, td {
-  margin: 0;
-  padding: 0;
-  border: 0;
-  vertical-align: baseline;
-}
-table { border-collapse: separate; border-spacing: 0; }
-caption, th, td { text-align: left; font-weight: normal; }
-table, td, th { vertical-align: middle; }
-
-/*  end reset */
-
-/* some general layout */
-h1, h2, h3, h4, h5, h6, p {margin: 2px; padding: 1px;}
-
 body { background-color: #ddd; }
 
-
 /* the header, footer, etc */
-.header {
+header {
   background-color: #fff;
   text-align:       center;
-  height:           4em;
   padding-top: 1.5em;
-  margin-left: 3em;
-  margin-right: 3em;
+  margin: 0em 3em;
   border-bottom:    3px solid gray;
 }
 
@@ -61,22 +37,19 @@ body { background-color: #ddd; }
 
 .main {
   background-color: #fff;
-  margin-left: 3em;
-  margin-right: 3em;
-  min-height: 40em;
+  padding: 1px 0em;
+  margin:  0em 3em;
+  padding-bottom: 1em;
 }
 
-.footer {
+footer {
   background-color: #fff;
-  margin-left: 3em;
-  margin-right: 3em;
-  padding:0;
+  margin: 0em 3em;
+  padding:0em 0.2em;
   border-top: 2px solid gray;
-  clear:both;
-  height: 8em;
 }
-.footer .right { float:right;   font-size:smaller;}
-.footer .left  { float:left;  font-size:smaller; }
+footer .right { text-align:right;   font-size:smaller;}
+footer .left  { float:left;         font-size:smaller;}
 
 .status {
   position:absolute;
@@ -85,10 +58,20 @@ body { background-color: #ddd; }
   font-size: smaller;
 }
 
+.WIP {
+  background-color: #efaaaa;
+  text-size: larger;
+  text-align: center;
+  margin: 30px 10% ;
+  border-radius: 5px;
+  border: 2px solid red;
+  padding: 10px;
+}
+
 /* sessions */
 .session {
-  width: 100%;
   border-bottom: 1px solid #000;
+  padding: 0.5em;
   text-align: center;
 }
 .session div.sessionrules {
@@ -133,7 +116,7 @@ body { background-color: #ddd; }
 }
 
 /* all kind of message that should appear in the middle of the page/table */
-.joingame,.sickness,.poverty,.total,.message {
+.message {
  position: absolute;
  background-color: #fff;
  width: 20%;
@@ -141,11 +124,27 @@ body { background-color: #ddd; }
  left:40%;
  right:40%;
  text-align: center;
- z-index:22
+ z-index:33;
+}
+.message >div { border: 2px solid black; }
+.message div div {
+    width: 100%;
+    text-align: right;
+    font-size: smaller;
 }
 
+.joingame,.sickness,.poverty,.total {
+ position: absolute;
+ background-color: #fff;
+ border-radius: 5px;
+ width: 20%;
+ top: 30%;
+ left: 40%;
+ margin: auto;
+ text-align: center;
+ z-index:42;
+}
 .total {
-    top:11em;
     width: 14%;
     left: 43%;
 }
@@ -155,6 +154,7 @@ body { background-color: #ddd; }
  left: -12em;
  top:8em;
  background-color: #eee;
+ padding: 0.3em;
  z-index:15;
 }
 .total .contra {
@@ -162,12 +162,10 @@ body { background-color: #ddd; }
  right: -14em;
  top:8em;
  background-color: #eee;
+ padding: 0.3em;
  z-index:15;
 }
 
-/* output possible rules for  a new game  */
-.rules { margin-top:24em;}
-
 /* playing cards*/
 .card {
   position:absolute;
@@ -180,69 +178,97 @@ body { background-color: #ddd; }
 }
 .card img { width:8em; }
 
+form {  position: relative;}
+
 /* display the table and the names */
 div.table {
-  position:absolute;
-  width:100%;
-  height:37em;
-  margin:0;
-  left:0;
+  position:relative;
+  text-align:center;
+  margin: 0;
   padding:0;
-/*  border: 3px solid blue; */
-  top: 9.2em;
+  border-bottom:1px solid #444;
+}
+
+div.table div.table1 {
+  width:10.5%;
+  min-width: 10em;
   text-align:center;
+  z-index:20;
+  margin: 0 auto;
 }
 
-div.table img.table {
+div.middle {
+    position:relative;
+    min-height: 6em;
+}
+div.table div.table0 {
   position:absolute;
-  width:25%;
+  width:10.5%;
+  min-width: 10em;
+  min-height: 4em;
   top:20%;
-  height:22em;
-  left:37.5%;
+  right: 64.5%;
+  text-align:center;
+  z-index:20;
+}
+div.table div.table0 .start {
+  background-color: #efaaaa;
+  border-radius: 5px;
+  padding: 3px;
+  padding-bottom: 1px;
+  margin: 3px;
+}
+
+div.table img.table {
+  width:25%;
   z-index:5;
+  margin:  0 auto;
+  min-margin-left: 10xem;
+  min-margin-right: 10em;
+  min-height: 6em;
   display: block;
-  margin:0;
-  padding:0;
+  vertical-align:middle;
 }
-div.table div {
-  /*background-color:green;*/
+div.table div.table2 {
   position:absolute;
-  width:12.5%;
+  width:10.5%;
+  min-width: 10em;
+  min-height: 4em;
+  top:20%;
+  left:64.5%;
   text-align:center;
   z-index:20;
 }
-div.table div img{
-  /*background-color:green;*/
-  width:20%;
+div.table div.table3 {
+  width:10.5%;
+  min-width: 10em;
+  text-align:center;
+  z-index:20;
+  margin: 0 auto;
 }
 
-div.table div.table0 {
-  top:45%;
-  right:62.5%;
-}
-div.table div.table1 {
-  top:0%;
-  left:43.75%;
+img.gravatar  {
+    width:  4em;
+    height: 4em;
+    border: 3px solid #aaa;
 }
-div.table div.table2 {
-  top:45%;
-  left:62.5%;
+
+div img.button {
+    width: 2em;
 }
-div.table div.table3 {
-  bottom:0%;
-  left: 43.75%;
+
+div span.numberoftricks {
+    text-align:center;
 }
 
 /* display the card tricks */
 
 ul.tricks {
-  position:relative;
-  zoom:1; /* fixes an IE6 issue and hopefully doesn't mess up anything else */
+  text-align:center;
   list-style:none;
-  margin:3px;
-  padding:0;
+  margin:0px;
+  padding:3px;
   padding-bottom:3px;
-  text-align:center;
   border-bottom:1px solid #444;
 }
 ul.tricks a { text-decoration:none; color:#000;}
@@ -253,32 +279,34 @@ ul.tricks li {
   display:inline;
 }
 ul.tricks li.old {  background-color:#fff; }
-ul.tricks li:hover {  background-color: #bbb;}
-ul.tricks li.nohighlight:hover {  background-color: #fff;}
+ul.tricks li a:hover {  background-color: #bbb;}
+ul.tricks li.nohighlight a:hover {  background-color: #fff;}
 
-ul.tricks li div.trick {
-  position:absolute;
-  width:100%;
-  height:35em;
-  top:2.2em;
+div.tricks {
+  position: absolute;
+  top: 0;
   left: 0;
-  margin:0;
-  padding:0;
-/*  border: 2px solid red;*/
-  display:block;
+  right:0;
+  bottom: 0;
+  text-align:center;
+  margin: 0;
+  padding:0 0;
 }
-ul.tricks li div.trick { display:none;}
-ul.tricks li div.trick img.arrow {
-  position:absolute;
-  margin:0;
-  padding:0;
-/*  border: 5px solid blue;*/
+
+div.tricks div.trick {
+  position: absolute;
+  top: 0%;
+  left: 0;
+  right:0;
+  bottom: 0%;
+  display:none;
+}
+.tricks div.trick img.arrow {
+  position:relative;
+  display:inline;
   text-align:center;
-  width:16%;
-  height:16em;
-  left:42%;
-  right:42%;
-  top:10em;
+  height: 60%;
+  top: 20%;
   z-index:8;
 }
 
@@ -286,30 +314,29 @@ ul.tricks li div.trick img.arrow {
 
 hr {clear:both;}
 
-/*ul.tricks li:hover div.table{ display:block; }*/
-
 /* left player */
-ul.tricks li div div.card0 img,
-ul.tricks li div div.card0 .score,
+.tricks div div.card0 img,
+.tricks div div.card0 .score,
 .vorbehalt0 {
   position:absolute;
   margin:0;
   padding:0;
 /*border: 1px solid red;*/
-  top: 40%;
+ /*border: 1px solid red;*/
+  top: 30%;
   left:37.5%;
   right:56.5%;
-  width:6%;
+  height:40%;
   z-index:30;
 }
 
 .vorbehalt0 {
-  left:37.5%;
-  right:57.5%;
+  left:33.5%;
+  right:59.5%;
   width:10%;
   text-align:left;
 }
-ul.tricks li div div.card0 span.comment{
+
+.tricks div div.card0 span.comment{
   position:absolute;
   margin:0;
   padding:0;
@@ -321,17 +348,17 @@ ul.tricks li div div.card0 span.comment{
 }
 
 /* top player */
-ul.tricks li div div.card1 img,
-ul.tricks li div div.card1 .score,
+.tricks div div.card1 img,
+.tricks div div.card1 .score,
 .vorbehalt1 {
   position:absolute;
   margin:0;
   padding:0;
   /*border: 1px solid red;*/
-  top: 22%;
+  top: 0%;
   left:47%;
   right:47%;
-  width:6%;
+  height:40%;
   text-align:center;
   z-index:30;
 }
@@ -341,7 +368,8 @@ ul.tricks li div div.card1 .score,
   width:10%;
   z-index:30;
 }
-ul.tricks li div div.card1 span.comment{
+
+.tricks div div.card1 span.comment{
   position:absolute;
   margin:0;
   padding:0;
@@ -354,26 +382,27 @@ ul.tricks li div div.card1 span.comment{
 }
 
 /* right player */
-ul.tricks li div div.card2 img,
-ul.tricks li div div.card2 .score,
+.tricks div div.card2 img,
+.tricks div div.card2 .score,
 .vorbehalt2{
   position:absolute;
   margin:0;
   padding:0;
   /*border: 1px solid red;*/
-  top: 40%;
+  top: 30%;
   right:37.5%;
   left:56.5%;
-  width:6%;
+  height:40%;
   z-index:30;
 }
 .vorbehalt2{
-  left:auto;
-  right:38%;
+  left:56%;
+  right:34%;
   width:10%;
   text-align:right;
 }
-ul.tricks li div div.card2 span.comment{
+
+.tricks div div.card2 span.comment{
   position:absolute;
   margin:0;
   padding:0;
@@ -386,27 +415,27 @@ ul.tricks li div div.card2 span.comment{
 }
 
 /* bottom player */
-ul.tricks li div div.card3 img,
-ul.tricks li div div.card3 .score,
+.tricks div div.card3 img,
+.tricks div div.card3 .score,
 .vorbehalt3{
   position:absolute;
   margin:0;
   padding:0;
   /*border: 1px solid red;*/
-  bottom: 20%;
+  bottom: 0%;
   left:47%;
   right:47%;
-  width:6%;
-  text-align:center;
+  height: 40%;
   z-index:30;
 }
-.vorbehalt3{
+.tricks div div.card3 .score, .vorbehalt3{
   left:45%;
   right:45%;
   width:10%;
+  height: 3em;
   text-align:center;
 }
-ul.tricks li div div.card3 span.comment{
+.tricks div div.card3 span.comment{
   position:absolute;
   margin:0;
   padding:0;
@@ -424,7 +453,7 @@ span.comment{
  word-wrap: break-word;
 }
 
-ul.tricks li div div span.comment span{
+.tricks div div span.comment span{
   display:block;
   text-align:left;
   border-top:1px solid green;
@@ -432,7 +461,6 @@ ul.tricks li div div span.comment span{
 
 .mycards {
   margin:0;
-  margin-top:38.5em;
   padding:0;
   border-top:       2px solid gray;
 /* border-bottom:    2px solid green;*/
@@ -471,33 +499,22 @@ ul.tricks li div div span.comment span{
 }
 
 .usermenu {
-  position:absolute;
-  top:10em;
-  left:3em;
-  margin:1em;
-  margin-top:0em;
-  margin-left:0em;
-
-  width: 12em;
-
-  border:    2px solid gray;
-
-  padding:0.3em;
-
-  background-color: #eee;
+  text-align: center;
+  padding:0.7em;
+  border-bottom: 1px solid black;
 }
 
 .notes {
   position:absolute;
-  top:27em;
+  top:3em;
   left:0;
   margin:1em;
   margin-top:0em;
-  margin-left:3em;
+  margin-left:2em;
 
   width: 12em;
 
-  border:    2px solid gray;
+  border:  2px solid gray;
 
   padding:0.3em;
 
@@ -508,10 +525,14 @@ ul.tricks li div div span.comment span{
   z-index:50;
 }
 
-.user { margin-left:25%;margin-right:5%; }
+.user {
+    margin-left:25%;
+    margin-right:5%;
+}
 
 div.user ul {
   list-style:none;
+  padding: 0px;
 }
 
 div.user ul li {
@@ -562,14 +583,9 @@ div.user ul li:first-child {
   position:relative;
   border: 1px solid #000;
 }
-
 .cardinput img { width: 4em;}
-
 .cardinput:hover{ background-color:red;}
 
-div span img.button { width: 2em;}
-div span img.tinybutton { width: 1.4em;}
-
 .gamestatuspre {
   padding: 0 0.3em;
   background-color: #f57900;
@@ -618,6 +634,7 @@ table.stats thead tr .header {
     background-image: url(bg.png);
     background-repeat: no-repeat;
     background-position: center right;
+    padding-right: 15px;
     cursor: pointer;
 }
 table.stats tbody td {
@@ -650,10 +667,38 @@ table.stats thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
   padding: 0.3em 0.3em 0.45em;
 }
 
-/* the login form */
-.login form{
+/* the login/register form */
+ul.loginregister {
   width: 24em;
-  margin: 0.5em auto;
+  margin: 0.25em auto;
+  margin-top: 1.0em;
+  padding: 0.0em;
+  padding-top:0.5em;
+  text-align: right;
+  z-index: 1;
+ }
+
+ul.loginregister li {
+  display:inline;
+  border: 0px;
+  border-top: 2px solid #000;
+  border-left: 2px solid #000;
+  padding: 0.5em 0.75em;
+  padding-bottom: 0.25em;
+  background-color: #eee;
+}
+
+ul.loginregister li:last-child { border-right: 2px solid #000;}
+ul.loginregister li:hover {background-color: #aaa; }
+
+.doregister {display: none;}
+.dologin label,.doregister label {float:left; width: 6em; }
+
+
+.login fieldset{
+  width: 24em;
+  margin: 0.0em auto;
+  margin-bottom: 0.5em;
   padding: 0.5em 0.5em  1.5em;
   text-align: center;
 }
@@ -664,6 +709,10 @@ fieldset {
   background-color: #eee;
 }
 
+fieldset p {
+  font-size:smaller;
+}
+
 .login label, .login input{ margin: 0.5em 0.5em 0.75em;}
 
 .login label{
@@ -698,12 +747,6 @@ table.openid td, table.openid th{
     background-color: #fc3;
 }
 
-div.table div img.gravatar, img.gravatar  {
-    width:  4em;
-    height: 4em;
-    border: 3px solid #aaa;
-}
-
 .highcall {
     background-color: #fc3;
 }
@@ -741,4 +784,69 @@ div.table div img.gravatar, img.gravatar  {
 }
 
 
+/* special layout for mobile devices */
+@media only screen and (max-width: 900px) {
+.main {
+  background-color: #fff;
+  margin-left: 0em;
+  margin-right: 0em;
+}
+
+header, footer {
+  margin-left: 0em;
+  margin-right: 0em;
+}
+
+.lastlogin {
+  position: relative;
+  left: 0em;
+  top:  0em;
+  width: 100%;
+  text-align: center;
+  border-top: 1px solid gray;
+}
+
+.session div.sessionscore div, .status {
+  right:0em;
+}
+
+.notes {
+  position:relative;
+  top:0em;
+  left:0;
+  margin:0.1em;
+  margin-top:0em;
+  margin-left:0em;
+
+  width: 100%;
+
+  border:    2px solid gray;
+
+  padding:0.3em;
 
+  background-color: #efefef;
+
+  height:100%;
+  overflow: auto;
+  z-index:0;
+}
+
+.user { margin-left:5%;margin-right:5%; }
+
+.message {
+ position: relative;
+ background-color: #fff;
+ width: 100%;
+ top:0em;
+ left:0%;
+ right:0%;
+ text-align: center;
+ z-index:1;
+}
+.message >div { border: 2px solid black; }
+.message div div {
+    width: 100%;
+    text-align: right;
+    font-size: smaller;
+}
+}
\ No newline at end of file