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
c3b1d0be45
commit
94619bab19
2 changed files with 9 additions and 5 deletions
|
@ -7,8 +7,10 @@
|
|||
color: $blue1;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: lighten($blue1, 38%);
|
||||
@media (hover: hover) {
|
||||
&:hover {
|
||||
background: lighten($blue1, 38%);
|
||||
}
|
||||
}
|
||||
|
||||
div:first-child {
|
||||
|
|
|
@ -6,9 +6,11 @@
|
|||
color: $green1;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: $green1;
|
||||
color: $white;
|
||||
@media (hover: hover) {
|
||||
&:hover {
|
||||
background: $green1;
|
||||
color: $white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue