X-Git-Url: https://git.auder.net/assets/current/git-logo.png?a=blobdiff_plain;f=common.css;h=5fee7efb362690544c2af463a988a19e37bbc8e2;hb=2c8375bb77dda7cbeaee983a09e202436be2191c;hp=167822b872a9a186654c27e316dbdb16b5258359;hpb=b2fc1259220619ab828a5da79cbbc8894ac5d296;p=xogo.git diff --git a/common.css b/common.css index 167822b..5fee7ef 100644 --- a/common.css +++ b/common.css @@ -178,6 +178,18 @@ main > div { max-width: 800px; margin: 20px auto; 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; } .full-rules h1, .full-rules h2, .full-rules h3, .full-rules h4 { font-weight: bold; @@ -230,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; @@ -346,8 +368,6 @@ piece.mark.transparent { .chessboard { position: absolute; cursor: pointer; - min-width: 200px; - min-height: 200px; } piece { position: absolute;