diff options
| author | Patrick H. Lauke <[email protected]> | 2016-03-05 01:01:09 +0000 |
|---|---|---|
| committer | Patrick H. Lauke <[email protected]> | 2016-03-05 01:01:09 +0000 |
| commit | c4b087062d5ac731b92fe85b2c65a4f4bb6e8693 (patch) | |
| tree | 404c7cc8628891d8d81aefc07b6cf19f6b1c162f | |
| parent | 01be344956791303ce1ac1bbd19ed1f86ed13145 (diff) | |
| download | bootstrap-c4b087062d5ac731b92fe85b2c65a4f4bb6e8693.tar.xz bootstrap-c4b087062d5ac731b92fe85b2c65a4f4bb6e8693.zip | |
Neutralize link styles for placeholder links/named anchors
| -rw-r--r-- | scss/_reboot.scss | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scss/_reboot.scss b/scss/_reboot.scss index 0b2990130..d01d31f68 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 |
