2021-04-08 17:52:31 +04:00
|
|
|
|
/*
|
|
|
|
|
* https://github.com/morethanwords/tweb
|
|
|
|
|
* Copyright (C) 2019-2021 Eduard Kuzmenko
|
|
|
|
|
* https://github.com/morethanwords/tweb/blob/master/LICENSE
|
|
|
|
|
*/
|
|
|
|
|
|
2020-12-01 17:38:36 +02:00
|
|
|
|
.chatlist-container {
|
2020-06-13 11:19:39 +03:00
|
|
|
|
position: relative;
|
|
|
|
|
|
2020-06-21 15:25:17 +03:00
|
|
|
|
.search-group-recent.search-group {
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
|
padding: 2px 0 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-19 16:14:42 +04:00
|
|
|
|
.search-group {
|
2020-06-13 11:19:39 +03:00
|
|
|
|
width: 100%;
|
2021-03-19 16:14:42 +04:00
|
|
|
|
padding: 1rem 0 .5rem;
|
|
|
|
|
margin-bottom: 17px;
|
|
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__name {
|
2021-04-02 18:32:10 +04:00
|
|
|
|
color: var(--secondary-text-color);
|
2021-03-19 16:14:42 +04:00
|
|
|
|
padding: 0 23px;
|
|
|
|
|
padding-bottom: 1rem;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
|
padding: 5px 9px 0 16px;
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-contacts {
|
2021-04-03 23:25:43 +04:00
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
2021-03-19 16:14:42 +04:00
|
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
|
padding: 0px 0 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// .search-group__name {
|
|
|
|
|
// padding-bottom: 17px;
|
|
|
|
|
|
|
|
|
|
// @include respond-to(handhelds) {
|
|
|
|
|
// padding-bottom: 0;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
}
|
2020-06-16 23:48:08 +03:00
|
|
|
|
|
2021-03-19 16:14:42 +04:00
|
|
|
|
&-people.search-group-contacts {
|
|
|
|
|
padding: 5px 0 5px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
|
border-bottom: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-super {
|
|
|
|
|
.search-group {
|
|
|
|
|
margin-bottom: 0px;
|
|
|
|
|
padding: 4px 0 0;
|
|
|
|
|
|
|
|
|
|
&__name {
|
|
|
|
|
padding-top: 1rem;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-06-13 11:19:39 +03:00
|
|
|
|
}
|
|
|
|
|
|
2021-03-19 16:14:42 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ul.chatlist {
|
2021-05-25 13:45:35 +03:00
|
|
|
|
padding: 0 .5rem/* .5rem */;
|
2021-03-19 16:14:42 +04:00
|
|
|
|
|
2021-05-25 23:22:25 +03:00
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
|
// padding: 0 0 .5rem;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
2021-03-19 16:14:42 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.chatlist {
|
|
|
|
|
//--avatarSize: 54px;
|
|
|
|
|
//--height: 72px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 100%;
|
2021-04-02 18:32:10 +04:00
|
|
|
|
background-color: var(--surface-color);
|
2021-03-19 16:14:42 +04:00
|
|
|
|
|
|
|
|
|
user-select: none;
|
|
|
|
|
-webkit-user-select: none; /* disable selection/Copy of UIWebView */
|
|
|
|
|
-webkit-touch-callout: none; /* disable the IOS popup when long-press on a link */
|
|
|
|
|
|
|
|
|
|
/* &.chatlist-avatar-48 {
|
|
|
|
|
--avatarSize: 48px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
|
&.chatlist-handhelds-66 {
|
|
|
|
|
--height: 66px;
|
|
|
|
|
}
|
|
|
|
|
} */
|
|
|
|
|
|
2020-06-13 11:19:39 +03:00
|
|
|
|
li {
|
2021-03-19 16:14:42 +04:00
|
|
|
|
//height: var(--height);
|
|
|
|
|
height: 72px;
|
|
|
|
|
//max-height: var(--height);
|
|
|
|
|
border-radius: $border-radius-medium;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: flex-start; // TODO: проверить разницу в производительности с align-items: center;
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
position: relative;
|
|
|
|
|
cursor: pointer;
|
2021-04-02 18:32:10 +04:00
|
|
|
|
padding: .5625rem;
|
2021-03-19 16:14:42 +04:00
|
|
|
|
/* padding-top: calc((var(--height) - var(--avatarSize)) / 2);
|
|
|
|
|
padding-bottom: calc((var(--height) - var(--avatarSize)) / 2);
|
|
|
|
|
padding-right: 8.5px;
|
|
|
|
|
padding-left: 8.5px; */
|
|
|
|
|
overflow: hidden;
|
2020-06-13 11:19:39 +03:00
|
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
2021-03-19 16:14:42 +04:00
|
|
|
|
border-radius: 0;
|
2020-06-13 11:19:39 +03:00
|
|
|
|
}
|
2020-08-30 22:30:11 +03:00
|
|
|
|
|
2021-03-19 16:14:42 +04:00
|
|
|
|
@include hover-background-effect();
|
|
|
|
|
|
2020-08-30 22:30:11 +03:00
|
|
|
|
&.is-muted {
|
|
|
|
|
.user-title {
|
|
|
|
|
&:after {
|
2020-11-07 02:58:57 +02:00
|
|
|
|
flex: 0 0 auto;
|
2020-08-30 22:30:11 +03:00
|
|
|
|
content: $tgico-nosound;
|
2021-04-10 19:56:48 +04:00
|
|
|
|
color: var(--chatlist-pinned-color);
|
2020-08-30 22:30:11 +03:00
|
|
|
|
font-size: 1.125rem;
|
|
|
|
|
margin-left: .125rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-10-11 15:51:23 +03:00
|
|
|
|
|
2021-01-18 22:34:41 +04:00
|
|
|
|
body:not(.animation-level-0) & {
|
|
|
|
|
&.animating {
|
|
|
|
|
&:not(.backwards) {
|
|
|
|
|
.user-title:after {
|
|
|
|
|
animation: fade-in-opacity .2s ease-in-out forwards;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.backwards .user-title:after {
|
|
|
|
|
animation: fade-in-backwards-opacity .2s ease-in-out forwards;
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-10-11 15:51:23 +03:00
|
|
|
|
}
|
2020-08-30 22:30:11 +03:00
|
|
|
|
}
|
2021-01-18 22:34:41 +04:00
|
|
|
|
|
2021-01-20 05:38:59 +04:00
|
|
|
|
p {
|
|
|
|
|
margin: 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
height: 27px;
|
|
|
|
|
}
|
2021-01-23 00:12:57 +02:00
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
color: inherit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text-highlight {
|
2021-04-02 18:32:10 +04:00
|
|
|
|
color: var(--primary-text-color);
|
2021-01-23 00:12:57 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* img.emoji {
|
|
|
|
|
margin-right: .25rem;
|
|
|
|
|
margin-left: .25rem;
|
|
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
|
margin-left: 0;
|
|
|
|
|
}
|
|
|
|
|
} */
|
2021-03-10 23:59:38 +04:00
|
|
|
|
|
2021-03-19 16:14:42 +04:00
|
|
|
|
&.menu-open {
|
2021-04-02 18:32:10 +04:00
|
|
|
|
background: var(--light-secondary-text-color);
|
2020-09-28 03:23:00 +03:00
|
|
|
|
}
|
|
|
|
|
|
2021-03-19 16:14:42 +04:00
|
|
|
|
@include respond-to(not-handhelds) {
|
|
|
|
|
&.active {
|
2021-04-19 19:30:51 +04:00
|
|
|
|
//background: var(--light-secondary-text-color);
|
|
|
|
|
background: var(--primary-color) !important;
|
|
|
|
|
|
|
|
|
|
.user-caption,
|
|
|
|
|
.tgico-chatspinned:before,
|
|
|
|
|
//.user-title:after,
|
|
|
|
|
.user-title,
|
2021-05-13 03:19:41 +04:00
|
|
|
|
.message-status,
|
|
|
|
|
.text-highlight {
|
2021-04-19 19:30:51 +04:00
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-20 22:00:38 +04:00
|
|
|
|
b {
|
|
|
|
|
color: #fff !important;
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-19 19:30:51 +04:00
|
|
|
|
.user-title:after {
|
|
|
|
|
color: rgba(255, 255, 255, .7);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.verified-background {
|
|
|
|
|
fill: #fff !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.verified-check {
|
|
|
|
|
fill: var(--primary-color) !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dialog-avatar.is-online:after {
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
border-color: var(--primary-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.badge.unread {
|
|
|
|
|
background-color: #fff !important;
|
|
|
|
|
color: var(--primary-color);
|
|
|
|
|
}
|
2021-04-20 22:00:38 +04:00
|
|
|
|
|
|
|
|
|
.peer-typing-container {
|
|
|
|
|
--color: #fff;
|
|
|
|
|
}
|
2021-03-19 16:14:42 +04:00
|
|
|
|
}
|
2020-06-13 11:19:39 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
2021-04-20 22:00:38 +04:00
|
|
|
|
|
|
|
|
|
/* .user-title,
|
|
|
|
|
.dialog-title-details,
|
|
|
|
|
.user-last-message */li span {
|
|
|
|
|
//display: inline-block;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
//margin: .1rem 0;
|
|
|
|
|
line-height: 27px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.peer-typing-container {
|
|
|
|
|
--color: var(--secondary-text-color);
|
|
|
|
|
|
|
|
|
|
.peer-typing-text {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
transform: translateY(-2px);
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-06-13 11:19:39 +03:00
|
|
|
|
|
2020-11-07 00:20:30 +02:00
|
|
|
|
.dialog {
|
|
|
|
|
&-title {
|
|
|
|
|
&-details {
|
|
|
|
|
font-size: .75rem;
|
|
|
|
|
padding: 1px 0px 0px 0px;
|
|
|
|
|
flex: 0 0 auto;
|
2020-11-07 02:58:57 +02:00
|
|
|
|
margin-left: .5rem;
|
2020-11-07 00:20:30 +02:00
|
|
|
|
}
|
2020-06-13 11:19:39 +03:00
|
|
|
|
}
|
2020-11-07 00:20:30 +02:00
|
|
|
|
|
|
|
|
|
&-subtitle {
|
2021-03-10 23:59:38 +04:00
|
|
|
|
margin-top: -3px;
|
|
|
|
|
|
2020-11-07 00:20:30 +02:00
|
|
|
|
&-badge {
|
|
|
|
|
&:not(:empty), &.tgico-pinnedchat {
|
|
|
|
|
margin-left: .5rem;
|
|
|
|
|
}
|
2021-04-19 19:30:51 +04:00
|
|
|
|
|
|
|
|
|
&.unread {
|
|
|
|
|
transition: none;
|
|
|
|
|
}
|
2020-11-07 00:20:30 +02:00
|
|
|
|
}
|
2020-06-13 11:19:39 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dialog-avatar {
|
|
|
|
|
flex: 0 0 auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-caption {
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
max-height: 100%;
|
|
|
|
|
overflow: hidden;
|
2021-04-02 18:32:10 +04:00
|
|
|
|
color: var(--secondary-text-color);
|
2020-06-13 11:19:39 +03:00
|
|
|
|
flex: 1 1 auto;
|
2021-04-02 18:32:10 +04:00
|
|
|
|
padding: .0625rem .4375rem .0625rem .5625rem;
|
2020-06-13 11:19:39 +03:00
|
|
|
|
}
|
|
|
|
|
|
2021-04-13 20:19:52 +04:00
|
|
|
|
.dialog-avatar, .user-caption {
|
|
|
|
|
pointer-events: none;
|
2021-05-10 00:29:30 +04:00
|
|
|
|
position: relative; // for z-index
|
2021-04-13 20:19:52 +04:00
|
|
|
|
}
|
|
|
|
|
|
2020-06-13 11:19:39 +03:00
|
|
|
|
.user-title {
|
2021-01-18 22:34:41 +04:00
|
|
|
|
display: flex !important;
|
2020-11-07 02:58:57 +02:00
|
|
|
|
align-items: center;
|
2020-06-13 11:19:39 +03:00
|
|
|
|
|
|
|
|
|
img.emoji {
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
margin-top: 4px;
|
|
|
|
|
width: 18px;
|
|
|
|
|
height: 18px;
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-18 22:34:41 +04:00
|
|
|
|
/* span.emoji {
|
|
|
|
|
&:first-of-type:not(:first-child) {
|
|
|
|
|
margin-left: .125rem;
|
|
|
|
|
}
|
|
|
|
|
} */
|
2020-06-13 11:19:39 +03:00
|
|
|
|
|
2020-11-07 02:58:57 +02:00
|
|
|
|
.verified-icon {
|
|
|
|
|
flex: 0 0 auto;
|
2020-06-13 11:19:39 +03:00
|
|
|
|
width: 20px;
|
|
|
|
|
height: 20px;
|
2020-08-30 22:30:11 +03:00
|
|
|
|
margin-left: .125rem;
|
2020-06-13 11:19:39 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-last-message {
|
|
|
|
|
img.emoji {
|
|
|
|
|
width: 20px;
|
|
|
|
|
height: 20px;
|
|
|
|
|
margin-top: -3px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
span.emoji {
|
|
|
|
|
font-size: 1.2rem;
|
|
|
|
|
margin: 0 .125rem;
|
|
|
|
|
overflow: visible;
|
2021-01-20 05:38:59 +04:00
|
|
|
|
//margin-top: -1.5px;
|
2020-06-13 11:19:39 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-title, .user-last-message {
|
|
|
|
|
i {
|
|
|
|
|
font-style: normal;
|
2021-04-02 18:32:10 +04:00
|
|
|
|
//color: var(--primary-color);
|
2020-06-13 11:19:39 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.message-status {
|
|
|
|
|
margin-right: .1rem;
|
|
|
|
|
//margin-top: .3rem;
|
|
|
|
|
margin-top: -.3rem;
|
2021-03-25 19:32:40 +04:00
|
|
|
|
display: inline-block;
|
|
|
|
|
vertical-align: middle;
|
2020-06-13 11:19:39 +03:00
|
|
|
|
|
|
|
|
|
&[class*=" tgico-"] {
|
2021-04-02 18:32:10 +04:00
|
|
|
|
color: var(--chatlist-status-color);
|
2020-06-13 11:19:39 +03:00
|
|
|
|
font-size: 1.25rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-25 19:32:40 +04:00
|
|
|
|
.message-time {
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-12 15:22:00 +04:00
|
|
|
|
.dialog-subtitle-badge {
|
2020-06-13 11:19:39 +03:00
|
|
|
|
margin-top: 4px;
|
2020-06-20 04:11:24 +03:00
|
|
|
|
margin-right: -3px;
|
2021-01-21 16:27:14 +02:00
|
|
|
|
margin-left: .25rem;
|
2020-06-13 11:19:39 +03:00
|
|
|
|
flex: 0 0 auto;
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-21 16:27:14 +02:00
|
|
|
|
.tgico-chatspinned {
|
|
|
|
|
background: transparent;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
&:before {
|
2021-04-02 18:32:10 +04:00
|
|
|
|
color: var(--chatlist-pinned-color);
|
2021-01-21 16:27:14 +02:00
|
|
|
|
transition: opacity .2s ease-in-out;
|
|
|
|
|
opacity: 1;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.unread {
|
|
|
|
|
&:before {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-11 15:51:23 +03:00
|
|
|
|
.unread, li.is-muted.backwards .unread {
|
2021-04-02 18:32:10 +04:00
|
|
|
|
background-color: var(--chatlist-status-color);
|
2020-06-13 11:19:39 +03:00
|
|
|
|
}
|
|
|
|
|
|
2021-01-21 16:27:14 +02:00
|
|
|
|
li.is-muted .unread {
|
2021-04-02 18:32:10 +04:00
|
|
|
|
background-color: var(--secondary-color);
|
2020-06-13 11:19:39 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-01 17:38:36 +02:00
|
|
|
|
// use together like class="chatlist-container contacts-container"
|
2020-06-13 11:19:39 +03:00
|
|
|
|
.contacts-container, .search-group-contacts {
|
|
|
|
|
li {
|
2021-03-19 16:14:42 +04:00
|
|
|
|
padding: .75rem;
|
2020-06-21 15:25:17 +03:00
|
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
2021-03-19 16:14:42 +04:00
|
|
|
|
height: 66px;
|
|
|
|
|
padding-top: 9px;
|
|
|
|
|
padding-bottom: 9px;
|
2020-06-21 15:25:17 +03:00
|
|
|
|
}
|
2020-06-13 11:19:39 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-caption {
|
|
|
|
|
padding: 1px 3.5px 1px 13px;
|
2020-06-21 15:25:17 +03:00
|
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
2021-03-19 16:14:42 +04:00
|
|
|
|
padding: 0 4px 0 14px;
|
2020-06-21 15:25:17 +03:00
|
|
|
|
}
|
2020-06-13 11:19:39 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-title, b, .user-last-message b {
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
p {
|
|
|
|
|
height: 24px;
|
2020-06-21 15:25:17 +03:00
|
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
|
height: 26px;
|
|
|
|
|
}
|
2020-06-13 11:19:39 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
span.user-last-message {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
}
|