From 1419cec44c00c0ae657fce825b96b4aa3a2804b7 Mon Sep 17 00:00:00 2001 From: Brian McAllister Date: Sun, 17 Feb 2013 18:14:06 -0500 Subject: [PATCH] Move icon-within-link styles into main styles. A bit cleaner, and takes advantage of the & selector. --- sass/font-awesome.scss | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/sass/font-awesome.scss b/sass/font-awesome.scss index a89e045c3..adbc4753e 100644 --- a/sass/font-awesome.scss +++ b/sass/font-awesome.scss @@ -120,6 +120,11 @@ $experimental-support-for-webkit: true !default; background-repeat: repeat; margin-top: 0; } + + /* Makes sure icons active on rollover in links. */ + a & { + display: inline-block; + } } /* @@ -151,14 +156,6 @@ $experimental-support-for-webkit: true !default; speak: none; } -/* makes sure icons active on rollover in links */ -a { - [class^="icon-"], - [class*=" icon-"] { - display: inline-block; - } -} - /* makes the font 33% larger relative to the icon container */ .icon-large:before { vertical-align: -10%;