Convert elementsWithXLBlockMargins to a slice that's joined with ", "

This commit is contained in:
Eryn Wells 2024-11-24 10:18:45 -08:00
parent b7ae6211ce
commit e8daeda08b

View file

@ -61,7 +61,23 @@ hr {
/* Figures */
{{- $elementsWithXLBlockMargins := "blockquote, table, .codeblock, .figure--main-column, .figure--code, .figure--image, .figure--video, .figure--youtube, .highlight" -}}
{{-
$elementsWithXLBlockMargins := delimit
(slice
"blockquote"
"table"
".codeblock"
".figure"
".figure--main-column"
".figure--code"
".figure--image"
".figure--video"
".figure--youtube"
".highlight"
".instagram-media"
)
", "
-}}
p + :is({{ $elementsWithXLBlockMargins }}) {
margin-block-start: var(--space-xl);