From: meredevelopment Date: Wed, 22 Jan 2014 20:20:24 +0000 (+0000) Subject: Added not() exclude for buttons within sidebars X-Git-Tag: v5.1.0~29^2~13^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4211%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Added not() exclude for buttons within sidebars To fix issue #4209, I've added the same sort of exclude as already used in _top-bar.scss to stop styles being passed to child buttons. --- diff --git a/scss/foundation/components/_side-nav.scss b/scss/foundation/components/_side-nav.scss index b84cd45cf..f2307c6ce 100644 --- a/scss/foundation/components/_side-nav.scss +++ b/scss/foundation/components/_side-nav.scss @@ -55,12 +55,12 @@ $side-nav-divider-color: scale-color(#fff, $lightness: 10%) !default; margin: $side-nav-list-margin; font-size: $font-size; - a { + a:not(.button) { display: block; color: $link-color; } - &.active > a:first-child { + &.active > a:first-child:not(.button) { color: $side-nav-link-color-active; font-weight: $side-nav-font-weight; font-family: $side-nav-active-font-family; @@ -80,4 +80,4 @@ $side-nav-divider-color: scale-color(#fff, $lightness: 10%) !default; @if $include-html-nav-classes { .side-nav { @include side-nav; } } -} \ No newline at end of file +}