move track and settings buttons to the new style as well
authorRobert Kaiser <kairo@kairo.at>
Fri, 1 May 2015 00:58:31 +0000 (02:58 +0200)
committerRobert Kaiser <kairo@kairo.at>
Fri, 1 May 2015 00:58:31 +0000 (02:58 +0200)
index.html
style/lantea.css
style/settings.svg [new file with mode: 0644]
style/track.svg [new file with mode: 0644]

index 596cdd8..1954af3 100644 (file)
@@ -19,7 +19,7 @@
 <h1>Lantea Map</h1>
 
 <div id="menuArea" class="overlayArea">
-<input type="button" id="trackButton" value="Track"
+<image src="style/track.svg" id="trackButton" value="Track"
        onclick="toggleTrackArea();"><br/>
 <fieldset id="trackArea"><legend>Track</legend>
 <p id="trackData"><span id="trackLength">0</span> km,
@@ -39,7 +39,7 @@
        onchange="setCentering(this);">
 <label for="centerCheckbox">Center Map</label><br/>
 </fieldset>
-<input type="button" id="settingsButton" value="Settings"
+<image src="style/settings.svg" id="settingsButton" alt="Settings"
        onclick="toggleSettings();"><br/>
 <fieldset id="settingsArea"><legend>Settings</legend>
 <label for="mapSelector">Map style:</label>
index 47d0f5b..051088c 100644 (file)
@@ -52,7 +52,9 @@ h1 {
 }
 
 #zoomArea > input[type="button"],
-#fullscreenArea > input[type="button"] {
+#fullscreenArea > input[type="button"],
+#trackButton,
+#settingsButton {
   font-size: 1.2em;
   font-weight: bold;
   width: 2em;
@@ -69,17 +71,23 @@ h1 {
 }
 
 #zoomArea > input[type="button"]:hover,
-#fullscreenArea > input[type="button"]:hover {
+#fullscreenArea > input[type="button"]:hover,
+#trackButton:hover,
+#settingsButton:hover {
   background-color: rgba(255, 255, 255, .8);
 }
 
 #zoomArea > input[type="button"]:active,
-#fullscreenArea > input[type="button"]:active {
+#fullscreenArea > input[type="button"]:active,
+#trackButton:active,
+#settingsButton:active {
   background-color: rgba(255, 255, 127, .8);
 }
 
 #zoomArea > input[type="button"]:focus,
-#fullscreenArea > input[type="button"]:focus {
+#fullscreenArea > input[type="button"]:focus,
+#trackButton:focus,
+#settingsButton:focus {
   background-color: rgba(255, 255, 255, .5);
 }
 
@@ -212,15 +220,15 @@ h1 {
     font-size: 10px;
   }
   #menuArea {
-    top: 1px;
-    left: 1px;
+    top: 2px;
+    left: 2px;
   }
   #zoomArea {
-    top: 1px;
-    right: 1px;
+    top: 2px;
+    right: 2px;
   }
   #fullscreenArea {
-    right: 1px;
+    right: 2px;
     bottom: 20px;
   }
   #copyright {
diff --git a/style/settings.svg b/style/settings.svg
new file mode 100644 (file)
index 0000000..2dbbca1
--- /dev/null
@@ -0,0 +1,3 @@
+<svg height="16" width="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 16 16">
+<path fill="#0000FF" d="m11.5,13.9l-.6-1.5c.3-.2 .5-.4 .8-.6 .2-.2 .4-.5 .6-.7l1.5,.6c.3,.1 .6,0 .7-.3l.4-1c.1-.3 0-.6-.3-.7l-1.5-.6c.1-.6 .1-1.3 0-2l1.5-.6c.3-.1 .4-.4 .3-.7l-.4-1c-.1-.3-.4-.4-.7-.3l-1.5,.6c-.2-.3-.4-.5-.6-.8-.2-.1-.5-.3-.7-.5l.6-1.5c.1-.3 0-.6-.3-.7l-.9-.4c-.3-.1-.6,0-.7,.3l-.6,1.5c-.6-.1-1.3-.1-2,0l-.6-1.5c-.1-.3-.4-.4-.7-.3l-1,.4c-.2,.1-.3,.4-.2,.6l.6,1.5c-.3,.3-.5,.5-.8,.7-.2,.3-.4,.5-.6,.8l-1.5-.7c-.3-.1-.6,0-.7,.3l-.4,.9c-.1,.3 0,.6 .3,.7l1.5,.7c-.1,.6-.1,1.3 0,1.9l-1.5,.6c-.3,.1-.4,.4-.3,.7l.4,1c.1,.3 .4,.4 .7,.3l1.5-.6c.2,.3 .4,.5 .6,.8 .2,.2 .5,.4 .7,.6l-.6,1.5c-.1,.3 0,.6 .3,.7l1,.4c.3,.1 .6,0 .7-.3l.6-1.5c.6,.1 1.3,.1 2,0l.6,1.5c.1,.3 .4,.4 .7,.3l1-.4c.1-.1 .3-.4 .1-.7zm-5.1-4.2c-.9-.9-.9-2.4 0-3.3 .9-.9 2.4-.9 3.3,0 .9,.9 .9,2.4 0,3.3-.9,.9-2.4,.9-3.3,0z"/>
+</svg>
diff --git a/style/track.svg b/style/track.svg
new file mode 100644 (file)
index 0000000..a4cc49f
--- /dev/null
@@ -0,0 +1,3 @@
+<svg height="16" width="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 16 16">
+<path fill="#0000FF" d="m10,12h-1-5c-.6,0-1-.4-1-1v-6c0-.6 .4-1 1-1h5 1l4,4-4,4z"/>
+</svg>