mirror of
https://github.com/TheThomaas/my-online-cookbook.git
synced 2026-01-11 12:11:50 +00:00
Add abbr for emoji-only content
This commit is contained in:
parent
8b7080bbdc
commit
7da4487ea9
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue