From 7a56b8e5b7bad3f9376eb72084997f089be2bccf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 11 May 2017 11:04:34 +0530 Subject: [PATCH] Make the covers on the home page take up no more than 40% of viewport height --- src/pyj/book_list/home.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/book_list/home.pyj b/src/pyj/book_list/home.pyj index b1c2eb1784..1c4b8667d4 100644 --- a/src/pyj/book_list/home.pyj +++ b/src/pyj/book_list/home.pyj @@ -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