Comments (1)
已解决
我根据volantis改了改,实现了该功能,就不麻烦大佬了。
修改代码如下
- .config.stellar.yml
// 添加代码
style:
.......
scrollbar:
size: 4px
border: 2px
color: '#2196f3'
hover: '#ff5722'
- /themes/stellar/source/css/_custom.styl
// 滚动条颜色,添加代码
$color-scrollbar = convert(hexo-config('style.scrollbar.color'))
$color-hover-scrollbar = convert(hexo-config('style.scrollbar.hover'))
- /themes/stellar/source/css/_defines/func.styl
// 修改代码
scrollbar($w = 4px, $b = 2px, $c = $color-scrollbar, $h = $color-hover-scrollbar)
- /themes/stellar/source/css/_common/html.styl
// 第一处代码添加
*
......
scrollbar()
// 第二处代码添加
html
......
>
if hexo-config('style.scrollbar.size')
scrollbar(convert(hexo-config('style.scrollbar.size')), convert(hexo-config('style.scrollbar.border')) || 0px)
效果如下
from hexo-theme-stellar.
Related Issues (20)
- 数学公式超过屏幕会被隐藏,无法拖动 HOT 1
- GitHub pages如何部署 HOT 2
- 希望能加入文章字数和阅读时长统计的功能 HOT 2
- 一个很怪的报错 HOT 1
- wiki页面左侧导航组件点击跳转后不能保留相对位置 HOT 2
- 容器类标签 ablock 普通块容器配色bug HOT 1
- 当mermaid图处于不可见状态时,会显示语法错误
- 侧边栏过长无法精准跳转到靠下的小标题 HOT 5
- 可以考虑侧边栏打开时点击侧边栏以外的地方,侧边栏会收回吗 HOT 3
- 链接横着写的,但网页竖着显示怎么办 HOT 2
- 代码块在不同浏览器的显示不同 HOT 1
- 文档系统侧边栏分组显示
- 关于友链换行的问题 HOT 3
- 样式错位 HOT 4
- 图片懒加载能否显示一个转圈图片 HOT 4
- 能否在博客主页侧边栏显示近期评论 HOT 4
- 自带的issues说说时间线,顺序是倒叙。怎么改为最新发布? HOT 2
- 高亮更多独立页面 指定menu_id参照文档设置,但是在更多页面无指定的活动按钮 HOT 1
- 代码块中的markdown图片源码被转换成图片标签 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-theme-stellar.