Telegram Web K with changes to work inside I2P https://web.telegram.i2p/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

196 lines
3.7 KiB

4 years ago
.chats-container {
.input-search {
position: relative;
width: 100%;
margin-left: 1rem;
input {
background-color: rgba(112, 117, 121, .08);
border: 2px solid transparent;
height: 3rem;
border-radius: 22px;
box-sizing: border-box;
padding: 0 1.5rem 0 3rem;
-webkit-transition: all .15s ease-out;
transition: all .15s ease-out;
width: 100%;
&: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: 1rem;
top: 50%;
transform: translateY(-50%);
text-align: center;
font-size: 1.65rem;
color: $color-gray;
opacity: .6;
-webkit-transition: all .15s ease-out;
transition: all .15s ease-out;
}
}
ul {
margin: 0;
//padding: 0 .5rem;
display: grid;
grid-auto-columns: 1fr;
/* grid-gap: 4px; */
4 years ago
}
li {
padding: 2px 0;
overflow: hidden;
background-color: #fff;
4 years ago
}
li > .rp {
4 years ago
height: 70px;
max-height: 70px;
border-radius: $border-radius;
display: grid;
align-items: center;
grid-template-columns: 64px calc(100% - 64px - 6.5px);
4 years ago
position: relative;
cursor: pointer;
padding: 0 8.5px;
margin: 0 8.5px 0 8px;
overflow: hidden;
4 years ago
&:hover {
background: rgba(112, 117, 121, .08);
}
}
4 years ago
li.active > .rp {
background: darken(rgba(112, 117, 121, .1), .8);
}
.pinned-delimiter {
display: flex;
padding: 8px 0 4px;
4 years ago
span {
margin: 0;
width: 100%;
height: 1px;
background-color: #DADCE0;
}
4 years ago
}
/* li.dialog-pinned + .pinned-delimiter {
display: flex;
} */
4 years ago
p {
margin: 0;
display: flex;
justify-content: space-between;
align-items: center;
4 years ago
height: 1.7rem; // hot-fix
/* span:not(.tgico-pinnedchat):not(.emoji):last-child { */
.user-title + span {
/* font-size: .9rem; */
font-size: .8rem;
4 years ago
}
.user-last-message + span:not(.tgico-pinnedchat) {
font-size: .9rem;
}
4 years ago
}
span {
display: inline-block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
margin: .1rem 0;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.user-caption {
max-width: 100%;
max-height: 100%;
overflow: hidden;
color: $color-gray;
4 years ago
}
.user-title {
max-width: 80%;
}
.user-last-message {
max-width: 80%;
i {
font-style: normal;
color: $darkblue;
}
.emoji {
font-size: 1.2rem;
width: 20px;
height: 20px;
margin: 0 .125rem;
}
}
.message-status {
margin-right: .1rem;
margin-top: .3rem;
4 years ago
&[class*=" tgico-"] {
color: $success-color;
font-size: 1.25rem;
4 years ago
}
}
4 years ago
.unread, .unread-muted {
border-radius: 12px;
min-width: 24px;
padding: 0 8px;
height: 24px;
text-align: center;
line-height: 24px;
color: #fff;
font-weight: 500;
}
.tgico-pinnedchat {
border-radius: 50%;
width: 24px;
height: 24px;
line-height: 24px;
font-size: 1.5rem;
color: #fff;
text-align: center;
}
.unread:empty, .unread-muted:empty {
visibility: hidden;
}
.unread {
background: $success-color;
}
.unread-muted, .tgico-pinnedchat {
background: #cecece;
}
}