X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=common.css;h=1f1809a2699b6231046a9627cc909cbef8731c40;hb=e7b64798015851c120b9e8b4872297cfbaa0cb15;hp=066f9be328c6a6aee0d0022ea4e025219bb8bccb;hpb=8022d544e472df7a213f95bd66f64d6f9cb14aaa;p=xogo.git diff --git a/common.css b/common.css index 066f9be..1f1809a 100644 --- a/common.css +++ b/common.css @@ -41,7 +41,7 @@ main > div { } @media(max-height: 800px) { - main > div { + #newGameForm, #gameInfos { margin-top: 30px; } } @@ -52,10 +52,23 @@ main > div { } } +.author { + color: darkblue; + font-style: italic; +} + #boardContainer { margin: 0; padding: 0; border: none; + /* attempt https://stackoverflow.com/questions/1719452/how-to-make-a-div-always-full-screen */ + position: fixed; + width: 100%; + height: 100%; + left: 0; + top: 0; + background: rgba(51,51,51,0.7); + z-index: 10; } h1 { @@ -66,6 +79,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, @@ -103,6 +125,20 @@ h1 { margin: 10px 0; } +#gameInfos > .rules > ul { + list-style-type: square; + padding-left: 30px; +} +#gameInfos > .rules > ol { + list-style-type: numeric; + padding-left: 30px; +} + +#gameInfos > .rules > a { + padding-bottom: 1px; + border-bottom: 1px dotted black; +} + #gameStopped > h1 { margin-bottom: 10px; } @@ -117,6 +153,12 @@ h1 { text-align: center; } +@media(max-height: 399px) { + #footer { + display: none; + } +} + a.left-link { margin-right: 25px; } @@ -151,11 +193,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; @@ -191,6 +240,7 @@ button.block-btn { /* Options when starting custom game */ .words { line-height: 0.9em; + margin-top: 15px; } .words > .row { margin: 0; @@ -209,8 +259,17 @@ button.block-btn { text-align: center; } -.option-select, .option-check { - margin: 15px 0; +.option-select, .option-input { + margin: 15px 0 0 0; +} + +.option-input { + display: inline-block; + margin-right: 10px; +} + +.option-input input[type=number] { + width: 64px; } .btn-wrap { @@ -243,15 +302,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; } @@ -266,18 +319,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%); }