mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
/browse: A grid layout for the toplevel page
This commit is contained in:
parent
7362cc28f4
commit
fa9f2134c0
@ -187,6 +187,9 @@ h2.library_name {
|
|||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toplevel li {
|
.toplevel li {
|
||||||
@ -194,15 +197,20 @@ h2.library_name {
|
|||||||
padding: 0.75em;
|
padding: 0.75em;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: larger;
|
font-size: larger;
|
||||||
|
float: left;
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
-moz-border-radius: 15px;
|
-moz-border-radius: 15px;
|
||||||
-webkit-border-radius: 15px;
|
-webkit-border-radius: 15px;
|
||||||
|
display: inline;
|
||||||
|
width: 250px;
|
||||||
|
height: 48px;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.toplevel li img {
|
.toplevel li img {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin-right: 2em;
|
margin-right: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toplevel li:hover {
|
.toplevel li:hover {
|
||||||
|
@ -81,6 +81,12 @@ function toplevel() {
|
|||||||
var href = $(this).children("span").html();
|
var href = $(this).children("span").html();
|
||||||
window.location = href;
|
window.location = href;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
var last = $(".toplevel li").last();
|
||||||
|
var bottom = last.position().top + last.height();
|
||||||
|
$("#main").height(Math.max(680, bottom+150));
|
||||||
|
|
||||||
}
|
}
|
||||||
// }}}
|
// }}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user