wetrade-design
Version:
一款多语言支持Vue3的UI框架
348 lines (347 loc) • 8.1 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/** gray-sp */
/** blue-sp */
/** green-sp */
/** red-sp */
/** orange-sp */
/** 品牌橙 */
/** 日落黄 */
/** 柠檬黄 */
/** 新生绿 */
/** 绿色 */
/** 碧涛青 */
/** 海蔚蓝 */
/** 品牌蓝色 */
/** 宝石蓝 */
/** 星空紫 */
/** 罗兰紫 */
/** 青春紫 */
/** 品红 */
/** 红色 */
/** 灰色 */
/** 保留ant色板 */
/** 绿色 */
/** 品牌蓝 */
.wd-mentions {
box-sizing: border-box;
margin: 0;
font-size: 14px;
font-variant: tabular-nums;
list-style: none;
font-feature-settings: 'tnum';
width: 100%;
min-width: 0;
padding: 6px 11px;
color: #1E1E29;
font-size: 12px;
background-color: transparent;
background-image: none;
border: 1px solid #EBEDF2;
border-radius: 4px;
/* stylelint-disable-next-line selector-no-vendor-prefix */
position: relative;
display: inline-block;
height: auto;
padding: 0;
overflow: hidden;
line-height: 18px;
white-space: pre-wrap;
vertical-align: bottom;
}
.wd-mentions::-moz-placeholder {
opacity: 1;
}
.wd-mentions::placeholder {
color: #818799;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.wd-mentions:-moz-placeholder-shown {
text-overflow: ellipsis;
}
.wd-mentions:placeholder-shown {
text-overflow: ellipsis;
}
.wd-mentions:hover {
border-color: #4f90ff;
border-right-width: 1px ;
}
.wd-mentions:focus,
.wd-mentions-focused {
border-right-width: 1px ;
outline: 0;
background-color: transparent;
border-color: var(--wd-brand-hover);
}
.wd-mentions-disabled {
color: #C7CBD6;
background-color: #FBFCFD;
border-color: #EBEDF2;
box-shadow: none;
cursor: not-allowed;
opacity: 1;
}
.wd-mentions-disabled:hover {
border-color: #EBEDF2;
border-right-width: 1px ;
}
.wd-mentions-disabled.wd-input-borderless {
border-color: transparent;
color: #818799;
}
.wd-mentions-disabled.wd-input-condition {
color: #C7CBD6;
}
.wd-mentions-disabled .wd-input-prefix .wd-icon,
.wd-mentions-disabled .wd-input-suffix .wd-icon {
color: #C7CBD6;
}
.wd-mentions[disabled] {
color: #C7CBD6;
background-color: #FBFCFD;
border-color: #EBEDF2;
box-shadow: none;
cursor: not-allowed;
opacity: 1;
}
.wd-mentions[disabled]:hover {
border-color: #EBEDF2;
border-right-width: 1px ;
}
.wd-mentions[disabled].wd-input-borderless {
border-color: transparent;
color: #818799;
}
.wd-mentions[disabled].wd-input-condition {
color: #C7CBD6;
}
.wd-mentions[disabled] .wd-input-prefix .wd-icon,
.wd-mentions[disabled] .wd-input-suffix .wd-icon {
color: #C7CBD6;
}
.wd-mentions:not(.wd-input-borderless).wd-input-disabled::-moz-placeholder {
color: #C7CBD6;
}
.wd-mentions:not(.wd-input-borderless).wd-input-disabled::placeholder {
color: #C7CBD6;
}
.wd-mentions-borderless,
.wd-mentions-borderless-disabled,
.wd-mentions-borderless[disabled] {
background-color: #FBFCFD;
box-shadow: none;
border-color: transparent;
}
.wd-mentions-borderless:not(:focus):not(.wd-input-disabled):not( .wd-input-affix-wrapper-disabled):hover {
background-color: rgba(129, 135, 153, 0.2);
box-shadow: none;
border-color: transparent;
}
.wd-mentions-borderless:not(:focus):not(.wd-input-disabled):not( .wd-input-affix-wrapper-disabled):hover .wd-input-borderless:not(.wd-input-disabled) {
background-color: transparent;
}
.wd-mentions-condition .wdicon {
margin-left: 4px;
line-height: 16px;
height: 16px;
color: #818799;
}
textarea.wd-mentions {
max-width: 100%;
height: auto;
min-height: 32px;
line-height: 18px;
vertical-align: bottom;
transition: all 0.3s, height 0s;
}
.wd-mentions-lg {
padding: 8px 15px;
font-size: 14px;
line-height: 22px;
border-radius: 6px;
}
.wd-mentions-bg {
padding: 6px 15px;
font-size: 14px;
line-height: 22px;
border-radius: 6px;
}
.wd-mentions-sm {
padding: 4px 11px;
border-radius: 4px;
}
.wd-mentions-xs {
padding: 2px 7px;
border-radius: 4px;
}
.wd-mentions-disabled > textarea {
color: #C7CBD6;
background-color: #FBFCFD;
border-color: #EBEDF2;
box-shadow: none;
cursor: not-allowed;
opacity: 1;
}
.wd-mentions-disabled > textarea:hover {
border-color: #EBEDF2;
border-right-width: 1px ;
}
.wd-mentions-disabled > textarea.wd-input-borderless {
border-color: transparent;
color: #818799;
}
.wd-mentions-disabled > textarea.wd-input-condition {
color: #C7CBD6;
}
.wd-mentions-disabled > textarea .wd-input-prefix .wd-icon,
.wd-mentions-disabled > textarea .wd-input-suffix .wd-icon {
color: #C7CBD6;
}
.wd-mentions-focused {
border-right-width: 1px ;
outline: 0;
background-color: transparent;
}
.wd-mentions > textarea,
.wd-mentions-measure {
min-height: 30px;
margin: 0;
padding: 6px 11px;
overflow: inherit;
overflow-x: hidden;
overflow-y: auto;
/* stylelint-disable declaration-block-no-redundant-longhand-properties */
font-weight: inherit;
font-size: inherit;
font-family: inherit;
font-style: inherit;
font-variant: inherit;
font-size-adjust: inherit;
font-stretch: inherit;
line-height: inherit;
/* stylelint-enable declaration-block-no-redundant-longhand-properties */
direction: inherit;
letter-spacing: inherit;
white-space: inherit;
text-align: inherit;
vertical-align: top;
word-wrap: break-word;
word-break: inherit;
-moz-tab-size: inherit;
-o-tab-size: inherit;
tab-size: inherit;
}
.wd-mentions > textarea {
width: 100%;
border: none;
outline: none;
resize: none;
/* stylelint-disable-next-line selector-no-vendor-prefix */
}
.wd-mentions > textarea::-moz-placeholder {
opacity: 1;
}
.wd-mentions > textarea::placeholder {
color: #818799;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.wd-mentions > textarea:-moz-placeholder-shown {
text-overflow: ellipsis;
}
.wd-mentions > textarea:placeholder-shown {
text-overflow: ellipsis;
}
.wd-mentions-measure {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: -1;
color: transparent;
pointer-events: none;
}
.wd-mentions-measure > span {
display: inline-block;
min-height: 1em;
}
.wd-mentions-dropdown {
margin: 0;
padding: 0;
color: #1E1E29;
font-variant: tabular-nums;
line-height: 18px;
list-style: none;
font-feature-settings: 'tnum';
position: absolute;
top: -9999px;
left: -9999px;
z-index: 2000;
box-sizing: border-box;
font-size: 14px;
font-variant: initial;
background-color: #fff;
border-radius: 6px;
outline: none;
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
}
.wd-mentions-dropdown-hidden {
display: none;
}
.wd-mentions-dropdown-menu {
max-height: 250px;
margin-bottom: 0;
padding-left: 0;
overflow: auto;
list-style: none;
outline: none;
}
.wd-mentions-dropdown-menu-item {
position: relative;
display: block;
min-width: 100px;
padding: 5px 12px;
overflow: hidden;
color: #1E1E29;
font-weight: normal;
line-height: 18px;
white-space: nowrap;
text-overflow: ellipsis;
cursor: pointer;
transition: background 0.3s ease;
}
.wd-mentions-dropdown-menu-item:hover {
background-color: rgba(129, 135, 153, 0.1);
}
.wd-mentions-dropdown-menu-item:first-child {
border-radius: 6px 6px 0 0;
}
.wd-mentions-dropdown-menu-item:last-child {
border-radius: 0 0 6px 6px;
}
.wd-mentions-dropdown-menu-item-disabled {
color: #C7CBD6;
cursor: not-allowed;
}
.wd-mentions-dropdown-menu-item-disabled:hover {
color: #C7CBD6;
background-color: #fff;
cursor: not-allowed;
}
.wd-mentions-dropdown-menu-item-selected {
color: #1E1E29;
font-weight: 600;
background-color: #fafafa;
}
.wd-mentions-dropdown-menu-item-active {
background-color: rgba(129, 135, 153, 0.1);
}
.wd-mentions-rtl {
direction: rtl;
}