From a1070f4818dfa1ba113c87391c4368d4bd0f60d8 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 27 Dec 2022 21:34:46 -0500 Subject: [PATCH] Turn fake link spans into full-fledged buttons --- src/Content/Conversation.php | 14 +++++++------- view/theme/frio/css/style.css | 7 +++++++ view/theme/frio/templates/search_item.tpl | 6 ------ view/theme/vier/style.css | 14 +++++++++----- 4 files changed, 23 insertions(+), 18 deletions(-) diff --git a/src/Content/Conversation.php b/src/Content/Conversation.php index eb9af133c..6c5313fdc 100644 --- a/src/Content/Conversation.php +++ b/src/Content/Conversation.php @@ -234,32 +234,32 @@ class Conversation $likers .= ' ' . $this->l10n->t('and %d other people', $total - $this->config->get('system', 'max_likers')); } - $spanatts = "class=\"fakelink\" onclick=\"openClose('{$verb}list-$id');\""; + $spanatts = "class=\"btn btn-link fakelink\" onclick=\"openClose('{$verb}list-$id');\""; $explikers = ''; switch ($verb) { case 'like': - $phrase = $this->l10n->t('%2$d people like this', $spanatts, $total); + $phrase = $this->l10n->t(' like this', $spanatts, $total); $explikers = $this->l10n->t('%s like this.', $likers); break; case 'dislike': - $phrase = $this->l10n->t('%2$d people don\'t like this', $spanatts, $total); + $phrase = $this->l10n->t(' don\'t like this', $spanatts, $total); $explikers = $this->l10n->t('%s don\'t like this.', $likers); break; case 'attendyes': - $phrase = $this->l10n->t('%2$d people attend', $spanatts, $total); + $phrase = $this->l10n->t(' attend', $spanatts, $total); $explikers = $this->l10n->t('%s attend.', $likers); break; case 'attendno': - $phrase = $this->l10n->t('%2$d people don\'t attend', $spanatts, $total); + $phrase = $this->l10n->t(' don\'t attend', $spanatts, $total); $explikers = $this->l10n->t('%s don\'t attend.', $likers); break; case 'attendmaybe': - $phrase = $this->l10n->t('%2$d people attend maybe', $spanatts, $total); + $phrase = $this->l10n->t(' attend maybe', $spanatts, $total); $explikers = $this->l10n->t('%s attend maybe.', $likers); break; case 'announce': - $phrase = $this->l10n->t('%2$d people reshared this', $spanatts, $total); + $phrase = $this->l10n->t(' reshared this', $spanatts, $total); $explikers = $this->l10n->t('%s reshared this.', $likers); break; } diff --git a/view/theme/frio/css/style.css b/view/theme/frio/css/style.css index be41e330f..4bcee9d10 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -76,6 +76,13 @@ blockquote { .fakelink { cursor: pointer; } +.btn.btn-link.fakelink { + box-shadow: none; + padding: 0 2px; + vertical-align: baseline; + outline-offset: 0; +} + .hidden { display: none !important; } diff --git a/view/theme/frio/templates/search_item.tpl b/view/theme/frio/templates/search_item.tpl index 5a283ce3f..f0ed02b90 100644 --- a/view/theme/frio/templates/search_item.tpl +++ b/view/theme/frio/templates/search_item.tpl @@ -140,12 +140,6 @@

{{* Action buttons to interact with the item (like: like, dislike, share and so on *}} - - {{if $item.threaded}}{{/if}} {{* Buttons for like and dislike *}} diff --git a/view/theme/vier/style.css b/view/theme/vier/style.css index b574a9f3e..ed047c2cf 100644 --- a/view/theme/vier/style.css +++ b/view/theme/vier/style.css @@ -312,17 +312,21 @@ a:hover { } .fakelink { color: #36c; - /* color: #3e3e8c; */ - /* color: #3465A4; */ - /* color: #3E3E8C; */ text-decoration: none; cursor: pointer; } .fakelink:hover { - /* color: blue;*/ - /* color: #005c94; */ text-decoration: underline; } +.btn.btn-link.fakelink { + background: none; + border: none; + box-shadow: none; + padding: 0 2px; + vertical-align: baseline; + outline-offset: 0; +} + pre code { font-family: Courier, monospace; white-space: pre;