Skip to content

Commit 22762db

Browse files
committed
work on pdf book formatting
1 parent e45efc8 commit 22762db

File tree

5 files changed

+191
-103
lines changed

5 files changed

+191
-103
lines changed

theme/static/css/base.css

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
*,*:before,*:after{box-sizing:border-box}
2+
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}
3+
html{font-size:18px;color:#222}
4+
body{margin:0;color:#222;font-family:Georgia;line-height:1.43;padding-top:0px}
5+
a{background:transparent;text-decoration:none;border-bottom:1px dotted;color:#444}
6+
hr{height:0;box-sizing:content-box;margin-top:21px;margin-bottom:21px;border:0;border-top:1px solid #eee}
7+
code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}
8+
pre{white-space:pre-wrap}
9+
img{border:0;vertical-align:middle}
10+
legend{padding:0;border:0}
11+
table{border-collapse:collapse;border-spacing:0}
12+
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:"Helvetica Neue","Arial Narrow Bold",sans-serif;font-weight:500;line-height:1.1;color:#000}
13+
h1,h2,h3{margin-top:32px;margin-bottom:6px}
14+
h4,h5,h6{margin-top:10.5px;margin-bottom:10.5px}
15+
h1,.h1{font-size:40px}
16+
h2,.h2{font-size:28px}
17+
h3,.h3{font-size:22px}
18+
h4,.h4{font-size:18px}
19+
h5,.h5{font-size:14px}
20+
h6,.h6{font-size:13px}
21+
p{margin:0 0 10.5px}
22+
ul,ol{margin-top:0;margin-bottom:10.5px}
23+
ul ul,ol ul,ul ol,ol ol{margin-bottom:0}
24+
blockquote{padding:10.5px 21px;margin:0 0 21px;border-left:5px solid #eee}
25+
blockquote p{font-size:18.75px;font-weight:300;line-height:1.25}
26+
code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}
27+
code{padding:2px 4px;font-size:90%;color:#c7254e;white-space:nowrap;background-color:#f9f2f4;border-radius:4px}
28+
pre{display:block;padding:10px;margin:0 0 10.5px;font-size:14px;line-height:1.428571429;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}
29+
pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}
30+
.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}
31+
.container:before,.container:after{display:table;content:" "}
32+
.container:after{clear:both}
33+
.row:before,.row:after{display:table;content:" "}
34+
.row:after{clear:both}
35+
.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{position:relative;min-height:1px;padding-right:15px;padding-left:15px}
36+
.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px}
37+
.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,0.15)}
38+
.clearfix:before,.clearfix:after{display:table;content:" "}
39+
.clearfix:after{clear:both}
40+
table.hidden-md{display:table}
41+
ol.toc a::after{content: leader('.') target-counter(attr(href), page);font-family:"Courier"}
42+
div.chapter{page:standard;prince-page-group:start}
43+
ol.toc li a{border-bottom:none;font-family:"Courier"}
44+
ol.toc{list-style-type:none;margin-left:10px}
45+
ul.toc2{list-style-type:none;margin-left:18px}
46+
ul.toc3{list-style-type:none;margin-left:27px}
47+
pre{font-size:10px}
48+
.highlight-line{background:#ffff00}
49+
img.chapter-cover{margin:0;padding:0;width:100%}
50+
img.shot{width:100%;margin:6px 0 6px 0}
51+
@page:first {
52+
width: 100%;
53+
margin: 0px;
54+
padding: 0px;
55+
size: A4;
56+
@top { content: ""}
57+
@bottom { content: ""}
58+
}
59+
@page {
60+
@top {text-align:right;font-size:9pt;
61+
content:"Full Stack Python: April 2018 Edition"}
62+
@bottom { text-align: right; font-size: 9pt; content: counter(page) }
63+
margin: 0.9in;
64+
size: A4;
65+
}

theme/static/css/epub.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
code{font-size:.8em}
2+
pre{font-size:.8em}

theme/static/css/pdf.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
html{font-size:18px}

0 commit comments

Comments
 (0)