mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 18:23:47 +02:00
Center field headers vertically
This commit is contained in:
parent
3fbddc692e
commit
97e337784d
1 changed files with 4 additions and 2 deletions
|
|
@ -327,8 +327,10 @@ def process_field(field, fm):
|
|||
|
||||
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…
Reference in a new issue