Skip to content

Instantly share code, notes, and snippets.

@murtaugh
Last active May 11, 2023 17:28
Show Gist options
  • 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;
}
@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