أوه، فهمت. ![]()
لا يزال بإمكانك استخدام حل SCSS نقي باستخدام شرائح الفئات:
إذا كنت ترغب في إضافة فواصل أسطر في النص، فضع \\A داخل النص الخاص بك، وأضف white-space: pre; في خصائص العنصر الزائف :after.
$categories: "nature", "general";
$labels: "All natural!\\ANaturaaal!" "Another text";
@each $category, $label in zip($categories, $labels) {
body.category-#{$category} .category-heading .category-logo.aspect-image {
max-height: none;
&:after {
display: block;
content: $label;
font-size: 1.25em;
color: var(--primary-700);
white-space: pre;
text-align: center;
}
}
}

