Skip to content

Commit 2776b47

Browse files
author
Fidel Ramos
committed
A11y: underline links inside content
This improves accessibility by making links recognizable without color, which is important for users with eyesight problems.
1 parent 01f258d commit 2776b47

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

pelican/themes/reflex/static/stylesheet/style.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ main {
235235
border-radius: 3px;
236236
}
237237

238+
.entry-content a:not(.btn) {
239+
text-decoration: underline;
240+
}
241+
238242
.comment-count {
239243
font-size: .8em;
240244
}

pelican/themes/reflex/static/stylesheet/style.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pelican/themes/reflex/templates/article.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h1 id="{{ article.slug }}">{{ article.title }}</h1>
4646
</script>
4747
{% endif %}
4848

49-
<div>
49+
<div class="entry-content">
5050
{{ article.content }}
5151
</div>
5252
<div class="tag-cloud">

pelican/themes/reflex/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h2><a href="{{ SITEURL }}/{{ article.url }}{% if not DISABLE_URL_HASH %}#{{ art
3333
{% endif %}
3434
</p>
3535
</header>
36-
<div>
36+
<div class="entry-content">
3737
{% if summarise or article.metadata['summary'] or SUMMARY_MAX_LENGTH %}
3838
{% if article.featured_image %}
3939
<img src="{{ article.featured_image }}">

pelican/themes/reflex/templates/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{{ translations.translations_for(page) }}
2121
<h1 id="{{ page.slug }}">{{ page.title }}</h1>
2222
</header>
23-
<div>
23+
<div class="entry-content">
2424
{% block before_content %}{% endblock %}
2525
{% block page_content %}{{ page.content }}{% endblock %}
2626
{% block after_content %}{% endblock %}

0 commit comments

Comments
 (0)