Permalink
Browse files

Display leaderboard next to graph. Closes #15

  • Loading branch information...
mattwynne committed Sep 29, 2011
1 parent 5678341 commit 545894eacbb764e171a76cf4c0887c4515fbacbd
Showing with 12 additions and 5 deletions.
  1. +7 −2 public/css/style.css
  2. +5 −3 views/scores.haml
View
@@ -2,6 +2,12 @@ h1 {color:blue}
.score {color:blue}
+.left { float: left; width: 500px; }
+.right{ float: right; width: 500px; }
+
+li { display: block }
+ul { padding: 0 }
+
.logline {margin:2px; padding:3px; display:inline-block}
.logline.id {width:100}
.logline.result {width:150}
@@ -12,7 +18,6 @@ h1 {color:blue}
.logline.no_response {background-color:#ff4500}
.logline.error_response {background-color:#ff4500}
-
.ranking {margin:2px; padding:3px; display:inline-block; background-color:#eed5b7}
.ranking.name {width:200}
-.ranking.points {width:200}
+.ranking.points {width:200}
View
@@ -7,6 +7,8 @@
%script{:type => "text/javascript", :src => "/js/leaderboard.js"}
%body
- %canvas{:id => "mycanvas", :width => 800, :height => 500 }
- %h1 Leader Board
- %ul{:id => "scoreboard" }
+ .left
+ %canvas{:id => "mycanvas", :width => 500, :height => 500 }
+ .right
+ %h1 Leader Board
+ %ul{:id => "scoreboard" }

0 comments on commit 545894e

Please sign in to comment.