@fe6/water-pro
Version:
An enterprise-class UI design language and Vue-based implementation
159 lines (130 loc) • 2.88 kB
text/less
@import '../../style/themes/index';
@import '../../style/mixins/index';
@tag-base-prefix-cls: ~'@{ant-prefix}-tag';
@tag-prefix-cls: ~'@{tag-base-prefix-cls}-group';
.@{tag-prefix-cls} {
position: relative;
margin-right: 8px ;
font-size: 0;
vertical-align: middle;
&-inner {
position: relative;
font-size: 14px;
vertical-align: middle;
&-big {
padding-right: 24px;
}
&-disabled {
color: rgba(0, 0, 0, 0.25);
cursor: not-allowed;
& .anticon {
color: rgba(0, 0, 0, 0.25) ;
cursor: not-allowed ;
}
}
&-small {
max-width: 80px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
&-small {
max-width: 80px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
&-big {
padding-right: 24px;
}
&-preive {
margin-bottom: 8px;
vertical-align: middle;
}
&-disabled {
color: rgba(0, 0, 0, 0.25);
cursor: not-allowed;
& .anticon {
color: rgba(0, 0, 0, 0.25) ;
cursor: not-allowed ;
}
}
& .ant-tag-close-icon {
position: absolute;
top: 50%;
right: 8px;
transform: translateY(-50%);
}
&-more {
display: inline-block;
vertical-align: middle;
cursor: pointer;
& .anticon {
margin: 0;
color: @primary-color;
}
&-disabled {
color: rgba(0, 0, 0, 0.25);
& .anticon {
color: rgba(0, 0, 0, 0.25);
}
}
}
&-popover {
width: 210px;
max-height: 100px;
overflow: auto;
& .@{tag-base-prefix-cls} {
position: relative;
display: inline-block;
}
& .@{tag-base-prefix-cls}-close-icon {
position: absolute;
top: 50%;
right: 8px;
transform: translateY(-50%);
}
}
&-create {
display: inline-block;
padding: 0 ;
vertical-align: middle;
background: none ;
border: none ;
cursor: pointer;
&-border {
padding: 0 7px ;
background: #fff ;
border: 1px dashed #ddefff ;
&-disabled {
background: #f5f5f5 ;
border: 1px dashed #d9d9d9 ;
}
}
& span {
display: inline-block;
margin: 0 3px 0 0 ;
vertical-align: -0.1em ;
}
&-input {
// NOTE [fix] 横着的时候错位
// margin-bottom: 8px;
display: inline-block;
width: 78px;
height: 22px;
vertical-align: middle;
&-only {
margin-bottom: 0;
}
}
&-disabled {
color: rgba(0, 0, 0, 0.25);
cursor: not-allowed;
& .anticon {
color: rgba(0, 0, 0, 0.25) ;
cursor: not-allowed ;
}
}
}
}