@import "../default-skin.less";
@import "../../global/mixin.less";

// 多行文本框元素
div[contenteditable="true"],
textarea {
	border:1px solid @fg-light-8-5; font-size:100%; background:@bg-dark-0-1; height:1+2*@gap; line-height:1+0.5*@gap; width:16em; .x_bs; position:relative; resize:none; padding:0.7*@gap @gap 0 @gap; vertical-align:top; overflow:auto;
	&:focus { box-shadow:inset 1px 1px 0 @warning, inset -1px -1px 0 @warning; z-index:2;}
}
div[contenteditable="true"] { width:auto; min-height:1+2*@gap; height:auto;}
textarea[readonly] { color:@fg-light-6; background:@bg-dark-0-5; color:@fg-light-6; outline:0 none !important; pointer-events:none;}
textarea::-webkit-input-placeholder { color:@fg-light-8-5;}
textarea:-ms-input-placeholder { color:@fg-light-8-5;}



// 圆角
.e_textarea-r { border-radius:0.36em;}



// 高度
textarea.e_textarea-row-2  { height: 2+@gap+2*0.75*@gap;}
textarea.e_textarea-row-3  { height: 3+@gap+3*0.75*@gap;}
textarea.e_textarea-row-4  { height: 4+@gap+4*0.75*@gap;}
textarea.e_textarea-row-5  { height: 5+@gap+5*0.75*@gap;}
textarea.e_textarea-row-6  { height: 6+@gap+6*0.75*@gap;}
textarea.e_textarea-row-7  { height: 7+@gap+7*0.75*@gap;}
textarea.e_textarea-row-8  { height: 8+@gap+8*0.75*@gap;}
textarea.e_textarea-row-9  { height: 9+@gap+9*0.75*@gap;}
textarea.e_textarea-row-10 { height:10+@gap+10*0.75*@gap;}



// 大小
.e_textarea-l { font-size:116.67%;}
.e_textarea-s { font-size:85.71%;}
.e_textarea-m { font-size:100%;}