|
|
|
.chats-container {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.input-search {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
//Vozmojno nado budet vernut margin-left: 22px;, tak kak eto vrode v levom bare tak po verstke, a v pravom bare dlya mobili nado 16, gde stiker seti
|
|
|
|
margin-left: 22px;
|
|
|
|
margin-right: 4px;
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
margin-left: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
background-color: rgba(112, 117, 121, .08);
|
|
|
|
border: 2px solid transparent;
|
|
|
|
height: 40px;
|
|
|
|
border-radius: 22px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 0px 1.5rem 0 40px;
|
|
|
|
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;
|
|
|
|
transition: all .15s ease-out;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.tgico-close {
|
|
|
|
left: auto;
|
|
|
|
right: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
//input.is-empty ~ .tgico-close {
|
|
|
|
input:placeholder-shown ~ .tgico-close {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
//padding: 0 .5rem;
|
|
|
|
/* display: grid;
|
|
|
|
grid-auto-columns: 1fr; */
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
/* grid-gap: 4px; */
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
//padding: 0 0 2px 0;
|
|
|
|
padding-bottom: 4px;
|
|
|
|
//overflow: hidden;
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
padding-bottom: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
li > .rp {
|
|
|
|
height: 72px;
|
|
|
|
max-height: 72px;
|
|
|
|
border-radius: $border-radius-medium;
|
|
|
|
//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: 9px 8.5px;
|
|
|
|
margin: 0px 8px 0px 7px;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
@media not all and (min-resolution:.001dpcm)
|
|
|
|
{ @supports (-webkit-appearance:none) {
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
padding: 9px 0 0 0;
|
|
|
|
margin: 0px 11.5px 0px 9px;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
html.no-touch &:hover {
|
|
|
|
background: rgba(112, 117, 121, .08);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
li.active, li.menu-open {
|
|
|
|
> .rp {
|
|
|
|
background: rgba(112, 117, 121, 0.08);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pinned-delimiter {
|
|
|
|
display: flex;
|
|
|
|
padding: 8px 0 4px;
|
|
|
|
|
|
|
|
span {
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 1px;
|
|
|
|
background-color: #DADCE0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dialog-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 {
|
|
|
|
max-width: 82%;
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-verified:after {
|
|
|
|
content: " ";
|
|
|
|
background: url(assets/img/icon-verified.svg);
|
|
|
|
display: inline-block;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
vertical-align: text-bottom;
|
|
|
|
margin-left: 2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-last-message {
|
|
|
|
max-width: 86%;
|
|
|
|
img.emoji {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
margin-top: -3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.emoji {
|
|
|
|
font-size: 1.2rem;
|
|
|
|
margin: 0 .125rem;
|
|
|
|
overflow: visible;
|
|
|
|
margin-top: -1.5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-title, .user-last-message {
|
|
|
|
i {
|
|
|
|
font-style: normal;
|
|
|
|
color: $color-blue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.message-status {
|
|
|
|
margin-right: .1rem;
|
|
|
|
//margin-top: .3rem;
|
|
|
|
margin-top: -.3rem;
|
|
|
|
|
|
|
|
&[class*=" tgico-"] {
|
|
|
|
color: $color-green;
|
|
|
|
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;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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: $color-green;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-contacts {
|
|
|
|
padding: 16px 0 7px;
|
|
|
|
|
|
|
|
.search-group__name {
|
|
|
|
padding-bottom: 17px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// use together like class="chats-container contacts-container"
|
|
|
|
.contacts-container, .search-group-contacts {
|
|
|
|
.dialog-avatar {
|
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
//margin-bottom: 2px;
|
|
|
|
padding-bottom: 4px;
|
|
|
|
padding-top: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
li > .rp {
|
|
|
|
padding: 9px 11.5px !important;
|
|
|
|
height: 66px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#contacts-container {
|
|
|
|
.sidebar-header {
|
|
|
|
margin-bottom: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-search {
|
|
|
|
margin-left: 16px;
|
|
|
|
}
|
|
|
|
}
|