UNPKG

ygd

Version:

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

205 lines (204 loc) 4.94 kB
/* 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 */ .yg-mention-wrapper { box-sizing: content-box; margin: 0; padding: 0; color: #333; font-size: 12px; list-style: none; position: relative; display: inline-block; width: 100%; vertical-align: middle; } .yg-mention-wrapper .yg-mention-editor { position: relative; display: inline-block; width: 178px; height: 28px; padding: 0px 10px; color: #333; font-size: 12px; background-color: #fff; background-image: none; border: 1px solid #ccc; border-radius: 2px; transition: all 0.3s; display: block; height: auto; min-height: 28px; padding: 0; line-height: 28px; } .yg-mention-wrapper .yg-mention-editor::-moz-placeholder { color: #ccc; opacity: 1; } .yg-mention-wrapper .yg-mention-editor:-ms-input-placeholder { color: #ccc; } .yg-mention-wrapper .yg-mention-editor::-webkit-input-placeholder { color: #ccc; } .yg-mention-wrapper .yg-mention-editor:hover { border-color: #bababa; border-right-width: 1px; } .yg-mention-wrapper .yg-mention-editor:focus { border-color: #bababa; border-right-width: 1px; outline: 0; box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.2); } .yg-mention-wrapper .yg-mention-editor-disabled { color: rgba(51, 51, 51, 0.25); background-color: #f5f5f5; cursor: not-allowed; opacity: 1; } .yg-mention-wrapper .yg-mention-editor-disabled:hover { border-color: #bababa; border-right-width: 1px; } .yg-mention-wrapper .yg-mention-editor[disabled] { color: rgba(51, 51, 51, 0.25); background-color: #f5f5f5; cursor: not-allowed; opacity: 1; } .yg-mention-wrapper .yg-mention-editor[disabled]:hover { border-color: #bababa; border-right-width: 1px; } textarea.yg-mention-wrapper .yg-mention-editor { max-width: 100%; height: auto; min-height: 28px; vertical-align: bottom; transition: all 0.3s, height 0s; } .yg-mention-wrapper .yg-mention-editor-lg { height: 38px; line-height: 38px; padding: 0px 10px; font-size: 14px; } .yg-mention-wrapper .yg-mention-editor-sm { height: 22px; line-height: 22px; padding: 0px 7px; } .yg-mention-wrapper .yg-mention-editor-wrapper { height: auto; overflow-y: auto; } .yg-mention-wrapper.yg-mention-active:not(.disabled) .yg-mention-editor { border-color: #bababa; border-right-width: 1px; outline: 0; box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.2); } .yg-mention-wrapper.disabled .yg-mention-editor { color: rgba(51, 51, 51, 0.25); background-color: #f5f5f5; cursor: not-allowed; opacity: 1; } .yg-mention-wrapper.disabled .yg-mention-editor:hover { border-color: #bababa; border-right-width: 1px; } .yg-mention-wrapper .public-DraftEditorPlaceholder-root { position: absolute; pointer-events: none; } .yg-mention-wrapper .public-DraftEditorPlaceholder-root .public-DraftEditorPlaceholder-inner { height: auto; padding: 1px 10px; color: #ccc; white-space: pre-wrap; word-wrap: break-word; outline: none; opacity: 1; } .yg-mention-wrapper .DraftEditor-editorContainer .public-DraftEditor-content { height: auto; padding: 1px 10px; } .yg-mention-dropdown { box-sizing: content-box; margin: 0; padding: 0; color: #333; font-size: 12px; list-style: none; position: absolute; top: -9999px; left: -9999px; z-index: 1050; min-width: 120px; max-height: 250px; margin-top: 1.5em; overflow-x: hidden; overflow-y: auto; background-color: #fff; border-radius: 2px; outline: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .yg-mention-dropdown-placement-top { margin-top: -0.1em; } .yg-mention-dropdown-notfound.yg-mention-dropdown-item { color: rgba(51, 51, 51, 0.25); } .yg-mention-dropdown-notfound.yg-mention-dropdown-item .anticon-loading { display: block; color: #00a1ff; text-align: center; } .yg-mention-dropdown-item { position: relative; display: block; padding: 5px 10px; overflow: hidden; color: #333; font-weight: normal; line-height: 22px; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; transition: background 0.3s; } .yg-mention-dropdown-item:hover { background-color: #e1edff; } .yg-mention-dropdown-item.focus, .yg-mention-dropdown-item-active { background-color: #e1edff; } .yg-mention-dropdown-item-disabled { color: rgba(51, 51, 51, 0.25); cursor: not-allowed; } .yg-mention-dropdown-item-disabled:hover { color: rgba(51, 51, 51, 0.25); background-color: #fff; cursor: not-allowed; } .yg-mention-dropdown-item-selected, .yg-mention-dropdown-item-selected:hover { color: #333; font-weight: bold; background-color: #f5f5f5; } .yg-mention-dropdown-item-divider { height: 1px; margin: 1px 0; overflow: hidden; line-height: 0; background-color: #ccc; }