Skip to content

Commit b05eb78

Browse files
committedSep 12, 2015
tweaks
1 parent 9ec2a48 commit b05eb78

File tree

2 files changed

+30
-21
lines changed

2 files changed

+30
-21
lines changed
 

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
.. hyphenate: yeah
33
.. template: book.tmpl
44
5-
By GUY BOOTHBY
5+
.. class:: subtitle
6+
7+
By `GUY BOOTHBY <http://www.gutenberg.org/ebooks/author/3587>`__
68

79
Author of "Dr. Nikola," "The Beautiful White Devil," etc., etc.
810

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

+27-20
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
.chapter {
2020
width: 100%;
21-
padding: 10px 10px;
21+
padding: 10px;
2222
-webkit-column-gap: 40px;
2323
-webkit-column-width: 400px;
2424
-webkit-column-count: 2;
@@ -51,6 +51,11 @@
5151
h1 {
5252
font-size: 150%;
5353
}
54+
55+
.subtitle {
56+
text-align: center;
57+
width: 100%;
58+
}
5459
.figure {
5560
height: 88vh;
5661
margin: 0;
@@ -78,7 +83,7 @@
7883
<div class="frame">
7984
<div class="scrolling-cont" id="scrolling-cont" name="scrolling-cont">
8085
<div class="e-content entry-content chapter" itemprop="articleBody text">
81-
${pheader.html_title()}
86+
<h1>${post.title()}</h1>
8287
${post.text()}
8388
</div>
8489
</div>
@@ -91,25 +96,27 @@
9196
%endif
9297
${helper.mathjax_script(post)}
9398
<script>
94-
$('#scrolling-cont').flowtype({
95-
minimum : 500,
96-
maximum : 1200,
97-
minFont : 20,
98-
maxFont : 40,
99-
fontRatio : 50
100-
});
101-
$(document).ready(function() {
102-
var elem = $('#scrolling-cont');
103-
elem.click(function(event) {
104-
var x1 = elem.position().left;
105-
var pw = elem.width() + 20;
106-
var x2 = event.pageX;
107-
if (x2-x1 < pw/2) {
108-
pw = -pw;
109-
}
110-
elem.animate({scrollLeft: '+='+pw}, 500)
99+
$('#scrolling-cont').flowtype({
100+
minimum: 500,
101+
maximum: 1200,
102+
minFont: 20,
103+
maxFont: 40,
104+
fontRatio: 50
105+
});
106+
$(document).ready(function() {
107+
var elem = $('#scrolling-cont');
108+
elem.click(function(event) {
109+
var x1 = elem.position().left;
110+
var pw = elem.width() + 20;
111+
var x2 = event.pageX;
112+
if (x2 - x1 < pw / 2) {
113+
pw = -pw;
114+
}
115+
elem.animate({
116+
scrollLeft: '+=' + pw
117+
}, 500)
118+
});
111119
});
112-
});
113120
</script>
114121
</article>
115122

0 commit comments

Comments
 (0)
Please sign in to comment.