From fd2eb6b6d86ae172a3a343879d831d2688d60ecd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 8 Oct 2019 08:24:12 +0530 Subject: [PATCH] Content server; Fix regression that caused series name in book details view not not be blue to indicate it is clickable --- src/pyj/book_list/book_details.pyj | 1 + src/pyj/widgets.pyj | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyj/book_list/book_details.pyj b/src/pyj/book_list/book_details.pyj index a6f629e054..1761f5a2ad 100644 --- a/src/pyj/book_list/book_details.pyj +++ b/src/pyj/book_list/book_details.pyj @@ -282,6 +282,7 @@ def render_metadata(mi, table, book_id): # {{{ a = a[0] a.setAttribute('href', href_for_search(field, val)) a.setAttribute('title', _('Click to see books with {0}: {1}').format(name, val)) + a.setAttribute('class', 'blue-link') else: print("WARNING: Translation of series template is incorrect as it does not have an tag") table.lastChild.lastChild.appendChild(s) diff --git a/src/pyj/widgets.pyj b/src/pyj/widgets.pyj index 132ac6d5f4..6ce6012552 100644 --- a/src/pyj/widgets.pyj +++ b/src/pyj/widgets.pyj @@ -206,7 +206,7 @@ def scroll_tree_item_into_view(item): add_extra_css(def(): ans = 'a, button:focus { outline: none }; a, button::-moz-focus-inner { border: 0 }\n' ans += '.simple-link { cursor: pointer } .simple-link:hover { color: HC } .simple-link:active { transform: scale(1.5) }\n'.replace('HC', get_color('window-hover-foreground')) - ans += '.blue-link { cursor: pointer; color: COL } .blue-link:hover { color: HC } .blue-link:active { transform: scale(1.5) }\n'.replace('HC', get_color('window-hover-foreground')).replace('COL', get_color('link-foreground')) + ans += '.blue-link { cursor: pointer; color: COL } .blue-link:visited { color: COL} .blue-link:hover { color: HC } .blue-link:active { transform: scale(1.5) }\n'.replace('HC', get_color('window-hover-foreground')).replace(/COL/g, get_color('link-foreground')) ans += create_button.style + '\n' ans += create_button.style + '\n' ans += create_spinner.style + '\n'