Skip to content

Commit 4b8882b

Browse files
committed
Merge remote-tracking branch 'pr/css' into fix-default-source
2 parents f71ffdb + aa69266 commit 4b8882b

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

lib/helpers.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,18 +248,37 @@ e.htmlTemplate = (body) => {
248248
<meta name="viewport" content="width=device-width, initial-scale=1">
249249
<title>Coronavirus Tracker</title>
250250
<style>
251+
*, ::after, ::before {
252+
box-sizing: border-box;
253+
}
251254
body {
252255
background-color: #0d0208;
253256
color: #00ff41;
257+
font-size: 1rem;
258+
font-weight: 400;
259+
line-height: normal;
260+
margin: 0;
261+
text-align: left;
262+
}
263+
.container {
264+
margin-right: auto;
265+
margin-left: auto;
266+
padding-right: 15px;
267+
padding-left: 15px;
268+
width: 100%;
254269
}
255270
pre {
271+
display: block;
256272
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
273+
overflow: auto;
257274
white-space: pre;
258275
}
259276
</style>
260277
</head>
261278
<body>
262-
<pre>${body}</pre>
279+
<div class="container">
280+
<pre>${body}</pre>
281+
</div>
263282
</body>
264283
</html>
265284
`;

0 commit comments

Comments
 (0)