X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=common.css;h=eabf64116a294fc7151f26df0f78003a245c4f1f;hb=refs%2Fheads%2Fmain;hp=cdfbc7a809b77aa76568be564f84757072399dcb;hpb=126ffc709b84d4919dc2c1726577e59211198a1b;p=xogo.git diff --git a/common.css b/common.css index cdfbc7a..eabf641 100644 --- a/common.css +++ b/common.css @@ -180,6 +180,14 @@ main > div { padding: 0 10px; overflow: auto; } +.full-rules figure.show-pieces { + max-width: 90%; + text-align: center; + margin: 0 auto; +} +.full-rules figure.show-pieces > img { + max-width: 100px; +} .full-rules > div { margin-bottom: 20px; } @@ -234,6 +242,16 @@ piece.mark.transparent { .full-rules .right { float: right; } +@media screen and (max-width: 550px) { + .full-rules .left { + float: none; + margin-bottom: 10px; + } + .full-rules .right { + float: none; + margin-top: 10px; + } +} .full-rules figcaption { display: block; text-align: center; @@ -242,6 +260,10 @@ piece.mark.transparent { color: #0D1C46; font-weight: bold; } +.full-rules .img-center { + display: block; + margin: 0 auto; +} /* TODO: use same CSS for rules and full-rules? */ .full-rules p, .full-rules ul, .full-rules ol { margin: 10px 0; @@ -350,8 +372,6 @@ piece.mark.transparent { .chessboard { position: absolute; cursor: pointer; - min-width: 200px; - min-height: 200px; } piece { position: absolute;