-
Notifications
You must be signed in to change notification settings - Fork 1
/
renderer.html
64 lines (57 loc) · 1.64 KB
/
renderer.html
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
<html>
<head>
<style>
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html,
body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}
.editor {
position: fixed;
top: 0;
left: 0;
height: 100%;
padding: 1em;
font-family: "Roboto Mono", monospace;
border: 0;
border-right: 1px solid rgb(169, 169, 169);
resize: none;
}
.preview {
margin-left: 50%;
min-height: 100%;
padding: 0 1em;
font: Helvetica, Arial, nimbussansl, liberationsans, freesans,
clean, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
color: #333;
}
.editor,
.preview {
width: 50%;
}
.preview code[class^="language-"] {
display: block;
background: #f8f8f8;
padding: 0.5em;
overflow-x: auto;
}
.preview blockquote {
margin: 0;
padding-left: 1.5em;
border-left: 0.5em #ccc solid;
}
</style>
</head>
<body>
<div id="app"></div>
</body>
<script type="text/javascript" src="./renderer.js"></script>
</html>