Explorar el Código

First pass at mobile responsiveness

Kirk Trombley hace 5 años
padre
commit
4fd8e90076
Se han modificado 1 ficheros con 21 adiciones y 3 borrados
  1. 21 3
      client/src/App.css

+ 21 - 3
client/src/App.css

@@ -40,7 +40,6 @@
   z-index: 1;
   top: -115%;
   white-space: nowrap;
-  opacity: 0;
   transition: opacity 0.25s;
   opacity: 0;
 }
@@ -219,21 +218,24 @@
 .game-panel {
   height: 100%;
   display: flex;
+  flex-flow: column nowrap;
   justify-content: space-between;
   align-items: center;
 }
 
 .game-panel__streetview {
   height: 100%;
-  margin-right: 2px;
+  width: 100%;
+  margin-bottom: 2px;
   flex: 3;
 }
 
 .guess-pane {
   height: 100%;
+  width: 100%;
   flex: 1;
   display: flex;
-  flex-flow: column nowrap;
+  flex-flow: row nowrap;
   justify-content: space-around;
 }
 
@@ -247,6 +249,7 @@
 .guess-pane__map {
   flex: 6;
   height: 100%;
+  width: 100%;
   margin: 5px;
 }
 
@@ -255,6 +258,21 @@
   margin: 5px;
 }
 
+@media only screen and (min-width: 600px) {
+  .game-panel {
+    flex-flow: row nowrap;
+  }
+
+  .game-panel {
+    margin-bottom: 0px;
+    margin-right: 2px;
+  }
+
+  .guess-pane {
+    flex-flow: column nowrap;
+  }
+}
+
 .timer {
   display: inline;
 }