@import "~quill/dist/quill.bubble.css"; @import "~quill-mention/dist/quill.mention.min.css"; .chat-input-wrapper { display: inline-block; width: 100%; &.task-mention { .ql-container { .ql-mention-list-container { .ql-mention-list { > li { &:first-child { margin-top: 0; } } } .ql-mention-list-item { line-height: 36px; .mention-item-disabled { padding: 8px 4px 0; } } } } } .ql-container { display: block; float: left; width: auto; max-width: 100%; min-width: calc(100% - 170px); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; .ql-editor { font-size: 14px; max-height: 200px; padding: 0; margin: 4px 7px; img { max-width: 150px; max-height: 150px; } ol, ul { padding-left: 0; li { &:before { color: #0088ff; text-align: left; margin-right: 0.2em; } } } ul { li { &:before { font-weight: 900; } } } &.ql-blank { &::before { left: 7px; right: 7px; color: #ccc; font-style: normal; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } } } .ql-mention-list-container { width: auto; min-width: 220px; max-width: 350px; max-height: 360px; overflow-y: overlay; &::-webkit-scrollbar { width: 10px; height: 10px; } &::-webkit-scrollbar-thumb { border-radius: 10px; background: rgba(0, 0, 0, 0); } &::-webkit-scrollbar-thumb:active { border-radius: 10px; background: rgba(0, 0, 0, .5); } &:hover::-webkit-scrollbar-thumb { border: 2px solid transparent; background: rgba(0, 0, 0, .2); background-clip: content-box; } &:hover::-webkit-scrollbar-thumb:hover { border-top-width: 0; border-bottom-width: 0; } &::-webkit-scrollbar-track { border-radius: 10px; background: rgba(0, 0, 0, 0); } .ql-mention-list { > li { &:first-child { margin-top: 8px; } &:last-child { margin-bottom: 8px; } } } .ql-mention-list-item { padding: 0 8px; display: flex; align-items: center; margin: 0 8px; &.selected { border-radius: 4px; } .mention-item-at { width: 28px; height: 28px; line-height: 28px; border-radius: 50%; text-align: center; color: #ffffff; background-color: #8bcf70; overflow: hidden; } .mention-item-img { position: relative; display: flex; align-items: center; justify-content: center; > img { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; } > em { position: absolute; right: 0; bottom: 0; width: 8px; height: 8px; border-radius: 50%; background-color: #ff9900; border: 1px solid #ffffff; transform-origin: right bottom; z-index: 1; } &.online { > em { background-color: $primary-color; } } } .mention-item-name { padding: 0 8px; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .mention-item-tip { color: #8f8f8e; font-size: 12px; font-style: normal; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .mention-item-disabled { color: #aaa; font-size: 12px; padding: 0 4px; line-height: 40px; } } } } .ql-bubble { .ql-tooltip { z-index: 1; } } .chat-input-toolbar { display: flex; align-items: center; justify-content: flex-end; float: right; width: 170px; height: 28px; padding: 0 2px; .common-loading { width: 18px; height: 18px; } .toolbar-spacing { width: 1px; height: 14px; margin: 2px 7px 0; background-color: #cccccc; } > i { display: inline-block; cursor: pointer; padding: 0 5px; font-size: 20px; line-height: 28px; &.disabled { opacity: 0.5; } &:last-child { margin-right: -5px; } } .el-tooltip.taskfont { display: inline-block; cursor: pointer; padding: 0 5px; font-size: 20px; line-height: 28px; } } } .chat-input-emoji-popover { padding: 0; overflow: hidden; } .chat-input-more-popover { min-width: 100px; padding: 8px; .chat-input-popover-item { display: flex; align-items: center; font-size: 14px; cursor: pointer; line-height: 36px; padding: 0 8px; border-radius: 4px; &:hover { background-color: #ecf5ff; } > i { font-size: 20px; margin-right: 8px; } } } .chat-emoji-wrapper { display: flex; flex-direction: column; .chat-emoji-box { width: 360px; height: 280px; padding: 8px; overflow-x: hidden; word-break: break-all; box-sizing: content-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; > li { width: 40px; height: 40px; line-height: 40px; font-size: 22px; text-align: center; display: inline-block; cursor: pointer; user-select: none; transition: transform 0.3s; > img { max-width: 100%; max-height: 100%; } &:hover { transform: scale(1.4); } } &.emoticon { > li { width: 72px; height: 72px; padding: 8px; } } } .chat-emoji-menu { width: 376px; height: 40px; line-height: 40px; background-color: #f2f4f7; display: flex; align-items: center; overflow: auto; &::-webkit-scrollbar { display: none; } > li { list-style: none; cursor: pointer; display: flex; align-items: center; height: 100%; &.active { background-color: #fff; } > span { padding: 0 13px; font-size: 22px; } > img { width: 24px; height: 24px; padding: 0 12px; box-sizing: content-box; } } } }