vue-moo
Version:
moo
79 lines (69 loc) • 1.17 kB
CSS
.moo-input {
overflow: hidden;
border: 1px solid #dfdfdf;
border-radius: 5px;
box-sizing: border-box;
input {
padding-top: 0;
padding-left: 0;
padding-bottom: 0;
padding-right: 10%;
width: 90%;
height: 2.2em;
line-height: 2.2em;
text-indent: 5px;
outline: none;
font-size: 14px;
border: 0;
}
}
.moo-input-disabled {
input {
border-color: #f4f4f4;
}
}
.moo-input-error {
input {
border: 1px solid #c00;
}
}
.moo-input .input-container {
position: relative;
text-align: center;
}
.moo-input .input-mask {
position: absolute;
top: 0;
left: 0;
z-index: 1;
width: 100%;
height: 100%;
}
.moo-input .input-clear {
overflow: hidden;
position: absolute;
top: 0;
right: 0;
height: 100%;
line-height: normal;
color: #dfdfdf;
span {
display: block;
position: relative;
top: 50%;
left: 0;
margin-top: -8px;
padding: 0 2px;
font-size: 16px;
background-color: #fff;
border-radius: 50%;
}
}
.moo-input .input-clear:hover {
color: #00619c;
}
.moo-input .input-verify-fail-tips {
padding: .5em 0;
text-align: left;
color: #c00;
}