mirror of https://github.com/kiwix/libkiwix.git
Added Bookeen/Cybook CSS/JS hack for taskbar on ereader and increased taskbar size on hdpi screens
This commit is contained in:
parent
64361126d7
commit
950637abef
|
@ -16,4 +16,9 @@
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/* cybook hack */
|
||||||
|
if (navigator.userAgent.indexOf("bookeen/cybook") != -1) {
|
||||||
|
jk("html").addClass("cybook");
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,39 +1,19 @@
|
||||||
#kiwixtoolbar {
|
#kiwixtoolbar {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
padding: 4px 15px 5px 15px;
|
padding: .5em;
|
||||||
margin-left: -10px;
|
|
||||||
margin-right: -10px;
|
|
||||||
left:0;
|
left:0;
|
||||||
right:0;
|
right:0;
|
||||||
top: 0px;
|
top: 0;
|
||||||
z-index:100;
|
z-index:100;
|
||||||
}
|
}
|
||||||
|
|
||||||
#kiwixhome {
|
|
||||||
margin: 0px;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
#kiwixlibrary {
|
|
||||||
margin: 0px;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
#kiwixrandom {
|
|
||||||
margin: 0px;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
#kiwixsearchbox {
|
#kiwixsearchbox {
|
||||||
margin: 0px;
|
width: 20em;
|
||||||
float: right;
|
|
||||||
width: 300px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#kiwixsearch {
|
.kiwixsearch {
|
||||||
margin: 0px;
|
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}s
|
||||||
|
|
||||||
/* Try to fix buggy stuff in jquery-ui autocomplete */
|
/* Try to fix buggy stuff in jquery-ui autocomplete */
|
||||||
#ui-id-1 {
|
#ui-id-1 {
|
||||||
|
@ -44,3 +24,26 @@
|
||||||
li.ui-state-focus {
|
li.ui-state-focus {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Specific CSS for Bookeen Cybook device (800x600 B&W ereader) */
|
||||||
|
.cybook #kiwixtoolbar button, .cybook #kiwixtoolbar input {
|
||||||
|
font-size: 1.5em;
|
||||||
|
}
|
||||||
|
.cybook #kiwixsearchbox {
|
||||||
|
width: 8em;
|
||||||
|
}
|
||||||
|
.cybook a {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min--moz-device-pixel-ratio: 1.5),
|
||||||
|
only screen and (-o-min-device-pixel-ratio: 1.5/1),
|
||||||
|
only screen and (-webkit-min-device-pixel-ratio: 1.5),
|
||||||
|
only screen and (min-device-pixel-ratio: 1.5) {
|
||||||
|
#kiwixtoolbar button, #kiwixtoolbar input {
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
|
#kiwixsearchbox {
|
||||||
|
width: 7em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -2,10 +2,14 @@
|
||||||
<link type="text/css" href="/skin/jquery-ui/jquery-ui.theme.min.css" rel="Stylesheet" />
|
<link type="text/css" href="/skin/jquery-ui/jquery-ui.theme.min.css" rel="Stylesheet" />
|
||||||
<span class="kiwix">
|
<span class="kiwix">
|
||||||
<span id="kiwixtoolbar" class="ui-widget-header">
|
<span id="kiwixtoolbar" class="ui-widget-header">
|
||||||
<form action="/" method="GET" style="float: left; font-size: 1em !important; height: 1px;"><input type="submit" value="Library" id="kiwixlibrary" /></form>
|
<a href="/"><button>Home</button></a>
|
||||||
<form action="/__CONTENT__/" method="GET" style="float: left; font-size: 1em !important; height: 1px;"><input type="submit" value="Home" id="kiwixhome" /></form>
|
<a href="/__CONTENT__/"><button>Library</button></a>
|
||||||
<form action="/random" method="GET" style="float: left; font-size: 1em !important; height: 1px;"><input type="submit" value="Random" id="kiwixrandom" /><input type="hidden" name="content" value="__CONTENT__" /></form>
|
<a href="/random"><button>Random</button></a>
|
||||||
<form method="GET" action="/search" id="kiwixsearchform" style="font-size: 1em !important; height: 1px; "><input type="hidden" name="content" value="__CONTENT__" /><input type="submit" id="kiwixsearch" value="Search" /><input type="text" id="kiwixsearchbox" name="pattern" /></form>
|
<form class="kiwixsearch" method="GET" action="/search" id="kiwixsearchform">
|
||||||
|
<input type="hidden" name="content" value="__CONTENT__" />
|
||||||
|
<input autocomplete="off" class="ui-autocomplete-input" id="kiwixsearchbox" name="pattern" type="text">
|
||||||
|
<input type="submit" value="Search">
|
||||||
|
</form>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<div style="display: block; height: 35px;"></div>
|
<div style="display: block; height: 2em;"></div>
|
||||||
|
|
Loading…
Reference in New Issue