summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-05-16 12:29:21 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-05-16 12:29:21 +0200
commit6b6594727903250f86c8e8b330cb13a3f44a6625 (patch)
tree078d0bfaeff4e9235aedc4421bc9a1847aefb3e1 /public
parentdf39c4af6ce209e58075b7e41cc1bf11b5c85c97 (diff)
Böhhh! Crystal Design, alter!
Diffstat (limited to 'public')
-rw-r--r--public/static/default.css13
-rw-r--r--public/static/geolocation.js6
2 files changed, 18 insertions, 1 deletions
diff --git a/public/static/default.css b/public/static/default.css
index 7c98d30..7f439ec 100644
--- a/public/static/default.css
+++ b/public/static/default.css
@@ -422,11 +422,22 @@ div.candidatelist a {
display: block;
text-decoration: none;
font-size: 1.4em;
- padding: 0.6em;
+ padding-top: 0.3em;
text-align: center;
border-bottom: 2px solid #cccccc;
}
+div.candidatelist a .distance:after {
+ content: " km";
+}
+
+div.candidatelist a .distance {
+ font-size: 0.6em;
+ color: #999999;
+ padding-top: 0.2em;
+ padding-bottom: 0.3em;
+}
+
div.about {
font-family: Sans-Serif;
color: #666666;
diff --git a/public/static/geolocation.js b/public/static/geolocation.js
index f571762..63b42b8 100644
--- a/public/static/geolocation.js
+++ b/public/static/geolocation.js
@@ -34,6 +34,12 @@ $(document).ready(function() {
var stationlink = $(document.createElement('a'));
stationlink.attr('href', ds100);
stationlink.text(name);
+
+ var distancenode = $(document.createElement('div'));
+ distancenode.attr('class', 'distance');
+ distancenode.text(distance);
+
+ stationlink.append(distancenode);
$('div.candidatelist').append(stationlink);
});
}