use custom-card CSS as inline bundle

This commit is contained in:
madrilene 2024-10-22 10:17:59 +02:00
parent 59fbc42988
commit 3051400822
5 changed files with 12 additions and 3 deletions

View file

@ -17,3 +17,7 @@
{% endif %}
<div slot="content" webc:nokeep>{{ item.data.description | markdownFormat | safe }}</div>
</custom-card>
{% css "inline" %}
{% include "css/custom-card.css" %}
{% endcss %}

View file

@ -5,3 +5,7 @@
<span slot="date"> {% include "partials/date.njk" %} </span>
<p slot="content">{{ item.data.description }}</p>
</custom-card>
{% css "inline" %}
{% include "css/custom-card.css" %}
{% endcss %}

View file

@ -4,7 +4,4 @@
<div class="meta | cluster"><slot name="date"></slot><slot name="tag"></slot></div>
<slot name="content"></slot>
<slot name="footer"></slot>
<!-- TODO: find out why is this not being hoisted into the webc css bundle? -->
<link rel="stylesheet" href="/assets/css/components/custom-card.css" />
</custom-card>

View file

@ -55,3 +55,7 @@ widths: [400, 520]
{% svg "divider/soft-bottom", null, "seperator" %}
</article>
{% css "inline" %}
{% include "css/custom-card.css" %}
{% endcss %}