UNPKG

@fe6/water-pro

Version:

An enterprise-class UI design language and Vue-based implementation

159 lines (130 loc) 2.88 kB
@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 !important; 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) !important; cursor: not-allowed !important; } } &-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) !important; cursor: not-allowed !important; } } & .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 !important; vertical-align: middle; background: none !important; border: none !important; cursor: pointer; &-border { padding: 0 7px !important; background: #fff !important; border: 1px dashed #ddefff !important; &-disabled { background: #f5f5f5 !important; border: 1px dashed #d9d9d9 !important; } } & span { display: inline-block; margin: 0 3px 0 0 !important; vertical-align: -0.1em !important; } &-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) !important; cursor: not-allowed !important; } } } }