can patch node from editablecontent fields

This commit is contained in:
2024-03-18 18:57:07 +01:00
parent 4dc5644898
commit 8c90f54b3c
7 changed files with 216 additions and 28 deletions

View File

@@ -1026,3 +1026,40 @@ body{
}
}
*[contenteditable="true"] {
background: #eee;
border: #eee 2px solid;
border-radius: 5px;
$p:0.3em;
padding:$p;
margin:0 0 0 -$p;
box-sizing: border-box;
transition: all 0.2s ease-in-out;
&:focus{
outline: none;
border: #01ffe2 2px solid;
}
}
button.edit-btn,
button.save-btn{
background-color: #444;
color: #fff;
border: none;
border-radius: 6px;
$size: 25px;
width: $size; height:$size;
display: inline;
>svg{
width:100%;
height:100%;
}
transition: all 0.2s ease-in-out;
&:hover{
cursor:pointer;
opacity: 0.7;
}
}