From dacc6e9c73f4c8112aa12eb4d0c2407243088447 Mon Sep 17 00:00:00 2001 From: phucbm Date: Tue, 4 Oct 2022 17:31:44 +0700 Subject: [PATCH] :sparkles: add cursors --- css/cursors.css | 36 ++++++++++++++++++++++++++++++++++++ scss/_build.scss | 3 ++- scss/cursors.scss | 15 +++++++++++++++ 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 css/cursors.css create mode 100644 scss/cursors.scss diff --git a/css/cursors.css b/css/cursors.css new file mode 100644 index 0000000..87460de --- /dev/null +++ b/css/cursors.css @@ -0,0 +1,36 @@ +/** + * Cursors + * https://stackoverflow.design/product/base/cursors/ + */ +/* cursor */ +.c-auto { + cursor: auto; +} + +.c-default { + cursor: default; +} + +.c-pointer { + cursor: pointer; +} + +.c-text { + cursor: text; +} + +.c-wait { + cursor: wait; +} + +.c-move { + cursor: move; +} + +.c-not-allowed { + cursor: not-allowed; +} + +.c-help { + cursor: help; +} diff --git a/scss/_build.scss b/scss/_build.scss index 5ad1688..ab57923 100644 --- a/scss/_build.scss +++ b/scss/_build.scss @@ -26,4 +26,5 @@ @import "overflow"; @import "border-radius"; @import "skeleton"; -@import "width-height"; \ No newline at end of file +@import "width-height"; +@import "cursors"; \ No newline at end of file diff --git a/scss/cursors.scss b/scss/cursors.scss new file mode 100644 index 0000000..c8e367b --- /dev/null +++ b/scss/cursors.scss @@ -0,0 +1,15 @@ +/** + * Cursors + * https://stackoverflow.design/product/base/cursors/ + */ +@import "helpers"; + +$dataset: ( + cursor:( + prefix:'c', + value:auto default pointer text wait move not-allowed help + ), +); + +// print +@include print($dataset); \ No newline at end of file