Skip to content

Instantly share code, notes, and snippets.

@azamanaza
Created October 14, 2020 16:25
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 azamanaza/4b54e0171501b5a35351a47497becf3e to your computer and use it in GitHub Desktop.
Save azamanaza/4b54e0171501b5a35351a47497becf3e to your computer and use it in GitHub Desktop.
A global cursor helper
/*
* Usage
* Just add "cursor-<type>" as class to the element you want to style with a cursor.
*/
$cursors: auto, default, none, context-menu, help, pointer, progress, wait, cell, crosshair, text, vertical-text, alias, copy, move, no-drop, not-allowed, grab, grabbing, all-scroll, col-resize, row-resize, n-resize, e-resize, w-resize, ne-resize, nw-resize, se-resize, sw-resize, ew-resize, ns-resize, nesw-resize, nwse-resize, zoom-in, zoom-out;
@each $cursor in $cursors {
.cursor-#{$cursor} {
cursor: $cursor;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment