Skip to content

Instantly share code, notes, and snippets.

@sheriffderek
Forked from murtaugh/cursor-reset.css
Last active June 18, 2017 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sheriffderek/94e5973441a3fe6bd09bee0089dc930d to your computer and use it in GitHub Desktop.
Save sheriffderek/94e5973441a3fe6bd09bee0089dc930d to your computer and use it in GitHub Desktop.
CSS Cursor Reset
html,
body
cursor: default
code
cursor: text
/*
textarea and input[type="text"] already receive
"cursor: text" via browsers' base stylesheets
*/
a,
label,
button,
input[type="radio"],
input[type="submit"],
input[type="checkbox"]
cursor: pointer
button[disabled],
input[disabled]
cursor: default
@sheriffderek
Copy link
Author

Stylus syntax of @murtaugh 's cursor reset.

@kevinvanrijn
Copy link

As pointed out in https://gist.github.com/murtaugh/5247154#gistcomment-1656591 this is missing input[type="button"].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment