From e67f49fb0613c2733ce5a5638dcfa1b6c99637a2 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Mon, 23 Sep 2019 16:18:55 +0200 Subject: [PATCH] Better mobile support --- src/views/Lobby.vue | 160 ++++++++++++++++++-------------------------- 1 file changed, 64 insertions(+), 96 deletions(-) diff --git a/src/views/Lobby.vue b/src/views/Lobby.vue index 3e27b6c..381d565 100644 --- a/src/views/Lobby.vue +++ b/src/views/Lobby.vue @@ -11,10 +11,10 @@

Join someone's session

- + -
+
+ + +

+ + Join + +

+

Host a new session

- - - - Game - - - Draft - - -
- -
-
- - - - - - - - - - - - - - - +
+
+ + + +
+
+ + + +
+
- + Create
@@ -143,6 +120,11 @@ margin: 10px auto; } +.full { + width: 100%; + margin: 10px; +} + .center { width: 100%; text-align: center; @@ -155,15 +137,20 @@ } } +.only-mobile { + display: none; +} + @media (max-width: 500px) { + .only-full { + display: none; + } + .only-mobile { + display: inherit; + } .body { - grid-template: 120px 1fr 1fr /1fr; - #info, - #join, - #host { - grid-row: auto; - grid-column: auto; - } + display: flex; + flex-direction: column; section { padding: 10px; header h1 { @@ -177,7 +164,8 @@