@uimkit/uikit-react
Version:
<img style="width:64px" src="https://mgmt.uimkit.chat/media/img/avatar.png"/>
1,439 lines (1,380 loc) • 27.2 kB
CSS
.uim-chat-header {
padding: 16px 20px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.uim-chat-header-left {
display: flex;
align-items: center;
}
.uim-chat-header .header-content {
flex: 1;
padding: 0 8px;
}
.uim-chat-header-right .header-handle-more {
padding: 10px 3px;
}
.uim-chat-header .title {
font-family: PingFangSC-Medium;
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 17px;
}
.uim-chat-header .system {
height: 32px;
}
.uim-kit-icon {
display: flex;
text-align: center;
align-items: center;
cursor: pointer;
position: relative;
}
.uim-kit-icon .icon-image {
width: 100%;
height: 100%;
}
.uim-kit-icon:hover {
color: royalblue;
border-color: currentColor;
}
.uim-kit-icon::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
opacity: 0;
box-shadow: 0 0 0 6px royalblue;
transition: 0.3s;
}
.uim-kit-icon:active::after {
box-shadow: none;
opacity: 0.4;
transition: 0s;
}
.uim-kit-avatar {
display: flex;
align-items: center;
position: relative;
cursor: pointer;
}
.uim-kit-avatar.circle .avatar-image {
border-radius: 50%;
}
.uim-kit-avatar.square .avatar-image {
border-radius: 4px;
}
.uim-kit-avatar img {
width: 100%;
height: 100%;
}
.uim-kit-avatar:hover .uim-kit-avatar-edit {
display: flex;
}
.uim-kit-avatar-edit {
position: absolute;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.33);
width: 100%;
height: 100%;
border-radius: 100%;
display: none;
justify-content: center;
align-items: center;
}
.uim-kit-avatar-list {
position: absolute;
z-index: 2;
top: 100%;
background: #FFFFFF;
border-radius: 5px;
box-shadow: 0 11px 20px 0 rgba(0, 0, 0, 0.3);
display: flex;
flex-wrap: wrap;
justify-content: center;
width: 100%;
min-width: 200px;
max-width: 400px;
padding: 10px;
}
.uim-kit-avatar-list-item {
padding: 10px;
}
.uim-kit-avatar-list-item img {
width: 40px;
}
iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
a, a:link, a:visited, a:hover, a:active {
text-decoration: none;
color: inherit;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: "";
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
.uim-kit {
position: relative;
display: flex;
width: 100%;
height: 100%;
text-align: initial;
}
.uim-message-input {
display: flex;
flex-direction: column;
}
.uim-message-input-main {
flex: 1;
display: flex;
align-items: center;
padding: 8px 8px;
gap: 12px;
}
.uim-message-input-main .input-box {
flex: 1;
display: flex;
padding: 0 8px;
position: relative;
min-height: 120px;
max-height: 400px;
border-radius: 0px;
overflow: hidden;
padding: 10px;
}
.uim-message-input-main .input-box textarea {
/*position: absolute;
top: 0;
left: 0;
*/
width: -webkit-fill-available;
height: auto;
flex: 1;
font-family: PingFangSC;
font-style: normal;
/*font-weight: 500;*/
font-size: 14px;
line-height: 17px;
margin: 0;
resize: none;
border: none;
background: none;
}
.uim-message-input-main .input-box textarea:focus, .uim-message-input-main .input-box textarea:active {
border: none;
outline: none;
}
.uim-message-input-main .disabled {
display: none;
}
.uim-message-input-box {
flex: 1;
display: flex;
min-height: 120px;
max-height: 400px;
}
ul li {
list-style: none;
}
.input-plugin-popup {
position: relative;
}
.input-plugin-popup-box {
position: absolute;
z-index: 2;
bottom: 30px;
}
.input-plugin-item {
font-style: normal;
font-weight: 500;
font-size: 16px;
font-family: PingFangSC-Medium;
line-height: 19px;
display: flex;
}
.input-plugin-item span {
padding: 0 17px;
}
.emoji-picker .face-list {
min-width: 265px;
padding: 10px 5px;
display: flex;
flex-wrap: wrap;
max-height: 120px;
overflow-y: auto;
}
.emoji-picker .face-list-item {
padding: 5px;
cursor: pointer;
}
.emoji-picker .face-list-item img {
width: 20px;
}
.emoji-picker .face-list-item .face-img {
width: 38px;
}
.emoji-picker .face-tab {
display: flex;
align-items: center;
min-width: 265px;
}
.emoji-picker .face-tab-item {
cursor: pointer;
width: 24px;
padding: 10px;
}
.emoji-picker .face-tab-item img {
width: 100%;
}
.emoji-picker .emoji-plugin-right {
right: 0;
}
.upload-picker {
position: relative;
}
.upload-picker:hover {
background: rgba(0, 110, 255, 0.1);
color: #147aff;
}
.upload-picker input {
position: absolute;
cursor: pointer;
left: 0;
top: 0;
opacity: 0;
width: 100%;
height: 100%;
}
.input-quote {
padding: 7px 16px;
background: #F9F9F9;
display: flex;
align-items: center;
}
.input-quote-content {
flex: 1;
background: #FFFFFF;
padding: 2px 14px;
position: relative;
display: flex;
flex-direction: column;
font-weight: 500;
font-size: 14px;
font-family: PingFangSC-Medium;
line-height: 17px;
color: #000000;
}
.input-quote-content::before {
content: "";
position: absolute;
width: 6px;
height: 100%;
background: #999999;
top: 0;
left: 0;
}
.input-quote-content span {
padding-top: 8px;
opacity: 0.6;
}
.input-quote .icon {
margin: 0 5px 0 16px;
}
.uim-forward {
background: #FFFFFF;
border-radius: 16px;
display: flex;
flex-direction: column;
overflow: hidden;
width: 300px;
}
.uim-forward-header {
display: flex;
align-items: center;
padding: 24px 20px;
}
.uim-forward-title {
padding: 0 16px;
font-family: PingFangSC-Medium;
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 17px;
}
.uim-forward-main {
padding: 0 20px;
max-height: calc(100vh - 200px);
overflow-y: auto;
}
.uim-forward-main .no-result {
font-family: PingFangSC-Medium;
font-size: 14px;
font-style: normal;
line-height: 20px;
padding: 10px;
text-align: center;
color: #999999;
}
.uim-forward-search {
padding: 10px 15px;
}
.uim-forward-list {
padding: 13px 0;
}
.uim-forward-list-title {
font-family: PingFangSC-Medium;
font-style: normal;
font-weight: 600;
font-size: 14px;
line-height: 20px;
}
.uim-forward-list-item {
padding: 6px 0;
font-family: PingFangSC-Medium;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.uim-forward-list-item .info {
display: flex;
align-items: center;
}
.uim-forward-list-item .info-nick {
padding: 0 13px;
font-family: PingFangSC-Medium;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 20px;
min-width: 180px;
max-width: 300px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.uim-forward-footer {
background: rgba(249, 249, 249, 0.94);
padding: 13px 10px;
display: flex;
justify-content: space-between;
align-items: center;
}
.uim-forward-footer .button {
cursor: pointer;
background: #0365F9;
border-radius: 31px;
padding: 10px 21px;
font-family: PingFangSC-Medium;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 20px;
color: #FFFFFF;
border: none;
}
.uim-forward-footer-name {
flex: 1;
overflow: hidden;
word-break: break-all;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.transmitter {
padding: 0 10px;
}
.transmitter .icon-send {
transform: rotate(90deg);
}
.uim-emojisearch {
bottom: 100%;
left: 0;
width: calc(100% - 20px);
position: absolute;
background: var(--white95);
box-shadow: 0 0 1px 0 var(--black30), 0 0 6px 0 var(--black10);
z-index: 10001;
border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
margin: 0 var(--xs-m);
max-height: 360px;
overflow-y: auto;
}
.uim-emojisearch__list {
margin: 0;
padding: 0;
list-style-type: none;
border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
}
.uim-message-textarea-react-host {
position: relative;
display: flex;
justify-content: center;
width: 100%;
}
.uim-message-textarea {
width: 100%;
display: flex;
max-height: 100%;
overflow-y: auto;
overflow-x: hidden;
font-family: PingFangSC;
font-style: normal;
font-size: 14px;
line-height: 17px;
margin: 0;
resize: none;
border: none;
background: none;
}
.uim-message-textarea:focus, .uim-message-textarea:active {
border: none;
outline: none;
}
.uim-message-input .uim-kit-input-box--focus {
/*outline: 1px solid #147AFF;*/
}
.uim-message-input .input-box {
/* border: 1px solid #D3DAF3;*/
background: #FFFFFF;
}
.input-plugin-popup-box {
background: rgba(249, 249, 249, 0.94);
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
border-radius: 16px;
}
.uim__emoji-item {
margin-top: 8px;
}
ul, li, div, p, label, span {
margin: 0;
padding: 0;
}
ul li {
list-style: none;
}
.uim-message-list {
flex: 1;
height: 100%;
overflow-x: hidden;
overflow-y: auto;
position: relative;
padding: 0 20px;
}
.uim-message-list.hide {
opacity: 0;
}
.uim-message-list-item {
display: grid;
padding: 5px 0;
}
.uim-message-list .no-more {
text-align: center;
font-family: PingFangSC-Medium;
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: 17px;
color: #999999;
}
.uim-message-list-time {
color: #7a7a7a;
font-family: PingFangSC-Medium;
font-size: 12px;
font-weight: 400;
line-height: 14px;
padding: 10px;
text-align: center;
}
.chat {
flex: 1;
width: 100%;
height: 100%;
box-sizing: border-box;
display: flex;
flex-direction: column;
position: relative;
}
.uim-conversation-list {
overflow-x: hidden;
overflow-y: auto;
min-width: 300px;
max-width: 400px;
width: 300px;
height: 100%;
display: flex;
flex-direction: column;
position: relative;
border-right: 1px solid #F9FAFB;
text-align: initial;
}
.uim-conversation-list .uim-conversation-header {
display: flex;
padding: 10px 20px;
}
.uim-conversation-list .uim-conversation-header .uim-conversation-create-icon {
display: flex;
align-items: center;
justify-content: center;
margin-left: 10px;
}
.uim-conversation-list .no-result {
padding: 0 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.uim-conversation-list .no-result-icon {
margin: 100px auto 50px;
}
.uim-conversation-list .no-result-message {
color: #999999;
font-weight: 400;
font-size: 16px;
font-family: PingFangSC-Medium;
line-height: 22px;
}
.conversation-list-container {
overflow-x: hidden;
height: 100%;
}
.conversation-preview-container {
display: flex;
align-items: center;
border: none;
width: 100%;
height: 64px;
cursor: pointer;
line-height: 17px;
padding: 0 20px;
}
.conversation-preview-container .content {
flex: 1;
text-align: left;
max-width: 58%;
min-width: 58%;
margin-left: 10px;
}
.conversation-preview-container .content .title {
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 17px;
font-family: PingFangSC-Medium;
padding: 1px 0;
}
.conversation-preview-container .content .message {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #7A7A7A;
font-family: PingFangSC-Medium;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
padding: 1px 0;
}
.conversation-preview-container .external {
min-width: 90px;
text-align: right;
flex: 1;
display: flex;
flex-direction: column;
}
.conversation-preview-container .external .unread {
height: 19px;
padding: 1px 0;
}
.conversation-preview-container .external .time {
color: #7A7A7A;
font-family: PingFangSC-Medium;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
padding: 1px 0;
}
.conversation-preview-container .external .more--hover {
display: flex;
justify-content: right;
}
.conversation-preview-container .external .more--hover .icon-more {
transform: scale(1.5);
}
.conversation-preview-container .external .more--hover .more-handle-box {
top: 0;
right: 0;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
bottom: initial;
padding: 14px 0;
box-sizing: border-box;
text-align: start;
white-space: nowrap;
}
.conversation-preview-container .external .more--hover .more-handle-box .more-handle-item {
font-size: 16px;
font-family: PingFangSC-Medium;
line-height: 19px;
padding: 6px 16px;
cursor: pointer;
font-weight: 500;
box-sizing: border-box;
}
.conversation-preview-container .external .more--hover .more-handle-box .more-handle-item:hover {
background: #147AFF;
opacity: 0.6;
color: #FFFFFF ;
}
.conversation-preview-container:hover {
background-color: rgba(0, 110, 255, 0.1);
}
.conversation-preview-container.conversation-preview-content--pin {
background-color: rgba(242, 242, 242, 0.831372549);
}
.conversation-preview-container.conversation-preview-content--active {
background-color: rgba(0, 110, 255, 0.1);
}
.conversation-preview-container.conversation-preview-content--active .title {
color: rgb(20, 122, 255);
}
.conversation-preview-container.conversation-preview-content--unread .unread {
width: 16px;
height: 13px;
background: #FF3742;
border-radius: 16px;
display: flex;
justify-content: center;
align-items: center;
padding: 2px 5px 1px;
color: #FFFFFF;
font-size: 11px;
font-weight: 700;
margin: 2px 0 2px auto;
}
.contact-list-container {
overflow-x: hidden;
height: 100%;
}
.contact-preview-container {
display: flex;
align-items: center;
border: none;
width: 100%;
height: 64px;
cursor: pointer;
line-height: 17px;
padding: 0 20px;
}
.contact-preview-container .content {
flex: 1;
text-align: left;
max-width: 58%;
min-width: 58%;
margin-left: 10px;
}
.contact-preview-container .content .title {
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 17px;
font-family: PingFangSC-Medium;
padding: 1px 0;
}
.contact-preview-container .external {
min-width: 90px;
text-align: right;
flex: 1;
display: flex;
flex-direction: column;
}
.contact-preview-container .external .more--hover {
display: flex;
justify-content: right;
}
.contact-preview-container .external .more--hover .icon-more {
transform: scale(1.5);
}
.contact-preview-container .external .more--hover .more-handle-box {
top: 0;
right: 0;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
bottom: initial;
padding: 14px 0;
box-sizing: border-box;
text-align: start;
white-space: nowrap;
}
.contact-preview-container .external .more--hover .more-handle-box .more-handle-item {
font-size: 16px;
font-family: PingFangSC-Medium;
line-height: 19px;
padding: 6px 16px;
cursor: pointer;
font-weight: 500;
box-sizing: border-box;
}
.contact-preview-container .external .more--hover .more-handle-box .more-handle-item:hover {
background: #147AFF;
opacity: 0.6;
color: #FFFFFF ;
}
.contact-preview-container:hover {
background-color: rgba(0, 110, 255, 0.1);
}
.contact-preview-container.contact-preview-content--pin {
background-color: rgba(242, 242, 242, 0.831372549);
}
.contact-preview-container.contact-preview-content--active {
background-color: rgba(0, 110, 255, 0.1);
}
.contact-preview-container.contact-preview-content--active .title {
color: rgb(20, 122, 255);
}
.uim-contact-list {
height: 100%;
overflow-x: hidden;
overflow-y: auto;
min-width: 300px;
max-width: 400px;
width: 300px;
display: flex;
flex-direction: column;
position: relative;
border-right: 1px solid #F9FAFB;
text-align: initial;
}
.uim-contact-list .uim-contact-header {
display: flex;
padding: 10px 20px;
}
.uim-contact-list .no-result {
padding: 0 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.uim-contact-list .no-result-icon {
margin: 100px auto 50px;
}
.uim-contact-list .no-result-message {
color: #999999;
font-weight: 400;
font-size: 16px;
font-family: PingFangSC-Medium;
line-height: 22px;
}
.uim-group-list {
height: 100%;
overflow-x: hidden;
overflow-y: auto;
min-width: 300px;
max-width: 400px;
width: 300px;
display: flex;
flex-direction: column;
position: relative;
border-right: 1px solid #F9FAFB;
text-align: initial;
}
.uim-group-list .no-result {
padding: 0 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.uim-group-list .no-result-icon {
margin: 100px auto 50px;
}
.uim-moment-list {
width: 400px;
}
.plugin {
display: flex;
align-items: center;
height: 100%;
padding: 8px 8px;
gap: 12px;
}
.plugin-item {
cursor: pointer;
}
.plugin-popup {
height: 100%;
display: flex;
align-items: center;
position: relative;
}
.plugin-popup-box {
position: absolute;
z-index: 2;
bottom: 100%;
}
.plugin-popup-box {
background: #FFFFFF;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
.message-default {
width: 100%;
flex: 1;
display: flex;
align-items: center;
font-family: SF Pro Text;
font-size: 14px;
font-family: PingFangSC-Medium;
font-style: normal;
font-weight: 500;
line-height: 17px;
}
.message-default .avatar {
width: 45px;
}
.message-default .avatar img {
width: 45px;
}
.message-default .content {
padding: 0 10px;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.message-default .content .name {
display: inline-block;
padding-bottom: 3px;
}
.in {
flex: 1;
display: flex;
flex-direction: row;
justify-self: flex-start;
}
.in .content {
align-items: flex-start;
flex: 1;
}
.out {
flex: 1;
display: flex;
flex-direction: row-reverse;
justify-self: flex-end;
}
.out .content {
align-items: flex-end;
flex: 1;
}
.tip {
justify-self: center ;
width: auto;
}
.bubble {
padding: 8px 16px;
}
.bubble-in {
border-radius: 16px 16px 16px 0;
}
.bubble-in.group {
border-radius: 0px 16px 16px 16px;
}
.bubble-out {
border-radius: 16px 16px 0 16px;
}
.message-status {
display: flex;
align-items: flex-end;
align-self: flex-end;
}
.message-status .time {
width: max-content;
font-weight: 400;
padding: 5px 0 0 10px;
font-size: 12px;
font-family: PingFangSC-Medium;
line-height: 14px;
text-align: right;
color: #7A7A7A;
}
.message-image, .message-video {
position: relative;
}
.message-image .message-status, .message-video .message-status {
position: absolute;
bottom: 10px;
right: 10px;
}
.message-image .message-status .time, .message-video .message-status .time {
color: #FFFFFF;
}
.message-text {
display: flex;
}
.message-text-content {
display: inline;
word-break: break-word;
font-family: PingFangSC-Regular;
font-style: normal;
font-weight: 500;
font-size: 14px;
line-height: 17px;
}
.message-text-content-p {
display: inline;
vertical-align: middle;
}
.message-text-content .message-status {
display: inline-flex;
float: right;
clear: right;
}
.message-text,
.message-tip {
font-family: PingFangSC-Regular;
font-style: normal;
font-weight: 500;
font-size: 14px;
line-height: 17px;
}
.message-text .text-img,
.message-tip .text-img {
width: 20px;
height: 20px;
vertical-align: middle;
}
.message-image {
background: #FFFFFF;
}
.message-image img {
max-width: 300px;
}
.message-image .big-image {
max-width: 95%;
max-height: 95%;
}
.message-video {
max-width: 300px;
}
.message-video .snap-video {
position: relative;
}
.message-video .snap-video::before {
position: absolute;
z-index: 1;
content: "";
width: 0px;
height: 0px;
border: 15px solid transparent;
border-left: 20px solid #ffffff;
top: 0;
left: 0;
bottom: 0;
right: 0;
margin: auto;
}
.message-video video {
width: 100%;
border-radius: 10px;
}
.message-video .play-video {
max-width: 95%;
max-height: 95%;
}
.message-file {
display: flex;
flex-direction: column;
border: 1px solid #ddd;
}
.message-file-main {
display: flex;
align-items: center;
padding: 12px;
background: #FFFFFF;
border-radius: 4px;
}
.message-file-main .icon {
margin-right: 7px;
}
.message-file-footer {
display: flex;
justify-content: space-between;
align-items: flex-end;
}
.message-file-footer .time {
padding-top: 10px;
}
.message-file-size {
padding-top: 10px;
font-weight: 400;
font-size: 12px;
font-family: PingFangSC-Medium;
line-height: 14px;
color: #7A7A7A;
}
.message-merger {
display: flex;
flex-direction: column;
background: #ECEBEB;
}
.message-merger h3 {
padding-bottom: 4px;
border-bottom: 1px solid #a1a1a1;
}
.message-merger-list {
opacity: 0.6;
}
.message-merger-item {
padding-top: 4px;
}
.meesage-bubble-reply {
background: #ECEBEB;
padding: 8px 16px;
}
.meesage-bubble-reply-in {
border-radius: 16px 16px 16px 0;
}
.meesage-bubble-reply-out {
border-radius: 16px 16px 0px 16px;
}
.meesage-bubble-reply .message-text {
border-radius: none;
border: none;
}
.meesage-bubble-reply .bubble {
padding: 0;
}
.meesage-bubble-reply .bubble-in {
border-radius: 0;
}
.meesage-bubble-reply-main {
position: relative;
padding: 10px 14px;
margin-bottom: 10px;
background: #FFFFFF;
}
.meesage-bubble-reply-main::before {
content: "";
position: absolute;
width: 6px;
height: 100%;
background: #D9D9D9;
top: 0;
left: 0;
}
.meesage-bubble-reply-main .title {
font-family: PingFangSC-Medium;
font-style: normal;
font-weight: 500;
font-size: 14px;
line-height: 17px;
padding-bottom: 10px;
}
.meesage-bubble-reply-main .message-context {
opacity: 0.6;
}
.meesage-bubble {
display: flex;
align-items: flex-end;
}
.meesage-bubble-status {
margin: 3px;
}
.meesage-bubble-context {
display: flex;
align-items: center;
padding: 0 8px;
}
.meesage-bubble-context .message-context {
flex: 1;
}
.icon-fail {
width: 14px;
height: 14px;
border-radius: 14px;
position: relative;
background: #FA5151;
display: inline-flex;
justify-content: center;
align-items: center;
}
.icon-fail::before {
position: absolute;
content: "!";
color: #FFFFFF;
font-size: 12px;
font-family: PingFangSC-Medium;
}
.message-face {
display: flex;
flex-direction: column;
}
.message-face .img {
max-width: 88px;
}
.loading {
display: inline-block;
position: relative;
}
.loading .img, .loading video {
min-width: 60px;
min-height: 60px;
max-width: 300px;
border-radius: 10px;
}
.loading::before {
position: absolute;
content: "";
background: rgba(0, 0, 0, 0.5);
border-radius: 10px;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.loading::after {
position: absolute;
content: "";
border: 5px solid #f3f3f3;
border-top: 5px solid #555;
border-radius: 50%;
width: 30px;
height: 30px;
display: inline-block;
animation: spin 2s linear infinite;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.message-plugin {
width: 32px;
margin: 0 5px;
cursor: pointer;
}
.message-plugin .icon-more {
transform: scale(1.5);
}
.message-plugin .plugin-popup-box {
top: 100%;
bottom: auto;
}
.message-plugin-top {
top: auto ;
bottom: 100% ;
}
.message-plugin-left {
left: -140px ;
}
.message-plugin-box {
padding: 6px 0;
}
.message-plugin-item {
min-width: 144px;
padding: 6px 13px;
display: flex;
justify-content: space-between;
align-items: center;
font-weight: 500;
font-size: 12.8px;
font-family: PingFangSC-Medium;
line-height: 15px;
}
.message-plugin-item:hover {
background: rgba(0, 110, 255, 0.1);
color: #147aff;
}
.message-plugin-item .del {
color: #FF584C;
}
.message-custom {
display: flex;
word-break: break-all;
}
.message-custom a {
color: #679ce1;
text-decoration: none;
font-family: PingFangSC-Regular;
font-style: normal;
font-weight: 500;
font-size: 14px;
line-height: 17px;
}
.message-revoke {
color: #999999;
}
.message-audio {
display: flex;
align-items: center;
}
.message-audio .out {
transform: rotate(180deg);
}
.message-audio-none {
display: none;
}
.message-audio-content {
display: flex;
align-items: center;
gap: 10px;
}
.message-audio-out {
flex-direction: row-reverse;
}
.message-audio .playing {
animation: playingAnimation 1s ease-in-out infinite;
}
@keyframes playingAnimation {
0% {
opacity: 1;
}
50% {
opacity: 0.3;
}
100% {
opacity: 1;
}
}
.high-lighted {
animation: highLightedAnimation 1s ease-in-out forwards;
}
@keyframes highLightedAnimation {
0% {
opacity: 1;
}
25% {
opacity: 0.3;
}
50% {
opacity: 1;
}
75% {
opacity: 0.3;
}
100% {
opacity: 1;
}
}
.progress-box {
width: 100%;
height: 5px;
display: flex;
justify-content: flex-start;
}
.progress-box .progress {
display: inline-block;
width: 0;
background: #147aff;
height: 5px;
border-radius: 2px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
}
.message-text, .message-custom {
border: 1px solid #DDDDDD;
}
.bubble-out {
background: #F2F7FF;
border: 1px solid #F2F7FF;
}
.meesage-bubble-reply-out {
background: #F2F7FF;
}
.meesage-bubble-reply-out .meesage-bubble-reply-main .message-text {
background: none;
}
.message-tip {
color: #999999;
}
.tip .bubble .edit {
color: #147aff;
}
.str-chat__suggestion-list-container {
position: absolute;
bottom: var(--str-chat__spacing-7);
width: 100%;
padding: var(--str-chat__spacing-2) 0;
}
.str-chat__suggestion-list-container .str-chat__suggestion-list {
max-height: calc(var(--str-chat__spacing-px) * 320);
display: flex;
flex-direction: column;
list-style: none;
padding: unset;
margin: unset;
}
.rta__list .rta__list-header {
background: var(--dark-grey);
border: 1px solid var(--white5);
box-shadow: 0 2px 1px 0 var(--black5);
color: var(--white);
}
.uim-emojisearch {
bottom: 100%;
left: 0;
width: calc(100% - 20px);
position: absolute;
background: var(--white95);
box-shadow: 0 0 1px 0 var(--black30), 0 0 6px 0 var(--black10);
z-index: 10001;
border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
margin: 0 var(--xs-m);
max-height: 360px;
overflow-y: auto;
}
.uim-emojisearch__list {
margin: 0;
padding: 0;
list-style-type: none;
border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
}