changeset 139:40fa631ce75b gmap2

CSS/HTML work.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 09 Mar 2014 15:20:22 +0200
parents fdcfafb77fea
children c5faa74c6a3a
files css/mapstyle1.css markers.js
diffstat 2 files changed, 20 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/css/mapstyle1.css	Sun Mar 09 15:19:54 2014 +0200
+++ b/css/mapstyle1.css	Sun Mar 09 15:20:22 2014 +0200
@@ -6,17 +6,26 @@
 #footer {
 	position: absolute;
 	bottom: 0px;
-	height: 1.6em;
+	height: 2em;
 	left: 0px;
 	right: 0px;
 	margin: 0px;
 }
 
 #footercontent {
-	padding-right: 0.15em;
-	padding-top: 0.15em;
+	position: absolute;
+
+	left: 0.2em;
+	right: 0.2em;
+	top: 0.25em;
+
+	padding: 0.5em;
+
 	color: white;
 	font-size: 10pt;
+
+	background: rgba(0,0,0, 0.6);
+	border-radius: 0.2em;
 }
 
 #footercontent span {
@@ -82,17 +91,17 @@
 }
 
 #sidecontent a {
+	display: block;
 	text-decoration: none;
 	color: black;
+	padding: 2px;
+	margin: 2px;
+	border-radius: 4px;
 }
 
-#sidecontent div {
-	padding: 1px;
-}
-
-#sidecontent div:hover {
-	background: green;
+#sidecontent a:hover {
 	background: rgba(0,0,0,0.5);
+	color: #0f0;
 }
 
 #controls {
@@ -170,7 +179,7 @@
 	left: 0px;
 	top: 100px;
 	right: 280px;
-	bottom: 1.6em;
+	bottom: 2em;
 	padding: 0px;
 	margin: 0px;
 }
--- a/markers.js	Sun Mar 09 15:19:54 2014 +0200
+++ b/markers.js	Sun Mar 09 15:20:22 2014 +0200
@@ -49,7 +49,7 @@
     pmap_builtin[pmap_bindex] = new Array(2);
     pmap_builtin[pmap_bindex][0] = type;
     pmap_builtin[pmap_bindex][1] = continent;
-    pmap_side_builtin_html += '<div class="'+continent+'" id="marker'+pmap_bindex+'"><a href="javascript:pmapMyClick('+ pmap_mindex +')">' + name + '</a></div>';
+    pmap_side_builtin_html += '<a class="'+continent+'" id="marker'+pmap_bindex+'" href="javascript:pmapMyClick('+ pmap_mindex +')">'+ name +'</a>';
     pmap_bindex++;
   }