From: Tom Hughes Date: Fri, 10 May 2013 18:28:37 +0000 (+0100) Subject: Fix alignment issues with icons in browse pages X-Git-Tag: live~5002 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/ed4879b14a2329a020ea8d84f52f541cab7ee62d Fix alignment issues with icons in browse pages --- diff --git a/app/assets/stylesheets/browse.css.scss b/app/assets/stylesheets/browse.css.scss index 59ba0be73..179f0c102 100644 --- a/app/assets/stylesheets/browse.css.scss +++ b/app/assets/stylesheets/browse.css.scss @@ -1,13 +1,17 @@ /* Make space for icons */ -a.node, a.way, a.relation { - &:first-child { - &::before { - margin-left: -25px; - } - } +li.node::before, +li.way::before, +li.relation::before, +a.node:first-child::before, +a.way:first-child::before, +a.relation:first-child::before { + margin-left: -25px; } -a.node::before, a.way::before, a.relation::before { + +.node::before, +.way::before, +.relation::before { display: inline-block; width: 25px; }