-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtmlHeader.py
150 lines (138 loc) · 4.46 KB
/
htmlHeader.py
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# this is a text object imported by the web scraper that formats the final output using HTML and CSS to imitate a newspaper look
# html will be output onto a letter format pages divided into three columns underneath an overall newsheader
# media formatting has been added specifically for printing that creates page breaks underneath article for a more readable physical view
htmlHeader = """<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CoffeeBadgerPress</title>
<meta name="viewport" content="width=device-width">
<style>
img {
height: auto;
display: block;
margin-left: auto;
margin-right: auto;
max-width: 100%;
}
figure {
max-width: fit-content;
}
@font-face {
font-family: built;
src: url(built\ titling\ sb.woff);
}
body{
font-family: 'Times New Roman', Times, serif;
font-weight: bold;
font-size: 14px;
color: #2f2f2f;
background-color: rgb(252, 247, 225);
}
header{
font-family: built;
font-weight: 900;
font-size: 80px;
text-transform: uppercase;
display: inline-block;
line-height: 72px;
letter-spacing: 8px;
color:#5b5050;
}
p{
margin-top: 0;
margin-bottom: 20px;
}
.head{
text-align: center;
position: relative;
}
.title{
text-align:center;
}
.subhead{
text-transform: uppercase;
border-bottom: 2px solid #2f2f2f;
border-top: 2px solid #2f2f2f;
padding: 12px 0 12px 0;
}
.content{
font-size: 0;
line-height: 0;
word-spacing: -.31em;
display: inline-block;
margin: 30px 2% 0 2%;
width: 96%;
}
.column{
font-size: 14px;
line-height: 20px;
display: inline-block;
vertical-align: top;
margin-bottom: 50px;
transition: all .7s;
column-count: 3;
column-rule-style:groove;
height: auto;
width: 100%;
}
.column + .column {
border-left: 0px solid #2f2f2f;
}
.column .headline{
text-align: center;
line-height: normal;
font-family: 'Playfair Display', serif;
display: block;
margin: 0 auto;
}
.column .headline.hl3{
font-weight: 400;
font-style: italic;
font-size: 36px;
box-sizing: border-box;
padding: 10px 0 10px 0;
}
.column .headline.hl4{
font-weight: 700;
font-size: 12px;
box-sizing: border-box;
padding: 10px 0 10px 0;
}
.column .headline.hl4:before{
border-top: 5px solid #2f2f2f;
content: '';
width: 100px;
height: 7px;
display: block;
margin: 0 auto;
}
.column .headline.hl4:after{
border-bottom: 5px solid #2f2f2f;
content: '';
width: 100px;
height: 10px;
display: block;
margin: 0 auto;
}
.column .figure {
margin: 0 0 20px;
}
.wp-caption-text, .wp-element-caption {
font-style: italic;
font-size: 12px;
}
@media print {
.content {
display: block;
break-before: auto;
}
.column {
display: block;
page-break-before: auto;
page-break-after: always;
}
}
</style>
</head>
"""