UNPKG

react-chat-elements

Version:
239 lines (206 loc) 4.25 kB
.rce-container-citem { flex-direction: column; display: block; overflow: hidden; min-width: 240px; } .rce-container-citem.rce-citem-status-encircle { position: relative; } .rce-citem { position: relative; background: white; display: flex; flex-direction: row; height: 72px; cursor: pointer; user-select: none; max-width: 100%; overflow: hidden; min-width: 240px; } .rce-citem:hover { background: #f9f9f9; } .rce-citem-avatar { position: relative; padding: 0 15px 0 13px; justify-content: center; display: flex; align-items: center; flex-direction: column; } .rce-citem-status { width: 20px; height: 20px; bottom: 10px; right: 10px; position: absolute; border-radius: 100%; display: flex; align-items: center; justify-content: center; background: #ccc; } .rce-citem-avatar.rce-citem-status-encircle .rce-citem-status { left: 0; right: 0; top: 0; bottom: 0; width: 100%; height: 100%; background: transparent; margin: auto; border-radius: 100%; } .rce-citem-avatar img { width: 50px; height: 50px; border: none !important; background: #ccc; border-radius: 100%; overflow: hidden; font-size: 10px; text-align: center; line-height: 50px; text-overflow: ellipsis; white-space: nowrap; } .rce-citem-body { display: flex; flex: 1; flex-direction: column; justify-content: center; padding-right: 15px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); overflow: hidden; } .rce-citem-body--top { display: flex; } .rce-citem-body--bottom { margin-top: 4px; display: flex; } .rce-citem-body--bottom-title, .rce-citem-body--top-title { flex: 1; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } .rce-citem-body--top-title { font-size: 16px; } .rce-citem-body--bottom-title { color: #555; font-size: 15px; } .rce-citem-body--top-time { font-size: 12px; color: rgba(0, 0, 0, 0.4); } .rce-citem-body--bottom-status { margin-left: 3px; } .rce-citem-body--bottom-status span { width: 18px; height: 18px; font-size: 12px; color: white; font-weight: bold; text-align: center; align-items: center; justify-content: center; display: flex; border-radius: 100%; background: red; } .rce-citem-body--bottom-status-icon { position: relative; margin-left: 3px; width: 18px; height: 18px; align-items: center; justify-content: center; display: flex; } .rce-citem-body--bottom-tools { align-items: center; justify-content: center; flex-direction: row; display: flex; height: 0; opacity: 0; position: absolute; left: -999px; transition: height 0.5s ease, opacity 1s ease; } .rce-citem:hover .rce-citem-body--bottom-tools { height: 100%; opacity: 1; position: relative; left: 0; } .rce-citem-body--bottom-tools-item-hidden-hover { height: 100%; opacity: 0.3; transition: 0.5s ease; } .rce-citem:hover .rce-citem-body--bottom-tools-item-hidden-hover { height: 0; opacity: 0; position: absolute; left: -999px; transition: 0.5s ease; } .rce-citem-body--bottom-tools-item { width: 18px; height: 18px; } .rce-citem-body--bottom-tools-item svg { width: 18px; height: 18px; } .rce-container-citem.subitem .rce-citem { height: 40px; padding-left: 30px; } .rce-container-citem.subitem .rce-citem-body--top .rce-citem-body--top-title { font-size: 12px !important; } .rce-container-citem.subitem .rce-citem-body--top .rce-citem-body--top-time { font-size: 10px !important; } .rce-container-citem.subitem .rce-citem-body--bottom * { font-size: 12px !important; } .rce-container-citem.subitem .rce-citem-body--bottom-status span { width: 14px; height: 14px; font-size: 10px !important; color: white; font-weight: bold; text-align: center; align-items: center; justify-content: center; display: flex; border-radius: 100%; background: red; } .rce-container-citem.subitem .rce-citem-body--bottom { margin-top: unset; } .rce-citem-expand-button { background: transparent; border: none; cursor: pointer; padding: 2px 15px; color: teal; } .rce-citem-expand-button:hover { background-color: #eee; } .rce-sublist-container { position: relative; }