X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=common.css;h=91fd2a6fdc4ba37757b6659a3f9f7a4d2c408360;hb=e8b85c869f8ed1a2e626f60c218c36121c49ec4e;hp=f1b2b79bee6cdf00f2ef1a5edf7e88a813dd2ffe;hpb=cc2c71836442d7495ec570f8f78c006ea60852e0;p=xogo.git diff --git a/common.css b/common.css index f1b2b79..91fd2a6 100644 --- a/common.css +++ b/common.css @@ -11,11 +11,17 @@ vertical-align: baseline; } +html { + height: 100%; +} + body { + height: 100%; margin: 0; - /*text-align: center;*/ background-color: #f8f8f8; font-family: Arial, Verdana, Tahoma, sans-serif; + /* https://stackoverflow.com/a/24392249/12660887 */ + position: relative; } main { @@ -31,7 +37,7 @@ main > div { margin-top: 25vh; min-height: 500px; min-width: 320px; - /*max-width: 800px;*/ /*unnecessary*/ + max-width: 800px; /*useful for rules display only*/ } @media(max-height: 800px) { @@ -46,6 +52,11 @@ main > div { } } +.author { + color: darkblue; + font-style: italic; +} + #boardContainer { margin: 0; padding: 0; @@ -60,6 +71,15 @@ h1 { margin: 10px 0; } +h4 { + font-size: 1.5rem; + font-weight: bold; + text-align: center; + display: block; + margin: 10px 0; + color: darkgreen; +} + #gameInfos, #boardContainer, #gameStopped, @@ -145,11 +165,18 @@ button:hover, button.block-btn:hover { button.block-btn { display: block; background-color: #01786F; - margin: 0 auto 20px auto; + margin: 0 auto 30px auto; /*TODO: margin-bottom 20px ? */ font-size: 2rem; padding: 15px 32px; } +button.cancel-something { + background-color: darkred; + display: block; + margin-left: auto; + margin-right: auto; +} + #upLeftInfos { position: absolute; left: 0; @@ -185,6 +212,7 @@ button.block-btn { /* Options when starting custom game */ .words { line-height: 0.9em; + margin-top: 15px; } .words > .row { margin: 0; @@ -204,7 +232,12 @@ button.block-btn { } .option-select, .option-check { - margin: 15px 0; + margin: 15px 0 0 0; +} + +.option-check { + display: inline-block; + margin-right: 10px; } .btn-wrap { @@ -237,7 +270,7 @@ a { } /* Board container (without reserves) */ -#chessboard { +.chessboard { position: absolute; cursor: pointer; } @@ -261,7 +294,7 @@ piece { } /* Drawing of the board */ -#chessboard_SVG { +.chessboard_SVG { width: 100%; height: 100%; }