hexo-theme-ayer/source/css/custom.styl

37 lines
798 B
Stylus
Raw Permalink Normal View History

2020-03-29 10:18:22 +00:00
$wrap-width = convert(hexo-config('layout.article_width'))
$aside-width = convert(hexo-config('layout.sidebar_width'))
$mouse-url = convert(hexo-config('mouse.path'))
if hexo-config('mouse.enable')
body
cursor: url($mouse-url),auto;
2020-03-29 10:18:22 +00:00
.sidebar
left - $aside-width
width $aside-width
&.on
left 0
.content
&.on
margin-left 0 !important
.navbar-toggle
left 1.5rem + $aside-width
.search-form-wrap
right $aside-width
@media(min-width: 768px)
.outer, .wrap
width $wrap-width !important
@media(max-width: 768px)
2020-04-01 14:30:45 +00:00
.tocbot
display none !important
2021-04-09 05:57:44 +00:00
.sidebar
left 0
&.on
left - $aside-width
2020-03-29 10:18:22 +00:00
.content
2021-04-09 05:57:44 +00:00
transform translateX($aside-width)
2020-03-29 10:18:22 +00:00
&.on
2021-04-09 05:57:44 +00:00
transform translateX(0)
2020-03-29 10:18:22 +00:00