X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=css%2Findex.css;h=ece613ba3b741249fd34996af741b1096862eda9;hb=48bee368a286e11f1be6a80779413a91feece55c;hp=9afc23e81854a6dd55c781dd480f8e7f39755cb9;hpb=48b3a536373c1ee477fdff3e1f30bc3515d9e568;p=westcastle.git diff --git a/css/index.css b/css/index.css index 9afc23e..ece613b 100644 --- a/css/index.css +++ b/css/index.css @@ -2,10 +2,6 @@ @import '../vendor/Ubuntu_googlefont.css'; -html, body { - height: 100%; -} - body { font-family: Ubuntu, Verdana, sans-serif; margin: 0 auto; @@ -54,6 +50,15 @@ img.logo { z-index: 10; } +.hide { + display: none; +} + +.clear { + clear: both; + overflow: auto; +} + .main { margin-left: 200px; /* Same as the width of the sidenav */ padding: 0px 10px; @@ -68,6 +73,7 @@ img.logo { font-size: 20px; padding: 10px 20px 10px 20px; text-decoration: none; + cursor: pointer; } .btn:hover { @@ -76,6 +82,11 @@ img.logo { text-decoration: none; } +button.block { + display: block; + margin: 25px auto; +} + table th { font-weight: bold; } @@ -86,7 +97,7 @@ table th { } .button-container-horizontal, .button-container-vertical { - margin-top: 30px; + margin: 15px 0; text-align: center; } .button-container-vertical { @@ -94,14 +105,14 @@ table th { } /* All children except first: margin: 30px */ .button-container-horizontal .btn:not(:first-child) { - margin-right: 30px; + margin-left: 30px; } .button-container-vertical .btn { display: block; margin-left: 30px; } .button-container-vertical .btn:not(:first-child) { - margin-top: 15px; + margin-top: 30px; } button.validate { @@ -162,42 +173,6 @@ table.list tr:not(.title):hover, table.ranking tr:not(.title):nth-child(even):ho background-color: lightyellow; } -/* ranking div */ - -#ranking { - margin-bottom: 15px; - overflow: auto; -} - -table.ranking { - border-collapse: collapse; - width: 500px; - margin: 0 auto; - font-size: 1.1rem; - display: block; - float: left; -} - -table.ranking td -{ - border: 1px solid #ddd; - padding: 10px; -} -table.ranking th { - padding: 1em 10px; - text-align: left; -} - -table.ranking tr:not(.title) { - background-color: #aaa; -} -table.ranking tr:not(.title):nth-child(even){ - background-color: #ccc; -} -table.ranking tr:not(.title):hover, table.ranking tr:not(.title):nth-child(even):hover { - background-color: lightyellow; -} - /* pairings div */ .warning { @@ -210,11 +185,6 @@ span.link { cursor: pointer; } -button.block { - display: block; - margin: 25px auto; -} - .toto { color: darkgrey; } @@ -274,20 +244,16 @@ td.score { padding-bottom: 10px; } -/* Timer */ +/* Timer (dimensions given in javascript) */ #timer { position: absolute; z-index: 100; left: 0; top: 0; - min-height: 100%; - width: 100%; background-color: white; cursor: pointer; - line-height: 100%; text-align: center; - vertical-align: middle; } .timeout { @@ -301,3 +267,39 @@ img.close-cross { right: 0; width: 30px; } + +/* ranking div */ + +#ranking { + margin-bottom: 15px; + overflow: auto; +} + +table.ranking { + border-collapse: collapse; + width: 500px; + margin: 0 auto; + font-size: 1.1rem; + display: block; + float: left; +} + +table.ranking td +{ + border: 1px solid #ddd; + padding: 10px; +} +table.ranking th { + padding: 1em 10px; + text-align: left; +} + +table.ranking tr:not(.title) { + background-color: #aaa; +} +table.ranking tr:not(.title):nth-child(even){ + background-color: #ccc; +} +table.ranking tr:not(.title):hover, table.ranking tr:not(.title):nth-child(even):hover { + background-color: lightyellow; +}