1
0
Fork 0
mirror of https://github.com/TheThomaas/my-online-cookbook.git synced 2026-01-10 20:01:47 +00:00

Add abbr for emoji-only content

This commit is contained in:
Maël Brunet 2021-05-22 13:15:05 +02:00
parent 8b7080bbdc
commit 7da4487ea9
3 changed files with 6 additions and 2 deletions

View file

@ -32,7 +32,7 @@ bodyClass: c-home
<div class="c-card__info">
<div>
{% for tag in recipe.data.tags %}
{{ tag | onlyEmoji | safe }}
<abbr class="c-card__tag-abbr" title="{{ tag | noEmoji }}">{{ tag | onlyEmoji }}</abbr>
{% endfor %}
</div>
{% if recipe.data.time %}

View file

@ -19,7 +19,7 @@
<div class="c-card__info">
<div>
{% for tag in recipe.data.tags %}
{{ tag | onlyEmoji | safe }}
<abbr class="c-card__tag-abbr" title="{{ tag | noEmoji }}">{{ tag | onlyEmoji }}</abbr>
{% endfor %}
</div>
{% if recipe.data.time %}

View file

@ -46,6 +46,10 @@
background-color: var(--color-primary);
}
.c-card__tag-abbr {
text-decoration: none;
}
.c-card__tag-first-letter {
width: 22px;
height: 22px;