fix: Bag 'o fixes
Remove menu hover styles on mobile Fixed duplicate hover+active behavior on editor menus Fixed editor menus visibly scroll to the top when reopened Fixed some minor editor spacing issues Renamed shred routeHelpers -> urlHelpers
This commit is contained in:
8
app/styles/index.ts
Normal file
8
app/styles/index.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { isTouchDevice } from "~/utils/browser";
|
||||
|
||||
/**
|
||||
* Returns "hover" on a non-touch device and "active" on a touch device. To
|
||||
* avoid "sticky" hover on mobile. Use `&:${hover} {...}` instead of
|
||||
* using `&:hover {...}`.
|
||||
*/
|
||||
export const hover = isTouchDevice() ? "active" : "hover";
|
||||
Reference in New Issue
Block a user