Improve layout for mobile screens

This commit is contained in:
Marcel
2018-01-17 16:25:00 +01:00
parent 45447adf99
commit 821c17bd80
4 changed files with 38 additions and 7 deletions

View File

@@ -10,8 +10,8 @@ body {
#language-selector {
position: absolute;
right: 10px;
top: 10px;
right: 15px;
top: 20px;
font-size: 14px;
font-weight: 300;
z-index: 1;
@@ -152,4 +152,34 @@ body {
#time {
margin-top: 5px;
margin-left: 10px;
}
@media (max-width: 1400px) {
#tetris {
height: 75%;
}
#score {
top: 10px;
left: 50%;
right: initial;
transform: translateX(-50%);
}
#controls {
top: initial;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
height: 10%;
overflow: auto;
}
#control-text {
height: 100%;
}
#language-selector {
font-size: 20px;
}
}