From af7598ff2f740499abcedf3954757e348b244457 Mon Sep 17 00:00:00 2001
From: Kovid Goyal
Date: Sun, 10 Oct 2010 20:43:08 -0600
Subject: [PATCH 1/6] Make the calibre logo clickable and have the header
alyout preserved on font resizing in firefox
---
resources/content_server/browse/browse.css | 28 +++++++++++++++++----
resources/content_server/browse/browse.html | 7 ++++--
resources/content_server/browse/browse.js | 1 +
3 files changed, 29 insertions(+), 7 deletions(-)
diff --git a/resources/content_server/browse/browse.css b/resources/content_server/browse/browse.css
index 22eee3e05e..f417b15530 100644
--- a/resources/content_server/browse/browse.css
+++ b/resources/content_server/browse/browse.css
@@ -53,15 +53,22 @@ body {
text-align: center;
}
+#nav-container {
+ position: relative;
+ height: 130px;
+ top: -130px;
+ left: 0%;
+}
+
ul#primary-nav {
display: block;
margin-right: 60px;
text-align: right;
- margin-top: 60px;
+ margin-top: 90px;
line-height: 20px;
cursor: default;
position: relative;
- top: -100px;
+ top: -2ex;
}
ul#primary-nav li {
@@ -74,8 +81,8 @@ ul#primary-nav li a {
color: white;
text-decoration: none;
font-variant: small-caps;
- /*text-transform: uppercase;*/
- font-size: 80%;
+ /*text-transform: uppercase;
+ font-size: 80%;*/
font-weight: bold;
white-space: nowrap;
text-shadow: #27211b 2px 2px 2px;
@@ -94,10 +101,20 @@ ul#primary-nav li a:hover {
height: 38px;
overflow: hidden;
position: relative;
- top: -230px;
+ top: -260px;
left: 65%;
}
+#calibre-home-link {
+ position: relative;
+ top: -298px;
+ left: 0%;
+ z-index: 2;
+ height: 130px;
+ width: 230px;
+ cursor: pointer;
+}
+
h2.library_name {
font-family: monospace;
font-size: 50px;
@@ -121,6 +138,7 @@ h2.library_name {
/* Sort select {{{ */
.sort_select { float: left; margin-left: 1em; margin-top: 2ex; font-size: small; }
+.sort_select label { font-size: medium; }
/* }}} */
diff --git a/resources/content_server/browse/browse.html b/resources/content_server/browse/browse.html
index 3f8002e303..081cd5e30b 100644
--- a/resources/content_server/browse/browse.html
+++ b/resources/content_server/browse/browse.html
@@ -37,12 +37,14 @@
>→ {library_name} ←
+
+
@@ -68,8 +71,8 @@
diff --git a/resources/content_server/browse/browse.js b/resources/content_server/browse/browse.js
index b917a1646d..5c660e2418 100644
--- a/resources/content_server/browse/browse.js
+++ b/resources/content_server/browse/browse.js
@@ -109,6 +109,7 @@ function init_sort_combobox() {
function init() {
$("#container").corner("30px");
$("#header").corner("30px");
+ $("#calibre-home-link").click(function() { window.location = "http://calibre-ebook.com"; });
init_sort_combobox();
From 1a8f2bd513b418cfed8ccfa0b6e5d365f57c5047 Mon Sep 17 00:00:00 2001
From: Kovid Goyal
Date: Sun, 10 Oct 2010 21:12:56 -0600
Subject: [PATCH 2/6] Add link to go to top level to header. Move library path
to footer
---
resources/content_server/browse/browse.css | 56 +++++++++++++++------
resources/content_server/browse/browse.html | 14 +++++-
2 files changed, 54 insertions(+), 16 deletions(-)
diff --git a/resources/content_server/browse/browse.css b/resources/content_server/browse/browse.css
index f417b15530..4c36f36202 100644
--- a/resources/content_server/browse/browse.css
+++ b/resources/content_server/browse/browse.css
@@ -23,7 +23,18 @@ body {
max-width: 1000px;
min-width: 400px;
min-height: 100px;
- padding-bottom: 30px;
+}
+
+#main {
+ padding-left: 0.5em;
+ padding-right: 0.5em;
+}
+
+#footer {
+ font-size: small;
+ color: #a6a399;
+ text-align: right;
+ margin-right: 30px;
}
/* Header {{{ */
@@ -36,6 +47,7 @@ body {
font-size: xx-large;
font-family: monospace;
overflow: hidden;
+ z-index: 2;
}
#header .bubble {
@@ -53,6 +65,21 @@ body {
text-align: center;
}
+#header a {
+ text-decoration: none;
+ color: white;
+ cursor: pointer;
+ white-space: nowrap;
+ text-shadow: #27211b 2px 2px 2px;
+}
+
+#header a:hover {
+ background-color: #39a9cf;
+ -moz-border-radius: 5px;
+ -webkit-border-radius: 5px;
+ text-shadow: #27211b 1px 1px 1px;
+}
+
#nav-container {
position: relative;
height: 130px;
@@ -78,22 +105,11 @@ ul#primary-nav li {
ul#primary-nav li a {
padding: 6px;
- color: white;
- text-decoration: none;
font-variant: small-caps;
- /*text-transform: uppercase;
- font-size: 80%;*/
font-weight: bold;
white-space: nowrap;
- text-shadow: #27211b 2px 2px 2px;
}
-ul#primary-nav li a:hover {
- background-color: #39a9cf;
- -moz-border-radius: 5px;
- -webkit-border-radius: 5px;
- text-shadow: #27211b 1px 1px 1px;
-}
#donate {
display: block;
@@ -137,8 +153,18 @@ h2.library_name {
/* Sort select {{{ */
-.sort_select { float: left; margin-left: 1em; margin-top: 2ex; font-size: small; }
-.sort_select label { font-size: medium; }
+.sort_select {
+ float: left;
+ margin-left: 1em;
+ margin-top: 2ex;
+ font-size: small;
+ max-height: 2.75em;
+ overflow: hidden;
+}
+
+.sort_select label {
+ font-size: medium;
+}
/* }}} */
@@ -149,6 +175,8 @@ h2.library_name {
margin-right: 1em;
margin-top: 2ex;
font-size: small;
+ max-height: 2.75em;
+ overflow: hidden;
}
#search_box .search_input { padding: 0.35em }
diff --git a/resources/content_server/browse/browse.html b/resources/content_server/browse/browse.html
index 081cd5e30b..9507850b53 100644
--- a/resources/content_server/browse/browse.html
+++ b/resources/content_server/browse/browse.html
@@ -33,8 +33,8 @@