From 1a1aaed7f5cc0ec920beebee81e1180e399d1695 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Mon, 11 Feb 2019 18:29:20 +0800 Subject: [PATCH] update --- _config.yml | 2 +- layout/_widget/category.ejs | 4 ++-- source/less/_widget.less | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/_config.yml b/_config.yml index 8fd5fd5..fc62e0d 100755 --- a/_config.yml +++ b/_config.yml @@ -8,7 +8,7 @@ info: name: Material X docs: https://xaoxuu.com/wiki/material-x/ # 主题的CDN地址。如需启用CDN,请在主目录的config中设置,详见文档。 - cdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.2.11/ + cdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.2.12/ ############################### 主题样式 ############################### diff --git a/layout/_widget/category.ejs b/layout/_widget/category.ejs index 7624b6c..7acbc8d 100755 --- a/layout/_widget/category.ejs +++ b/layout/_widget/category.ejs @@ -3,8 +3,8 @@ <%- partial('header', {item: item, defIcon: 'fas fa-folder-open', defTitle: __('sidebar.category')}) %>
diff --git a/source/less/_widget.less b/source/less/_widget.less index aa2425b..e1faceb 100755 --- a/source/less/_widget.less +++ b/source/less/_widget.less @@ -65,7 +65,7 @@ text-align: justify; padding: @gap/2; max-height: ~"calc(100% - @{height_navbar} - 12.5 * @{gap})"; - ul.entry > li > a{ + ul > li > a{ padding: 0 @gap; line-height: @height_cell; height: @height_cell; @@ -92,6 +92,9 @@ &:active{ border-left: 8px solid @theme_main; } + &.child{ + padding-left: @gap*2; + } } }