X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=common.css;h=066f9be328c6a6aee0d0022ea4e025219bb8bccb;hb=f46a68b8ed74b54b6a26645b88d2a4ae48c1227a;hp=abaf91f4a6e8d7e8b45af8669f3d78b8e547b597;hpb=86f3c2cd59432a00121af015c505499a57edf568;p=xogo.git diff --git a/common.css b/common.css index abaf91f..066f9be 100644 --- a/common.css +++ b/common.css @@ -11,11 +11,17 @@ vertical-align: baseline; } +html { + height: 100%; +} + body { + height: 100%; margin: 0; - /*text-align: center;*/ background-color: #f8f8f8; font-family: Arial, Verdana, Tahoma, sans-serif; + /* https://stackoverflow.com/a/24392249/12660887 */ + position: relative; } main { @@ -31,15 +37,21 @@ main > div { margin-top: 25vh; min-height: 500px; min-width: 320px; - /*max-width: 800px;*/ /*unnecessary*/ + max-width: 800px; /*useful for rules display only*/ } -@media (max-height: 800px) { +@media(max-height: 800px) { main > div { margin-top: 30px; } } +@media(max-width: 767px) { + main > div { + padding: 0 10px; + } +} + #boardContainer { margin: 0; padding: 0; @@ -155,18 +167,21 @@ button.block-btn { left: calc(100% - 25px); top: 0; } -#upLeftInfos > img, #upRightStop > img { +#upLeftInfos > svg, #upRightStop > svg { width: 25px; cursor: pointer; } -@media (max-width: 767px) { +@media(max-width: 767px) { #upRightStop { left: calc(100% - 35px); } - #upLeftInfos > img, #upRightStop > img { + #upLeftInfos > svg, #upRightStop > svg { width: 35px; } + #upLeftInfos > svg path, #upRightStop > svg path { + fill: #999; + } } #ng-select {