|
|
|
$btn-send-margin: .5625rem;
|
|
|
|
$chat-input-size: 3.375rem;
|
|
|
|
$chat-input-handhelds-size: 2.875rem;
|
|
|
|
$chat-padding: 1rem;
|
|
|
|
$chat-padding-handhelds: .5rem;
|
|
|
|
$chat-helper-size: 39px;
|
|
|
|
|
|
|
|
#bubble-contextmenu > div {
|
|
|
|
padding: 0 5.25 0 1rem;
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
padding: 0 3.75rem 0 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#topbar {
|
|
|
|
width: 100%;
|
|
|
|
background-color: #fff;
|
|
|
|
user-select: none;
|
|
|
|
box-shadow: 0px 1px 5px -1px rgba(0, 0, 0, .21);
|
|
|
|
z-index: 1;
|
|
|
|
min-height: 3.5rem;
|
|
|
|
max-height: 3.5rem;
|
|
|
|
// border-bottom: 1px solid #DADCE0;
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
&.is-pinned-audio-shown, &.is-pinned-message-shown:not(.hide-pinned) {
|
|
|
|
& + #bubbles {
|
|
|
|
margin-top: 52px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-pinned-message-shown:not(.hide-pinned):not(.is-pinned-audio-shown) {
|
|
|
|
.pinned-message {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include respond-to(not-handhelds) {
|
|
|
|
border-left: 1px solid #DADCE0;
|
|
|
|
border-right: 1px solid #DADCE0;
|
|
|
|
|
|
|
|
.menu-search {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-pinned-message-shown:not(.hide-pinned) {
|
|
|
|
.pinned-message {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include respond-to(no-floating-left-sidebar) {
|
|
|
|
.sidebar-close-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* @include respond-to(wide-screens) {
|
|
|
|
transition: .2s ease-in-out;
|
|
|
|
align-self: start;
|
|
|
|
|
|
|
|
body.is-right-column-shown & {
|
|
|
|
width: calc(100% - (#{$large-screen} / 4));
|
|
|
|
}
|
|
|
|
|
|
|
|
body.animation-level-0 & {
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
} */
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
.chat-mute-button, .chat-search-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* @include respond-to(handhelds) {
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
z-index: 3;
|
|
|
|
} */
|
|
|
|
|
|
|
|
.chat-more-button {
|
|
|
|
.btn-menu {
|
|
|
|
top: calc(100% + 7px);
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
top: 29px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-info {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
max-width: calc(100% - var(--utils-width));
|
|
|
|
|
|
|
|
@include respond-to(medium-screens) {
|
|
|
|
body.is-right-column-shown & {
|
|
|
|
max-width: calc(100% - var(--right-column-width) - var(--utils-width));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-utils {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
|
|
|
|
@include respond-to(medium-screens) {
|
|
|
|
transition: transform var(--layer-transition);
|
|
|
|
|
|
|
|
body.is-right-column-shown & {
|
|
|
|
transform: translate3d(calc(var(--right-column-width) * -1), 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
body.animation-level-0 & {
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-join {
|
|
|
|
width: auto;
|
|
|
|
width: 117px;
|
|
|
|
height: 36px;
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 0.875rem;
|
|
|
|
margin-right: .5rem;
|
|
|
|
|
|
|
|
&:not(.hide) + .chat-mute-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
padding-left: 10px;
|
|
|
|
max-width: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.person {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
cursor: pointer;
|
|
|
|
margin-left: 7px;
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bottom {
|
|
|
|
font-size: 14px;
|
|
|
|
//line-height: 18px;
|
|
|
|
color: #707579;
|
|
|
|
|
|
|
|
.online {
|
|
|
|
color: $color-blue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#im-avatar {
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
line-height: 40px;
|
|
|
|
//font-size: 16px;
|
|
|
|
font-size: 16px;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
font-size: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.tgico-avatar_deletedaccount:before {
|
|
|
|
font-size: 40px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.hide-pinned + #bubbles {
|
|
|
|
#bubbles-inner {
|
|
|
|
margin-bottom: .25rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#chat-input {
|
|
|
|
--translateY: 0;
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
padding-top: .25rem;
|
|
|
|
flex-direction: column;
|
|
|
|
flex: 0 0 auto; /* Forces side columns to stay same width */
|
|
|
|
position: relative;
|
|
|
|
//overflow: hidden;
|
|
|
|
transition: transform var(--layer-transition);
|
|
|
|
transform: translateY(var(--translateY));
|
|
|
|
|
|
|
|
/* // * for no ESG top
|
|
|
|
flex: 1 1 auto;
|
|
|
|
height: calc(100% - 56px); */
|
|
|
|
|
|
|
|
@include respond-to(esg-top) {
|
|
|
|
/* flex: 0 0 auto;
|
|
|
|
height: auto; */
|
|
|
|
max-width: var(--messages-container-width);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include respond-to(medium-screens) {
|
|
|
|
width: calc(100% - var(--right-column-width));
|
|
|
|
//transition: transform var(--layer-transition);
|
|
|
|
|
|
|
|
body.is-right-column-shown & {
|
|
|
|
transform: translate3d(calc(var(--right-column-width) / -2), var(--translateY), 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
body.animation-level-0 & {
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-hidden {
|
|
|
|
--translateY: 100%;
|
|
|
|
transform: translate3d(0, var(--translateY), 0);
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
|
|
|
|
#bubbles.is-selecting:not(.backwards) ~ & {
|
|
|
|
--translateY: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-input-container {
|
|
|
|
--padding-horizontal: #{$chat-padding-handhelds};
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-end;
|
|
|
|
justify-content: space-between;
|
|
|
|
max-width: var(--messages-container-width);
|
|
|
|
margin: 0 auto;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0 var(--padding-horizontal);
|
|
|
|
flex: 0 0 auto;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
@include respond-to(not-handhelds) {
|
|
|
|
--padding-horizontal: #{$chat-padding};
|
|
|
|
padding-bottom: 21px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
padding-bottom: $chat-padding-handhelds;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include respond-to(esg-bottom) {
|
|
|
|
padding-bottom: $chat-padding-handhelds;
|
|
|
|
|
|
|
|
.btn-circle {
|
|
|
|
height: $chat-input-handhelds-size;
|
|
|
|
width: $chat-input-handhelds-size;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* @include respond-to(handhelds) {
|
|
|
|
position: sticky;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 3;
|
|
|
|
background: inherit;
|
|
|
|
overflow: hidden;
|
|
|
|
} */
|
|
|
|
|
|
|
|
#input-message {
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
width: 100%;
|
|
|
|
padding: 9px;
|
|
|
|
/* height: 100%; */
|
|
|
|
max-height: calc(30rem - var(--padding-vertical) * 2);
|
|
|
|
overflow-y: none;
|
|
|
|
resize: none;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
cursor: text;
|
|
|
|
|
|
|
|
/* span.emoji {
|
|
|
|
font-size: .95rem;
|
|
|
|
} */
|
|
|
|
|
|
|
|
//[contenteditable=true]:empty:before {
|
|
|
|
&:empty:before {
|
|
|
|
content: attr(data-placeholder);
|
|
|
|
color: #a2acb4;
|
|
|
|
display: block; /* For Firefox By Ariel Flesler */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-emoticons {
|
|
|
|
&:before {
|
|
|
|
content: $tgico-smile;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.flip-icon:before {
|
|
|
|
content: $tgico-keyboard;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#btn-record-cancel {
|
|
|
|
visibility: hidden;
|
|
|
|
opacity: 0;
|
|
|
|
transition: visibility 0s .1s, opacity .1s 0s;
|
|
|
|
padding: 0;
|
|
|
|
z-index: 3;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
|
|
|
|
// here percents can be used since there are no other transforms
|
|
|
|
transform: translateX(calc(-100% + var(--padding-horizontal) * -1 + #{-$btn-send-margin}));
|
|
|
|
|
|
|
|
/* @include respond-to(handhelds) {
|
|
|
|
transform: translateX(calc(-100% + #{-.5rem + -$btn-send-margin}));
|
|
|
|
} */
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-send-container {
|
|
|
|
position: absolute;
|
|
|
|
right: var(--padding-horizontal);
|
|
|
|
z-index: 2;
|
|
|
|
bottom: 0;
|
|
|
|
padding-bottom: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
#btn-send {
|
|
|
|
color: #9e9e9e;
|
|
|
|
|
|
|
|
> .tgico {
|
|
|
|
position: absolute;
|
|
|
|
animation: hide-icon .4s forwards ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.send {
|
|
|
|
color: $color-blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.send .tgico-send,
|
|
|
|
&.record .tgico-microphone2 {
|
|
|
|
animation: grow-icon .4s forwards ease-in-out;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-icon {
|
|
|
|
transition: .2s color, background-color .2s, .2s opacity;
|
|
|
|
}
|
|
|
|
|
|
|
|
#btn-record-cancel, #btn-send {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
line-height: 1.5rem;
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.record-time {
|
|
|
|
height: 44px;
|
|
|
|
line-height: 44px;
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: " ";
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
background-color: #e53935;
|
|
|
|
border-radius: 50%;
|
|
|
|
margin: 0 9px;
|
|
|
|
display: inline-block;
|
|
|
|
animation: recordBlink 1.25s infinite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.record-ripple {
|
|
|
|
border-radius: 50%;
|
|
|
|
background-color: rgba(0, 0, 0, .2);
|
|
|
|
width: 240px;
|
|
|
|
height: 240px;
|
|
|
|
transform: scale(0);
|
|
|
|
position: absolute;
|
|
|
|
top: -94px;
|
|
|
|
left: -94px;
|
|
|
|
transition: transform .03s, visibility .1s;
|
|
|
|
visibility: hidden;
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
width: 300px;
|
|
|
|
height: 300px;
|
|
|
|
top: -124px;
|
|
|
|
left: -124px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-locked {
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
.btn-icon {
|
|
|
|
color: #c6cbce;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.is-recording) #btn-send {
|
|
|
|
color: #c6cbce;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-recording {
|
|
|
|
#btn-record-cancel {
|
|
|
|
opacity: 1;
|
|
|
|
visibility: visible;
|
|
|
|
transition: visibility 0s .1s, opacity .1s .1s;
|
|
|
|
}
|
|
|
|
|
|
|
|
// unlock
|
|
|
|
#btn-send, #btn-record-cancel {
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-message {
|
|
|
|
width: calc(100% - #{$chat-input-size * 2 + $btn-send-margin * 2});
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
width: calc(100% - #{$chat-input-handhelds-size * 2 + $btn-send-margin * 2});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#attach-file {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.record-time {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.record-ripple {
|
|
|
|
transition: transform .03s, visibility 0s;
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.is-recording) {
|
|
|
|
#btn-record-cancel {
|
|
|
|
margin-right: 0;
|
|
|
|
width: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#bubbles.is-selecting ~ & {
|
|
|
|
.new-message-wrapper {
|
|
|
|
html:not(.is-safari) & {
|
|
|
|
transition: .1s opacity;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.selection-container {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#btn-send {
|
|
|
|
html:not(.is-safari) & {
|
|
|
|
transition: .2s transform;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-message {
|
|
|
|
html:not(.is-safari) & {
|
|
|
|
transition: width .2s, border-bottom-right-radius .1s, transform .2s;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
transition: transform .1s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
html.is-safari & {
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
//will-change: transform;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#bubbles.is-selecting:not(.backwards) ~ & {
|
|
|
|
.new-message-wrapper {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.selection-container {
|
|
|
|
html:not(.is-safari) & {
|
|
|
|
animation: fade-in-opacity .1s .1s forwards;
|
|
|
|
}
|
|
|
|
|
|
|
|
html.is-safari & {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-message {
|
|
|
|
max-height: $chat-input-size;
|
|
|
|
border-bottom-right-radius: 12px;
|
|
|
|
transform-origin: left;
|
|
|
|
|
|
|
|
width: 28.75rem;
|
|
|
|
transform: translate3d(25%, 0, 0);
|
|
|
|
//transform: translate3d(#{calc(28.75rem / 4)}, 0, 0);
|
|
|
|
|
|
|
|
/* html.is-safari & {
|
|
|
|
max-width: 28.75rem;
|
|
|
|
} */
|
|
|
|
/* transform: translateX(-50%);
|
|
|
|
left: 50%;
|
|
|
|
position: absolute; */
|
|
|
|
|
|
|
|
// left sidebar (420px) + 728px chat max width
|
|
|
|
@media only screen and (min-width: $floating-left-sidebar + 1) and (max-width: $large-screen / 4 + $messages-container-width) {
|
|
|
|
//transform: translateX(calc((100vw - 420px - 100%) / 2 - #{$chat-padding}));
|
|
|
|
transform: translate3d(calc((100vw - min(100vw / 2.5, #{$large-screen / 4}) - 100%) / 2 - #{$chat-padding}), 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (max-width: 728px) {
|
|
|
|
//transform: translateX(calc((100vw - 420px - 100%) / 2 - #{$chat-padding}));
|
|
|
|
transform: translate3d(calc((100vw - 100%) / 2 - #{$chat-padding}), 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
transform: translate3d(calc((100vw - 100%) / 2 - #{$chat-padding-handhelds}), 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
transform: scaleX(-1) translateX(#{.5625rem * 2});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.reply-wrapper {
|
|
|
|
transform: none !important;
|
|
|
|
border-radius: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
#btn-send {
|
|
|
|
transform: scale(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#bubbles.is-selecting.backwards ~ & {
|
|
|
|
.new-message-wrapper {
|
|
|
|
html:not(.is-safari) & {
|
|
|
|
transition-delay: .1s;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.selection-container {
|
|
|
|
html:not(.is-safari) & {
|
|
|
|
animation: fade-in-backwards-opacity .1s forwards;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes recordBlink {
|
|
|
|
0% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
50% {
|
|
|
|
opacity: .2;
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#im-title {
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 18px;
|
|
|
|
line-height: 24px;
|
|
|
|
max-width: calc(100% - 1.5rem);
|
|
|
|
|
|
|
|
/* @include respond-to(handhelds) {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
} */
|
|
|
|
|
|
|
|
span.emoji {
|
|
|
|
vertical-align: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#im-title, #im-subtitle {
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
#im-subtitle {
|
|
|
|
margin-top: -2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// !WARNING, уже нельзя переименовать в ID, так как это заденет другие селекторы и вёрстка в чате поедет, например - стикер вместе с реплаем
|
|
|
|
.chat-container {
|
|
|
|
display: flex;
|
|
|
|
// padding: 200px;
|
|
|
|
width: 100%;
|
|
|
|
align-items: center;
|
|
|
|
//overflow: hidden;
|
|
|
|
flex-direction: column;
|
|
|
|
position: relative;
|
|
|
|
flex: 3;
|
|
|
|
|
|
|
|
@include respond-to(floating-left-sidebar) {
|
|
|
|
position: fixed !important;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
transform: translateZ(0);
|
|
|
|
transition: transform var(--layer-transition);
|
|
|
|
|
|
|
|
body.is-left-column-shown & {
|
|
|
|
transform: translate3d(26.5rem, 0, 0);
|
|
|
|
|
|
|
|
.sidebar-close-button {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-background {
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&.no-transition:before {
|
|
|
|
transition: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&, &:before {
|
|
|
|
position: absolute !important;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
background-image: url('assets/img/camomile_blurred.jpg');
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center center;
|
|
|
|
|
|
|
|
@include respond-to(medium-screens) {
|
|
|
|
body.animation-level-2 & {
|
|
|
|
// !WARNING, МАГИЧЕСКОЕ ЧИСЛО
|
|
|
|
margin: -16rem -5rem -20rem 0;
|
|
|
|
transform: scale(1);
|
|
|
|
transform-origin: left center;
|
|
|
|
transition: transform var(--layer-transition);
|
|
|
|
}
|
|
|
|
|
|
|
|
body.animation-level-2.is-right-column-shown & {
|
|
|
|
transform: scale(.67);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pinned-message, .reply {
|
|
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
overflow: hidden;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin-right: 1rem;
|
|
|
|
max-height: 35px;
|
|
|
|
position: relative;
|
|
|
|
user-select: none;
|
|
|
|
/* padding: .25rem; */
|
|
|
|
|
|
|
|
&.is-media {
|
|
|
|
.pinned-message-content, .reply-content {
|
|
|
|
padding-left: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.emoji:first-child {
|
|
|
|
margin-right: .25rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-border {
|
|
|
|
height: 2rem;
|
|
|
|
border-radius: 1px;
|
|
|
|
min-width: 2px;
|
|
|
|
background: $color-blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-content {
|
|
|
|
margin-left: 8px;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
overflow: hidden;
|
|
|
|
pointer-events: none;
|
|
|
|
position: relative;
|
|
|
|
height: 2rem;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-title {
|
|
|
|
color: $color-blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-title, &-subtitle {
|
|
|
|
font-size: 14px;
|
|
|
|
//line-height: 18px;
|
|
|
|
//line-height: 1;
|
|
|
|
//line-height: 15px;
|
|
|
|
line-height: 16px;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
// @include respond-to(handhelds) {
|
|
|
|
// line-height: 13px;
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
|
|
|
|
&-subtitle {
|
|
|
|
color: #111;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-media {
|
|
|
|
height: 2rem;
|
|
|
|
width: 2rem;
|
|
|
|
border-radius: .5rem;
|
|
|
|
overflow: hidden;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center center;
|
|
|
|
|
|
|
|
/* > img, > video {
|
|
|
|
|
|
|
|
} */
|
|
|
|
|
|
|
|
// sticker
|
|
|
|
/* > img {
|
|
|
|
object-fit: contain !important;
|
|
|
|
max-width: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
} */
|
|
|
|
> img {
|
|
|
|
object-fit: cover;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
i {
|
|
|
|
font-style: normal;
|
|
|
|
color: $color-blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
img.emoji {
|
|
|
|
height: 1rem;
|
|
|
|
width: 1rem;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* span.emoji {
|
|
|
|
font-size: 1rem;
|
|
|
|
vertical-align: unset;
|
|
|
|
} */
|
|
|
|
}
|
|
|
|
|
|
|
|
.reply {
|
|
|
|
html.no-touch &:hover {
|
|
|
|
background-color: var(--color-gray-hover);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pinned-container {
|
|
|
|
flex: 0 0 auto;
|
|
|
|
overflow: visible;
|
|
|
|
|
|
|
|
&.is-floating {
|
|
|
|
position: absolute !important;
|
|
|
|
top: 100%;
|
|
|
|
width: 100% !important;
|
|
|
|
background: #fff !important;
|
|
|
|
left: 0;
|
|
|
|
max-height: 100% !important;
|
|
|
|
height: 52px;
|
|
|
|
|
|
|
|
.pinned-container-close {
|
|
|
|
position: absolute;
|
|
|
|
font-size: 1.4rem;
|
|
|
|
right: 9px;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pinned-container-wrapper {
|
|
|
|
padding: 0 1rem;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, .15);
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
width: 100%;
|
|
|
|
content: " ";
|
|
|
|
height: 52px;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
position: absolute;
|
|
|
|
/* box-shadow: inset 0px 2px 3px 0px rgba(0, 0, 0, .15); */
|
|
|
|
box-shadow: inset 0px 1px 2px 0px rgba(0, 0, 0, .15);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-content {
|
|
|
|
width: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-close, .pinned-audio-ico {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
z-index: 1;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-close {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-wrapper {
|
|
|
|
display: flex;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
overflow: hidden;
|
|
|
|
align-items: center;
|
|
|
|
padding: .25rem;
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
html.no-touch &:hover {
|
|
|
|
background-color: var(--color-gray-hover);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pinned-message {
|
|
|
|
display: none;
|
|
|
|
width: auto;
|
|
|
|
|
|
|
|
&:not(.is-floating) {
|
|
|
|
max-width: 239px;
|
|
|
|
|
|
|
|
.pinned-message-close {
|
|
|
|
display: flex;
|
|
|
|
margin-right: .75rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-floating .pinned-message-subtitle {
|
|
|
|
max-width: 280px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pinned-audio {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
cursor: pointer;
|
|
|
|
//width: 210px;
|
|
|
|
|
|
|
|
&:not(.is-floating) {
|
|
|
|
padding-right: 1.75rem;
|
|
|
|
max-width: 210px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-floating .pinned-audio-ico {
|
|
|
|
margin-left: -.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-ico {
|
|
|
|
color: #50a2e9;
|
|
|
|
margin-right: .375rem;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: $tgico-largeplay;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.flip-icon:before {
|
|
|
|
content: $tgico-largepause;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-title {
|
|
|
|
font-weight: 500;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-subtitle {
|
|
|
|
color: #707579;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-title, &-subtitle {
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 1.4;
|
|
|
|
overflow: hidden;
|
|
|
|
max-width: 240px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-message {
|
|
|
|
--padding-vertical: .3125rem;
|
|
|
|
--padding-horizontal: .5rem;
|
|
|
|
--padding: var(--padding-vertical) var(--padding-horizontal);
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-direction: column;
|
|
|
|
width: calc(100% - #{$chat-input-size + $btn-send-margin});
|
|
|
|
max-width: calc(100% - #{$chat-input-size + $btn-send-margin});
|
|
|
|
justify-content: center;
|
|
|
|
background-color: #fff;
|
|
|
|
border-radius: 12px;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
box-shadow: 0 1px 2px 0 rgba(16, 35, 47, .07);
|
|
|
|
min-height: $chat-input-size;
|
|
|
|
max-height: 30rem;
|
|
|
|
caret-color: $button-primary-background;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
position: relative;
|
|
|
|
z-index: 3;
|
|
|
|
transition: width .1s;
|
|
|
|
|
|
|
|
// ! Need due to reply transform under the container
|
|
|
|
&:before {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 2;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
background: inherit;
|
|
|
|
content: " ";
|
|
|
|
display: block;
|
|
|
|
border-radius: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* #chat-input.is-helper-active & {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
} */
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
--padding-vertical: .5px;
|
|
|
|
--padding-horizontal: .5rem;
|
|
|
|
width: calc(100% - #{$chat-input-handhelds-size + $btn-send-margin});
|
|
|
|
max-width: calc(100% - #{$chat-input-handhelds-size + $btn-send-margin});
|
|
|
|
min-height: $chat-input-handhelds-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (max-width: 420px) {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include respond-to(esg-bottom) {
|
|
|
|
--padding-vertical: .5px;
|
|
|
|
--padding-horizontal: .5rem;
|
|
|
|
min-height: $chat-input-handhelds-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
//bottom: -.1875rem;
|
|
|
|
bottom: -.1925rem;
|
|
|
|
right: -8.4px;
|
|
|
|
width: .5625rem;
|
|
|
|
height: 1.25rem;
|
|
|
|
background-repeat: no-repeat no-repeat;
|
|
|
|
background-position: 0 100%;
|
|
|
|
background-image: url('assets/img/msg-tail-left-blur.svg');
|
|
|
|
transform: scaleX(-1);
|
|
|
|
}
|
|
|
|
|
|
|
|
#attach-file {
|
|
|
|
&.menu-open {
|
|
|
|
color: $color-blue;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-menu {
|
|
|
|
padding: 8px 0;
|
|
|
|
right: -8px;
|
|
|
|
bottom: calc(100% + 16px);
|
|
|
|
|
|
|
|
> div {
|
|
|
|
padding: 0 38px 0 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> div {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
|
|
|
background-color: inherit;
|
|
|
|
border-radius: 12px;
|
|
|
|
padding: var(--padding);
|
|
|
|
}
|
|
|
|
|
|
|
|
.reply-wrapper {
|
|
|
|
justify-content: flex-start;
|
|
|
|
overflow: hidden;
|
|
|
|
transition: transform var(--layer-transition), border-radius var(--layer-transition);
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
//height: calc(#{$chat-helper-size} + .3125rem);
|
|
|
|
height: 100%;
|
|
|
|
align-items: flex-start;
|
|
|
|
z-index: 1;
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
padding-top: .25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-container.is-helper-active & {
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
transform: translateY(#{-$chat-helper-size});
|
|
|
|
}
|
|
|
|
|
|
|
|
/* &.active {
|
|
|
|
height: 39px;
|
|
|
|
} */
|
|
|
|
|
|
|
|
.reply {
|
|
|
|
width: 100%;
|
|
|
|
margin-left: .5rem;
|
|
|
|
min-height: 35px;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.emoji {
|
|
|
|
font-size: .8rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.new-message-wrapper {
|
|
|
|
//padding: 4.5px 0;
|
|
|
|
//padding-bottom: 4.5px;
|
|
|
|
align-items: flex-end;
|
|
|
|
|
|
|
|
.btn-icon:before {
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-message-container {
|
|
|
|
width: 1%;
|
|
|
|
max-height: inherit;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
> .scrollable {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.selection-container {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
height: 100%;
|
|
|
|
//background-color: #ccc;
|
|
|
|
border-radius: inherit;
|
|
|
|
padding: inherit;
|
|
|
|
user-select: none;
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
|
|
&-count {
|
|
|
|
color: #000;
|
|
|
|
font-weight: 500;
|
|
|
|
flex-grow: 1;
|
|
|
|
white-space: nowrap;
|
|
|
|
//padding-left: .5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-icon {
|
|
|
|
margin-left: 6px;
|
|
|
|
maRgin-top: 6px;
|
|
|
|
color: #3f454a;
|
|
|
|
height: 42px;
|
|
|
|
width: 42px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-primary {
|
|
|
|
height: 2.5rem;
|
|
|
|
width: auto;
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
padding: 0 .5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (max-width: 380px) {
|
|
|
|
font-size: 0;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-forward {
|
|
|
|
&:before {
|
|
|
|
margin-right: 14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-delete {
|
|
|
|
margin-right: .625rem;
|
|
|
|
margin-left: .375rem;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-icon {
|
|
|
|
display: block;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
font-size: 24px;
|
|
|
|
line-height: 24px;
|
|
|
|
color: #8d969c;
|
|
|
|
//margin-bottom: 1px;
|
|
|
|
|
|
|
|
// ! EXPERIMENTAL
|
|
|
|
margin: 0 3px 4px;
|
|
|
|
padding: 0.25rem;
|
|
|
|
width: 34px;
|
|
|
|
height: 34px;
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
color: $color-blue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
img.emoji {
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#bubbles {
|
|
|
|
--translateY: 0;
|
|
|
|
/* overflow-y: scroll;
|
|
|
|
scrollbar-width: none;
|
|
|
|
-ms-overflow-style: none; */
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
flex: 1 1 auto; /* Lets middle column shrink/grow to available width */
|
|
|
|
//overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
transform: translateY(var(--translateY));
|
|
|
|
transition: transform var(--layer-transition);
|
|
|
|
|
|
|
|
/* html.is-safari & > .scrollable {
|
|
|
|
-webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%); // fix safari overflow
|
|
|
|
} */
|
|
|
|
|
|
|
|
.chat-container.is-helper-active & {
|
|
|
|
&:not(.is-selecting), &.is-selecting.backwards {
|
|
|
|
--translateY: -#{$chat-helper-size};
|
|
|
|
|
|
|
|
#bubbles-inner {
|
|
|
|
transform: translateY(calc(var(--translateY) * -1));
|
|
|
|
//margin-top: $chat-helper-size;
|
|
|
|
//transition: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-chat-input-hidden.is-selecting:not(.backwards) {
|
|
|
|
--translateY: -79px;
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
--translateY: -58px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#bubbles-inner {
|
|
|
|
transform: translateY(calc(var(--translateY) * -1));
|
|
|
|
//margin-top: $chat-helper-size;
|
|
|
|
//transition: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* #bubbles-transform-helper {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
position: relative;
|
|
|
|
transform: translateY(var(--translateY));
|
|
|
|
transition: transform var(--layer-transition); */
|
|
|
|
|
|
|
|
> .scrollable {
|
|
|
|
height: auto;
|
|
|
|
/* position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0; */
|
|
|
|
//position: relative; // неизвестно зачем это было
|
|
|
|
|
|
|
|
//display: flex; // for end
|
|
|
|
//flex-direction: unset;
|
|
|
|
display: block;
|
|
|
|
//transform: none;
|
|
|
|
|
|
|
|
/* display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-end; */
|
|
|
|
// * scrollbar takes some width, don't need to set padding for iOS
|
|
|
|
html.is-safari:not(.is-ios) & {
|
|
|
|
padding-left: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
|
|
|
|
// ! WARNING, НЕЛЬЗЯ СТАВИТЬ ТРАНСФОРМ КРОМЕ TRANSLATEZ(0) НА БЛОК С OVERFLOW, ОН БУДЕТ ПРЫГАТЬ ВВЕРХ ПРИ ВКЛЮЧЕННОМ ПРАВИЛЕ И ЭТО НЕ ИСПРАВИТЬ JS'ОМ!
|
|
|
|
@include respond-to(medium-screens) {
|
|
|
|
//transition: transform var(--layer-transition);
|
|
|
|
|
|
|
|
body.is-right-column-shown & {
|
|
|
|
transform: translate3d(calc(var(--right-column-width) / -2), var(--translateY), 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
body.animation-level-0 & {
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-selecting {
|
|
|
|
&:not(.backwards) .is-in .bubble__container {
|
|
|
|
transform: translateX(2.5rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
// ! this animation will slow down chat input's animation due to count of elements
|
|
|
|
/* &.animating:not(.backwards) {
|
|
|
|
.checkbox-field-round {
|
|
|
|
opacity: 0;
|
|
|
|
animation: fade-in-opacity .1s .1s forwards;
|
|
|
|
}
|
|
|
|
} */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* &.is-selecting > .scrollable::-webkit-scrollbar {
|
|
|
|
display: none;
|
|
|
|
} */
|
|
|
|
|
|
|
|
&:not(.scrolled-down):not(.search-results-active) {
|
|
|
|
//> #bubbles-transform-helper {
|
|
|
|
// ! these lines will blur messages if chat input helper is active
|
|
|
|
> .scrollable {
|
|
|
|
-webkit-mask-image: -webkit-linear-gradient(bottom, transparent, #000 20px);
|
|
|
|
mask-image: linear-gradient(0deg, transparent 0, #000 20px);
|
|
|
|
}
|
|
|
|
|
|
|
|
> #bubbles-go-down {
|
|
|
|
cursor: pointer;
|
|
|
|
--translateY: 0;
|
|
|
|
opacity: 1;
|
|
|
|
|
|
|
|
/* &.is-broadcast {
|
|
|
|
--translateY: 79px !important;
|
|
|
|
} */
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
}
|
|
|
|
|
|
|
|
.preloader {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
width: 50px;
|
|
|
|
height: 50px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-container .preloader-circular {
|
|
|
|
background-color: var(--message-time-background);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-group.search-group-messages {
|
|
|
|
padding: 0.25rem 0 .5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#bubbles-inner {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-shrink: 1;
|
|
|
|
margin: 0 auto;
|
|
|
|
box-sizing: border-box;
|
|
|
|
min-height: 100%;
|
|
|
|
justify-content: flex-end;
|
|
|
|
padding: 0 1rem;
|
|
|
|
max-width: var(--messages-container-width);
|
|
|
|
|
|
|
|
transition: transform var(--layer-transition);
|
|
|
|
transform: translateY(0);
|
|
|
|
/* transition: margin-top var(--layer-transition);
|
|
|
|
transition-delay: .2s; */
|
|
|
|
|
|
|
|
@include respond-to(medium-screens) {
|
|
|
|
width: calc(100% - var(--right-column-width));
|
|
|
|
}
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
padding: 0 .75rem 0 .5rem;
|
|
|
|
|
|
|
|
html.is-mac & {
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-webkit-touch-callout: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-chat {
|
|
|
|
.is-in .bubble__container {
|
|
|
|
margin-left: 45px;
|
|
|
|
//margin-left: 3rem; #DO JS3
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
max-width: calc(100% - var(--message-handhelds-margin));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-channel:not(.is-chat) {
|
|
|
|
.bubble {
|
|
|
|
&__container {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.with-beside-button .bubble__container {
|
|
|
|
max-width: calc(100% - var(--message-beside-button-margin)) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* #bubbles.is-chat-input-hidden & {
|
|
|
|
padding-bottom: 55px;
|
|
|
|
} */
|
|
|
|
|
|
|
|
&:not(.is-channel), &.is-chat {
|
|
|
|
.message {
|
|
|
|
max-width: 480px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-scrolling .is-sticky {
|
|
|
|
opacity: 0.99999; // 0.99999 сделано для сафари, т.к. без этого будет прыжок при скролле в самом низу или верху
|
|
|
|
|
|
|
|
html.is-safari & {
|
|
|
|
transform: translateY(calc(var(--translateY) * -1));
|
|
|
|
//transition: transform var(--layer-transition);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#bubbles-go-down {
|
|
|
|
position: absolute;
|
|
|
|
background-color: #fff;
|
|
|
|
border-radius: 50%;
|
|
|
|
width: 3.25rem;
|
|
|
|
height: 3.25rem;
|
|
|
|
color: $placeholder-color;
|
|
|
|
font-size: 30px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
right: 17.5px;
|
|
|
|
bottom: 17.5px;
|
|
|
|
cursor: default;
|
|
|
|
opacity: 0;
|
|
|
|
z-index: 2;
|
|
|
|
transition: var(--btn-corner-transition), opacity .2s !important;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
right: .5rem;
|
|
|
|
width: 2.875rem;
|
|
|
|
height: 2.875rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
margin-left: .75px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include respond-to(medium-screens) {
|
|
|
|
transition: transform var(--layer-transition), opacity .2s !important;
|
|
|
|
|
|
|
|
body.is-right-column-shown & {
|
|
|
|
transform: translate3d(calc(var(--right-column-width) * -.5), var(--translateY), 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* &.is-broadcast {
|
|
|
|
--translateY: 99px !important;
|
|
|
|
} */
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup {
|
|
|
|
&.popup-delete-message {
|
|
|
|
.popup-header {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-search {
|
|
|
|
position: absolute !important;
|
|
|
|
top: 0;
|
|
|
|
z-index: 2;
|
|
|
|
|
|
|
|
&-footer {
|
|
|
|
height: 46px;
|
|
|
|
padding: 0 8px;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
width: 100%;
|
|
|
|
background-color: #fff;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
box-shadow: 0px -1px 5px -1px rgba(0, 0, 0, .21);
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.chat-search-count {
|
|
|
|
margin-left: 8px;
|
|
|
|
color: #949596;
|
|
|
|
}
|
|
|
|
|
|
|
|
& + #chat-input {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-count {
|
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:empty) + .btn-icon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-controls {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-results {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
visibility: hidden;
|
|
|
|
opacity: 0;
|
|
|
|
background-color: #fff;
|
|
|
|
transition: .2s ease;
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
opacity: 1;
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.tgico-up {
|
|
|
|
margin-right: 2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.quiz-hint {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
justify-content: center;
|
|
|
|
//z-index: 5;
|
|
|
|
top: 8px;
|
|
|
|
align-items: center;
|
|
|
|
transform: translate3d(0, calc(-100% - 10px), 0);
|
|
|
|
transition: transform .2s ease;
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
background: rgba(0, 0, 0, .7);
|
|
|
|
text-align: center;
|
|
|
|
width: auto;
|
|
|
|
padding: 10px 18px 12px 50px;
|
|
|
|
min-height: 48px;
|
|
|
|
border-radius: 12px;
|
|
|
|
line-height: 1.5;
|
|
|
|
color: white;
|
|
|
|
font-size: 15px;
|
|
|
|
max-width: 400px;
|
|
|
|
overflow: hidden;
|
|
|
|
text-align: left;
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
padding: 10px 18px 12px 54px;
|
|
|
|
margin: 0 10px;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.text {
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: $tgico-info2;
|
|
|
|
position: absolute;
|
|
|
|
left: 15px;
|
|
|
|
font-size: 1.5rem;
|
|
|
|
top: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: white;
|
|
|
|
border-bottom: 1px solid white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|