antdv-eoi
Version:
An enterprise-class UI design language and Vue-based implementation
273 lines (272 loc) • 7.01 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 */
/************************* 全局灰度 *********************/
/*所有阴影*/
/************************* 全局主题色 *********************/
/************************* 全局不变的颜色 *********************/
/* group color */
/* standard */
/* light */
/* dark */
/* 状态色 */
/* -state- Functional Color */
/* 状态色边框 */
/************************* 自定义变量 *********************/
/************************* 修改ant-design-vue变量 *********************/
.ant-mentions {
box-sizing: border-box;
margin: 0;
color: var(--color-neutrals-7, #8f8f8f);
font-variant: tabular-nums;
list-style: none;
font-feature-settings: 'tnum';
width: 100%;
padding: 2px 6px;
color: var(--color-neutrals-8, #707070);
font-size: 12px;
background-color: var(--color-input-background);
background-image: none;
border: 1px solid var(--color-input-border);
border-radius: 1px;
transition: all 0.15s;
position: relative;
display: inline-block;
height: auto;
padding: 0;
overflow: hidden;
line-height: 1.5715;
white-space: pre-wrap;
vertical-align: bottom;
}
.ant-mentions::-moz-placeholder {
color: var(--color-neutrals-6, #adadad);
opacity: 1;
}
.ant-mentions:-ms-input-placeholder {
color: var(--color-neutrals-6, #adadad);
}
.ant-mentions::-webkit-input-placeholder {
color: var(--color-neutrals-6, #adadad);
}
.ant-mentions:-moz-placeholder-shown {
text-overflow: ellipsis;
}
.ant-mentions:-ms-input-placeholder {
text-overflow: ellipsis;
}
.ant-mentions:placeholder-shown {
text-overflow: ellipsis;
}
.ant-mentions:hover {
border-color: var(--color-input-border-hover);
border-right-width: 1px ;
}
.ant-mentions:focus {
border-color: #2592b3;
border-right-width: 1px ;
outline: 0;
box-shadow: 0 0 0 2px rgba(9, 123, 166, 0.2);
}
.ant-mentions-disabled {
color: var(--color-neutrals-8, #707070);
background-color: var(--color-input-background-disabled);
border-color: var(--color-neutrals-4, #dbdbdb);
cursor: not-allowed;
opacity: 0.8;
}
.ant-mentions-disabled:hover {
border-color: var(--color-neutrals-4, #dbdbdb);
border-right-width: 1px ;
}
.ant-mentions[disabled] {
color: var(--color-neutrals-8, #707070);
background-color: var(--color-input-background-disabled);
border-color: var(--color-neutrals-4, #dbdbdb);
cursor: not-allowed;
opacity: 0.8;
}
.ant-mentions[disabled]:hover {
border-color: var(--color-neutrals-4, #dbdbdb);
border-right-width: 1px ;
}
.ant-mentions[readonly] {
border-color: var(--color-neutrals-2, #f0f0f0);
box-shadow: none;
}
textarea.ant-mentions {
max-width: 100%;
height: auto;
min-height: 24px;
line-height: 1.5715;
vertical-align: bottom;
transition: all 0.15s, height 0s;
}
.ant-mentions-lg {
padding: 6.5px 6px;
font-size: 14px;
}
.ant-mentions-sm {
padding: 1px 6px;
}
.ant-mentions-disabled > textarea {
color: var(--color-neutrals-8, #707070);
background-color: var(--color-input-background-disabled);
border-color: var(--color-neutrals-4, #dbdbdb);
cursor: not-allowed;
opacity: 0.8;
}
.ant-mentions-disabled > textarea:hover {
border-color: var(--color-neutrals-4, #dbdbdb);
border-right-width: 1px ;
}
.ant-mentions-focused {
border-color: #2592b3;
border-right-width: 1px ;
outline: 0;
box-shadow: 0 0 0 2px rgba(9, 123, 166, 0.2);
}
.ant-mentions > textarea,
.ant-mentions-measure {
min-height: 22px;
margin: 0;
padding: 2px 6px;
overflow: inherit;
overflow-x: hidden;
overflow-y: auto;
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;
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;
}
.ant-mentions > textarea {
width: 100%;
border: none;
outline: none;
resize: none;
}
.ant-mentions > textarea::-moz-placeholder {
color: var(--color-neutrals-6, #adadad);
opacity: 1;
}
.ant-mentions > textarea:-ms-input-placeholder {
color: var(--color-neutrals-6, #adadad);
}
.ant-mentions > textarea::-webkit-input-placeholder {
color: var(--color-neutrals-6, #adadad);
}
.ant-mentions > textarea:-moz-placeholder-shown {
text-overflow: ellipsis;
}
.ant-mentions > textarea:-ms-input-placeholder {
text-overflow: ellipsis;
}
.ant-mentions > textarea:placeholder-shown {
text-overflow: ellipsis;
}
.ant-mentions > textarea:-moz-read-only {
cursor: default;
}
.ant-mentions > textarea:read-only {
cursor: default;
}
.ant-mentions-measure {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: -1;
color: transparent;
pointer-events: none;
}
.ant-mentions-measure > span {
display: inline-block;
min-height: 1em;
}
.ant-mentions-dropdown {
margin: 0;
padding: 0;
color: var(--color-neutrals-7, #8f8f8f);
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
font-feature-settings: 'tnum';
position: absolute;
top: -9999px;
left: -9999px;
z-index: 1050;
box-sizing: border-box;
font-size: 12px;
font-variant: initial;
background-color: var(--color-component-background);
border-radius: 1px;
outline: none;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.ant-mentions-dropdown-hidden {
display: none;
}
.ant-mentions-dropdown-menu {
max-height: 250px;
margin-bottom: 0;
padding-left: 0;
overflow: auto;
list-style: none;
outline: none;
}
.ant-mentions-dropdown-menu-item {
position: relative;
display: block;
min-width: 100px;
padding: 5px 8px;
overflow: hidden;
color: var(--color-neutrals-7, #8f8f8f);
font-weight: normal;
line-height: 22px;
white-space: nowrap;
text-overflow: ellipsis;
cursor: pointer;
transition: background 0.3s ease;
}
.ant-mentions-dropdown-menu-item:hover {
background-color: var(--color-primary-1);
}
.ant-mentions-dropdown-menu-item:first-child {
border-radius: 1px 1px 0 0;
}
.ant-mentions-dropdown-menu-item:last-child {
border-radius: 0 0 1px 1px;
}
.ant-mentions-dropdown-menu-item-disabled {
color: var(--color-component-color-disabled);
cursor: not-allowed;
}
.ant-mentions-dropdown-menu-item-disabled:hover {
color: var(--color-component-color-disabled);
background-color: var(--color-component-background);
cursor: not-allowed;
}
.ant-mentions-dropdown-menu-item-selected {
color: var(--color-neutrals-7, #8f8f8f);
font-weight: 600;
background-color: #fafafa;
}
.ant-mentions-dropdown-menu-item-active {
background-color: var(--color-primary-1);
}