@mixin editer($base:orange,$back:#111){
color:$back;
background-color:$base;
outline:none;
padding:0.75rem 1rem;
margin:0;
white-space: pre-wrap;
word-break: break-all;
overflow:auto;
}
@mixin scrollbar($base:orange,$back:#111){
/*scrollbar*/
//if target only, the [contentEditable="plaintext-only"]::-webkit....
&::-webkit-scrollbar{overflow:hidden;width:4px;background:darken($base,5%)}
&::-webkit-scrollbar:horizontal{height:4px;}
&::-webkit-scrollbar-button{display:none;}
&::-webkit-scrollbar-piece{background:rgba(100,100,100,0.3);}
&::-webkit-scrollbar-piece:start{background:rgba(100,100,100,0.3);}
&::-webkit-scrollbar-thumb{background:$back;}
&::-webkit-scrollbar-corner{background:rgba(100,100,100,0.3);}
}
$base:orange;
$back:#111;
.editer{
font-family: sans-serif;
font-size:1rem;
@include editer($base,$back);
@include scrollbar($base,$back);
}
.size{
width:22rem;
min-height:5rem;
max-height:22rem;
}