forked from davidmyersdev/ink-mde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
82 lines (68 loc) · 1.91 KB
/
index.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!doctype html>
<html class="auto">
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=0">
<title>ink-mde</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fira+Code&family=Inter:wght@300;400;700&display=swap">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.css" integrity="sha384-vKruj+a13U8yHIkAyGgK1J3ArTLzrFGBbBc0tDp4ad/EyewESeXE/Iv67Aj8gKZ0" crossorigin="anonymous">
<style>
* {
box-sizing: border-box;
}
:root {
--ink-code-font-family: 'Fira Code';
}
body {
font-family: 'Inter', Helvetica, sans-serif;
margin: 0;
}
.dark body {
background-color: rgb(24, 24, 27);
color: #fafafa;
}
.light body {
background-color: #fafafa;
color: rgb(24, 24, 27);
}
@media (prefers-color-scheme: dark) {
.auto body {
background-color: rgb(24, 24, 27);
color: #fafafa;
}
}
@media (prefers-color-scheme: light) {
.auto body {
background-color: #fafafa;
color: rgb(24, 24, 27);
}
}
.app-wrapper {
margin: auto;
max-width: 120ch;
}
.ink-mde .ink-mde-container {
max-width: 80ch;
}
#app .cm-editor.cm-focused {
outline: none;
}
html, body, .app-wrapper, #app, .ink-mde {
height: 100%;
}
.app-wrapper {
padding: 0.5rem;
}
/* .ink-mde-container {
max-width: 30rem;
} */
</style>
</head>
<body>
<div class="app-wrapper">
<div id="app"></div>
</div>
<!-- <script type="module" src="/examples/demo.ts"></script> -->
<script type="module" src="/examples/plugins.tsx"></script>
</body>
</html>