-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add how to custom cursor, close #496
- Loading branch information
Showing
4 changed files
with
41 additions
and
12 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import './vars.scss' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// custom your css variables here | ||
:root { | ||
/* 侧边栏背景图片 */ | ||
// --yun-sidebar-bg-img: url("https://cdn.yunyoujun.cn/img/avatar/none.jpg"); | ||
} | ||
|
||
:root { | ||
--cursor-default: url('https://cdn.yunyoujun.cn/css/md-cursors/pointer.cur'); | ||
--cursor-pointer: url('https://cdn.yunyoujun.cn/css/md-cursors/link.cur'); | ||
--cursor-text: url('https://cdn.yunyoujun.cn/css/md-cursors/text.cur'); | ||
} | ||
|
||
body { | ||
cursor: var(--cursor-default), auto; | ||
} | ||
|
||
a { | ||
cursor: var(--cursor-pointer), auto; | ||
|
||
&:hover { | ||
cursor: var(--cursor-pointer), auto; | ||
} | ||
} | ||
|
||
button { | ||
cursor: var(--cursor-pointer), pointer; | ||
} | ||
|
||
input { | ||
cursor: var(--cursor-text), text; | ||
} |
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
cd24ae6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://yun.valaxy.site as production
🚀 Deployed on https://67b1bc793fdff025aee02011--valaxy.netlify.app