UNPKG

@fle-ui/plus-im-record

Version:
119 lines (108 loc) 1.94 kB
@prefix: chart-messages-item; .tipText() { text-align: center; font-size: 12px; color: #999; padding: 8px 56px; span { display: inline-block; padding: 3px 8px; border-radius: 4px; background-color: #fff; } } // 对话 .@{prefix} { display: flex; padding: 8px; // margin-bottom: 16px; .ant-avatar { border-radius: 50%; margin-top: 20px; margin-right: 8px; } &-recall { .tipText(); } &-tip { .tipText(); display: flex; justify-content: center; align-items: center; &.is-close { &::before, &::after { display: block; flex: 1; content: ''; height: 1px; width: 100%; background-color: #ddd; } } span { margin: 0 10px; flex-shrink: 0; } } &-box { position: relative; display: flex; flex-direction: column; align-items: flex-start; } &-body { position: relative; word-break: break-all; word-wrap: break-word; white-space: break-spaces; overflow: hidden; max-width: 375px; min-width: 24px; border-radius: 2px 6px 6px 6px; background: #fff; } &-read { display: block; border-radius: 50%; font-size: 12px; color: #aaa; transform: scale(0.85); } &-date { font-size: 12px; color: #aaa; margin-bottom: 4px; &-tag { background-color: rgba(239, 106, 15, 0.1); color: #ef6a0f; margin: 0 4px; line-height: 1; padding: 0 4px; } } } // 对话-自己 .@{prefix}.self { flex-direction: row-reverse; .ant-avatar { margin-right: 0; margin-left: 12px; } .@{prefix}-box { align-items: flex-end; } .@{prefix}-body { border-radius: 6px 2px 6px 6px; background: #dbe6ff; } .@{prefix}-ref-body { border-left: 3px solid #c2d4ff; } } // 对话-H5 .@{prefix}.h5 { .@{prefix}-body { max-width: 276px; } }