mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Center field headers vertically
This commit is contained in:
parent
3fbddc692e
commit
97e337784d
@ -327,8 +327,10 @@ def render_metadata(mi, table, book_id, field_list=None): # {{{
|
||||
|
||||
add_extra_css(def():
|
||||
sel = '.' + CLASS_NAME + ' '
|
||||
style = build_rule(sel + 'table.metadata td:first-of-type', font_weight='bold', padding_right='1em', white_space='nowrap')
|
||||
style = build_rule(sel + 'table.metadata td:last-of-type', overflow_wrap='break-word')
|
||||
style = ''
|
||||
style += build_rule(sel + 'table.metadata td', vertical_align='middle')
|
||||
style += build_rule(sel + 'table.metadata td:first-of-type', font_weight='bold', padding_right='1em', white_space='nowrap')
|
||||
style += build_rule(sel + 'table.metadata td:last-of-type', overflow_wrap='break-word')
|
||||
style += build_rule(sel + 'table.metadata a[href]', color='blue')
|
||||
style += build_rule(sel + 'table.metadata a[href]:hover', color=get_color('window-hover-foreground'))
|
||||
style += build_rule(sel + 'table.metadata a[href]:active', color=get_color('window-hover-foreground'), transform='scale(1.5)')
|
||||
|
Loading…
x
Reference in New Issue
Block a user