mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
0f2d23ae3c
commit
d8dae7a7f2
@ -25,7 +25,7 @@ def cover_grid_css():
|
||||
sel, margin=f'{margin}{margin_unit}', display='flex', align_content='flex-end', align_items='flex-end', justify_content='space-around',
|
||||
max_width=THUMBNAIL_MAX_WIDTH+'px', max_height=THUMBNAIL_MAX_HEIGHT+'px', cursor='pointer',
|
||||
min_width=f'{THUMBNAIL_MAX_WIDTH // 2}px', min_height=f'{THUMBNAIL_MAX_HEIGHT // 2}px')
|
||||
mq = '@media all and (orientation: {orient}) {{ {sel} {{ width: 21{dim}; height: 28{dim} }} }}'
|
||||
mq = '@media all and (orientation: {orient}) {{ {sel} {{ width: 21{dim}; height: 28{dim} }} }}\n'
|
||||
for dim in 'vw', 'vh':
|
||||
ans += mq.format(sel=sel, dim=dim, orient='portrait' if dim is 'vw' else 'landscape')
|
||||
ans += build_rule(f'{sel}:hover', transform='scale(1.2)')
|
||||
|
Loading…
x
Reference in New Issue
Block a user