forked from booktype/BookJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbooktype.css
57 lines (57 loc) · 1.11 KB
/
booktype.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@page {
size:8.5in 11in;
margin:.2in bleed:6pt;
}
@page:right {
margin-left:1.4in;
}
body {
counter-reset:PageNumber;
}
img {
image-resolution:from-image;
}
div.pagenumber:before {
counter-increment:PageNumber;
content:counter(PageNumber) " ";
}
.page {
height:10.6in;
width:8.1in;
position:relative;
}
#contents {
-webkit-flow:'article';
-webkit-flow-into:article;
position:relative;
}
.contents {
height:9in;
width:80%;
-webkit-flow-from:article;
content:-webkit-from-flow('article');
}
.pagenumber {
width:1in;
padding-top:.2in;
position:absolute;
bottom:.8in;
text-align:center;
left:3.55in;
}
body {
counter-reset:PageNumber;
}
body {
background-color:#efefef;
}
@media screen {
.page {
border:solid 1px #000;
padding:.2in 1.4in .2 1.4in;
margin-bottom:.2in;
background-color:#fff;
margin-left:auto;
margin-right: auto;
}
}