-
Notifications
You must be signed in to change notification settings - Fork 20
/
print.scss
83 lines (81 loc) · 1.3 KB
/
print.scss
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/* http://2012.scriptfrenzy.org/howtoformatascreenplay */
@media print {
.comment-box, .comment-add {
display: none !important;
}
body {
margin: 0;
font-size: 12pt;
}
header {
page-break-after: always;
margin-top: 50%;
text-align: center;
white-space: pre;
}
address {
position: absolute;
bottom: 0;
white-space: pre;
&.text-left {
left: 0;
}
&.text-right {
right: 0;
}
}
li {
margin: 12pt 0;
}
.character, .scene, .shot {
text-transform: uppercase;
}
.dialogue, .parenthetical {
margin-top: -12pt;
}
.character {
margin-left: 2.2in;
}
.dialogue {
margin-left: 1in;
margin-right: 1.5in;
}
.transition {
.line-text:empty {
&:after {
display: none;
}
}
}
.parenthetical {
margin-left: 1.6in;
margin-right: 1.9in;
.line-text:empty {
&:before, &:after {
display: none;
}
}
}
.character-highlighted {
margin-top: 100px;
}
.character, .scene, .shot, .transition, .dialogue, .action {
.line-text:empty:before {
// display: none;
}
}
}
@page {
size: auto; /* auto is the initial value */
/* this affects the margin in the printer settings */
margin: 1in 1in 1in 1.5in;
@top-right {
content: counter(page);
content: 'hi';
}
:first {
@top-right {
content: none;
}
}
}