- 在 SCSS 中实现条件编译以支持自定义光标 - 添加 $custom_cursor 变量控制光标样式 - 在 settings.yml 中增加 custom_cursor 配置项 - 支持上传 SVG 文件作为自定义光标 - 默认值设为空字符串以保持向后兼容性
This commit is contained in:
+4
-3
@@ -82,7 +82,8 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
// 使用自定义指针
|
||||
* {
|
||||
cursor: url(../../../assets/point.svg) 1 1, auto;
|
||||
@if $custom_cursor != "" {
|
||||
* {
|
||||
cursor: url($custom_cursor) 1 1, auto;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,3 +15,8 @@ home_bg_image:
|
||||
default: ""
|
||||
description: "首页背景图"
|
||||
|
||||
custom_cursor:
|
||||
type: upload
|
||||
default: ""
|
||||
description: "自定义光标 SVG 文件"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user