From c909eb46740a1daeaf8fac1d60d0e4539f01e342 Mon Sep 17 00:00:00 2001 From: tkimia Date: Thu, 24 Apr 2014 19:06:34 -0400 Subject: more fixes to the SVG --- app/assets/stylesheets/matches.css.scss | 11 ----------- app/views/tournaments/show.html.erb | 1 + lib/scheduling/elimination.rb | 18 +++++++++++------- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/app/assets/stylesheets/matches.css.scss b/app/assets/stylesheets/matches.css.scss index ee43ab4..64d0ca9 100644 --- a/app/assets/stylesheets/matches.css.scss +++ b/app/assets/stylesheets/matches.css.scss @@ -56,14 +56,3 @@ svg { min-width: 600px; } - -@media (max-width: 900px) { - svg text { - font-size: 200%; - } -} -@media (max-width: 700px) { - svg text { - font-size: 150%; - } -} \ No newline at end of file diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb index a5eb46c..f79b975 100644 --- a/app/views/tournaments/show.html.erb +++ b/app/views/tournaments/show.html.erb @@ -113,3 +113,4 @@ <%end %> + diff --git a/lib/scheduling/elimination.rb b/lib/scheduling/elimination.rb index cf0d625..0e93f7a 100644 --- a/lib/scheduling/elimination.rb +++ b/lib/scheduling/elimination.rb @@ -61,11 +61,6 @@ module Scheduling matchHeight = 50*logBase; height = [(matchHeight+50) * logBase**(depth-1) + 100, 500].max; - lastrx = 0 - lastry = 0 - lastrh = 0 - lastrw = 0 - str = <<-STRING \n" str += "\t\t\n" if matches[i].teams[t-1] - str += "\t\tTeam #{matches[i].teams[t-1].id}\n" + str += "\t\tTeam #{matches[i].teams[t-1].id}\n" end if (t < numTeams) - str += "\t\t VS \n" + str += "\t\t VS \n" end t = t + 1 end -- cgit v1.2.3-54-g00ecf