123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
- /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
- /* stylelint-disable no-duplicate-selectors */
- .ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions,
- .ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:hover {
- background: #fff;
- border-color: #ff4d4f;
- }
- .ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus,
- .ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {
- border-color: #ff7875;
- box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
- border-right-width: 1px;
- outline: 0;
- }
- .ant-mentions-status-error .ant-input-prefix {
- color: #ff4d4f;
- }
- .ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions,
- .ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:hover {
- background: #fff;
- border-color: #faad14;
- }
- .ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus,
- .ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {
- border-color: #ffc53d;
- box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
- border-right-width: 1px;
- outline: 0;
- }
- .ant-mentions-status-warning .ant-input-prefix {
- color: #faad14;
- }
- .ant-mentions {
- box-sizing: border-box;
- margin: 0;
- font-variant: tabular-nums;
- list-style: none;
- font-feature-settings: 'tnum';
- width: 100%;
- min-width: 0;
- padding: 4px 11px;
- color: rgba(0, 0, 0, 0.85);
- font-size: 14px;
- background-color: #fff;
- background-image: none;
- border: 1px solid #d9d9d9;
- border-radius: 2px;
- transition: all 0.3s;
- position: relative;
- display: inline-block;
- height: auto;
- padding: 0;
- overflow: hidden;
- line-height: 1.5715;
- white-space: pre-wrap;
- vertical-align: bottom;
- }
- .ant-mentions::placeholder {
- color: #bfbfbf;
- user-select: none;
- }
- .ant-mentions:placeholder-shown {
- text-overflow: ellipsis;
- }
- .ant-mentions:hover {
- border-color: #40a9ff;
- border-right-width: 1px;
- }
- .ant-mentions:focus,
- .ant-mentions-focused {
- border-color: #40a9ff;
- box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
- border-right-width: 1px;
- outline: 0;
- }
- .ant-mentions-disabled {
- color: rgba(0, 0, 0, 0.25);
- background-color: #f5f5f5;
- border-color: #d9d9d9;
- box-shadow: none;
- cursor: not-allowed;
- opacity: 1;
- }
- .ant-mentions-disabled:hover {
- border-color: #d9d9d9;
- border-right-width: 1px;
- }
- .ant-mentions[disabled] {
- color: rgba(0, 0, 0, 0.25);
- background-color: #f5f5f5;
- border-color: #d9d9d9;
- box-shadow: none;
- cursor: not-allowed;
- opacity: 1;
- }
- .ant-mentions[disabled]:hover {
- border-color: #d9d9d9;
- border-right-width: 1px;
- }
- .ant-mentions-borderless,
- .ant-mentions-borderless:hover,
- .ant-mentions-borderless:focus,
- .ant-mentions-borderless-focused,
- .ant-mentions-borderless-disabled,
- .ant-mentions-borderless[disabled] {
- background-color: transparent;
- border: none;
- box-shadow: none;
- }
- textarea.ant-mentions {
- max-width: 100%;
- height: auto;
- min-height: 32px;
- line-height: 1.5715;
- vertical-align: bottom;
- transition: all 0.3s, height 0s;
- }
- .ant-mentions-lg {
- padding: 6.5px 11px;
- font-size: 16px;
- }
- .ant-mentions-sm {
- padding: 0px 7px;
- }
- .ant-mentions-disabled > textarea {
- color: rgba(0, 0, 0, 0.25);
- background-color: #f5f5f5;
- border-color: #d9d9d9;
- box-shadow: none;
- cursor: not-allowed;
- opacity: 1;
- }
- .ant-mentions-disabled > textarea:hover {
- border-color: #d9d9d9;
- border-right-width: 1px;
- }
- .ant-mentions-focused {
- border-color: #40a9ff;
- box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
- border-right-width: 1px;
- outline: 0;
- }
- .ant-mentions > textarea,
- .ant-mentions-measure {
- min-height: 30px;
- margin: 0;
- padding: 4px 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;
- tab-size: inherit;
- }
- .ant-mentions > textarea {
- width: 100%;
- border: none;
- outline: none;
- resize: none;
- }
- .ant-mentions > textarea::placeholder {
- color: #bfbfbf;
- user-select: none;
- }
- .ant-mentions > textarea:placeholder-shown {
- text-overflow: ellipsis;
- }
- .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: rgba(0, 0, 0, 0.85);
- 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: 14px;
- font-variant: initial;
- background-color: #fff;
- border-radius: 2px;
- 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);
- }
- .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 12px;
- overflow: hidden;
- color: rgba(0, 0, 0, 0.85);
- font-weight: normal;
- line-height: 1.5715;
- white-space: nowrap;
- text-overflow: ellipsis;
- cursor: pointer;
- transition: background 0.3s ease;
- }
- .ant-mentions-dropdown-menu-item:hover {
- background-color: #f5f5f5;
- }
- .ant-mentions-dropdown-menu-item:first-child {
- border-radius: 2px 2px 0 0;
- }
- .ant-mentions-dropdown-menu-item:last-child {
- border-radius: 0 0 2px 2px;
- }
- .ant-mentions-dropdown-menu-item-disabled {
- color: rgba(0, 0, 0, 0.25);
- cursor: not-allowed;
- }
- .ant-mentions-dropdown-menu-item-disabled:hover {
- color: rgba(0, 0, 0, 0.25);
- background-color: #fff;
- cursor: not-allowed;
- }
- .ant-mentions-dropdown-menu-item-selected {
- color: rgba(0, 0, 0, 0.85);
- font-weight: 600;
- background-color: #fafafa;
- }
- .ant-mentions-dropdown-menu-item-active {
- background-color: #f5f5f5;
- }
- .ant-mentions-suffix {
- position: absolute;
- top: 0;
- right: 11px;
- bottom: 0;
- z-index: 1;
- display: inline-flex;
- align-items: center;
- margin: auto;
- }
- .ant-mentions-rtl {
- direction: rtl;
- }
- .ant-mentions-dropdown {
- position: relative;
- top: 100%;
- left: 12px;
- width: 100%;
- margin-top: 8px;
- margin-bottom: 4px;
- }
- .ant-mentions:focus-within {
- border-color: #40a9ff;
- box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
- border-right-width: 1px;
- outline: 0;
- }
- .ant-mentions.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus-within {
- border-color: #ff7875;
- box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
- border-right-width: 1px;
- outline: 0;
- }
- .ant-mentions.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus-within {
- border-color: #ffc53d;
- box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
- border-right-width: 1px;
- outline: 0;
- }
|