From 53e8cff40ccebaa711fa8aab6dc9af1eb4e5c3a1 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 1 Nov 2008 16:51:18 -0700 Subject: [PATCH] CLEANUP: cleaned up CSS a bit the bug where you couldn't click on the prev/next button shouldn't show up that often now, since that area is now a bit bigger, but the bug is still there... Signed-off-by: Arun Persaud --- css/{standard015.css => standard016.css} | 122 ++++++++++------------- include/functions.php | 10 +- include/game.php | 26 ++--- include/output.php | 2 +- include/preferences.php | 2 +- 5 files changed, 75 insertions(+), 87 deletions(-) rename css/{standard015.css => standard016.css} (93%) diff --git a/css/standard015.css b/css/standard016.css similarity index 93% rename from css/standard015.css rename to css/standard016.css index 2dfadd0..0e49111 100644 --- a/css/standard015.css +++ b/css/standard016.css @@ -48,6 +48,9 @@ body { background-color: #ddd; } } .footer { + float: left; + clear: both; + width: 100%; background-color: #fff; margin:0; margin-left: 3em; @@ -67,6 +70,53 @@ body { background-color: #ddd; } font-size: smaller; } +/* sessions */ +.session { + width: 100%; + border-bottom: 1px solid #000; + text-align: center; +} +.session div.sessionrules { + width: 19em; + float: left; + text-align: left; +} +.session div.sessionrules div{ + display:none; + background-color: #fff; + border: 1px solid #000; + position:absolute; + z-index: 30; + padding:0.5em; +} +.session div.sessionrules:hover div{ display:block; } +.session div.sessionscore { + width: 19em; + float: right; + text-align: right; +} +.session div.sessionscore div{ + position:absolute; + width:12em; + right:3em; + display:none; + background-color: #fff; + border: 1px solid #000; + z-index: 30; +} +.session div.sessionscore:hover div{ display:block;} +.session img.rulesicon{ height: 1em; } + +.session .scoretable{ + height:20em; + overflow: auto; +} +.session table.score { + margin:0.5em; + width:10em; + border-collapse:collapse; +} + /* all kind of message that should appear in the middle of the page/table */ .joingame,.sickness,.poverty,.total,.message { position: absolute; @@ -124,7 +174,7 @@ div.table { left:0; padding:0; /* border: 3px solid blue; */ - top: 8.2em; + top: 9.2em; text-align:center; } @@ -183,8 +233,8 @@ ul.tricks { ul.tricks a { text-decoration:none; color:#000;} ul.tricks li { /*background-color:blue;*/ - margin:0.1em; - padding:0.2em 0.5em; + padding:0.1em; + margin:0.2em 0.5em; display:inline; } ul.tricks li.old { background-color:#fff; } @@ -195,17 +245,14 @@ ul.tricks li div.trick { position:absolute; width:100%; height:35em; - top:1.2em; + top:2.2em; left: 0; margin:0; padding:0; /* border: 2px solid red;*/ display:block; } -ul.tricks li div.trick { - display:none; -} - +ul.tricks li div.trick { display:none;} ul.tricks li div.trick img.arrow { position:absolute; margin:0; @@ -388,55 +435,6 @@ ul.tricks li div div span.comment span{ padding:0; } - -/* sessions */ -.session { - border-bottom:1px solid #000; - text-align:center; -} -div.session div.sessionrules { - width:19em; - float:left ; - text-align: left; -} -div.session div.sessionscore { - width:19em; - float:right ; - text-align: right; -} -div.session div.sessionrules div{ - display:none; - background-color: #fff; - border: 1px solid #000; - position:absolute; - z-index: 30; - padding:0.5em; -} -div.session div.sessionrules:hover div{ - display:block; -} -div.session div.sessionscore div{ - position:absolute; - width:12em; - right:3em; - display:none; - background-color: #fff; - border: 1px solid #000; - z-index: 30; -} -div.session div.sessionscore:hover div{ display:block;} -div.session img.rulesicon{ height: 1em; } - -.scoretable{ - height:20em; - overflow: auto; -} -table.score { - margin:0.5em; - width:10em; - border-collapse:collapse; -} - .gameinfo { position:absolute; top:27em; @@ -500,16 +498,6 @@ table.score { margin-bottom:0.1em; } -.submitbutton { - padding: 0.2em; - padding-bottom: 0.3em; - border:0; - background-color: #efe; -} - -.submitbutton:hover{ background-color:#afa;} - - .cardinput { display:inline; position:relative; diff --git a/include/functions.php b/include/functions.php index db7ccad..5c23958 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1052,22 +1052,22 @@ function format_score_table_html($score,$userid) if(sizeof($score)==0) return ""; - $output = "
\n\n \n"; + $output = "
\n
\n \n \n"; /* output header */ - $output.= " "; + $output.= " "; foreach($score[0]['players'] as $id=>$points) { $name = DB_get_name('userid',$id); /*TODO*/ $output.= ""; } - $output.="\n \n\n\n"; + $output.="\n \n \n \n"; $i=0; foreach($score as $game) { $i++; - $output.=" "; + $output.=" "; $userhash = DB_get_hash_from_gameid_and_userid($game['gameid'],$userid); /* create link to old games only if you are logged in and its your game*/ if(isset($_SESSION['id']) && $_SESSION['id']==$userid) @@ -1085,7 +1085,7 @@ function format_score_table_html($score,$userid) $output.="\n"; } - $output.="\n
No No ".substr($name,0,2)." P
P
\n"; + $output.=" \n\n\n"; return $output; } diff --git a/include/game.php b/include/game.php index b2df369..fb807c7 100644 --- a/include/game.php +++ b/include/game.php @@ -139,41 +139,41 @@ if($session) switch($RULES['dullen']) { case 'none': - echo "\"not\n"; break; + echo " \"not\n"; break; case 'firstwins': - echo "\"ten\n"; break; + echo " \"ten\n"; break; case 'secondwins': - echo "\"second\n"; break; + echo " \"second\n"; break; } switch($RULES['schweinchen']) { case 'none': - echo "\"no\n"; break; case 'both': - echo "\"two\n"; break; case 'second': - echo "\"second\n"; break; case 'secondaftercall': - echo "\"second\n"; break; } switch($RULES['call']) { case '1st-own-card': - echo "\"1st-own-card\"\n"; break; + echo " \"1st-own-card\"\n"; break; case '5th-card': - echo "\"5th-card\"\n"; break; + echo " \"5th-card\"\n"; break; case '9-cards': - echo "\"9-cards\"\n"; break; + echo " \"9-cards\"\n"; break; } - echo "
\n"; + echo "
\n"; echo " 10ofhearts : {$RULES['dullen']}
\n"; echo " schweinchen: {$RULES['schweinchen']}
\n"; echo " call: {$RULES['call']}
\n"; - echo "
\n
\n"; + echo " \n \n"; echo "
Score \n"; $score = generate_score_table($session); echo format_score_table_html($score,$myid); @@ -192,7 +192,7 @@ if($session) echo "This is game number $j of $i in session $session."; else echo "This is game number $j of $i in session $session."; - echo "
\n"; + echo "\n\n"; } /* display the table and the names */ diff --git a/include/output.php b/include/output.php index 86061e2..8d9336f 100644 --- a/include/output.php +++ b/include/output.php @@ -270,7 +270,7 @@ function output_header() e-Doko - + diff --git a/include/preferences.php b/include/preferences.php index 77ad867..67e2eec 100644 --- a/include/preferences.php +++ b/include/preferences.php @@ -206,7 +206,7 @@ echo " Password(new): ", echo " Password(new, retype): ", "", " \n"; -echo " ", +echo " ", "\n"; echo " \n"; echo " \n"; -- 2.17.1