Skip to content

Commit

Permalink
♿️ fix: improve accessibility in lists & taps
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed Mar 7, 2023
1 parent 0f07a6e commit 50b8d5f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
3 changes: 1 addition & 2 deletions sass/parts/_archive.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.archive {
.listing-title {
font-size: 1.5rem;
opacity: 0.9;
margin-bottom: 1rem;
}

Expand All @@ -12,7 +11,7 @@
.post-time {
width: 4rem;
.date {
opacity: 0.5;
color: var(--meta-color);
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions sass/parts/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ header {
}
}

.last-updated {
margin-top: -5vmin;
}

.card-meta {
color: var(--meta-color);
font-size: 0.92rem;
Expand Down
5 changes: 2 additions & 3 deletions sass/parts/_posts_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
}

.bloglist-tags {
margin-top: -0.5rem;

.tag {
margin-right: 0.7rem;
font-size: 0.7rem;
height: 48px;
font-size: 0.75rem;
font-weight: 400;
text-transform: uppercase;
}
Expand Down
16 changes: 8 additions & 8 deletions templates/macros/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@

<ul class="meta">
{% if page.draft %}
<span class="draft-label">DRAFT</span>
<li class="draft-label">DRAFT</li>
{% endif %}

{% if page.date %}
<span>{{ page.date | date(format=config.extra.date_format | default (value="%d %B %Y")) }}</span>
{{ separator }}
<li>{{ page.date | date(format=config.extra.date_format | default (value="%d %B %Y")) }} {{ separator }}</li>
{% 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 %}
{{ separator }}&nbsp;Tags:
<li>&nbsp;{{ separator }}&nbsp;Tags:&nbsp;</li>
{% 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 -%}
,
,&nbsp;
{%- endif -%}
</li>
{% endfor %}
{% endif %}

{% 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 %}
</ul>

Expand Down
14 changes: 6 additions & 8 deletions templates/tags/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@

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

Expand Down

0 comments on commit 50b8d5f

Please sign in to comment.