Changed contenteditable div to textarea

This commit is contained in:
Magnus Åhall 2023-06-20 07:35:34 +02:00
parent cb9d95bcb2
commit 0175c4044c
5 changed files with 47 additions and 18 deletions

View file

@ -172,19 +172,23 @@ header {
.node-content {
justify-self: center;
padding: 16px 32px;
white-space: pre-wrap;
word-wrap: break-word;
font-family: monospace;
font-size: 0.85em;
color: #333;
width: 100ex;
resize: none;
border: none;
outline: none;
&[contenteditable] {
outline: 0px solid transparent;
}
&:empty {
background: #ddd;
&:invalid {
//background: #eee;
border-bottom: 1px solid #eee;
border-radius: 8px;
height: 48px;
}
}