️ fix: improve accessibility

️ fix: improve accessibility in lists & taps
main
Óscar 2 years ago committed by GitHub
commit b3179dadf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,7 +1,6 @@
.archive { .archive {
.listing-title { .listing-title {
font-size: 1.5rem; font-size: 1.5rem;
opacity: 0.9;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
@ -12,7 +11,7 @@
.post-time { .post-time {
width: 4rem; width: 4rem;
.date { .date {
opacity: 0.5; color: var(--meta-color);
} }
} }
} }

@ -91,6 +91,10 @@ header {
} }
} }
.last-updated {
margin-top: -5vmin;
}
.card-meta { .card-meta {
color: var(--meta-color); color: var(--meta-color);
font-size: 0.92rem; font-size: 0.92rem;

@ -17,11 +17,9 @@
} }
.bloglist-tags { .bloglist-tags {
margin-top: -0.5rem;
.tag { .tag {
margin-right: 0.7rem; margin-right: 0.7rem;
font-size: 0.7rem; font-size: 0.75rem;
font-weight: 400; font-weight: 400;
text-transform: uppercase; text-transform: uppercase;
} }

@ -10,28 +10,28 @@
<ul class="meta"> <ul class="meta">
{% if page.draft %} {% if page.draft %}
<span class="draft-label">DRAFT</span> <li class="draft-label">DRAFT</li>
{% endif %} {% endif %}
{% if page.date %} {% if page.date %}
<span>{{ page.date | date(format=config.extra.date_format | default (value="%d %B %Y")) }}</span> <li>{{ page.date | date(format=config.extra.date_format | default (value="%d %B %Y")) }} {{ separator }}</li>
{{ separator }}
{% endif %} {% endif %}
<span title="{{ page.word_count }} words">{{ page.reading_time }} min read</span> <li title="{{ page.word_count }} words">&nbsp;{{ page.reading_time }} min read</li>
{% if page.taxonomies and page.taxonomies.tags %} {% if page.taxonomies and page.taxonomies.tags %}
{{ separator }}&nbsp;Tags: <li>&nbsp;{{ separator }}&nbsp;Tags:&nbsp;</li>
{% for tag in page.taxonomies.tags %} {% for tag in page.taxonomies.tags %}
<li><a href={{ get_taxonomy_url(kind='tags' , name=tag) | safe }}>{{ tag }}</a></li> <li><a href={{ get_taxonomy_url(kind='tags' , name=tag) | safe }}>{{ tag }}</a>
{%- if not loop.last -%} {%- if not loop.last -%}
, ,&nbsp;
{%- endif -%} {%- endif -%}
</li>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if page.updated %} {% if page.updated %}
<br><span>Last updated on {{ page.updated | date(format=config.extra.date_format | default (value="%d %B %Y")) }}</span> </ul><ul class="meta last-updated"><li>Last updated on {{ page.updated | date(format=config.extra.date_format | default (value="%d %B %Y")) }}</li>
{% endif %} {% endif %}
</ul> </ul>

@ -6,14 +6,12 @@
<div class="tag-cloud"> <div class="tag-cloud">
<ul class="tags"> <ul class="tags">
{% for term in terms %} {%- for term in terms -%}
<div class="tags-item"> <li class="tags-item" id "{{ term.name }}"><a href="{{ term.permalink | safe }}">
<li id "{{ term.name }}"><a href="{{ term.permalink | safe }}"> {{ term.name }}</a>
{{ term.name }}</a> {{ term.pages | length }} post{{ term.pages | length | pluralize }}
<span> {{ term.pages | length }} post{{ term.pages | length | pluralize }}</span> </li>
</li> {%- endfor -%}
</div>
{% endfor %}
</ul> </ul>
</div> </div>

Loading…
Cancel
Save