From: Patrick H. Lauke Date: Sat, 5 Mar 2016 01:01:09 +0000 (+0000) Subject: Neutralize link styles for placeholder links/named anchors X-Git-Tag: v4.0.0-alpha.3~174^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4b087062d5ac731b92fe85b2c65a4f4bb6e8693;p=thirdparty%2Fbootstrap.git Neutralize link styles for placeholder links/named anchors --- diff --git a/scss/_reboot.scss b/scss/_reboot.scss index 0b2990130d..d01d31f68c 100644 --- a/scss/_reboot.scss +++ b/scss/_reboot.scss @@ -171,6 +171,25 @@ a { } } +// and undo these styles for placeholder links/named anchors (without href) +// would be more straightforward to just use a[href] in previous block, but this +// causes specificity issues in many other styles that are too complex to fix +// see https://github.com/twbs/bootstrap/issues/19402 + +a:not([href]) { + color: inherit; + text-decoration: none; + + @include hover-focus { + color: inherit; + text-decoration: none; + } + + &:focus { + outline: none; + } +} + // // Code