From d53e5e61d25405db63cc2e2817186d19dbff8189 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Tue, 20 Aug 2024 11:07:37 +0300 Subject: A11y improvements --- static/styles.css | 19 ++++++++++++------- templates/index.html.j2 | 2 +- templates/manage.html.j2 | 16 ++++++++++++---- templates/poll_info_table.html.j2 | 10 +++++----- templates/poll_vote_list.html.j2 | 8 ++++++-- templates/poll_vote_table.html.j2 | 8 ++++++-- 6 files changed, 42 insertions(+), 21 deletions(-) diff --git a/static/styles.css b/static/styles.css index 8b6c67e..21f742e 100644 --- a/static/styles.css +++ b/static/styles.css @@ -7,6 +7,11 @@ body { padding: 10px; max-width: 1000px; margin: 0 auto; + line-height: 24px; +} + +a:not(:visited) { + color: rgb(30, 99, 248); } h1 { @@ -37,7 +42,7 @@ input[type="submit"] { box-shadow: none; padding: 5px 8px; border: 0; - background-color: rgb(63, 122, 248); + background-color: rgb(30, 99, 248); color: white; } @@ -46,9 +51,9 @@ input[type="submit"].red { background-color: #d42f2f; } -button.green, -input[type="submit"].green { - background-color: #4caf50; +button.blue, +input[type="submit"].blue { + background-color: rgb(30, 99, 248);; } button.yellow, @@ -68,7 +73,7 @@ input[type*="date"]:disabled { } .contrast { - color: #fa8e35; + color: rgb(30, 99, 248); } th, td { @@ -191,8 +196,8 @@ button#share-link-copy { padding: 0; background: none; color: black; - font-size: 25px; - line-height: 16px; + font-size: 24px; + line-height: 24px; } input[type="submit"].delete-voter-btn { diff --git a/templates/index.html.j2 b/templates/index.html.j2 index fed619b..0512039 100644 --- a/templates/index.html.j2 +++ b/templates/index.html.j2 @@ -6,7 +6,7 @@ {% include "poll_info_table.html.j2" %}

You can add time options as well as modify all settings after submitting.

- + {% if created_polls | length != 0 %} diff --git a/templates/manage.html.j2 b/templates/manage.html.j2 index 270e837..8cd2027 100644 --- a/templates/manage.html.j2 +++ b/templates/manage.html.j2 @@ -40,6 +40,7 @@ - + - + - + @@ -133,7 +141,7 @@ if (focusNext !== null) { let shareLinkCopy = document.getElementById("share-link-copy"); if (shareLinkCopy !== null) { - shareLinkCopy.outerHTML = ""; + shareLinkCopy.outerHTML = ""; shareLinkCopy = document.getElementById("share-link-copy"); // refresh the reference } diff --git a/templates/poll_info_table.html.j2 b/templates/poll_info_table.html.j2 index 7955ca8..3eca73f 100644 --- a/templates/poll_info_table.html.j2 +++ b/templates/poll_info_table.html.j2 @@ -2,23 +2,23 @@ - + - + - + - + - + diff --git a/templates/poll_vote_list.html.j2 b/templates/poll_vote_list.html.j2 index c62c102..54e7d9f 100644 --- a/templates/poll_vote_list.html.j2 +++ b/templates/poll_vote_list.html.j2 @@ -26,9 +26,13 @@
- - +
diff --git a/templates/poll_vote_table.html.j2 b/templates/poll_vote_table.html.j2 index 1fe6019..7083cb2 100644 --- a/templates/poll_vote_table.html.j2 +++ b/templates/poll_vote_table.html.j2 @@ -51,9 +51,13 @@
- - + {% for choice in choices %} -- cgit v1.3