diff --git a/scss/self.scss b/scss/self.scss index 47c9d9c..cf8c525 100644 --- a/scss/self.scss +++ b/scss/self.scss @@ -82,8 +82,46 @@ display: none; } -@if $custom_cursor != "" { +// 默认光标 +@if $default_cursor != "" { * { - cursor: url($custom_cursor) 1 1, auto; + cursor: url($default_cursor) 1 1, auto; + } +} + +// 悬停光标 +@if $hover_cursor != "" { + a, + button, + [role="button"], + input[type="button"], + input[type="submit"], + .btn, + .clickable { + cursor: url($hover_cursor) 1 1, auto; + } +} + +// 链接光标 +@if $pointer_cursor != "" { + a[href], + button, + [role="button"], + label, + input[type="button"], + input[type="submit"], + .pointer { + cursor: url($pointer_cursor) 1 1, pointer; + } +} + +// 文本光标 +@if $text_cursor != "" { + input[type="text"], + input[type="email"], + input[type="password"], + input[type="search"], + textarea { + cursor: url($text_cursor) 1 1, text; } } diff --git a/settings.yml b/settings.yml index 74b3025..d096c08 100644 --- a/settings.yml +++ b/settings.yml @@ -15,8 +15,23 @@ home_bg_image: default: "" description: "首页背景图" -custom_cursor: +default_cursor: type: upload default: "" - description: "自定义光标 SVG 文件" + description: "默认光标 SVG 文件" + +hover_cursor: + type: upload + default: "" + description: "悬停光标 SVG 文件" + +pointer_cursor: + type: upload + default: "" + description: "链接光标 SVG 文件" + +text_cursor: + type: upload + default: "" + description: "文本光标 SVG 文件"