|
|
@ -263,7 +263,7 @@ $chat-helper-size: 39px; |
|
|
|
.chat-input-container { |
|
|
|
.chat-input-container { |
|
|
|
--padding-horizontal: #{$chat-padding-handhelds}; |
|
|
|
--padding-horizontal: #{$chat-padding-handhelds}; |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
align-items: flex-end; |
|
|
|
justify-content: space-between; |
|
|
|
justify-content: space-between; |
|
|
|
max-width: var(--messages-container-width); |
|
|
|
max-width: var(--messages-container-width); |
|
|
|
margin: 0 auto; |
|
|
|
margin: 0 auto; |
|
|
@ -303,8 +303,7 @@ $chat-helper-size: 39px; |
|
|
|
background: none; |
|
|
|
background: none; |
|
|
|
border: none; |
|
|
|
border: none; |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
font-size: 16px; |
|
|
|
padding: 9px; |
|
|
|
padding: 10px 9px; |
|
|
|
|
|
|
|
/* height: 100%; */ |
|
|
|
/* height: 100%; */ |
|
|
|
max-height: 30rem; |
|
|
|
max-height: 30rem; |
|
|
|
overflow-y: none; |
|
|
|
overflow-y: none; |
|
|
@ -312,13 +311,18 @@ $chat-helper-size: 39px; |
|
|
|
border: none; |
|
|
|
border: none; |
|
|
|
outline: none; |
|
|
|
outline: none; |
|
|
|
cursor: text; |
|
|
|
cursor: text; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[contenteditable=true]:empty:before { |
|
|
|
/* span.emoji { |
|
|
|
|
|
|
|
font-size: .95rem; |
|
|
|
|
|
|
|
} */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//[contenteditable=true]:empty:before { |
|
|
|
|
|
|
|
&:empty:before { |
|
|
|
content: attr(data-placeholder); |
|
|
|
content: attr(data-placeholder); |
|
|
|
color: #a2acb4; |
|
|
|
color: #a2acb4; |
|
|
|
display: block; /* For Firefox By Ariel Flesler */ |
|
|
|
display: block; /* For Firefox By Ariel Flesler */ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.toggle-emoticons { |
|
|
|
.toggle-emoticons { |
|
|
|
&:before { |
|
|
|
&:before { |
|
|
@ -352,6 +356,8 @@ $chat-helper-size: 39px; |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
|
right: var(--padding-horizontal); |
|
|
|
right: var(--padding-horizontal); |
|
|
|
z-index: 2; |
|
|
|
z-index: 2; |
|
|
|
|
|
|
|
bottom: 0; |
|
|
|
|
|
|
|
padding-bottom: inherit; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#btn-send { |
|
|
|
#btn-send { |
|
|
@ -474,20 +480,28 @@ $chat-helper-size: 39px; |
|
|
|
|
|
|
|
|
|
|
|
#bubbles.is-selecting ~ & { |
|
|
|
#bubbles.is-selecting ~ & { |
|
|
|
.new-message-wrapper { |
|
|
|
.new-message-wrapper { |
|
|
|
|
|
|
|
html:not(.is-safari) & { |
|
|
|
transition: .1s opacity; |
|
|
|
transition: .1s opacity; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.selection-container { |
|
|
|
.selection-container { |
|
|
|
opacity: 0; |
|
|
|
opacity: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#btn-send { |
|
|
|
#btn-send { |
|
|
|
|
|
|
|
html:not(.is-safari) & { |
|
|
|
transition: .2s transform; |
|
|
|
transition: .2s transform; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.input-message { |
|
|
|
.input-message { |
|
|
|
html:not(.is-safari) & { |
|
|
|
html:not(.is-safari) & { |
|
|
|
transition: width .2s, border-bottom-right-radius .1s, transform .2s; |
|
|
|
transition: width .2s, border-bottom-right-radius .1s, transform .2s; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&:after { |
|
|
|
|
|
|
|
transition: transform .1s; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
html.is-safari & { |
|
|
|
html.is-safari & { |
|
|
@ -495,10 +509,6 @@ $chat-helper-size: 39px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//will-change: transform; |
|
|
|
//will-change: transform; |
|
|
|
|
|
|
|
|
|
|
|
&:after { |
|
|
|
|
|
|
|
transition: transform .1s; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -508,9 +518,15 @@ $chat-helper-size: 39px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.selection-container { |
|
|
|
.selection-container { |
|
|
|
|
|
|
|
html:not(.is-safari) & { |
|
|
|
animation: fade-in-opacity .1s .1s forwards; |
|
|
|
animation: fade-in-opacity .1s .1s forwards; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
html.is-safari & { |
|
|
|
|
|
|
|
opacity: 1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.input-message { |
|
|
|
.input-message { |
|
|
|
max-height: $chat-input-size; |
|
|
|
max-height: $chat-input-size; |
|
|
|
border-bottom-right-radius: 12px; |
|
|
|
border-bottom-right-radius: 12px; |
|
|
@ -557,15 +573,22 @@ $chat-helper-size: 39px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#bubbles.is-selecting.backwards ~ & { |
|
|
|
#bubbles.is-selecting.backwards ~ & { |
|
|
|
.new-message-wrapper { |
|
|
|
.new-message-wrapper { |
|
|
|
|
|
|
|
html:not(.is-safari) & { |
|
|
|
transition-delay: .1s; |
|
|
|
transition-delay: .1s; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.selection-container { |
|
|
|
.selection-container { |
|
|
|
|
|
|
|
html:not(.is-safari) & { |
|
|
|
animation: fade-in-backwards-opacity .1s forwards; |
|
|
|
animation: fade-in-backwards-opacity .1s forwards; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@keyframes recordBlink { |
|
|
|
@keyframes recordBlink { |
|
|
@ -1020,12 +1043,17 @@ $chat-helper-size: 39px; |
|
|
|
margin-left: .5rem; |
|
|
|
margin-left: .5rem; |
|
|
|
min-height: 35px; |
|
|
|
min-height: 35px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
span.emoji { |
|
|
|
|
|
|
|
font-size: .8rem; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.new-message-wrapper { |
|
|
|
.new-message-wrapper { |
|
|
|
//padding: 4.5px 0; |
|
|
|
//padding: 4.5px 0; |
|
|
|
//padding-bottom: 4.5px; |
|
|
|
//padding-bottom: 4.5px; |
|
|
|
align-items: flex-end; |
|
|
|
align-items: flex-end; |
|
|
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
|
|
|
|
.btn-icon:before { |
|
|
|
.btn-icon:before { |
|
|
|
vertical-align: bottom; |
|
|
|
vertical-align: bottom; |
|
|
@ -1123,8 +1151,7 @@ $chat-helper-size: 39px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.emoji { |
|
|
|
img.emoji { |
|
|
|
font-size: 24px; |
|
|
|
|
|
|
|
height: 24px; |
|
|
|
height: 24px; |
|
|
|
width: 24px; |
|
|
|
width: 24px; |
|
|
|
} |
|
|
|
} |
|
|
@ -1335,6 +1362,11 @@ $chat-helper-size: 39px; |
|
|
|
|
|
|
|
|
|
|
|
&.is-scrolling .is-sticky { |
|
|
|
&.is-scrolling .is-sticky { |
|
|
|
opacity: 0.99999; // 0.99999 сделано для сафари, т.к. без этого будет прыжок при скролле в самом низу или верху |
|
|
|
opacity: 0.99999; // 0.99999 сделано для сафари, т.к. без этого будет прыжок при скролле в самом низу или верху |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
html.is-safari & { |
|
|
|
|
|
|
|
transform: translateY(calc(var(--translateY) * -1)); |
|
|
|
|
|
|
|
//transition: transform var(--layer-transition); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|