This repository has been archived by the owner on Sep 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
83 lines (68 loc) · 1.59 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
83
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>vue-richtext</title>
<style>
:root {
color-scheme: dark light;
--color-background-dark: #eee;
}
@media (prefers-color-scheme: dark) {
:root {
--color-background-dark: #333;
}
}
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
max-width: 1200px;
margin: auto;
margin-bottom: 50px;
}
p {
line-height: 150%;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 400;
}
textarea, .rich-text--wrapper {
border-radius: 10px;
border: 2px solid #ccc;
padding: 20PX;
}
pre {
background: var(--color-background-dark);
padding: 10px;
}
*:not(pre) code {
background-color: var(--color-background-dark);
border-radius: 3px;
padding: 3px;
}
li {
line-height: 150%;
}
</style>
</head>
<body>
<h1>@nextcloud/vue-richtext</h1>
<a href="https://github.com/nextcloud/vue-richtext">Open on GitHub</a>
<div id="readme"></div>
<h2>DemoPlayground</h2>
<div id="app"></div>
<script type="module">
import Vue from 'vue'
import { html } from './README.md'
import DemoPlayground from './src/demo/DemoPlayground.vue'
document.getElementById('readme').innerHTML = html;
const app = new Vue({
render: (h) => h('div', [
h(DemoPlayground, {})
]),
})
app.$mount('#app')
</script>
</body>
</html>