Skip to content

Commit 1dbc0f9

Browse files
authored
Merge pull request #29 from haplo/a11y
Accessibility improvements
2 parents 39b13f1 + 2776b47 commit 1dbc0f9

File tree

9 files changed

+24
-9
lines changed

9 files changed

+24
-9
lines changed

pelican/themes/reflex/static/stylesheet/dark-theme.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ body {
99
color: @text-color-dark-theme;
1010
}
1111

12+
a {
13+
color: @link-color-dark-theme;
14+
}
15+
16+
a:hover {
17+
color: @link-hover-color-dark-theme;
18+
}
19+
1220
hr {
1321
background-color: @solid-dark-grey;
1422
color: @solid-dark-grey;

pelican/themes/reflex/static/stylesheet/dark-theme.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/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/static/stylesheet/variables.less

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020
@text-color-dark-theme: @light-grey;
2121

2222
// Links
23-
@link-color: @orange;
24-
@link-hover-color: @light-orange;
23+
@link-color: #CF3D16;
24+
@link-hover-color: #E85000;
25+
@link-color-dark-theme: #EC7B4A;
26+
@link-hover-color-dark-theme: #FF9055;
2527

2628
// Sidebar (aside)
2729
@sidebar-bg: @grey;

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 %}

pelican/themes/reflex/templates/partial/sidebar.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ <h1>
7676
<a class="sc-{{ name }}"
7777
{% if name in relme %}rel="me"{% endif %}
7878
href="{{ link }}"
79-
target="_blank">
80-
<i class="{% if name in solid %}fa-solid{% else %}fa-brands{% endif %} fa-{{ name }}"></i>
79+
target="_blank"
80+
aria-label="{{ name }}">
81+
<i class="{% if name in solid %}fa-solid{% else %}fa-brands{% endif %} fa-{{ name }}" aria-hidden="true"></i>
8182
</a>
8283
</li>
8384
{% endfor %}

0 commit comments

Comments
 (0)