mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 11:27:10 +08:00
Disable hover on touch devices
This commit is contained in:
@@ -23,16 +23,15 @@
|
||||
border: none;
|
||||
color: #4e4e4e;
|
||||
margin-right: 3px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.button:hover{
|
||||
.button:hover {
|
||||
cursor: pointer;
|
||||
border-radius: 3px;
|
||||
background-color: #eae8e8;
|
||||
}
|
||||
|
||||
.active {
|
||||
border-radius: 3px;
|
||||
.button.active {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
@@ -41,3 +40,12 @@
|
||||
cursor: default;
|
||||
background: none;
|
||||
}
|
||||
|
||||
@media (-moz-touch-enabled: 1), (pointer:coarse) {
|
||||
.button:hover{
|
||||
background-color: transparent;
|
||||
}
|
||||
.button.active {
|
||||
background-color: #ddd;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user