From d219cab649bbeef295b96a37ea0e1d7cd4e69a7e Mon Sep 17 00:00:00 2001 From: haxibami Date: Wed, 30 Oct 2024 21:34:37 +0900 Subject: [PATCH 1/3] fix --- src/styles/margin.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/styles/margin.scss b/src/styles/margin.scss index 88d17f1a86..1b4107ef76 100644 --- a/src/styles/margin.scss +++ b/src/styles/margin.scss @@ -22,4 +22,10 @@ blockquote, figure, ol, p, ul, .box, .box--alert, .box--important { :is(ol, ul) & + & { margin-top: 1em; } + :is(details)>&:first-child { + margin-top: 1em; + } + :is(details) > &:last-child { + margin-bottom: 1em; + } } From 0a4512c52851525173f81c60d42a1e050c62b407 Mon Sep 17 00:00:00 2001 From: haxibami Date: Wed, 30 Oct 2024 21:39:49 +0900 Subject: [PATCH 2/3] prettify --- src/styles/margin.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/margin.scss b/src/styles/margin.scss index 1b4107ef76..2289ded092 100644 --- a/src/styles/margin.scss +++ b/src/styles/margin.scss @@ -22,7 +22,7 @@ blockquote, figure, ol, p, ul, .box, .box--alert, .box--important { :is(ol, ul) & + & { margin-top: 1em; } - :is(details)>&:first-child { + :is(details) > &:first-child { margin-top: 1em; } :is(details) > &:last-child { From e87b0c76e9cfdd09076663272ac27bbe1df5da1a Mon Sep 17 00:00:00 2001 From: haxibami Date: Mon, 11 Nov 2024 17:46:30 +0900 Subject: [PATCH 3/3] remove unneeded :is() --- src/styles/margin.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/styles/margin.scss b/src/styles/margin.scss index 2289ded092..18510e0214 100644 --- a/src/styles/margin.scss +++ b/src/styles/margin.scss @@ -22,10 +22,10 @@ blockquote, figure, ol, p, ul, .box, .box--alert, .box--important { :is(ol, ul) & + & { margin-top: 1em; } - :is(details) > &:first-child { + details > &:first-child { margin-top: 1em; } - :is(details) > &:last-child { + details > &:last-child { margin-bottom: 1em; } }