X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=css%2Findex.css;h=6f0544d98192237e5c3577463a5085f052572811;hb=HEAD;hp=9604004fe7ebb4bcfd601585871d679d2f13c952;hpb=1369a09d4b3a4d3c3d19b68197a311fbb7ec97f4;p=westcastle.git diff --git a/css/index.css b/css/index.css index 9604004..6f0544d 100644 --- a/css/index.css +++ b/css/index.css @@ -4,9 +4,8 @@ body { font-family: Ubuntu, Verdana, sans-serif; - margin: 0; - width: 800px; margin: 0 auto; + width: 800px; font-size: 1.1rem; } @@ -39,13 +38,33 @@ body { color: #f1f1f1; } +img.logo { + width: 200px; + position: fixed; + display: block; + left: 0; + overflow-x: hidden; + padding: 20px 0 0 0; + margin: 0; + top: 350px; + 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; } .btn { - background-color: #3498db; background-image: linear-gradient(to bottom, #3498db, #2980b9); box-shadow: 0px 2px 3px #666666; font-family: Arial; @@ -53,14 +72,19 @@ body { font-size: 20px; padding: 10px 20px 10px 20px; text-decoration: none; + cursor: pointer; } .btn:hover { - background-color: #3cb0fd; background-image: linear-gradient(to bottom, #3cb0fd, #3498db); text-decoration: none; } +button.block { + display: block; + margin: 25px auto; +} + table th { font-weight: bold; } @@ -71,7 +95,7 @@ table th { } .button-container-horizontal, .button-container-vertical { - margin-top: 30px; + margin: 15px 0; text-align: center; } .button-container-vertical { @@ -79,14 +103,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 { @@ -102,6 +126,11 @@ button.cancel:hover { background-image: linear-gradient(to bottom, #fc433c, #d93434); } +button:disabled, button:disabled:hover { + background-image: linear-gradient(to bottom, #aaa, #777); + cursor: default; +} + /* players div */ #players { @@ -147,42 +176,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 { @@ -195,11 +188,6 @@ span.link { cursor: pointer; } -button.block { - display: block; - margin: 25px auto; -} - .toto { color: darkgrey; } @@ -258,3 +246,74 @@ td.score { #scoreInput table th { padding-bottom: 10px; } + +/* Timer (dimensions given in javascript) */ + +#timer { + position: absolute; + z-index: 100; + left: 0; + top: 0; + background-color: white; + cursor: pointer; + text-align: center; +} + +.timeout { + color: darkred; +} + +#timer input { + color: darkblue; + position: absolute; + display: block; + left: 0; + top: 0; + width: 100%; + height: 100%; + text-align: center; +} + +img.close-cross { + display: block; + position: absolute; + top: 0; + 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; +}