diff --git a/_config.yml b/_config.yml index eb4dfdd..1fae93c 100755 --- a/_config.yml +++ b/_config.yml @@ -5,7 +5,7 @@ theme_info: version: 1.0-beta10 docs: https://xaoxuu.com/wiki/material-x/ # 主题的CDN地址,如果你的源码托管到国内CDN可以更改此链接。如需启用CDN,请在主目录的config中设置import,详见文档。 - cdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@18.12.31/ + cdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@18.12.32/ ########################################################################## # 请务必阅读官方文档!!! # 请务必阅读官方文档!!! diff --git a/source/less/_toc.less b/source/less/_toc.less index a71001a..f20dddb 100755 --- a/source/less/_toc.less +++ b/source/less/_toc.less @@ -1,6 +1,6 @@ .l_side .toc-wrapper{ z-index: 1; - overflow: auto; + overflow: hidden; border-radius: @border_radius; position: sticky; top: @height_navbar + 1*@gap; @@ -12,6 +12,8 @@ } .content{ padding: @gap/2 0; + max-height: 500px; + overflow: auto; &.pure{ padding-top: 0; // 适合白色导航栏背景 } @@ -43,6 +45,7 @@ .enable-trans(); @media(max-width: @on_phone){ position: fixed; + max-height: 1000px; // width: ~"calc(100% - 2 * @{gap})"; top: @height_navbar; box-shadow: @boxshadow_card_raised; @@ -97,6 +100,7 @@ } width: auto; + text-align: left; // &:extend(.txt-ellipsis); } }