Neutralize link styles for placeholder links/named anchors

This commit is contained in:
Patrick H. Lauke 2016-03-05 01:01:09 +00:00
parent 01be344956
commit c4b087062d
1 changed files with 19 additions and 0 deletions

View File

@ -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