Make the covers on the home page take up no more than 40% of viewport height

This commit is contained in:
Kovid Goyal
2017-05-11 11:04:34 +05:30
parent 97d3c79275
commit 7a56b8e5b7
+1 -1
View File
@@ -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