more cleanup, the layout for the pre game stuff is now probably broken:(
authorarun <arun@nubati.net>
Sun, 8 Apr 2007 20:08:24 +0000 (20:08 +0000)
committerarun <arun>
Sun, 8 Apr 2007 20:08:24 +0000 (20:08 +0000)
css/standard.css
index.php

index f1384abf9f0d585feaab679085e92bbf8cb479f8..d1c31c185d73d5e3bcc95d4fc453bf77b99a9bd4 100644 (file)
@@ -74,6 +74,7 @@ ul.tricks {
   list-style:none;
   margin:3px;
   padding:0;
   list-style:none;
   margin:3px;
   padding:0;
+  padding-bottom:3px;
   /*background-color:yellow;*/
   text-align:center;
   border-bottom:1px solid #444;
   /*background-color:yellow;*/
   text-align:center;
   border-bottom:1px solid #444;
@@ -81,12 +82,13 @@ ul.tricks {
 ul.tricks a { text-decoration:none; color:#000;}
 ul.tricks li {
   /*background-color:blue;*/
 ul.tricks a { text-decoration:none; color:#000;}
 ul.tricks li {
   /*background-color:blue;*/
-  margin:0.2em 0.5em;  
+  margin:0;
+  padding:0.2em 0.5em;  
   display:inline;
 }
   display:inline;
 }
-ul.tricks li:hover {
-  background-color: yellow;
-}
+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 div.trick {
 
 
 ul.tricks li div.trick {
@@ -203,8 +205,8 @@ ul.tricks li div div.card2 span{
   border: 3px solid green;
 }
 ul.tricks li div div.card3 span{
   border: 3px solid green;
 }
 ul.tricks li div div.card3 span{
-  top:4em;
-  left:3em;
+  top:2em;
+  left:20em;
   border: 3px solid green;
 }
 
   border: 3px solid green;
 }
 
index a4ace5cffb42b107dafd8996d2e0065d34b11ce1..95ccfcfa3da68cd614e074c46d60bc343909a7ca 100644 (file)
--- a/index.php
+++ b/index.php
@@ -689,7 +689,7 @@ else if(myisset("me"))
       $firstcard = ""; /* first card in a trick */
       
       echo "\n<ul class=\"tricks\">\n";
       $firstcard = ""; /* first card in a trick */
       
       echo "\n<ul class=\"tricks\">\n";
-      echo "  <li> Game $gameid: </li>\n";
+      echo "  <li class=\"nohighlight\"> Game $gameid: </li>\n";
       
       while($r = mysql_fetch_array($result,MYSQL_NUM))
        {
       
       while($r = mysql_fetch_array($result,MYSQL_NUM))
        {
@@ -711,14 +711,14 @@ else if(myisset("me"))
              if($trick!=$lasttrick)
                {
                  /* start of an old trick? */
              if($trick!=$lasttrick)
                {
                  /* start of an old trick? */
-                 echo "  <li onclick=\"hl('$trickNR');\"><a href=\"#\">Trick $trickNR</a>\n".
+                 echo "  <li onclick=\"hl('$trickNR');\" class=\"old\"><a href=\"#\">Trick $trickNR</a>\n".
                    "    <div class=\"trick\" id=\"trick".$trickNR."\">\n".
                    "      <img class=\"arrow\" src=\"pics/arrow".($pos-1).".png\" alt=\"table\" />\n";
                }
              else if($trick==$lasttrick)
                {
                  /* start of a last trick? */
                    "    <div class=\"trick\" id=\"trick".$trickNR."\">\n".
                    "      <img class=\"arrow\" src=\"pics/arrow".($pos-1).".png\" alt=\"table\" />\n";
                }
              else if($trick==$lasttrick)
                {
                  /* start of a last trick? */
-                 echo "  <li onclick=\"hl('$trickNR');\"><a href=\"#\">Current Trick</a>\n".
+                 echo "  <li onclick=\"hl('$trickNR');\" class=\"current\"><a href=\"#\">Trick $trickNR</a>\n".
                    "    <div class=\"trick\" id=\"trick".$trickNR."\">\n".
                    "      <img class=\"arrow\" src=\"pics/arrow".($pos-1).".png\" alt=\"table\" />\n";
                };
                    "    <div class=\"trick\" id=\"trick".$trickNR."\">\n".
                    "      <img class=\"arrow\" src=\"pics/arrow".($pos-1).".png\" alt=\"table\" />\n";
                };