mirror of https://github.com/kiwix/libkiwix.git
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:
parent
a126482d69
commit
1657b1744c
|
@ -29,7 +29,7 @@
|
|||
box-shadow: 2px 2px 5px 0px #ccc;
|
||||
}
|
||||
.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 {
|
||||
padding: 0 55px 0 0;overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||||
font-size: 18px; color: #0645ad; line-height: 1em;
|
||||
|
|
Loading…
Reference in New Issue