sci-pro
Version:
80 lines (79 loc) • 1.5 kB
CSS
.sci-input-wrapper {
display: inline-flex;
align-items: center;
justify-content: center;
width: 200px;
height: 30px;
vertical-align: top;
border: 1px solid #d7dae1;
border-radius: 2px;
}
.sci-input {
width: 100%;
padding: 0 11px;
color: #333;
}
.sci-input::-placeholder {
color: #888;
}
.disabled-background {
cursor: not-allowed;
background-color: #f5f5f5;
}
.sci-input[disabled] {
cursor: not-allowed;
}
/* 悬浮时的边框颜色 */
.sci-input-wrapper:hover {
border-color: #409eff;
}
.sci-input-wrapper:focus-within {
border-color: #409eff;
}
.sci-input-wrapper:hover .clear-icon {
display: block;
}
.clear-icon {
display: none;
width: 12px;
height: 12px;
margin-right: 11px;
font-size: 12px;
color: #b3b3b3;
cursor: pointer;
}
.sci-input[type='number']::-webkit-outer-spin-button,
.sci-input[type='number']::-webkit-inner-spin-button {
-webkit-appearance: none;
appearance: none;
margin: 0;
}
/* Firefox */
.sci-input[type='number'] {
-webkit-appearance: textfield;
-moz-appearance: textfield;
appearance: textfield;
}
.prepend,
.append {
display: inline-flex;
align-items: center;
justify-content: center;
height: 100%;
padding: 0 20px;
border-right: 1px solid #d7dae1;
}
.append {
border-right: none;
border-left: 1px solid #d7dae1;
}
.sci-textarea {
height: auto;
}
.sci-textarea textarea {
width: 100%;
min-height: 31px;
padding: 5px 11px;
line-height: 1.5;
resize: vertical;
}