From 8134209aa25c686958f030e13361dc32516196fd Mon Sep 17 00:00:00 2001 From: Nihil Date: Sat, 5 Nov 2022 04:13:06 +0800 Subject: [PATCH] chore: optimize list indentation (#727) --- _sass/addon/commons.scss | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index a258516..1b9b4f1 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -461,21 +461,24 @@ img[data-src] { } } - > ol, - > ul { - -webkit-padding-start: 1.75rem; - padding-inline-start: 1.75rem; + ol, + ul { + &:not([class]), + &.task-list { + -webkit-padding-start: 1.75rem; + padding-inline-start: 1.75rem; - li { - margin: 0.25rem 0; - padding-left: 0.25rem; - } + li { + margin: 0.25rem 0; + padding-left: 0.25rem; + } - ol, - ul { - -webkit-padding-start: 1rem; - padding-inline-start: 1rem; - margin: 0.5rem 0; + ol, + ul { + -webkit-padding-start: 1.25rem; + padding-inline-start: 1.25rem; + margin: 0.5rem 0; + } } }