2022-09-09 11:53:35 +00:00
|
|
|
main {
|
|
|
|
display: flex;
|
2022-11-09 12:20:13 +00:00
|
|
|
height: 100vh;
|
2022-09-09 11:53:35 +00:00
|
|
|
flex-direction: column;
|
|
|
|
position: relative;
|
|
|
|
}
|
2022-11-15 14:24:50 +00:00
|
|
|
|
2022-12-17 03:27:00 +00:00
|
|
|
.Inbox {
|
|
|
|
top: 84px;
|
2022-11-11 04:34:18 +00:00
|
|
|
height: calc(100% - 74px);
|
2022-11-09 12:20:13 +00:00
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2022-11-11 04:34:18 +00:00
|
|
|
padding-left: 42px;
|
|
|
|
padding-right: 26px;
|
2022-11-09 12:20:13 +00:00
|
|
|
background: #fff;
|
2022-12-17 03:27:00 +00:00
|
|
|
display: flex;
|
2022-09-09 11:53:35 +00:00
|
|
|
flex: 1;
|
|
|
|
flex-direction: column;
|
2022-12-17 03:27:00 +00:00
|
|
|
position: absolute;
|
2022-09-09 11:53:35 +00:00
|
|
|
|
2022-11-24 06:52:31 +00:00
|
|
|
.row {
|
2022-09-09 11:53:35 +00:00
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.author__name {
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
|
|
|
.author {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
}
|
2022-11-15 14:24:50 +00:00
|
|
|
|
2022-11-11 04:34:18 +00:00
|
|
|
// список диалогов и юзеров
|
2022-12-17 03:27:00 +00:00
|
|
|
.chatList {
|
2022-09-09 11:53:35 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-11-10 15:58:43 +00:00
|
|
|
padding: 10px;
|
2022-11-11 04:34:18 +00:00
|
|
|
height: calc(100% - 10px);
|
2022-09-09 11:53:35 +00:00
|
|
|
|
2023-02-10 01:19:20 +00:00
|
|
|
$fadeHeight: 10px;
|
2022-11-15 14:24:50 +00:00
|
|
|
|
2022-12-17 03:27:00 +00:00
|
|
|
.sidebarHeader {
|
2022-11-27 05:49:48 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 10px;
|
|
|
|
}
|
|
|
|
|
2022-11-11 04:34:18 +00:00
|
|
|
.holder {
|
|
|
|
overflow: hidden;
|
|
|
|
flex: 1;
|
2022-11-10 15:06:02 +00:00
|
|
|
position: relative;
|
2023-02-10 01:19:20 +00:00
|
|
|
padding: $fadeHeight 0;
|
2022-11-11 04:34:18 +00:00
|
|
|
|
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
2022-12-17 03:27:00 +00:00
|
|
|
right: 0;
|
2022-11-11 04:34:18 +00:00
|
|
|
z-index: 1;
|
2023-02-10 01:19:20 +00:00
|
|
|
height: $fadeHeight;
|
2022-11-11 04:34:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
top: 0;
|
2023-02-10 01:19:20 +00:00
|
|
|
background: linear-gradient(white, transparent $fadeHeight);
|
2022-11-11 04:34:18 +00:00
|
|
|
}
|
2022-11-15 14:24:50 +00:00
|
|
|
|
2022-11-11 04:34:18 +00:00
|
|
|
&::after {
|
|
|
|
bottom: 0;
|
2023-02-10 01:19:20 +00:00
|
|
|
background: linear-gradient(transparent, white $fadeHeight);
|
2022-11-11 04:34:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.dialogs {
|
|
|
|
scroll-behavior: smooth;
|
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
2023-05-01 18:32:32 +00:00
|
|
|
inset: 0;
|
2022-11-11 04:34:18 +00:00
|
|
|
height: 100%;
|
|
|
|
overflow: auto;
|
|
|
|
flex-direction: column;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2022-09-09 11:53:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-17 03:27:00 +00:00
|
|
|
.chat-list__search {
|
2022-09-09 11:53:35 +00:00
|
|
|
border-bottom: 3px solid #141414;
|
|
|
|
padding: 1em 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.conversation {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2022-12-17 03:27:00 +00:00
|
|
|
.messageForm {
|
2022-11-16 04:56:15 +00:00
|
|
|
background: #fff;
|
2022-12-17 03:27:00 +00:00
|
|
|
padding: 2px 0 12px;
|
2022-09-09 11:53:35 +00:00
|
|
|
|
2022-11-24 06:52:31 +00:00
|
|
|
.wrapper {
|
2022-12-17 03:27:00 +00:00
|
|
|
border: 2px solid #ccc;
|
2022-11-16 04:56:15 +00:00
|
|
|
border-radius: 16px;
|
|
|
|
padding: 4px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2022-09-09 11:53:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-17 03:27:00 +00:00
|
|
|
.conversationMessages {
|
|
|
|
flex: 1;
|
2022-09-09 11:53:35 +00:00
|
|
|
overflow: auto;
|
|
|
|
position: relative;
|
2023-02-10 01:19:20 +00:00
|
|
|
|
2023-11-16 14:20:05 +00:00
|
|
|
.scrollToNew {
|
|
|
|
osition: absolute;
|
|
|
|
z-index: 2;
|
|
|
|
bottom: 8px;
|
|
|
|
overflow: hidden;
|
|
|
|
right: 0;
|
|
|
|
width: 40px;
|
|
|
|
padding: 1rem;
|
|
|
|
border: 2px solid var(--black-100);
|
|
|
|
border-radius: 50%;
|
|
|
|
height: 40px;
|
|
|
|
cursor: pointer;
|
|
|
|
background: var(--background-color);
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
rotate: 90deg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-17 03:27:00 +00:00
|
|
|
.messagesContainer {
|
2022-09-09 11:53:35 +00:00
|
|
|
left: 0;
|
2022-12-17 03:27:00 +00:00
|
|
|
height: 100%;
|
|
|
|
overflow: auto;
|
2022-09-09 11:53:35 +00:00
|
|
|
position: absolute;
|
2022-12-17 03:27:00 +00:00
|
|
|
top: 0;
|
2022-09-09 11:53:35 +00:00
|
|
|
width: 100%;
|
2022-12-17 03:27:00 +00:00
|
|
|
scroll-behavior: smooth;
|
2022-09-09 11:53:35 +00:00
|
|
|
}
|
2023-02-10 01:19:20 +00:00
|
|
|
|
2022-12-17 03:27:00 +00:00
|
|
|
.conversation__date {
|
|
|
|
position: relative;
|
|
|
|
text-align: center;
|
2022-09-09 11:53:35 +00:00
|
|
|
|
2022-12-17 03:27:00 +00:00
|
|
|
&::before {
|
|
|
|
background: #141414;
|
|
|
|
content: '';
|
|
|
|
height: 1px;
|
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0.8em;
|
|
|
|
width: 100%;
|
|
|
|
z-index: -1;
|
|
|
|
}
|
2022-09-09 11:53:35 +00:00
|
|
|
|
2022-12-17 03:27:00 +00:00
|
|
|
time {
|
|
|
|
@include font-size(1.5rem);
|
|
|
|
|
|
|
|
background: #fff;
|
|
|
|
color: #9fa1a7;
|
|
|
|
padding: 0 0.5em;
|
|
|
|
}
|
2022-09-09 11:53:35 +00:00
|
|
|
}
|
|
|
|
}
|