X-Git-Url: https://git.auder.net/?p=xogo.git;a=blobdiff_plain;f=common.css;h=c1ba77cea5b7ce9dd311205eefccd00cb679b8ed;hp=d1a131181b53d6ab1c2a689c86dd6e68375d0187;hb=f77da909dea9da0992a23a92b48d8f08703b4f72;hpb=f8b43ef764be4e90761aa20d99af79a7e1c32bdd diff --git a/common.css b/common.css index d1a1311..c1ba77c 100644 --- a/common.css +++ b/common.css @@ -52,6 +52,11 @@ main > div { } } +.author { + color: darkblue; + font-style: italic; +} + #boardContainer { margin: 0; padding: 0; @@ -66,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, @@ -151,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; @@ -210,15 +231,19 @@ button.block-btn { text-align: center; } -.option-select, .option-check { +.option-select, .option-input { margin: 15px 0 0 0; } -.option-check { +.option-input { display: inline-block; margin-right: 10px; } +.option-input input[type=number] { + width: 64px; +} + .btn-wrap { text-align: center; } @@ -249,15 +274,9 @@ a { } /* Board container (without reserves) */ -#chessboard { +.chessboard { position: absolute; cursor: pointer; -} - -/* Board container can be resized */ -.resizeable { - resize: both; - overflow: hidden; min-width: 200px; min-height: 200px; } @@ -272,18 +291,24 @@ piece { pointer-events: none; } +piece.hidden { + display: none; +} + /* Drawing of the board */ -#chessboard_SVG { +.chessboard_SVG { width: 100%; height: 100%; } +/* Default squares colors (can be overriden or unused) */ .dark-square { fill: #b58863; } .light-square { fill: #f0d9b5; } + .in-shadow { filter: brightness(50%); }