web preview + finish-ish markdown

ordered lists, superscript, tables
and some fixes
This commit is contained in:
jetstream0
2023-06-09 23:15:52 -07:00
parent 75260e28a3
commit d454a1f8ea
7 changed files with 375 additions and 13 deletions

58
styles/style.css Normal file
View File

@@ -0,0 +1,58 @@
html, body {
margin: 0;
padding: 0;
height: 100vh;
width: 100vw;
}
#grid-container {
display: grid;
grid-template-columns: auto auto;
height: 100vh;
width: 100vw;
}
.section {
padding: 17px;
height: 100%;
width: 49vw;
box-sizing: border-box;
}
#editor-container {
overflow-y: auto;
}
#editor {
box-sizing: border-box;
width: 95%;
width: calc(100% - 15px);
height: 95%;
margin: 0;
word-break: break-all;
font-family: 'Courier New', Courier, monospace;
font-size: 0.9em;
padding: 3px;
padding-left: 35px;
margin-left: 15px;
overflow-y: auto;
}
#editor li::marker {
color: #727272;
}
#rendered-text {
padding: 5px;
word-break: break-all;
font-family: Arial, sans-serif;
}
#rendered-text.dark {
background-color: black;
color: white;
}
#rendered-text.dark .code-block {
color: #2d2d2d;
}