diff --git a/resources/catalog/stylesheet.css b/resources/catalog/stylesheet.css index 4f9ca9ac41..ea01aeb43b 100644 --- a/resources/catalog/stylesheet.css +++ b/resources/catalog/stylesheet.css @@ -1,102 +1,104 @@ -body { background-color: white; } +body { + background-color: white; +} -p.title { - margin-top:0em; - margin-bottom:1em; - text-align:center; - font-style:italic; - font-size:xx-large; - border-bottom: solid black 4px; - } +p.title { + margin-top: 0em; + margin-bottom: 1em; + text-align: center; + font-style: italic; + font-size: xx-large; + border-bottom: solid black 4px; +} p.author { - margin-top:0em; - margin-bottom:0em; + margin-top: 0em; + margin-bottom: 0em; text-align: left; text-indent: 1em; - font-size:large; - } + font-size: large; +} p.tags { - margin-top:0em; - margin-bottom:0em; + margin-top: 0em; + margin-bottom: 0em; text-align: left; text-indent: 1em; - font-size:small; - } + font-size: small; +} p.description { - text-align:left; - font-style:normal; + text-align: left; + font-style: normal; margin-top: 0em; - } +} p.date_index { - font-size:x-large; - text-align:center; - font-weight:bold; - margin-top:1em; - margin-bottom:0px; - } + font-size: x-large; + text-align: center; + font-weight: bold; + margin-top: 1em; + margin-bottom: 0px; +} p.letter_index { - font-size:x-large; - text-align:center; - font-weight:bold; - margin-top:1em; - margin-bottom:0px; - } + font-size: x-large; + text-align: center; + font-weight: bold; + margin-top: 1em; + margin-bottom: 0px; +} p.author_index { - font-size:large; - text-align:left; - margin-top:0px; - margin-bottom:0px; + font-size: large; + text-align: left; + margin-top: 0px; + margin-bottom: 0px; text-indent: 0em; - } +} p.series { text-align: left; - margin-top:0px; - margin-bottom:0px; - margin-left:2em; - text-indent:-2em; - } + margin-top: 0px; + margin-bottom: 0px; + margin-left: 2em; + text-indent: -2em; +} p.read_book { - text-align:left; - margin-top:0px; - margin-bottom:0px; - margin-left:2em; - text-indent:-2em; - } + text-align: left; + margin-top: 0px; + margin-bottom: 0px; + margin-left: 2em; + text-indent: -2em; +} p.unread_book { - text-align:left; - margin-top:0px; - margin-bottom:0px; - margin-left:2em; - text-indent:-2em; - } + text-align: left; + margin-top: 0px; + margin-bottom: 0px; + margin-left: 2em; + text-indent: -2em; +} p.date_read { - text-align:left; - margin-top:0px; - margin-bottom:0px; - margin-left:6em; - text-indent:-6em; - } + text-align: left; + margin-top: 0px; + margin-bottom: 0px; + margin-left: 6em; + text-indent: -6em; +} hr.series_divider { - width:50%; - margin-left:1em; - margin-top:0em; - margin-bottom:0em; - } + width: 50%; + margin-left: 1em; + margin-top: 0em; + margin-bottom: 0em; +} hr.annotations_divider { - width:50%; - margin-left:1em; - margin-top:0em; - margin-bottom:0em; - } + width: 50%; + margin-left: 1em; + margin-top: 0em; + margin-bottom: 0em; +} \ No newline at end of file diff --git a/resources/content_server/gui.css b/resources/content_server/gui.css index 1bcc4e1eb0..d7a3eda51e 100644 --- a/resources/content_server/gui.css +++ b/resources/content_server/gui.css @@ -1,142 +1,157 @@ body { - background-color: white; + background-color: white; } #banner { - position: absolute; - left: 5px; top: 0px; + position: absolute; + left: 5px; + top: 0px; } /* Search bar */ #search_box { - width: 201px; - height: 31px; - background: url(bg_search_box.png); - top: 5px; right: 20px; - position: absolute; + width: 201px; + height: 31px; + background: url(bg_search_box.png); + top: 5px; + right: 20px; + position: absolute; } + #search_box #s { - float: left; - padding: 0; - margin: 6px 0 0 6px; - border-width: 0px; - font-size: 16px; - width: 159px; - background: transparent; + float: left; + padding: 0; + margin: 6px 0 0 6px; + border-width: 0px; + font-size: 16px; + width: 159px; + background: transparent; } + #search_box #go { - float: right; - margin: 3px 4px 0 0; + float: right; + margin: 3px 4px 0 0; } /* Count bar */ #count_bar { - position: absolute; - right: 30px; - top: 80px; - font-size:smaller; - padding-bottom: 5px; + position: absolute; + right: 30px; + top: 80px; + font-size: smaller; + padding-bottom: 5px; } #count_bar * img { - cursor: pointer; + cursor: pointer; } -#count { cursor: default;} +#count { + cursor: default; +} /* Styles for the book list */ #main { - width:95%; - overflow: auto; - border: solid thin black; - position: absolute; - top: 115px; left: 10px; - z-index: 1; + width: 95%; + overflow: auto; + border: solid thin black; + position: absolute; + top: 115px; + left: 10px; + z-index: 1; } table#book_list thead tr td { - width: 100%; - padding-right: 1em; padding-left: 1em; - text-align: center; - font-weight: bold; - font-size: 130%; - border-bottom: thick solid black; - border-top: thick solid black; - cursor: pointer; - font-family: serif; - padding-top: 0.5ex; padding-bottom: 0.5ex; + width: 100%; + padding-right: 1em; + padding-left: 1em; + text-align: center; + font-weight: bold; + font-size: 130%; + border-bottom: thick solid black; + border-top: thick solid black; + cursor: pointer; + font-family: serif; + padding-top: 0.5ex; + padding-bottom: 0.5ex; } table#book_list tbody tr td { - padding-right: 1em; padding-left: 1em; - /*border-bottom: thin solid black;*/ - padding-bottom: 0.7ex; padding-top: 0.7ex; - margin: 0pt; - cursor: pointer; - + padding-right: 1em; + padding-left: 1em; + /*border-bottom: thin solid black;*/ + padding-bottom: 0.7ex; + padding-top: 0.7ex; + margin: 0pt; + cursor: pointer; } table#book_list * .sort_indicator { - visibility:hidden; - color: #9f9f9f; + visibility: hidden; + color: #9f9f9f; } table#book_list * .rating { - color: #3fbbe4; + color: #3fbbe4; } table#book_list * span.subtitle { - font-size: smaller; + font-size: smaller; } table#book_list * a.format { - text-decoration: none; - color: blue; - font-family: monospace; + text-decoration: none; + color: blue; + font-family: monospace; } table#book_list * a.format:hover { - color: red; + color: red; } table#book_list * a.format:visited { - color: blue; + color: blue; } table#book_list * .comments { - font-size: smaller; - display: none; + font-size: smaller; + display: none; } + /* Loading message */ #loading { - top: 10px; left: 10px; - position: absolute; - font-size: 160%; font-family: monospace; - text-align: center; - visibility: hidden; - z-index: 10000; - background-color: #aaaaaa; - opacity: 0.8; - + top: 10px; + left: 10px; + position: absolute; + font-size: 160%; + font-family: monospace; + text-align: center; + visibility: hidden; + z-index: 10000; + background-color: #aaaaaa; + opacity: 0.8; } #loading div { - top: 50%; position: relative; + top: 50%; + position: relative; } #cover_pane { - overflow: auto; - position: absolute; - visibility: hidden; - text-align: right; - z-index: 2; - margin: 0pt; padding: 0pt; border-width: 0pt; -} + overflow: auto; + position: absolute; + visibility: hidden; + text-align: right; + z-index: 2; + margin: 0pt; + padding: 0pt; + border-width: 0pt; +} \ No newline at end of file diff --git a/resources/content_server/index.html b/resources/content_server/index.html index f9f0aff491..ff11acc719 100644 --- a/resources/content_server/index.html +++ b/resources/content_server/index.html @@ -1,49 +1,60 @@ - -
-
- This document contains a demonstration of the capabilities of html2lrf, the HTML to LRF converter from calibre. To obtain calibre visit
http://calibre-ebook.com
-
This document contains a demonstration of the capabilities of html2lrf, the HTML to LRF
+converter from calibre. To obtain calibre visit
+http://calibre-ebook.com
-
A matrix | |||
Column 1 | Column 2 | Column 3 | |
Row 1 | (1, 1) | ||
Row 2 | (2, 2) | ||
Row 3 | (3, 3) |
- html2lrf supports both rowspan and colspan, but no other HTML table attributes, as it uses its own algorithm to determine optimal placement of cells. -
-- Note that if you have custom fonts on your reader, the table may not be properly aligned. Also html2lrf does not support nested tables. -
-- On the next page you'll see a real life example taken from a Project Gutenberg text with no modifications. It shows off html2lrf's handling of rowspan and colspan. -
-PAGE | |||
Preface | v | ||
List of Works of Reference | vii | ||
List of Illustrations | xi | ||
Chapter | I. | History of the Foundation | 3 |
II. | Exterior of the Church | 25 | |
III. | Interior of the Church | 33 | |
IV. | St. Bartholomew-the-Less and the Hospital | 63 | |
Appendix | I. | The Priory Seals | 73 |
II. | The Priors and Rectors | 77 | |
III. | Inventory of Vestments, etc. | 79 | |
IV. | The Organ | 80 | |
Index | 83 |
-
- A simple paragraph of formatted - text, with a ruled line following it. - Superscripts and Subscripts. -
-A - similar - paragraph, but now using - CSS - to perform the text formatting.
-A paragraph containing a <blockquote> -
This is blockquoted text. It is rendered in a separate block with margins.The above text should be distinct from the rest of the paragraph. - -
A very indented paragraph
-An unindented paragraph
-A default indented paragraph
--
- Here I demonstrate the use of inline images in the midst of text. Here is a small image embedded in a sentence. Now we have a slightly larger image that is automatically put in its own block
and finally we have a large image which is put on a page by itself. Try changing sizes from S to M to L and see how the images behave.
-
-
This LRF file has been prepared by embedding Times New Roman and Andale Mono - as the default serif and monospace fonts. This allows it to correctly display - non English characters such as:
-
- Note that embedding fonts in LRF files slows down page turns slightly.
-
-
-
beautiful image based dropcaps to emphasize this
- paragraph. Image based dropcaps are specified by adding the
class = 'libprs500_dropcaps'
- attribute to an <img>
tag.
This is a plain text based dropcaps. It - is not nearly as dramatic, but easier to code ;-) -
-This is an Example of small-caps. - It can also be used to highlight the start of a paragraph very effectively. -
-A paragraph with a hanging indent. This is especially
- useful for highly structured text like verse, or dialogue.
-
+ A matrix+ |
+ |||
+ | Column 1 | +Column 2 | +Column 3 | +
Row 1 | +
+ (1, 1) + | ||
Row 2 | ++ |
+ (2, 2) + |
+ + |
Row 3 | ++ | + |
+ (3, 3) + |
+
html2lrf supports both rowspan and colspan, but no other HTML +table attributes, as it uses its own algorithm to determine optimal +placement of cells.
+Note that if you have custom fonts on your reader, the table may +not be properly aligned. Also html2lrf does not support nested tables.
+On the next page you'll see a +real life example taken from a Project Gutenberg text with no +modifications. It shows off html2lrf's handling of rowspan and colspan. +
++ | PAGE | +||
Preface | +v | +||
List of Works of Reference | +vii | +||
List of Illustrations | +xi | +||
Chapter | +I. | +History of the Foundation | +3 | +
II. | +Exterior of the Church | +25 | +|
III. | +Interior of the Church | +33 | +|
IV. | +St. Bartholomew-the-Less and the Hospital | +63 | +|
Appendix | +I. | +The Priory Seals | +73 | +
II. | +The Priors and Rectors | +77 | +|
III. | +Inventory of Vestments, etc. | +79 | +|
IV. | +The Organ | +80 | +|
Index | +83 | +
- html2lrf follows links in HTML files that point to other files, recursively. Thus it can be used to convert a whole tree of HTML files into a single LRF file.
-
-
-
A simple paragraph of formatted text, with a +ruled line following it. Superscripts and Subscripts. +
+A similar paragraph, but +now using CSS to perform the text +formatting.
+A paragraph containing a <blockquote> +
This is blockquoted text. It is rendered in a +separate block with margins.+The above text should be distinct from the rest of the paragraph. +
A very indented paragraph
+An unindented paragraph
+A default indented paragraph
++
Here I demonstrate the use of inline images in the midst of text.
+Here is a small image embedded in a sentence.
+Now we have a slightly larger image that is automatically put in its own
+block
and finally
+we have a large image which is put on a page by itself. Try changing
+sizes from S to M to L and see how the images behave.
+
This LRF file has been prepared by embedding Times New Roman and +Andale Mono as the default serif and monospace fonts. This allows it to +correctly display non English characters such as:
+Note that embedding fonts in LRF files slows down page turns
+slightly.
+
+
beautiful image
+based dropcaps to emphasize this paragraph. Image based dropcaps are
+specified by adding the
class = 'libprs500_dropcaps'
+attribute to an <img>
tag.
+
This is a plain text based dropcaps. It is not +nearly as dramatic, but easier to code ;-)
+This is an Example +of small-caps. It can also be used to highlight the start of a paragraph +very effectively.
+A paragraph with a hanging indent. This is
+especially useful for highly structured text like verse, or dialogue.
+
+
html2lrf follows links in
+HTML files that point to other files, recursively. Thus it can be used
+to convert a whole tree of HTML files into a single LRF file.
+
+
Written by Kovid Goyal
-A very short ebook to demonstrate the use of XPath.
-Written by Kovid Goyal
+A very short ebook to demonstrate the use of XPath.
+This is a truly fascinating chapter.
+This is a truly fascinating chapter.
-A worthy continuation of a fine tradition.
- +A worthy continuation of a fine tradition.
+