From 162e00b24378358a4ceb28fdcb24a27256e78fe2 Mon Sep 17 00:00:00 2001 From: Robin <8597693+robrobinbin@users.noreply.github.com> Date: Sun, 17 Jan 2021 23:49:36 +0100 Subject: [PATCH] Improve accessibility rating --- static/style.css | 2 +- templates/post.html | 4 ++-- templates/search.html | 11 ++++++----- templates/subreddit.html | 9 +++++---- templates/user.html | 5 +++-- templates/utils.html | 2 +- 6 files changed, 18 insertions(+), 15 deletions(-) diff --git a/static/style.css b/static/style.css index 2d3b34e..1e77f0e 100644 --- a/static/style.css +++ b/static/style.css @@ -49,7 +49,7 @@ nav { nav * { color: var(--text); } nav #reddit { color: var(--accent); } -nav #version { opacity: 25%; } +nav #version { opacity: 50%; } #settings_link { font-size: 18px; diff --git a/templates/post.html b/templates/post.html index 65dfb5b..1457354 100644 --- a/templates/post.html +++ b/templates/post.html @@ -62,7 +62,7 @@ {% if post.post_type == "image" %} - + Post image {% else if post.post_type == "video" || post.post_type == "gif" %} {% else if post.post_type == "link" %} @@ -85,7 +85,7 @@
- {% call utils::options(sort, ["confidence", "top", "new", "controversial", "old"], "confidence") %}
diff --git a/templates/search.html b/templates/search.html index 69edf23..9b65664 100644 --- a/templates/search.html +++ b/templates/search.html @@ -6,16 +6,16 @@ {% block content %}
- + {% if sub != "" %}
{% endif %} - {% call utils::options(params.sort, ["relevance", "hot", "top", "new", "comments"], "") %} - {% if params.sort != "new" %}{% if params.sort != "new" %}{% endif %}
@@ -54,15 +54,16 @@

{% if (prefs.layout == "" || prefs.layout == "card") && post.post_type == "image" %} - + Post image {% else if post.post_type != "self" %} {% if post.thumbnail == "" %} + Thumbnail {% else %} - + Thumbnail {% endif %} {% if post.post_type == "link" %}{{ post.domain }}{% else %}{{ post.post_type }}{% endif %} diff --git a/templates/subreddit.html b/templates/subreddit.html index 3f1adb2..3c4720f 100644 --- a/templates/subreddit.html +++ b/templates/subreddit.html @@ -22,7 +22,7 @@ {% call utils::sort(["/r/", sub.name.as_str()].concat(), ["hot", "new", "top", "rising", "controversial"], sort.0) %} {% endif %}
- {% if sort.0 == "top" || sort.0 == "controversial" %} {% call utils::options(sort.1, ["hour", "day", "week", "month", "year", "all"], "day") %} {% endif %} @@ -48,15 +48,16 @@

{% if (prefs.layout == "" || prefs.layout == "card") && post.post_type == "image" %} - + Post image {% else if post.post_type != "self" %} {% if post.thumbnail == "" %} + Thumbnail {% else %} - + Thumbnail {% endif %} {% if post.post_type == "link" %}{{ post.domain }}{% else %}{{ post.post_type }}{% endif %} @@ -91,7 +92,7 @@ {% endif %}
- + Icon for r/{{ sub.name }}

{{ sub.title }}

r/{{ sub.name }}

{{ sub.description }}

diff --git a/templates/user.html b/templates/user.html index 4d8561e..23e41cf 100644 --- a/templates/user.html +++ b/templates/user.html @@ -39,15 +39,16 @@

{% if (prefs.layout == "" || prefs.layout == "card") && post.post_type == "image" %} - + Post image {% else if post.post_type != "self" %} {% if post.thumbnail == "" %} + Thumbnail {% else %} - + Thumbnail {% endif %} {% if post.post_type == "link" %}{{ post.domain }}{% else %}{{ post.post_type }}{% endif %} diff --git a/templates/utils.html b/templates/utils.html index 626e83e..2b6e088 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -16,7 +16,7 @@ {% macro search(root, search) -%}