From fe6dbaed3f5e2f46597f1e9d339e7724dd3dad2f Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Mon, 22 Mar 2021 21:13:57 +0800 Subject: [PATCH] fix list --- layout/_partial/sidebar/widgets/recent.ejs | 2 +- source/css/_common/base.styl | 5 ----- source/css/_layout/sidebar/toc.styl | 16 ++++++++++------ 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/layout/_partial/sidebar/widgets/recent.ejs b/layout/_partial/sidebar/widgets/recent.ejs index f8f8787..14756ce 100644 --- a/layout/_partial/sidebar/widgets/recent.ejs +++ b/layout/_partial/sidebar/widgets/recent.ejs @@ -20,7 +20,7 @@ function layoutDiv() { arr.sort("updated", -1).limit(item.limit).each(function(post) { el += '
'; el += '
'; - el += __("meta.updated") + ' ' + ''; + el += ''; el += '
'; el += ''; if (post.wiki && (post.title.toUpperCase().includes(post.wiki.toUpperCase()) == false)) { diff --git a/source/css/_common/base.styl b/source/css/_common/base.styl index 682b5d7..f1a895d 100644 --- a/source/css/_common/base.styl +++ b/source/css/_common/base.styl @@ -29,11 +29,6 @@ li ul,ol padding-left: 1.5rem -ul ul, ul ol - padding-left: 0 -ol ul, ol ol - padding-left: 0 - // table table:not([class]) diff --git a/source/css/_layout/sidebar/toc.styl b/source/css/_layout/sidebar/toc.styl index 84cafda..3dd979f 100644 --- a/source/css/_layout/sidebar/toc.styl +++ b/source/css/_layout/sidebar/toc.styl @@ -1,6 +1,10 @@ // toc padding #toc .widget-body line-height: 1.2 + ul ul, ul ol + padding-left: 0 + ol ul, ol ol + padding-left: 0 .toc padding: 0 margin: 0 @@ -63,12 +67,12 @@ font-weight: 500 &.active color: var(--text-p2) - font-size: $fs-14 + font-size: 1rem &:hover background: var(--block-hover) -#toc .widget-body.wiki - .doc-tree.active - border-color: var(--text-meta) - .doc-tree.active:only-child - border-color: var(--block-hover) +// #toc .widget-body.wiki +// .doc-tree.active +// border-color: var(--text-meta) +// .doc-tree.active:only-child +// border-color: var(--block-hover)