mirror of
https://github.com/TheThomaas/my-online-cookbook.git
synced 2026-01-11 04:11:47 +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 class="c-card__info">
|
||||||
<div>
|
<div>
|
||||||
{% for tag in recipe.data.tags %}
|
{% for tag in recipe.data.tags %}
|
||||||
{{ tag | onlyEmoji | safe }}
|
<abbr class="c-card__tag-abbr" title="{{ tag | noEmoji }}">{{ tag | onlyEmoji }}</abbr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% if recipe.data.time %}
|
{% if recipe.data.time %}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
<div class="c-card__info">
|
<div class="c-card__info">
|
||||||
<div>
|
<div>
|
||||||
{% for tag in recipe.data.tags %}
|
{% for tag in recipe.data.tags %}
|
||||||
{{ tag | onlyEmoji | safe }}
|
<abbr class="c-card__tag-abbr" title="{{ tag | noEmoji }}">{{ tag | onlyEmoji }}</abbr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% if recipe.data.time %}
|
{% if recipe.data.time %}
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,10 @@
|
||||||
background-color: var(--color-primary);
|
background-color: var(--color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.c-card__tag-abbr {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
.c-card__tag-first-letter {
|
.c-card__tag-first-letter {
|
||||||
width: 22px;
|
width: 22px;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue