Set fixed size for favicon in home page listing

While [spec](https://wiki.openzim.org/wiki/Metadata#Favicon) says that the favicon
should be a 48x48 image, ZIM creators might not respect it.

If a ZIM contains a larger favicon, the UI is broken. This fixes it ans ensures all
favicon have equal sizes, removing the unpleasing lack of harmony that we can see sometimes.

Note that ZIM will smaller size favicon would get blurry as those would be upscaled.
This commit is contained in:
renaud gaudin 2020-08-05 15:54:49 +02:00
parent a126482d69
commit 1657b1744c
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@
box-shadow: 2px 2px 5px 0px #ccc; box-shadow: 2px 2px 5px 0px #ccc;
} }
.book:hover { background-color: #F9F9F9; box-shadow: none;} .book:hover { background-color: #F9F9F9; box-shadow: none;}
.book__background { background-repeat: no-repeat; background-size: auto; background-position: top right; } .book__background { background-repeat: no-repeat; background-size: 48px 48px; background-position: top right; }
.book__title { .book__title {
padding: 0 55px 0 0;overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 55px 0 0;overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
font-size: 18px; color: #0645ad; line-height: 1em; font-size: 18px; color: #0645ad; line-height: 1em;