mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Make the covers on the home page take up no more than 40% of viewport height
This commit is contained in:
parent
97d3c79275
commit
7a56b8e5b7
@ -23,7 +23,7 @@ add_extra_css(def():
|
||||
sel = f'.{CLASS_NAME} '
|
||||
ans += build_rule(f'{sel} h2', padding='1rem', font_size='1.5em')
|
||||
sel += '.recently-read img'
|
||||
ans += build_rule(sel, max_width='25vw', height='auto', border_radius=f'{BORDER_RADIUS}px')
|
||||
ans += build_rule(sel, max_width='25vw', max_height='40vh', height='auto', border_radius=f'{BORDER_RADIUS}px')
|
||||
ans += build_rule(f'{sel}:hover', transform='scale(1.2)')
|
||||
ans += build_rule(f'{sel}:active', transform='scale(2)')
|
||||
return ans
|
||||
|
Loading…
x
Reference in New Issue
Block a user