Enable hover effect on devices with first-class hover support
On devices such as a phone, the hover effect will not be applied.
This commit is contained in:
parent
3b391131ff
commit
2a1b296a6f
2 changed files with 9 additions and 5 deletions
|
@ -7,8 +7,10 @@
|
||||||
color: $blue1;
|
color: $blue1;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
@media (hover: hover) {
|
||||||
background: lighten($blue1, 38%);
|
&:hover {
|
||||||
|
background: lighten($blue1, 38%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div:first-child {
|
div:first-child {
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
color: $green1;
|
color: $green1;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
@media (hover: hover) {
|
||||||
background: $green1;
|
&:hover {
|
||||||
color: $white;
|
background: $green1;
|
||||||
|
color: $white;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue