From 61a63c55bdf27df1aed512ce5602e2b43e6af49f Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 18 Oct 2021 16:50:51 +0200 Subject: [PATCH] CSS and a11y improvements for export to ics feature Signed-off-by: Thomas Citharel --- css/style.css | 4 +--- tpl/part/vote_table_date.tpl | 9 ++++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/css/style.css b/css/style.css index 9696951..088cfb4 100644 --- a/css/style.css +++ b/css/style.css @@ -64,8 +64,6 @@ a:focus { /* a11y */ outline:#000 dotted 1px; } -header, footer { -} main { margin-top: 20px; } @@ -185,7 +183,7 @@ caption { font-weight:bold; } -.results a.btn-default.btn-sm { +.results a.btn-default.btn-sm, .best-choice .list-unstyled a.btn-default.btn-sm { padding: 3px 7px; font-size: 0.7em; } diff --git a/tpl/part/vote_table_date.tpl b/tpl/part/vote_table_date.tpl index f7b3f80..869493e 100644 --- a/tpl/part/vote_table_date.tpl +++ b/tpl/part/vote_table_date.tpl @@ -389,7 +389,7 @@ {* Best votes listing *} {$max = max($best_choices['y'])} {if $max > 0} -
+
{if $count_bests == 1}

{__('Poll results', 'Best choice')}

@@ -408,8 +408,11 @@ {if $best_choices['y'][$i] == $max} {assign var="space" value="`$slot->day|date_format:'d-m-Y'|html`|`$moment`"}
  • {$slot->day|date_format:$date_format.txt_full|html} - {$moment|html} - -
  • + + + {__('studs', 'Download as ical/ics file')} + + {/if} {$i = $i+1} {/foreach}