From ed4879b14a2329a020ea8d84f52f541cab7ee62d Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 10 May 2013 19:28:37 +0100 Subject: [PATCH 1/1] Fix alignment issues with icons in browse pages --- app/assets/stylesheets/browse.css.scss | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) 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; } -- 2.45.2