Skip to content

Instantly share code, notes, and snippets.

@murtaugh
Last active May 11, 2023 17:28
Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save murtaugh/5247154 to your computer and use it in GitHub Desktop.
Save murtaugh/5247154 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="submit"],
input[type="button"],
input[type="radio"],
input[type="checkbox"] {
cursor: pointer;
}
button[disabled],
input[disabled] {
cursor: default;
}
@petrchutny
Copy link

It really does make sense :) Thanks for elaborating on this.

@OlsonDev
Copy link

2.5 years and no one's noticed you're missing input[type="button"]? Heh.

@sheriffderek
Copy link

@OlsonDev Why not make a pull request?

@lakpahana
Copy link

Thank you.

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