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:
parent
01be344956
commit
c4b087062d
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user