0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00

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

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 // Code