hide copyright field as well, but make sure it's shown when we change maps and might...
[lantea.git] / style / lantea.css
index acff337ef5276e713cf5d2ce9571a18cf026052d..d1ca01ee84b9a10f5aebda3643c3d44f77097041 100644 (file)
@@ -11,7 +11,7 @@ h1 {
   display: none;
 }
 
-#overlayArea {
+#menuArea {
   position: absolute;
   /* width: 30em; */
   left: 1%;
@@ -19,6 +19,33 @@ h1 {
   z-index: 5;
 }
 
+#zoomArea {
+  position: absolute;
+  right: 1%;
+  top: 1em;
+  z-index: 5;
+  text-align: center;
+}
+
+.overlayArea {
+  transition-property: opacity;
+  transition-duration: .2s;
+}
+
+.overlayArea.hidden {
+  opacity: 0;
+  transition-duration: 1s;
+}
+
+.overlayArea:-moz-system-metric(touch-enabled) {
+  font-size: 3mozmm;
+}
+
+.overlayArea input[type="button"]:-moz-system-metric(touch-enabled),
+.overlayArea select:-moz-system-metric(touch-enabled) {
+  font-size: 2.5mozmm;
+}
+
 #zoomLevel {
   background-color: rgba(255, 255, 255, .8);
   border-radius: 3px;
@@ -43,24 +70,60 @@ h1 {
 
 #map {
   border: 0;
-  top: 1em;
-  left: 1%;
-  right: 1%;
+  top: 1px;
+  left: 1px;
+  right: 1px;
+  bottom: 1px;
   z-index: 1;
 }
 
 #debug {
   position: absolute;
-  bottom: .5em;
+  bottom: 5px;
   left: .5em;
   margin: 0;
+  z-index: 3;
+  background-color: rgba(255, 255, 255, .8);
+  border-radius: 3px;
+  padding: 0 3px;
+}
+
+.debugHide {
+  display: none;
 }
 
 #copyright {
   position: absolute;
-  bottom: .5em;
+  bottom: 5px;
   right: .5em;
   margin: 0;
   font-size: small;
-  opacity: .5;
+  opacity: .66;
+  z-index: 2;
+  background-color: rgba(255, 255, 255, 1);
+  border-radius: 3px;
+  padding: 0 3px;
+}
+
+#copyright.hidden {
+  opacity: 0;
+}
+
+@media screen and (max-width: 500px) {
+  body {
+    font-size: 10px;
+  }
+  #menuArea {
+    top: 1px;
+    left: 1px;
+  }
+  #zoomArea {
+    top: 1px;
+    right: 1px;
+  }
+  #copyright {
+    bottom: 1px;
+    right: 1px;
+    font-size: 8px;
+  }
 }