Change CSS style of content accordion

This commit is contained in:
Helen Chong 2024-08-04 20:22:06 +08:00
parent 653284703b
commit d8bc0eb035
1 changed files with 8 additions and 1 deletions

View File

@ -109,9 +109,16 @@ a.link-btn[href^="http"]:not([href*="leilukin.com"]) { padding-right: calc(var(-
* + .content-accordion { margin-top: var(--sz-paragraph-margin); } * + .content-accordion { margin-top: var(--sz-paragraph-margin); }
.content-accordion { padding: 0.5em 0; } .content-accordion { padding: 0.5em 0; }
.content-accordion__summary { font-weight: 700; } .content-accordion__summary { font-weight: 700; }
.content-accordion__content { padding: 0.5em 1em; } .content-accordion__content,
.content-accordion__content p + p { margin-top: 1em; } .content-accordion__content p + p { margin-top: 1em; }
.content-accordion__content {
--bdr-accordion: 0.15em solid var(--clr-title-border);
padding: 1em 0;
border-top: var(--bdr-accordion);
border-bottom: var(--bdr-accordion);
}
/* Content warning accordion */ /* Content warning accordion */
* + .contnet-warning { margin-top: var(--sz-paragraph-margin); } * + .contnet-warning { margin-top: var(--sz-paragraph-margin); }