.chats-container { position: relative; .input-search { position: relative; width: 100%; margin-left: 22px; input { background-color: rgba(112, 117, 121, .08); border: 2px solid transparent; height: 44px; border-radius: 22px; box-sizing: border-box; padding: 0px 1.5rem 0 40px; -webkit-transition: all .15s ease-out; transition: all .15s ease-out; width: 100%; font-size: 16px; &:focus { background-color: rgba(112, 117, 121, 0); border: 2px solid $button-primary-background; & + .tgico { color: $button-primary-background; opacity: 1; } } } .tgico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); text-align: center; font-size: 24px; color: $color-gray; opacity: .6; -webkit-transition: all .15s ease-out; transition: all .15s ease-out; &:before { vertical-align: middle; } } } ul { margin: 0; //padding: 0 .5rem; /* display: grid; grid-auto-columns: 1fr; */ display: flex; flex-direction: column; /* grid-gap: 4px; */ width: 100%; } li { padding: 2px 0; //overflow: hidden; background-color: #fff; } li > .rp { height: 70px; max-height: 70px; border-radius: $border-radius; //align-items: center; /* display: grid; grid-template-columns: 64px calc(100% - 64px - 6.5px); */ display: flex; align-items: flex-start; flex-direction: row; position: relative; cursor: pointer; padding: 7px 8.5px; margin: 0px 8px 2px 7px; overflow: hidden; &:hover { background: rgba(112, 117, 121, .08); } } li.active > .rp { background: rgba(112, 117, 121, 0.08); } .pinned-delimiter { display: flex; padding: 6px 0 6px; span { margin: 0; width: 100%; height: 1px; background-color: #DADCE0; } } /* li.dialog-pinned + .pinned-delimiter { display: flex; } */ p { margin: 0; display: flex; justify-content: space-between; flex-direction: row; //align-items: center; align-items: flex-start; //height: 1.7rem; // hot-fix height: 27px; // maybe new hot-fix /* span:not(.tgico-pinnedchat):not(.emoji):last-child { */ .user-title + span { /* font-size: .9rem; */ //font-size: .8rem; font-size: .75rem; padding: 1px 0px 0px 0px; } .user-last-message + span:not(.tgico-pinnedchat) { font-size: .9rem; } } span { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; //margin: .1rem 0; line-height: 27px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .user-avatar { flex: 0 0 auto; } .user-caption { max-width: 100%; max-height: 100%; overflow: hidden; color: $color-gray; flex: 1 1 auto; padding: 1px 3.5px 1px 9px; p:last-child { margin-top: -3px; } } .user-title { img.emoji { vertical-align: top; margin-top: 4px; width: 18px; height: 18px; } span.emoji { overflow: visible; margin: 0; width: auto; font-size: 14px; //vertical-align: unset; margin-top: -1.5px; } } .user-last-message { img.emoji { width: 20px; height: 20px; } span.emoji { font-size: 1.2rem; margin: 0 .125rem; overflow: visible; margin-top: -1.5px; } } .user-title, .user-last-message { max-width: 80%; i { font-style: normal; color: $darkblue; } } .message-status { margin-right: .1rem; //margin-top: .3rem; margin-top: -.3rem; &[class*=" tgico-"] { color: $success-color; font-size: 1.25rem; } &:before { vertical-align: middle; } } .unread, .unread-muted, .tgico-pinnedchat { height: 24px; text-align: center; line-height: 24px; color: #fff; border-radius: 12px; margin-top: 4px; margin-right: -2px; } .unread, .unread-muted { min-width: 24px; padding: 0 8px; font-weight: 500; } .tgico-pinnedchat { width: 24px; font-size: 1.5rem; } .unread:empty, .unread-muted:empty { visibility: hidden; } .unread { background: $success-color; } .unread-muted, .tgico-pinnedchat { background: #c5c9cc; } .search-group { width: 100%; border-bottom: 1px solid #DADCE0; padding: 1rem 0 .5rem; margin-bottom: .5rem; &__name { color: $color-gray; padding: 0 23px; padding-bottom: 1rem; font-weight: 500; } &:not(.search-group-messages) { .user-avatar { width: 48px; height: 48px; } } &-contacts { padding: 16px 0 7px; li > .rp { padding: 9px 11.5px !important; height: 66px; } .search-group__name { padding-bottom: 17px; } .user-caption { padding: 1px 3.5px 1px 13px; } .user-title, b, .user-last-message b { font-weight: normal; } p { height: 24px; } span.user-last-message { font-size: 14px; } } } }