Consolidate Lit repositories: figma-to-lit, figma_lit_example, lit-3d-piano, lit-calculator, lit-code-editor, lit-draggable-dom, lit-file-based-routing, lit-force-graph, lit-html-editor, lit-html-table, lit-modules, lit-native, lit-node-editor, lit-sheet-music, lit-starter-ts, lit-vscode-extension, lit-wmr, vite-lit-capacitor, vite-lit-element-starter, vite-rxdb-lit
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, user-scalable=no"
|
||||
/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Material+Icons&display=block"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<title>Lit HTML Editor</title>
|
||||
<script type="module" src="/src/rich-text-editor.ts"></script>
|
||||
<style>
|
||||
body {
|
||||
position: fixed;
|
||||
bottom: env(safe-area-inset-bottom);
|
||||
top: env(safe-area-inset-top);
|
||||
left: env(safe-area-inset-left);
|
||||
right: env(safe-area-inset-right);
|
||||
height: -webkit-fill-available;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
@media (hover: none) {
|
||||
body {
|
||||
bottom: calc(
|
||||
env(keyboard-inset-height) + env(safe-area-inset-bottom)
|
||||
);
|
||||
}
|
||||
}
|
||||
rich-text {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<rich-text>
|
||||
<template>
|
||||
<h1>Headline 1</h1>
|
||||
<p>This is a paragraph.</p>
|
||||
<p>
|
||||
<span style="background-color: rgb(255, 0, 0)"
|
||||
><font color="#ffffff">Styled Text</font></span
|
||||
>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
|
||||
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
|
||||
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
|
||||
aliquip ex ea commodo consequat. Duis aute irure dolor in
|
||||
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
|
||||
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
|
||||
culpa qui officia deserunt mollit anim id est laborum.
|
||||
</p>
|
||||
</template>
|
||||
</rich-text>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user