legend: drop full stops and optically center circles vertically

This commit is contained in:
Jan-Philipp Litza 2015-08-29 17:16:49 +02:00 committed by Nils Schneider
parent 37c5dba449
commit db7f005dd2
2 changed files with 4 additions and 3 deletions

View File

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

View File

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