X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=www%2Fcss%2Fremoteglot.css;h=e1e8ccb9055d0b20061c87e06f1159f8fac94248;hp=6cd931a081547186c0cd82089cdc83006a8d9872;hb=0647de73921822fe0a3612bd36e430355176ddd8;hpb=1ce57711382bbfd12a23afb6f87c8452fb0f4ecc diff --git a/www/css/remoteglot.css b/www/css/remoteglot.css index 6cd931a..e1e8ccb 100644 --- a/www/css/remoteglot.css +++ b/www/css/remoteglot.css @@ -5,6 +5,9 @@ h3 { margin-top: 1em; margin-bottom: 0; } +#score { + font-size: x-large; +} .window { position: absolute; width: 0px; @@ -61,10 +64,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; + } +}