#232 No styling on a:hover if there's no effect
This commit is contained in:
parent
7ce93420da
commit
94c20e2048
2 changed files with 10 additions and 5 deletions
|
@ -30,10 +30,14 @@ body {
|
|||
a {
|
||||
color: $link-color;
|
||||
|
||||
&:focus,
|
||||
&:hover,
|
||||
&:active {
|
||||
color: $link-hover-color;
|
||||
// No styling on focus/hover if there's no effect. Avoids to then have to
|
||||
// override it countless times. See Issue #232
|
||||
@if $link-hover-color != $link-color {
|
||||
&:focus,
|
||||
&:hover,
|
||||
&:active {
|
||||
color: $link-hover-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue