X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=www%2Fcss%2Fremoteglot.css;h=6009a24cd7b2d41cdf6203f5f7c91796f12274cb;hb=86873d4101b0bcd4e96ae79a975279c65d889619;hp=543a5b62122fbe5e73ae3abc4421618ce63185fd;hpb=b8f446ba1876d331cb43659eeb2d0737b174cb5c;p=remoteglot diff --git a/www/css/remoteglot.css b/www/css/remoteglot.css index 543a5b6..6009a24 100644 --- a/www/css/remoteglot.css +++ b/www/css/remoteglot.css @@ -61,12 +61,35 @@ p { display: block; float: left; width: 400px; - height: 400px; margin-right: 1em; margin-bottom: 1em; + padding: 0; } #analysis { display: block; min-width: 400px; overflow: hidden; } + +/* If the board is too wide for the screen, shrink it to fit, + * and then put the analysis below. */ +@media all and (max-width: 400px) { + #board { + width: 100%; + float: none; + } + #analysis { + min-width: 0; + } +} + +/* If there is almost space for the analysis, shrink the board a bit, too. */ +@media all and (min-width: 500px) and (max-width: 810px) { + #board { + float: left; + width: 50%; + } + #analysis { + min-width: 0; + } +}