Skip to content

Commit aa69266

Browse files
committed
CSS tweaks
1 parent 30295f5 commit aa69266

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
@@ -259,18 +259,37 @@ e.htmlTemplate = (body) => {
259259
<meta name="viewport" content="width=device-width, initial-scale=1">
260260
<title>Coronavirus Tracker</title>
261261
<style>
262+
*, ::after, ::before {
263+
box-sizing: border-box;
264+
}
262265
body {
263266
background-color: #0d0208;
264267
color: #00ff41;
268+
font-size: 1rem;
269+
font-weight: 400;
270+
line-height: normal;
271+
margin: 0;
272+
text-align: left;
273+
}
274+
.container {
275+
margin-right: auto;
276+
margin-left: auto;
277+
padding-right: 15px;
278+
padding-left: 15px;
279+
width: 100%;
265280
}
266281
pre {
282+
display: block;
267283
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
284+
overflow: auto;
268285
white-space: pre;
269286
}
270287
</style>
271288
</head>
272289
<body>
273-
<pre>${body}</pre>
290+
<div class="container">
291+
<pre>${body}</pre>
292+
</div>
274293
</body>
275294
</html>
276295
`;

0 commit comments

Comments
 (0)