Created
October 14, 2020 16:25
-
-
Save azamanaza/4b54e0171501b5a35351a47497becf3e to your computer and use it in GitHub Desktop.
A global cursor helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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