From c94e19577f0c701ec0a843fa7392fd2fa70a5706 Mon Sep 17 00:00:00 2001 From: Guillaume Dott Date: Fri, 5 Dec 2014 17:58:52 +0100 Subject: [PATCH] Center game in the page --- views/application.scss | 19 +++++++++---------- views/layout.slim | 4 ++-- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/views/application.scss b/views/application.scss index 5002fe1..c5b5810 100644 --- a/views/application.scss +++ b/views/application.scss @@ -1,6 +1,14 @@ body { - background-color: #aaa; font-family: Verdana,Arial,sans-serif; + background-color: #aaa; + margin: 0; + padding: 0; +} +#main { + width: 500px; + margin: 0 auto; + padding: 20px; + text-align: center; } .game-container { cursor: default; @@ -25,15 +33,6 @@ body { font-size: 1.2em; } -table { - border-collapse: collapse; -} -td { - border: 1px solid black; - height: 20px; - width: 20px; - text-align: center; -} .white { background-color: #fff; } diff --git a/views/layout.slim b/views/layout.slim index 44a7989..387fb39 100644 --- a/views/layout.slim +++ b/views/layout.slim @@ -6,5 +6,5 @@ html meta name="viewport" content="initial-scale=1.0, user-scalable=yes" link rel="stylesheet" media="all" href="/application.css" body - == yield - + div#main + == yield