Optimized css for mobile devices #74

Merged
H4CK3R-01 merged 2 commits from refactoring into main 2021-07-14 09:37:31 +00:00
6 changed files with 7 additions and 5 deletions
Showing only changes of commit 4e2ad9df06 - Show all commits

View File

@ -103,7 +103,7 @@
white-space: pre; white-space: pre;
} }
@media only screen and (max-width: 980px) { @media only screen and (max-width: 600px) {
#chat { #chat {
flex-flow: column-reverse; flex-flow: column-reverse;
border-top: #7d7d7d solid 2px; border-top: #7d7d7d solid 2px;

View File

@ -101,7 +101,7 @@ main {
height: calc(100% - 50px); height: calc(100% - 50px);
} }
@media only screen and (max-width: 980px) { @media only screen and (max-width: 600px) {
#main { #main {
display: grid; display: grid;
grid-template-columns: unset; grid-template-columns: unset;

View File

@ -28,7 +28,7 @@
background-color: #FFDDA1; background-color: #FFDDA1;
} }
@media only screen and (max-width: 980px) { @media only screen and (max-width: 600px) {
#game { #game {
height: auto; height: auto;
width: auto; width: auto;

View File

@ -45,7 +45,7 @@ header {
flex-direction: column; flex-direction: column;
} }
@media only screen and (max-width: 980px) { @media only screen and (max-width: 600px) {
header { header {
height: 5em; height: 5em;

View File

@ -54,7 +54,7 @@
color: #ffffff; color: #ffffff;
} }
@media only screen and (max-width: 980px) { @media only screen and (max-width: 600px) {
#login { #login {
align-items: flex-start; align-items: flex-start;
} }

View File

@ -192,6 +192,8 @@ function start_game() {
}); });
socket.on('card', function (data) { socket.on('card', function (data) {
if (show_card === true) card.destroyCard();
card = new Card(game_board_size, data.card.question, data.card['answers'][0], data.card['answers'][1], data.card['answers'][2], data.card['answers'][3], data.card['difficulty'], data.username === username); card = new Card(game_board_size, data.card.question, data.card['answers'][0], data.card['answers'][1], data.card['answers'][2], data.card['answers'][3], data.card['difficulty'], data.username === username);
card.showCard(); card.showCard();
show_card = true; show_card = true;