Skip to content

Commit 9ec2a48

Browse files
committedSep 12, 2015
fix image resizing, typeset paragraphs similar to the original book, use Gentium black for titles
1 parent 3313741 commit 9ec2a48

File tree

3 files changed

+63
-55
lines changed

3 files changed

+63
-55
lines changed
 
115 KB
Loading

‎nikola/data/samplesite/stories/dr-nikolas-vendetta.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Author of "Dr. Nikola," "The Beautiful White Devil," etc., etc.
2121
Title: A Bid for Fortune
2222
or Dr. Nikola's Vendetta
2323

24-
Author: Guy Boothby
24+
Author: `Guy Boothby <http://www.gutenberg.org/ebooks/author/3587>`__
2525

2626
Release Date: May 29, 2007 [EBook #21640]
2727

@@ -46,8 +46,10 @@ PART I
4646
PROLOGUE
4747
--------
4848

49+
.. role:: smallcaps
4950

50-
The manager of the new Imperial Restaurant on the Thames Embankment went
51+
52+
:smallcaps:`The` manager of the new Imperial Restaurant on the Thames Embankment went
5153
into his luxurious private office and shut the door. Having done so, he
5254
first scratched his chin reflectively, and then took a letter from the
5355
drawer in which it had reposed for more than two months and perused it
@@ -462,4 +464,4 @@ Sailor* public-house, East India Dock Road."
462464

463465
------------------------
464466

465-
You can read the rest of "A Bid For Fortune; Or, Dr. Nikola's Vendetta" at `Archive.org <https://archive.org/stream/bidforfortune00bootiala#page/14/mode/2up>`__
467+
You can read the rest of "A Bid For Fortune; Or, Dr. Nikola's Vendetta" at `Project Gutenberg <http://www.gutenberg.org/ebooks/21640>`__

‎nikola/data/samplesite/templates/book.tmpl

+58-52
Original file line numberDiff line numberDiff line change
@@ -9,61 +9,67 @@
99
<script src="/assets/js/jquery.min.js"></script>
1010
<script src="//cdnjs.cloudflare.com/ajax/libs/Flowtype.js/1.1.0/flowtype.min.js"></script>
1111
<link href='https://fonts.googleapis.com/css?family=Gentium+Book+Basic' rel='stylesheet' type='text/css'>
12-
<link href='https://fonts.googleapis.com/css?family=Rye' rel='stylesheet' type='text/css'>
13-
<style>
12+
<style>
1413
p {
1514
text-align: justify;
1615
}
17-
.chapter {
18-
width: 100%;
19-
padding: 10px 10px;
20-
-webkit-column-gap: 40px;
21-
-webkit-column-width: 400px;
22-
-webkit-column-count: 2;
23-
-webkit-column-rule: 1px solid #ddd;
24-
height: 90vh;
25-
font-family: 'Gentium Book Basic', serif;
26-
font-color: #2d2e2e;
27-
}
28-
29-
div.frame {
30-
overflow: hidden;
31-
padding: 0;
32-
margin: 0;
33-
}
34-
div.scrolling-cont {
35-
overflow-x: scroll;
36-
padding: 0;
37-
margin: 0;
38-
}
39-
40-
h1, h2, h3, h4 {
41-
text-align: center;
42-
width: 100%;
43-
font-family: 'Rye', cursive;
44-
font-size: 120%;
45-
}
46-
47-
h1 {
48-
font-size: 150%;
49-
}
50-
51-
.figure {
52-
height: 90vh;
53-
padding-top: 10vh;
54-
margin: 0;
55-
}
56-
57-
.illus1, .front {
58-
margin-left: auto;
59-
margin-right: auto;
60-
max-height: 70vh;
61-
width: 100%;
62-
}
63-
64-
div.topic {
65-
margin: 0;
66-
}
16+
.smallcaps {
17+
font-variant: small-caps;
18+
}
19+
.chapter {
20+
width: 100%;
21+
padding: 10px 10px;
22+
-webkit-column-gap: 40px;
23+
-webkit-column-width: 400px;
24+
-webkit-column-count: 2;
25+
-webkit-column-rule: 1px solid #ddd;
26+
height: 90vh;
27+
font-family: 'Gentium Book Basic', serif;
28+
font-color: #2d2e2e;
29+
font-weight: 500;
30+
}
31+
div.frame {
32+
overflow: hidden;
33+
padding: 0;
34+
margin: 0;
35+
}
36+
div.scrolling-cont {
37+
overflow-x: scroll;
38+
padding: 0;
39+
margin: 0;
40+
}
41+
h1,
42+
h2,
43+
h3,
44+
h4 {
45+
text-align: center;
46+
width: 100%;
47+
font-family: 'Gentium Book Basic', serif;
48+
font-size: 120%;
49+
font-weight: 900;
50+
}
51+
h1 {
52+
font-size: 150%;
53+
}
54+
.figure {
55+
height: 88vh;
56+
margin: 0;
57+
}
58+
.illus1,
59+
.front {
60+
margin-left: auto;
61+
margin-right: auto;
62+
max-width: 100%;
63+
max-height: 100%;
64+
height: auto;
65+
}
66+
div.topic {
67+
margin: 0;
68+
}
69+
div.section>p {
70+
text-indent: 1em;
71+
margin-bottom: 0;
72+
}
6773
</style>
6874
</%block>
6975

0 commit comments

Comments
 (0)
Please sign in to comment.