Skip to content

Commit 9414972

Browse files
committed
Merge pull request #32 from oreillymedia/styling
started base stylesheet
2 parents 7f45c3f + 6f68d80 commit 9414972

File tree

1 file changed

+61
-21
lines changed

1 file changed

+61
-21
lines changed

samples/default.css

Lines changed: 61 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,78 @@
11
@charset "UTF-8";
22

3-
/* ------------------ INDEX ------------------ */
3+
@page { /* 7x9 trim size */
4+
size: 7in 9.1875in;
5+
margin: 0.75in 1in;
6+
padding-bottom: 0.2in;
7+
}
8+
9+
body.book {
10+
color: cmyk(0%,0%,0%,100%);
11+
text-align: justify;
12+
hyphens: auto;
13+
font-family: "DejaVu-Serif";
14+
}
415

5-
/* setting up an index using the target page numbers */
6-
/* NOT TESTED */
16+
/* (((((((((((((( TITLEPAGE )))))))))))))) */
717

8-
section.index dd {
9-
display: inline;
18+
section.titlepage {
19+
page: titlepage;
1020
}
1121

12-
section.index dd:before {
13-
content: ", ";
22+
section.titlepage h1 {
23+
text-align: center;
1424
}
1525

16-
section.index dd a {
17-
content: target-counter(attr(href, url), page);
26+
h2.author {
27+
text-align: center;
28+
font-style: italic;
1829
}
1930

20-
/* setting up an index using auto-generated counters */
21-
/* NOT TESTED */
31+
/* (((((((((((((( COPYRIGHT )))))))))))))) */
2232

23-
section.index dt {
24-
counter-reset: indexterm;
33+
section.titlepage {
34+
page: copyright;
2535
}
2636

27-
section.index dd {
28-
display: inline;
37+
/* (((((((((((((( DEDICATION )))))))))))))) */
38+
39+
40+
section.dedication {
41+
page: dedication;
2942
}
3043

31-
section.index dd:before {
32-
content: ", ";
44+
section.dedication p {
45+
font-style: italic;
3346
}
3447

35-
section.index dd a {
36-
counter-increment: indexterm;
37-
content:" " counter(indexterm);
38-
}
48+
section.dedication * {
49+
text-align: center;
50+
}
51+
52+
/* (((((((((((((( TOC )))))))))))))) */
53+
54+
nav.toc {
55+
page: toc;
56+
}
57+
58+
nav.toc ol { list-style-type: none; }
59+
60+
61+
/* (((((((((((((( BLOCKS )))))))))))))) */
62+
63+
h1, h2, h3, h4, h5 {
64+
font-family: "DejaVu-Sans";
65+
hyphens: none;
66+
text-align: left;
67+
}
68+
69+
p { margin: 10pt 0; }
70+
71+
72+
/* (((((((((((((( INLINES )))))))))))))) */
73+
74+
code {
75+
font-family: "DejaVu-SansMono";
76+
}
77+
78+

0 commit comments

Comments
 (0)