zp-bee
Version:
zp-bee,是一款基于 Dumi,由 React + TypeScript 开发的组件库 🎉。
69 lines (55 loc) • 1.02 kB
text/less
@import './index';
@import './mixin';
@input-affix-margin: 4px;
.@{zp-prefix}-input {
&-affix-wrapper {
.input();
font-size: @font-size-base - 2;
display: inline-flex;
.bee-prefix-label {
white-space: nowrap;
color: #75798e;
}
&:not(&-disabled):hover {
.hover();
z-index: 1;
.@{zp-prefix}-input-search-with-button & {
z-index: 0;
}
}
&-focused,
&:focus {
z-index: 1;
}
&-disabled {
.@{zp-prefix}-input[disabled] {
background: transparent;
}
}
> input.@{zp-prefix}-input {
padding: 0;
border: none;
outline: none;
&:focus {
box-shadow: none;
}
}
&::before {
width: 0;
visibility: hidden;
content: '\a0';
}
}
&-prefix,
&-suffix {
display: flex;
flex: none;
align-items: center;
}
&-prefix {
margin-right: @input-affix-margin;
}
&-suffix {
margin-left: @input-affix-margin;
}
}