blob: d1ed9584cacbff089e5f026d7ddd53931af88cc2 [file] [log] [blame]
@import "./common.less";
.dtui-txipt {
.inline-block();
vertical-align: middle;
.border-radius(3px);
background: #fff;
position: relative;
border: 1px solid #979bb2;
margin: 3px 5px;
width: 100px;
textarea,
input {
padding: 0;
width: 100%;
line-height: 16px;
font-size: 12px;
color: #000;
background: #fff;
border: none;
outline: medium;
}
}
.dtui-txipt-alert {
border: 1px solid red;
}
.dtui-txipt-alert-mark {
&:before {
content: "?";
line-height: 16px;
font-weight: 700;
}
position: absolute;
top: 5px;
right: 3px;
text-align: center;
.border-radius(8px);
height: 16px;
line-height: 16px;
width: 16px;
font-size: 12px;
background: red;
color: #fff;
}
.dtui-txipt-alert-text {
position: absolute;
top: -1px;
left: -1px;
right: 24px;
background: red;
color: #fff;
line-height: 16px;
font-size: 12px;
padding: 6px;
display: block;
.border-radius(2px);
}
.dtui-txipt-type-text {
padding: 0 6px;
height: 26px;
line-height: 26px;
}
.dtui-txipt-type-textarea {
padding: 6px;
height: 66px;
line-height: 66px;
textarea {
display: block;
height: 100%;
resize: none;
}
}
.dtui-txipt-disabled {
background: @dtui-txipt-disabled-color;
textarea,
input {
background: @dtui-txipt-disabled-color;
color: #333;
}
}