mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Content server; Fix regression that caused series name in book details view not not be blue to indicate it is clickable
This commit is contained in:
parent
77f240a4d3
commit
fd2eb6b6d8
@ -282,6 +282,7 @@ def render_metadata(mi, table, book_id): # {{{
|
|||||||
a = a[0]
|
a = a[0]
|
||||||
a.setAttribute('href', href_for_search(field, val))
|
a.setAttribute('href', href_for_search(field, val))
|
||||||
a.setAttribute('title', _('Click to see books with {0}: {1}').format(name, val))
|
a.setAttribute('title', _('Click to see books with {0}: {1}').format(name, val))
|
||||||
|
a.setAttribute('class', 'blue-link')
|
||||||
else:
|
else:
|
||||||
print("WARNING: Translation of series template is incorrect as it does not have an <a> tag")
|
print("WARNING: Translation of series template is incorrect as it does not have an <a> tag")
|
||||||
table.lastChild.lastChild.appendChild(s)
|
table.lastChild.lastChild.appendChild(s)
|
||||||
|
@ -206,7 +206,7 @@ def scroll_tree_item_into_view(item):
|
|||||||
add_extra_css(def():
|
add_extra_css(def():
|
||||||
ans = 'a, button:focus { outline: none }; a, button::-moz-focus-inner { border: 0 }\n'
|
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 += '.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_button.style + '\n'
|
ans += create_button.style + '\n'
|
||||||
ans += create_spinner.style + '\n'
|
ans += create_spinner.style + '\n'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user