Browse Source

legend: drop full stops and optically center circles vertically

Jan-Philipp Litza 8 years ago
parent
commit
db7f005dd2
2 changed files with 4 additions and 3 deletions
  1. 3 3
      lib/legend.js
  2. 1 0
      scss/_legend.scss

+ 3 - 3
lib/legend.js

@@ -11,7 +11,7 @@ define(function () {
       spanNew.setAttribute("class", "legend-new")
       var symbolNew = document.createElement("span")
       symbolNew.setAttribute("class", "symbol")
-      var textNew = document.createTextNode(" Neuer Knoten.")
+      var textNew = document.createTextNode(" Neuer Knoten")
       spanNew.appendChild(symbolNew)
       spanNew.appendChild(textNew)
       p.appendChild(spanNew)
@@ -20,7 +20,7 @@ define(function () {
       spanOnline.setAttribute("class", "legend-online")
       var symbolOnline = document.createElement("span")
       symbolOnline.setAttribute("class", "symbol")
-      var textOnline = document.createTextNode(" Knoten ist online.")
+      var textOnline = document.createTextNode(" Knoten ist online")
       spanOnline.appendChild(symbolOnline)
       spanOnline.appendChild(textOnline)
       p.appendChild(spanOnline)
@@ -29,7 +29,7 @@ define(function () {
       spanOffline.setAttribute("class", "legend-offline")
       var symbolOffline = document.createElement("span")
       symbolOffline.setAttribute("class", "symbol")
-      var textOffline = document.createTextNode(" Knoten ist offline.")
+      var textOffline = document.createTextNode(" Knoten ist offline")
       spanOffline.appendChild(symbolOffline)
       spanOffline.appendChild(textOffline)
       p.appendChild(spanOffline)

+ 1 - 0
scss/_legend.scss

@@ -4,6 +4,7 @@
 	height: 1em;
 	border-radius: 50%;
 	display: inline-block;
+	vertical-align: -5%;
 }
 
 .legend-new .symbol