2020-06-13 08:19:39 +00:00
|
|
|
$bubble-margin: .25rem;
|
|
|
|
|
2020-05-13 15:26:40 +00:00
|
|
|
@keyframes bubbleSelected {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
25% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
to {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-30 00:23:10 +00:00
|
|
|
/*
|
|
|
|
* zoom-fade-opacity
|
|
|
|
*/
|
|
|
|
@keyframes zoom-opacity-fade-in {
|
|
|
|
0% {
|
|
|
|
//transform: scale(.8) translateZ(0);
|
|
|
|
transform: scale3d(.8, .8, 1);
|
|
|
|
//transform: scale(.8);
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
//transform: scale(1) translateZ(0);
|
|
|
|
transform: scale3d(1, 1, 1);
|
|
|
|
//transform: scale(1);
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-26 15:04:06 +00:00
|
|
|
.bubbles-date-group {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
/* .sticky_sentinel {
|
|
|
|
visibility: visible;
|
|
|
|
background: #000;
|
|
|
|
} */
|
|
|
|
|
|
|
|
.sticky_sentinel--top {
|
|
|
|
/* Adjust the height and top values based on your on your sticky top position.
|
|
|
|
e.g. make the height bigger and adjust the top so observeHeaders()'s
|
|
|
|
IntersectionObserver fires as soon as the bottom of the sentinel crosses the
|
|
|
|
top of the intersection container. */
|
2020-06-13 08:19:39 +00:00
|
|
|
height: $bubble-margin;
|
2020-05-26 15:04:06 +00:00
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// .sticky_sentinel--bottom {
|
|
|
|
// /* Height should match the top of the header when it's at the bottom of the
|
|
|
|
// intersection container. */
|
|
|
|
// height: 1px;
|
|
|
|
// bottom: 0;
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
.bubble {
|
2020-06-13 08:19:39 +00:00
|
|
|
padding-top: $bubble-margin;
|
2020-05-13 15:26:40 +00:00
|
|
|
position: relative;
|
2020-06-05 16:01:06 +00:00
|
|
|
z-index: 1;
|
2020-09-23 20:29:53 +00:00
|
|
|
margin: 0 auto;
|
2020-06-19 11:49:55 +00:00
|
|
|
|
2020-10-17 23:19:56 +00:00
|
|
|
&.is-highlighted, &.is-selected, /* #bubbles.is-selecting */ & {
|
2020-05-18 01:21:58 +00:00
|
|
|
&:after {
|
2020-05-10 01:23:21 +00:00
|
|
|
position: absolute;
|
2020-05-13 15:26:40 +00:00
|
|
|
left: -50%;
|
2020-10-17 23:19:56 +00:00
|
|
|
/* top: 0;
|
|
|
|
bottom: 0; */
|
|
|
|
top: #{$bubble-margin / 2};
|
|
|
|
bottom: -#{$bubble-margin / 2};
|
2020-05-18 01:21:58 +00:00
|
|
|
content: " ";
|
|
|
|
z-index: 1;
|
2020-05-13 15:26:40 +00:00
|
|
|
}
|
2020-10-17 23:19:56 +00:00
|
|
|
}
|
2020-05-13 15:26:40 +00:00
|
|
|
|
2020-10-17 23:19:56 +00:00
|
|
|
/* &.is-highlighted, &.is-selected {
|
2020-05-18 01:21:58 +00:00
|
|
|
&:not(.is-group-last):after {
|
2020-10-17 23:19:56 +00:00
|
|
|
height: calc(100% + #{$bubble-margin / 2}) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
& + &:not(.is-group-last) {
|
|
|
|
&:after {
|
|
|
|
top: .125rem !important;
|
|
|
|
height: calc(100% - #{$bubble-margin / 2}) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} */
|
|
|
|
|
|
|
|
// ! if turn this on, there will be an empty space
|
|
|
|
/* &.is-highlighted, &.is-selected {
|
|
|
|
&.is-group-last:after {
|
|
|
|
bottom: #{$bubble-margin / 2} !important;
|
2020-05-10 01:23:21 +00:00
|
|
|
}
|
2020-10-17 23:19:56 +00:00
|
|
|
} */
|
|
|
|
|
|
|
|
&.is-highlighted:after {
|
|
|
|
background-color: rgba(0, 132, 255, .3);
|
|
|
|
animation: bubbleSelected 2s linear;
|
2020-05-10 01:23:21 +00:00
|
|
|
}
|
|
|
|
|
2020-05-18 01:21:58 +00:00
|
|
|
&.is-first-unread {
|
2020-06-19 11:49:55 +00:00
|
|
|
@include respond-to(handhelds) {
|
|
|
|
max-width: unset;
|
|
|
|
}
|
|
|
|
|
2020-05-18 01:21:58 +00:00
|
|
|
&:before {
|
|
|
|
content: "Unread messages";
|
|
|
|
height: 30px;
|
2020-06-13 08:19:39 +00:00
|
|
|
margin-bottom: $bubble-margin;
|
2020-05-18 01:21:58 +00:00
|
|
|
margin-left: -50%;
|
|
|
|
text-align: center;
|
|
|
|
color: #538BCC;
|
|
|
|
line-height: 2.1;
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 15px;
|
|
|
|
background-color: rgba(255, 255, 255, 0.95);
|
2020-10-17 23:19:56 +00:00
|
|
|
z-index: 2;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-highlighted, &.is-selected {
|
|
|
|
&:after {
|
|
|
|
top: #{2rem + $bubble-margin} !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-selected {
|
|
|
|
&:after {
|
|
|
|
background-color: rgba(77, 142, 80, .4);
|
|
|
|
animation: fade-in-opacity .2s linear forwards;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.backwards:after {
|
|
|
|
animation: fade-in-backwards-opacity .2s linear forwards;
|
2020-05-18 01:21:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-17 23:19:56 +00:00
|
|
|
//&.is-highlighted:after, &.is-first-unread:before, &.is-selected:after {
|
|
|
|
&:after, &:before {
|
2020-05-18 01:21:58 +00:00
|
|
|
width: 200%;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
&.is-date {
|
|
|
|
position: sticky;
|
2020-06-13 08:19:39 +00:00
|
|
|
top: $bubble-margin;
|
2020-06-05 16:01:06 +00:00
|
|
|
//z-index: 3;
|
|
|
|
z-index: 2;
|
2020-06-06 10:53:23 +00:00
|
|
|
transition: opacity .3s ease;
|
|
|
|
opacity: 0.99999; // for safari
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
&.is-sticky {
|
2020-06-06 10:53:23 +00:00
|
|
|
opacity: 0.00001; // for safari
|
2020-06-13 08:19:39 +00:00
|
|
|
|
|
|
|
#bubbles-inner:not(.is-scrolling) & {
|
|
|
|
//transition-delay: 1.35s;
|
|
|
|
|
|
|
|
.bubble__container {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* #bubbles-inner.is-scrolling & {
|
|
|
|
transition-delay: 0;
|
|
|
|
} */
|
|
|
|
}
|
|
|
|
|
|
|
|
.bubble__container {
|
|
|
|
cursor: pointer;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-17 23:19:56 +00:00
|
|
|
|
2020-10-30 00:23:10 +00:00
|
|
|
&.zoom-fade /* .bubble__container */ {
|
|
|
|
//transform: scale(.8) translateZ(0);
|
|
|
|
transform: scale3d(.8, .8, 1);
|
|
|
|
//transform: scale(.8);
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: center;
|
|
|
|
animation: zoom-opacity-fade-in .2s linear forwards;
|
|
|
|
animation-delay: 0;
|
|
|
|
}
|
|
|
|
|
2020-10-17 23:19:56 +00:00
|
|
|
&-select-checkbox {
|
|
|
|
z-index: 2;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
2020-10-31 16:54:43 +00:00
|
|
|
//bottom: .75rem; // * by avatar
|
|
|
|
bottom: 5px; // * by middle of one-line message
|
2020-10-26 00:09:42 +00:00
|
|
|
/* left: 0;
|
2020-10-17 23:19:56 +00:00
|
|
|
top: 50%;
|
2020-10-26 00:09:42 +00:00
|
|
|
transform: translateY(-50%); */
|
2020-10-17 23:19:56 +00:00
|
|
|
display: flex;
|
|
|
|
|
|
|
|
[type="checkbox"] {
|
2020-10-19 23:39:36 +00:00
|
|
|
/* &:not(:checked) + .checkbox-caption:after {
|
2020-10-17 23:19:56 +00:00
|
|
|
|
2020-10-19 23:39:36 +00:00
|
|
|
} */
|
2020-10-17 23:19:56 +00:00
|
|
|
|
|
|
|
&:checked + .checkbox-caption {
|
|
|
|
&:after {
|
|
|
|
background-color: #61c642;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkbox-caption {
|
|
|
|
&:before {
|
|
|
|
top: 7px !important;
|
|
|
|
left: 3px !important;
|
|
|
|
width: 6px !important;
|
|
|
|
height: 11px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, .4);
|
|
|
|
border: 2px solid #fff !important;
|
|
|
|
width: 22px;
|
|
|
|
height: 22px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
&__container {
|
|
|
|
//min-width: 60px;
|
|
|
|
min-width: 56px;
|
2020-06-05 16:01:06 +00:00
|
|
|
max-width: 100%;
|
2020-05-09 12:02:07 +00:00
|
|
|
border-radius: 12px;
|
|
|
|
box-shadow: 0 1px 2px 0 rgba(16, 35, 47, 0.15);
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
/* font-size: 0; */
|
|
|
|
width: max-content;
|
|
|
|
height: fit-content;
|
2020-05-18 01:21:58 +00:00
|
|
|
z-index: 2;
|
2020-10-17 23:19:56 +00:00
|
|
|
transition: .2s transform;
|
2020-05-09 12:02:07 +00:00
|
|
|
|
2020-06-05 16:01:06 +00:00
|
|
|
@include respond-to(not-handhelds) {
|
|
|
|
max-width: 85%;
|
|
|
|
}
|
|
|
|
|
2020-08-28 19:53:10 +00:00
|
|
|
@include respond-to(handhelds) {
|
2020-09-23 20:29:53 +00:00
|
|
|
max-width: calc(100% - var(--message-handhelds-margin));
|
2020-08-28 19:53:10 +00:00
|
|
|
}
|
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
> .user-avatar {
|
|
|
|
position: absolute;
|
2020-06-19 11:49:55 +00:00
|
|
|
left: -45px;
|
|
|
|
//left: -3rem; # DO JS3
|
2020-05-09 12:02:07 +00:00
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
line-height: 40px;
|
|
|
|
bottom: 0;
|
|
|
|
font-size: 1rem;
|
|
|
|
cursor: pointer;
|
2020-06-19 11:49:55 +00:00
|
|
|
|
2020-10-31 16:54:43 +00:00
|
|
|
#bubbles.is-selecting & {
|
2020-10-31 18:45:49 +00:00
|
|
|
transform: scale3d(1, 1, 1);
|
2020-10-31 16:54:43 +00:00
|
|
|
transform-origin: bottom;
|
|
|
|
transition: transform var(--layer-transition);
|
|
|
|
}
|
|
|
|
|
|
|
|
#bubbles.is-selecting:not(.backwards) & {
|
2020-10-31 18:45:49 +00:00
|
|
|
transform: scale3d(.76, .76, 1);
|
2020-10-31 16:54:43 +00:00
|
|
|
}
|
|
|
|
|
2020-06-19 11:49:55 +00:00
|
|
|
// @include respond-to(handhelds) {
|
|
|
|
// left: -45px;
|
|
|
|
// }
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
2020-08-28 19:53:10 +00:00
|
|
|
|
|
|
|
/* &.with-beside-button &__container {
|
|
|
|
@include respond-to(handhelds) {
|
2020-09-23 20:29:53 +00:00
|
|
|
max-width: calc(100% - var(--message-handhelds-margin)) !important;
|
2020-08-28 19:53:10 +00:00
|
|
|
}
|
|
|
|
} */
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
&.service {
|
|
|
|
//padding: 1rem 0;
|
2020-06-13 08:19:39 +00:00
|
|
|
padding: $bubble-margin 0;
|
2020-09-23 20:29:53 +00:00
|
|
|
max-width: var(--messages-container-width);
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
.bubble__container {
|
|
|
|
/* justify-self: center; */
|
|
|
|
margin: 0 auto;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-05 16:01:06 +00:00
|
|
|
&-beside-button {
|
|
|
|
//opacity: 0;
|
|
|
|
//transition: .2s opacity;
|
2020-05-20 14:25:23 +00:00
|
|
|
position: absolute;
|
|
|
|
right: -46px;
|
|
|
|
bottom: 0;
|
|
|
|
width: 38px;
|
|
|
|
height: 38px;
|
|
|
|
font-size: 1.5rem;
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
color: #fff;
|
|
|
|
border-radius: 50%;
|
|
|
|
background: rgba(0, 0, 0, 0.16);
|
|
|
|
cursor: pointer;
|
2020-06-05 16:01:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.forward {
|
|
|
|
svg {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.message strong {
|
|
|
|
font-weight: 500 !important;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* &.is-group-first {
|
|
|
|
padding-top: 10px;
|
|
|
|
} */
|
|
|
|
|
|
|
|
&.is-group-last {
|
2020-06-13 08:19:39 +00:00
|
|
|
padding-bottom: $bubble-margin;
|
2020-10-31 16:54:43 +00:00
|
|
|
|
2020-10-31 18:45:49 +00:00
|
|
|
.bubble-select-checkbox {
|
|
|
|
bottom: 8px;
|
|
|
|
}
|
|
|
|
|
2020-10-31 16:54:43 +00:00
|
|
|
#bubbles-inner.is-chat &.is-in {
|
|
|
|
.bubble-select-checkbox {
|
|
|
|
bottom: 7px;
|
|
|
|
}
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.forwarded) {
|
|
|
|
&:not(.is-group-first) {
|
|
|
|
.bubble__container > .name {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.is-message-empty):not(.is-reply) .message {
|
|
|
|
padding-top: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-10 01:23:21 +00:00
|
|
|
&:not(.is-group-last) .bubble__container > .user-avatar {
|
2020-05-09 12:02:07 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.hide-name) {
|
|
|
|
.audio {
|
|
|
|
margin: 4px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-05 16:01:06 +00:00
|
|
|
/* .goto-original {
|
2020-05-20 14:25:23 +00:00
|
|
|
opacity: 1;
|
2020-06-05 16:01:06 +00:00
|
|
|
} */
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
.reply {
|
|
|
|
width: auto;
|
|
|
|
|
|
|
|
.reply-content {
|
|
|
|
height: auto;
|
|
|
|
min-height: 32px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.photo, &.video {
|
|
|
|
.bubble__container {
|
|
|
|
width: min-content;
|
|
|
|
}
|
|
|
|
|
2020-11-06 23:55:20 +00:00
|
|
|
.web {
|
2020-05-09 12:02:07 +00:00
|
|
|
/* width: max-content; */ // commented 10.02.2020
|
|
|
|
/* width: min-content; */
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
}
|
2020-06-05 16:01:06 +00:00
|
|
|
|
2020-11-06 23:55:20 +00:00
|
|
|
&.webpage {
|
|
|
|
.preview-with-document {
|
|
|
|
margin-bottom: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.document {
|
|
|
|
height: 3.375rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-05 16:01:06 +00:00
|
|
|
.preview-resizer {
|
|
|
|
display: flex;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
img.emoji {
|
|
|
|
height: 18px;
|
|
|
|
width: 18px;
|
|
|
|
margin: 0 .05rem;
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.emoji {
|
|
|
|
height: auto;
|
|
|
|
width: auto;
|
|
|
|
overflow: visible;
|
|
|
|
vertical-align: unset;
|
|
|
|
}
|
2020-06-16 20:48:08 +00:00
|
|
|
|
|
|
|
.thumbnail {
|
|
|
|
position: absolute;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
&.emoji-big {
|
|
|
|
font-size: 0;
|
|
|
|
|
|
|
|
.bubble__container {
|
|
|
|
background: none!important;
|
|
|
|
box-shadow: none;
|
|
|
|
line-height: 1;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2020-05-13 15:26:40 +00:00
|
|
|
&:not(.sticker) .attachment {
|
2020-05-09 12:02:07 +00:00
|
|
|
padding-top: .5rem;
|
|
|
|
padding-bottom: 1.5rem;
|
2020-08-19 15:26:19 +00:00
|
|
|
//max-width: fit-content!important;
|
2020-05-09 12:02:07 +00:00
|
|
|
max-height: fit-content!important;
|
|
|
|
|
|
|
|
span.emoji {
|
|
|
|
height: auto;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
2020-05-13 15:26:40 +00:00
|
|
|
|
|
|
|
&.sticker .bubble__container {
|
2020-05-26 15:04:06 +00:00
|
|
|
max-width: 140px !important;
|
|
|
|
max-height: 140px !important;
|
2020-05-13 15:26:40 +00:00
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
2020-05-10 01:23:21 +00:00
|
|
|
&.emoji-1x .attachment {
|
2020-05-09 12:02:07 +00:00
|
|
|
font-size: 96px;
|
|
|
|
|
|
|
|
img.emoji {
|
|
|
|
height: 64px;
|
|
|
|
width: 64px;
|
|
|
|
/* height: 96px;
|
|
|
|
width: 96px; */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-10 01:23:21 +00:00
|
|
|
&.emoji-2x .attachment {
|
2020-05-09 12:02:07 +00:00
|
|
|
font-size: 64px;
|
|
|
|
|
|
|
|
img.emoji {
|
|
|
|
height: 48px;
|
|
|
|
width: 48px;
|
|
|
|
/* height: 64px;
|
|
|
|
width: 64px; */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-10 01:23:21 +00:00
|
|
|
&.emoji-3x .attachment {
|
2020-05-09 12:02:07 +00:00
|
|
|
font-size: 52px;
|
|
|
|
|
|
|
|
img.emoji {
|
|
|
|
height: 32px;
|
|
|
|
width: 32px;
|
|
|
|
/* height: 48px;
|
|
|
|
width: 48px; */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-13 15:26:40 +00:00
|
|
|
&.sticker, &.round, &.emoji-big {
|
2020-05-09 12:02:07 +00:00
|
|
|
.bubble__container {
|
|
|
|
cursor: pointer;
|
|
|
|
background: none!important;
|
|
|
|
box-shadow: none;
|
|
|
|
/* max-width: 300px;
|
|
|
|
max-height: 300px; */
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
object-fit: contain;
|
|
|
|
}
|
2020-05-13 15:26:40 +00:00
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
&.is-message-empty .message {
|
2020-05-13 15:26:40 +00:00
|
|
|
background-color: rgba(0, 0, 0, .23);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* &.is-message-empty .message {
|
2020-05-09 12:02:07 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-message-empty:hover .message {
|
|
|
|
display: block;
|
2020-05-13 15:26:40 +00:00
|
|
|
} */
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.sticker {
|
|
|
|
.attachment {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bubble__container {
|
2020-05-26 15:04:06 +00:00
|
|
|
max-width: 200px !important;
|
|
|
|
max-height: 200px !important;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.round {
|
|
|
|
.attachment {
|
2020-05-26 15:04:06 +00:00
|
|
|
max-width: 200px !important;
|
|
|
|
max-height: 200px !important;
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
img {
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.is-message-empty) .attachment/* ,
|
|
|
|
&:not(.is-message-empty).is-reply .attachment */ {
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.emoji-big) .attachment {
|
|
|
|
font-size: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.attachment {
|
|
|
|
max-width: 100%;
|
|
|
|
border-radius: inherit;
|
|
|
|
overflow: hidden;
|
2020-10-17 23:19:56 +00:00
|
|
|
user-select: none;
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
display: flex; // lol
|
|
|
|
justify-content: center;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
img, video {
|
|
|
|
max-width: 100%;
|
|
|
|
cursor: pointer;
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity .3s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
.download {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
span {
|
2020-09-23 20:29:53 +00:00
|
|
|
background-color: var(--message-time-background);
|
2020-05-09 12:02:07 +00:00
|
|
|
font-size: 23px;
|
|
|
|
color: #fff;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2020-05-26 15:04:06 +00:00
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
|
2020-05-26 15:04:06 +00:00
|
|
|
.download, .preloader-container {
|
2020-05-09 12:02:07 +00:00
|
|
|
& ~ .video-play {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2020-10-28 18:20:01 +00:00
|
|
|
|
|
|
|
.preloader-container {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.sticker) {
|
|
|
|
.attachment {
|
2020-06-05 16:01:06 +00:00
|
|
|
max-width: unquote('min(480px, 100%)');
|
|
|
|
max-height: unquote('min(480px, 100%)');
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
width: max-content;
|
|
|
|
}
|
2020-05-23 05:31:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
img:not(.emoji), video {
|
|
|
|
/* object-fit: contain; */
|
|
|
|
object-fit: cover;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
2020-10-28 18:20:01 +00:00
|
|
|
html.is-safari &:not(.round) {
|
|
|
|
img:not(.emoji), video {
|
|
|
|
border-radius: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
&.is-album {
|
|
|
|
.attachment {
|
2020-06-05 16:01:06 +00:00
|
|
|
max-width: unquote('min(451px, 100%)');
|
2020-05-09 12:02:07 +00:00
|
|
|
max-height: none;
|
|
|
|
|
2020-05-30 06:44:54 +00:00
|
|
|
.album-item {
|
2020-05-09 12:02:07 +00:00
|
|
|
background-color: #000;
|
|
|
|
background-size: cover;
|
2020-05-30 06:44:54 +00:00
|
|
|
/* background-position: center center; */
|
2020-05-09 12:02:07 +00:00
|
|
|
/* flex: 1 0 auto; */
|
|
|
|
max-width: 100%;
|
|
|
|
cursor: pointer;
|
|
|
|
position: absolute;
|
2020-06-05 16:01:06 +00:00
|
|
|
overflow: hidden;
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
img, video {
|
|
|
|
border-radius: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//&.video {
|
|
|
|
//.attachment {
|
|
|
|
//max-height: fit-content;
|
|
|
|
|
|
|
|
/*img {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}*/
|
|
|
|
//}
|
|
|
|
//}
|
|
|
|
|
2020-06-13 08:19:39 +00:00
|
|
|
&.round {
|
2020-05-09 12:02:07 +00:00
|
|
|
.attachment {
|
|
|
|
max-height: 200px;
|
|
|
|
max-width: 200px;
|
|
|
|
//max-height: fit-content;
|
|
|
|
//-webkit-clip-path: ellipse(100px 100px at center);
|
|
|
|
//clip-path: ellipse(100px 100px at center);
|
|
|
|
}
|
|
|
|
}
|
2020-11-06 23:55:20 +00:00
|
|
|
|
|
|
|
.web {
|
|
|
|
margin-top: -6px !important;
|
|
|
|
// margin-bottom: 5px;
|
|
|
|
max-width: 100%;
|
|
|
|
overflow: hidden;
|
2020-05-09 12:02:07 +00:00
|
|
|
|
2020-11-06 23:55:20 +00:00
|
|
|
.preview {
|
|
|
|
max-height: unquote('min(400px, 100%)');
|
|
|
|
max-width: unquote('min(480px, 100%)');
|
|
|
|
/* max-height: 100%;
|
|
|
|
max-width: 100%; */
|
|
|
|
border-radius: 4px;
|
|
|
|
margin-bottom: 3px;
|
2020-05-09 12:02:07 +00:00
|
|
|
overflow: hidden;
|
2020-11-06 23:55:20 +00:00
|
|
|
user-select: none;
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
2020-05-09 12:02:07 +00:00
|
|
|
|
2020-11-06 23:55:20 +00:00
|
|
|
width: max-content;
|
2020-05-09 12:02:07 +00:00
|
|
|
|
2020-11-06 23:55:20 +00:00
|
|
|
img, video {
|
|
|
|
max-width: 100%;
|
|
|
|
/* width: 100%;
|
|
|
|
height: 100%; */
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
2020-11-06 23:55:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
letter-spacing: -0.2px;
|
|
|
|
line-height: 1.2;
|
|
|
|
font-weight: 500 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.name {
|
|
|
|
letter-spacing: -0.3px;
|
|
|
|
display: block;
|
2020-05-09 12:02:07 +00:00
|
|
|
|
2020-11-06 23:55:20 +00:00
|
|
|
html.no-touch &:hover {
|
|
|
|
text-decoration: underline;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-06 23:55:20 +00:00
|
|
|
.text {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
line-height: 1.2;
|
|
|
|
letter-spacing: -0.3px;
|
|
|
|
margin-top: 2px;
|
|
|
|
font-size: 0.965rem;
|
|
|
|
}
|
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
.quote {
|
|
|
|
// padding-left: .5rem;
|
|
|
|
padding-left: 0.55rem;
|
|
|
|
max-width: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2020-11-06 23:55:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.web, .reply {
|
|
|
|
font-size: .95rem;
|
|
|
|
// margin: .25rem;
|
|
|
|
margin: 4px 4px 4px 6px;
|
|
|
|
//padding: .25rem;
|
|
|
|
padding: 4px;
|
|
|
|
margin-bottom: -5px;
|
|
|
|
border-radius: 4px;
|
|
|
|
//transition: anim(background-color);
|
|
|
|
|
|
|
|
/* &:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
} */
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
.name, .reply-title {
|
|
|
|
font-weight: 500 !important;
|
|
|
|
display: inline!important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-30 06:44:54 +00:00
|
|
|
&.is-square-photo {
|
|
|
|
.bubble__container {
|
|
|
|
width: fit-content;
|
|
|
|
}
|
|
|
|
|
2020-11-06 23:55:20 +00:00
|
|
|
.web {
|
2020-05-30 06:44:54 +00:00
|
|
|
.quote {
|
|
|
|
display: flex;
|
2020-10-26 01:59:49 +00:00
|
|
|
justify-content: space-between;
|
2020-05-30 06:44:54 +00:00
|
|
|
}
|
|
|
|
|
2020-06-05 16:01:06 +00:00
|
|
|
.preview-resizer {
|
2020-05-30 06:44:54 +00:00
|
|
|
order: 2;
|
|
|
|
flex-shrink: 0;
|
|
|
|
max-width: 5rem;
|
|
|
|
max-height: 5rem;
|
2020-06-05 16:01:06 +00:00
|
|
|
|
|
|
|
.preview {
|
|
|
|
max-width: unquote('min(5rem, 100%)');
|
|
|
|
max-height: unquote('min(5rem, 100%)');
|
|
|
|
}
|
2020-05-30 06:44:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.quote-text {
|
|
|
|
order: 1;
|
|
|
|
padding-right: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-vertical-photo {
|
|
|
|
.bubble__container {
|
|
|
|
width: fit-content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
.reply {
|
|
|
|
margin-bottom: 6px;
|
|
|
|
margin-top: 0;
|
|
|
|
cursor: pointer;
|
2020-10-21 23:59:30 +00:00
|
|
|
|
|
|
|
&-content {
|
|
|
|
max-width: 300px;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-reply {
|
|
|
|
&.emoji-big, &.sticker {
|
|
|
|
.reply {
|
|
|
|
padding: 10px;
|
|
|
|
border-radius: 12px;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
max-width: 300px;
|
|
|
|
height: 54px;
|
|
|
|
max-height: 54px;
|
|
|
|
white-space: nowrap;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
2020-06-19 11:49:55 +00:00
|
|
|
@include respond-to(handhelds) {
|
|
|
|
padding: 8px 6px 8px 8px;
|
|
|
|
max-width: 94px;
|
|
|
|
}
|
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
.reply-content {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.reply-content {
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.message {
|
|
|
|
font-size: 16px;
|
|
|
|
//padding: 0 .6rem .2675rem .6rem;
|
|
|
|
padding: 0 .6rem 6px .6rem;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
max-width: 100%;
|
|
|
|
color: #000;
|
|
|
|
line-height: 21px;
|
|
|
|
word-break: break-word;
|
|
|
|
|
|
|
|
/* * {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
} */
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
//padding-top: .2675rem;
|
|
|
|
padding-top: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.emoji {
|
|
|
|
font-size: 1.2rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-06 23:55:20 +00:00
|
|
|
.audio:not(.is-voice) {
|
|
|
|
justify-content: unset;
|
|
|
|
max-width: none;
|
|
|
|
width: 258px;
|
2020-06-21 12:25:17 +00:00
|
|
|
|
2020-11-06 23:55:20 +00:00
|
|
|
$parent: ".audio";
|
2020-06-21 12:25:17 +00:00
|
|
|
|
2020-11-06 23:55:20 +00:00
|
|
|
#{$parent} {
|
2020-05-09 12:02:07 +00:00
|
|
|
&-time {
|
|
|
|
padding-bottom: 7px;
|
|
|
|
}
|
2020-11-06 23:55:20 +00:00
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
&-time, &-subtitle {
|
|
|
|
color: #4fae4e;
|
|
|
|
line-height: 1.45;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2020-11-06 23:55:20 +00:00
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
&-title {
|
|
|
|
font-weight: 500;
|
|
|
|
margin-left: -1px;
|
|
|
|
}
|
2020-11-06 23:55:20 +00:00
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
&-details {
|
|
|
|
margin-top: 8px;
|
2020-11-06 23:55:20 +00:00
|
|
|
|
2020-06-21 12:25:17 +00:00
|
|
|
@include respond-to(handhelds) {
|
|
|
|
margin-top: -1px;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
2020-11-06 23:55:20 +00:00
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
&-ico {
|
2020-09-29 02:03:26 +00:00
|
|
|
font-size: 0;
|
2020-06-21 12:25:17 +00:00
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
margin-top: 1px;
|
|
|
|
margin-left: 2px;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
2020-11-06 23:55:20 +00:00
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
height: 59px;
|
|
|
|
padding-left: 47px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// .preloader-container {
|
|
|
|
// @include respond-to(handhelds) {
|
|
|
|
// width: 30px;
|
|
|
|
// height: 30px;
|
|
|
|
// // left: 2px;
|
|
|
|
// }
|
|
|
|
// }
|
2020-05-09 12:02:07 +00:00
|
|
|
|
2020-08-26 19:25:43 +00:00
|
|
|
.progress-line {
|
2020-05-09 12:02:07 +00:00
|
|
|
/* width: calc(100% + 50px); */
|
|
|
|
width: 191px;
|
|
|
|
margin: 9px 0 9px;
|
|
|
|
|
2020-06-21 12:25:17 +00:00
|
|
|
@include respond-to(handhelds) {
|
|
|
|
width: unset;
|
|
|
|
}
|
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
&__filled {
|
|
|
|
background-color: #47aa41;
|
|
|
|
transform-origin: left;
|
|
|
|
height: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__seek {
|
|
|
|
height: 2px;
|
|
|
|
overflow: visible !important;
|
|
|
|
background: rgba(124, 195, 107, 0.52);
|
|
|
|
|
|
|
|
&::-webkit-slider-thumb {
|
|
|
|
height: 12px;
|
|
|
|
width: 12px;
|
|
|
|
background: #47aa41;
|
2020-06-21 12:25:17 +00:00
|
|
|
border: none;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-06 23:55:20 +00:00
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
|
2020-11-06 23:55:20 +00:00
|
|
|
// all for audio (not voice)
|
|
|
|
.message.audio-message {
|
2020-05-09 12:02:07 +00:00
|
|
|
//&.audio-message {
|
|
|
|
min-width: 275px;
|
|
|
|
//max-width: 380px !important;
|
|
|
|
max-width: 275px !important;
|
|
|
|
padding-top: 8px !important;
|
|
|
|
padding-left: 8px !important;
|
|
|
|
|
|
|
|
/* .audio-details * {
|
|
|
|
overflow: visible;
|
|
|
|
} */
|
|
|
|
//}
|
|
|
|
|
2020-08-31 16:48:46 +00:00
|
|
|
/* @include respond-to(handhelds) {
|
|
|
|
.preloader-container .you-spin-me-round {
|
|
|
|
margin-top: 1px;
|
|
|
|
margin-left: 2px;
|
|
|
|
}
|
|
|
|
} */
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
2020-10-28 16:11:57 +00:00
|
|
|
.message.contact-message {
|
2020-05-09 12:02:07 +00:00
|
|
|
min-width: 200px;
|
|
|
|
padding-left: 8px;
|
|
|
|
|
|
|
|
.contact {
|
|
|
|
display: flex;
|
|
|
|
padding: 2px 0;
|
2020-05-10 01:23:21 +00:00
|
|
|
cursor: pointer;
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
&-avatar {
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-details {
|
|
|
|
padding-left: 12px;
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-name {
|
|
|
|
font-size: 1rem;
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-number {
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 1.4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.message.document-message {
|
|
|
|
max-width: 325px !important;
|
|
|
|
|
|
|
|
.document {
|
|
|
|
padding-left: 66px;
|
|
|
|
height: 58px;
|
|
|
|
|
2020-06-21 12:25:17 +00:00
|
|
|
@include respond-to(handhelds) {
|
|
|
|
padding-left: 44px;
|
|
|
|
}
|
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
&-name {
|
|
|
|
line-height: 1.4;
|
|
|
|
margin-top: 1px;
|
2020-05-10 01:23:21 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-28 16:11:57 +00:00
|
|
|
.message {
|
|
|
|
&.document-message, &.audio-message, &.voice-message, &.poll-message, &.contact-message {
|
|
|
|
.time {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.message.voice-message {
|
|
|
|
// ! SAFARI FIX BLINK ON SELECTION TRANSFORM !
|
|
|
|
overflow: visible !important;
|
|
|
|
}
|
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
&.is-message-empty {
|
|
|
|
.message {
|
|
|
|
position: absolute;
|
|
|
|
bottom: .1rem;
|
|
|
|
right: .2rem;
|
|
|
|
border-radius: 12px;
|
2020-09-23 20:29:53 +00:00
|
|
|
background-color: var(--message-time-background);
|
2020-05-09 12:02:07 +00:00
|
|
|
padding: 0 .2rem;
|
|
|
|
z-index: 2;
|
|
|
|
|
|
|
|
.time {
|
2020-10-28 16:11:57 +00:00
|
|
|
margin-left: 0;
|
2020-05-09 12:02:07 +00:00
|
|
|
color: #fff;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-10-28 16:11:57 +00:00
|
|
|
padding: 0 2.5px;
|
|
|
|
line-height: 20px;
|
2020-11-06 14:40:39 +00:00
|
|
|
pointer-events: all; // show title
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
.inner {
|
2020-10-28 16:11:57 +00:00
|
|
|
display: none;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.time {
|
2020-10-28 16:11:57 +00:00
|
|
|
color: transparent;
|
|
|
|
font-size: 12px;
|
2020-05-09 12:02:07 +00:00
|
|
|
user-select: none;
|
2020-10-28 16:11:57 +00:00
|
|
|
line-height: 1;
|
|
|
|
vertical-align: middle;
|
2020-11-06 14:40:39 +00:00
|
|
|
pointer-events: none; // do not show title
|
2020-11-06 22:34:02 +00:00
|
|
|
display: inline-block;
|
2020-10-28 16:11:57 +00:00
|
|
|
/* display: inline-flex;
|
|
|
|
align-items: center; */
|
|
|
|
|
|
|
|
i {
|
|
|
|
font-size: 1.15rem;
|
|
|
|
margin-right: .4rem;
|
|
|
|
/* margin-left: .1rem; */
|
|
|
|
}
|
|
|
|
|
|
|
|
i.edited {
|
|
|
|
overflow: visible;
|
|
|
|
font-size: .8rem;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
.inner {
|
2020-11-06 14:40:39 +00:00
|
|
|
pointer-events: all;
|
2020-05-09 12:02:07 +00:00
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
line-height: 1;
|
2020-10-28 16:11:57 +00:00
|
|
|
padding: inherit;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-28 18:20:01 +00:00
|
|
|
.video-time {
|
2020-05-09 12:02:07 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 3px;
|
|
|
|
left: 3px;
|
|
|
|
border-radius: 12px;
|
2020-09-23 20:29:53 +00:00
|
|
|
background-color: var(--message-time-background);
|
2020-05-09 12:02:07 +00:00
|
|
|
padding: 0px 6px 0px 6px;
|
|
|
|
z-index: 2;
|
|
|
|
font-size: 12px;
|
|
|
|
color: white;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
2020-10-28 18:20:01 +00:00
|
|
|
|
|
|
|
&.can-autoplay:after {
|
|
|
|
content: $tgico-nosound;
|
|
|
|
|
|
|
|
// * same as .iconVolume
|
|
|
|
padding: 0 1px 0 3px;
|
|
|
|
font-size: 1.25rem;
|
|
|
|
color: #fff;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
2020-10-28 18:20:01 +00:00
|
|
|
.video-play {
|
2020-09-23 20:29:53 +00:00
|
|
|
background-color: var(--message-time-background);
|
2020-05-09 12:02:07 +00:00
|
|
|
color: #fff;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 34px;
|
|
|
|
line-height: 60px;
|
|
|
|
cursor: pointer;
|
2020-09-29 02:03:26 +00:00
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
line-height: unset;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.forwarded).hide-name, &.emoji-big {
|
|
|
|
.name {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.name {
|
|
|
|
cursor: pointer;
|
2020-06-16 20:48:08 +00:00
|
|
|
user-select: none;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__container > .name {
|
|
|
|
/* padding: .2675rem .6rem 0 .6rem; */
|
|
|
|
/* padding: .32rem .6rem 0 .6rem; */
|
|
|
|
padding: 5px .6rem 0 .6rem;
|
|
|
|
font-weight: 500 !important;
|
|
|
|
/* padding-bottom: 4px; */
|
|
|
|
color: $color-blue;
|
|
|
|
font-size: .9rem;
|
|
|
|
max-width: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
//width: max-content;
|
|
|
|
//white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.webpage) {
|
|
|
|
&.photo, &.video {
|
|
|
|
.name {
|
|
|
|
//padding-bottom: .2675rem;
|
|
|
|
padding-bottom: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.is-message-empty) .message {
|
|
|
|
//padding-top: .2675rem;
|
|
|
|
padding-top: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.webpage):not(.is-album):not(.sticker):not(.round):not(.emoji-big) .attachment, .album-item {
|
|
|
|
background-color: #000;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.hide-name:not(.is-reply):not(.is-message-empty) .message {
|
|
|
|
//padding-top: .2675rem;
|
|
|
|
padding-top: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.sticker):not(.emoji-big) {
|
2020-05-30 06:44:54 +00:00
|
|
|
&.hide-name, &:not(.is-group-first), &.is-out {
|
2020-05-09 12:02:07 +00:00
|
|
|
.reply {
|
|
|
|
margin-top: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.sticker):not(.emoji-big):not(.round).is-group-last .bubble__container:after {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
width: 11px;
|
|
|
|
height: 20px;
|
2020-05-13 15:26:40 +00:00
|
|
|
background-repeat: no-repeat no-repeat;
|
2020-05-09 12:02:07 +00:00
|
|
|
content: '';
|
|
|
|
background-size: 11px 20px;
|
|
|
|
background-position-y: 1px;
|
|
|
|
}
|
|
|
|
|
2020-06-13 08:19:39 +00:00
|
|
|
&.photo, &.video {
|
2020-05-09 12:02:07 +00:00
|
|
|
&.is-message-empty.is-group-last {
|
2020-06-13 08:19:39 +00:00
|
|
|
.bubble__container:after {
|
2020-05-09 12:02:07 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2020-06-13 08:19:39 +00:00
|
|
|
}
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
|
2020-06-13 08:19:39 +00:00
|
|
|
&.is-message-empty.is-group-last.with-media-tail {
|
|
|
|
.bubble__container:after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.attachment {
|
|
|
|
overflow: visible;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__media-container {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.bubble.service {
|
|
|
|
align-self: center;
|
|
|
|
|
|
|
|
.service-msg {
|
|
|
|
color: #fff;
|
|
|
|
background-color: rgba(0, 0, 0, 0.24);
|
|
|
|
font-size: 14px;
|
|
|
|
padding: 0 8px;
|
|
|
|
line-height: 24px;
|
|
|
|
border-radius: 12px;
|
|
|
|
user-select: none;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2020-05-26 15:04:06 +00:00
|
|
|
text-align: center;
|
2020-05-09 12:02:07 +00:00
|
|
|
|
2020-10-21 23:59:30 +00:00
|
|
|
i {
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
|
2020-10-30 23:30:43 +00:00
|
|
|
a {
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
a, .name {
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
.name {
|
|
|
|
cursor: pointer;
|
2020-10-21 23:59:30 +00:00
|
|
|
//margin-right: 5px;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
2020-05-10 01:23:21 +00:00
|
|
|
img.emoji {
|
|
|
|
margin-bottom: 3px;
|
|
|
|
}
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.bubble.is-in {
|
|
|
|
.bubble__container {
|
|
|
|
margin-right: auto;
|
|
|
|
background-color: #ffffff;
|
2020-06-16 20:48:08 +00:00
|
|
|
|
|
|
|
&, .poll-footer-button {
|
|
|
|
border-radius: 6px 12px 12px 6px;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
2020-06-16 20:48:08 +00:00
|
|
|
&.is-group-first {
|
|
|
|
.bubble__container, .poll-footer-button {
|
|
|
|
border-radius: 12px 12px 12px 6px;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
2020-06-16 20:48:08 +00:00
|
|
|
&.is-group-last {
|
|
|
|
.bubble__container, .poll-footer-button {
|
|
|
|
border-radius: 6px 12px 12px 0px;
|
|
|
|
//border-radius: 12px 12px 12px 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bubble__container:after {
|
2020-05-09 12:02:07 +00:00
|
|
|
left: -8.4px;
|
2020-06-05 16:01:06 +00:00
|
|
|
background-image: url('assets/img/msg-tail-left.svg');
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-16 20:48:08 +00:00
|
|
|
&.is-group-first.is-group-last {
|
|
|
|
.bubble__container, .poll-footer-button {
|
|
|
|
border-radius: 12px 12px 12px 0px;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.forwarded .attachment,
|
|
|
|
&.is-reply .attachment,
|
|
|
|
&:not(.hide-name).is-message-empty .attachment/* ,
|
|
|
|
&:not(.hide-name):not(.sticker) .attachment */ {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: $color-blue;
|
|
|
|
}
|
2020-06-05 16:01:06 +00:00
|
|
|
|
|
|
|
.quote {
|
|
|
|
html.no-touch &:hover {
|
|
|
|
background-color: $light;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-reply {
|
|
|
|
&.emoji-big, &.sticker {
|
|
|
|
.reply {
|
|
|
|
left: calc(100% + 10px);
|
|
|
|
background-color: #fff;
|
2020-06-19 11:49:55 +00:00
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
left: calc(100% + 1px);
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.quote {
|
|
|
|
border-left: 2px $color-blue solid;
|
|
|
|
|
2020-11-06 23:55:20 +00:00
|
|
|
/* * {
|
2020-05-09 12:02:07 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2020-11-06 23:55:20 +00:00
|
|
|
} */
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.quote .name, .reply-title {
|
|
|
|
color: $color-blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
.time {
|
2020-10-28 16:11:57 +00:00
|
|
|
margin-left: -1px;
|
|
|
|
padding-right: 8px;
|
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
.inner {
|
2020-10-28 16:11:57 +00:00
|
|
|
color: #a3adb6;
|
2020-05-09 12:02:07 +00:00
|
|
|
margin-bottom: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-13 08:19:39 +00:00
|
|
|
&.is-message-empty.is-group-last {
|
|
|
|
&:not(.with-media-tail) {
|
|
|
|
&.photo, &.video {
|
|
|
|
.bubble__container {
|
|
|
|
border-bottom-left-radius: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.with-media-tail {
|
2020-05-09 12:02:07 +00:00
|
|
|
.attachment {
|
|
|
|
border-bottom-left-radius: 0;
|
2020-06-13 08:19:39 +00:00
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
|
2020-06-13 08:19:39 +00:00
|
|
|
.bubble__media-container {
|
|
|
|
margin-left: -9px;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.audio-subtitle, .contact-number, .audio-time {
|
|
|
|
color: #707579 !important;
|
|
|
|
}
|
|
|
|
|
2020-11-06 23:55:20 +00:00
|
|
|
.audio:not(.is-voice) {
|
2020-08-26 19:25:43 +00:00
|
|
|
.progress-line {
|
2020-05-09 12:02:07 +00:00
|
|
|
&__seek {
|
|
|
|
background: rgba(193, 207, 220, 0.39);
|
|
|
|
}
|
|
|
|
|
|
|
|
&__filled {
|
|
|
|
background-color: #0089ff;
|
|
|
|
}
|
|
|
|
|
2020-08-28 11:25:43 +00:00
|
|
|
&__loaded {
|
|
|
|
background-color: #cacaca;
|
|
|
|
}
|
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
input::-webkit-slider-thumb {
|
|
|
|
background: #63a2e3;
|
2020-06-21 12:25:17 +00:00
|
|
|
border: none;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-10 01:23:21 +00:00
|
|
|
|
|
|
|
/* .poll {
|
|
|
|
&-answer-selected {
|
|
|
|
&:before {
|
|
|
|
margin-left: -1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} */
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
2020-08-28 19:53:10 +00:00
|
|
|
/* @include respond-to(handhelds) {
|
2020-06-05 16:01:06 +00:00
|
|
|
.bubble.is-in {
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bubble.is-out {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
2020-08-28 19:53:10 +00:00
|
|
|
} */
|
2020-06-05 16:01:06 +00:00
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
.bubble.is-out {
|
|
|
|
.bubble__container {
|
|
|
|
margin-left: auto;
|
|
|
|
background-color: #eeffde;
|
|
|
|
|
|
|
|
> .user-avatar {
|
|
|
|
left: auto;
|
|
|
|
right: -2.5rem;
|
|
|
|
}
|
2020-06-16 20:48:08 +00:00
|
|
|
|
|
|
|
&, .poll-footer-button {
|
|
|
|
border-radius: 12px 6px 6px 12px;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
2020-06-16 20:48:08 +00:00
|
|
|
&.is-group-first {
|
|
|
|
.bubble__container, .poll-footer-button {
|
|
|
|
border-radius: 12px 12px 6px 12px;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
2020-06-16 20:48:08 +00:00
|
|
|
&.is-group-last {
|
|
|
|
.bubble__container, .poll-footer-button {
|
|
|
|
border-radius: 12px 6px 0px 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bubble__container:after {
|
2020-05-09 12:02:07 +00:00
|
|
|
right: -8.4px;
|
2020-06-05 16:01:06 +00:00
|
|
|
background-image: url('assets/img/msg-tail-right.svg');
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-16 20:48:08 +00:00
|
|
|
&.is-group-first.is-group-last {
|
|
|
|
.bubble__container, .poll-footer-button {
|
|
|
|
border-radius: 12px 12px 0px 12px;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.forwarded .attachment,
|
|
|
|
&.is-reply .attachment {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
}
|
2020-06-05 16:01:06 +00:00
|
|
|
|
|
|
|
.quote {
|
|
|
|
html.no-touch &:hover {
|
|
|
|
background-color: rgba($color-green, 0.12);
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-reply {
|
|
|
|
&.emoji-big, &.sticker {
|
2020-11-06 23:55:20 +00:00
|
|
|
.web, .reply {
|
2020-05-09 12:02:07 +00:00
|
|
|
background-color: #eeffde;
|
|
|
|
right: calc(100% + 10px);
|
|
|
|
border-color: rgba($color-green, .12);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.quote {
|
|
|
|
border-left: 2px $darkgreen solid;
|
|
|
|
}
|
|
|
|
|
|
|
|
.reply-border {
|
|
|
|
background-color: $darkgreen;
|
|
|
|
}
|
|
|
|
|
|
|
|
.quote .name, .reply-title {
|
|
|
|
color: $darkgreen;
|
|
|
|
}
|
|
|
|
|
|
|
|
.time {
|
2020-10-28 16:11:57 +00:00
|
|
|
padding-right: 4px;
|
|
|
|
margin-left: -4px;
|
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
.inner {
|
2020-10-28 16:11:57 +00:00
|
|
|
color: $darkgreen;
|
|
|
|
bottom: 2px;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
2020-10-28 16:11:57 +00:00
|
|
|
&:after, .inner:after {
|
2020-05-09 12:02:07 +00:00
|
|
|
font-size: 19px;
|
2020-10-28 16:11:57 +00:00
|
|
|
//vertical-align: middle;
|
2020-05-09 12:02:07 +00:00
|
|
|
margin-left: 1px;
|
2020-10-28 16:11:57 +00:00
|
|
|
line-height: 16px; // of message
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-28 16:11:57 +00:00
|
|
|
|
|
|
|
/* &.is-message-empty .time:after {
|
|
|
|
margin-bottom: 1px;
|
|
|
|
} */
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
&.forwarded {
|
|
|
|
.name {
|
|
|
|
color: $darkgreen;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-read {
|
2020-10-28 16:11:57 +00:00
|
|
|
.time:after, .time .inner:after {
|
2020-05-09 12:02:07 +00:00
|
|
|
content: $tgico-checks;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-sent {
|
2020-10-28 16:11:57 +00:00
|
|
|
.time:after, .time .inner:after {
|
2020-05-09 12:02:07 +00:00
|
|
|
content: $tgico-check;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-sending {
|
2020-10-28 16:11:57 +00:00
|
|
|
.time:after, .time .inner:after {
|
2020-05-09 12:02:07 +00:00
|
|
|
content: $tgico-sending;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-reply .name {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.document-ico:after {
|
|
|
|
border-top-color: #eeffde;
|
|
|
|
border-right-color: #eeffde;
|
|
|
|
}
|
|
|
|
|
|
|
|
.audio {
|
|
|
|
&-waveform {
|
|
|
|
rect {
|
|
|
|
fill: #B8DDA9;
|
|
|
|
|
|
|
|
&.active {
|
2020-10-11 22:06:30 +00:00
|
|
|
fill: #68AB5A !important;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-time, &-subtitle {
|
|
|
|
color: #68AB5A;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-toggle, &-download {
|
|
|
|
background-color: #4FAE4E;
|
|
|
|
}
|
2020-06-01 22:19:35 +00:00
|
|
|
|
|
|
|
&-download:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-10-08 20:49:08 +00:00
|
|
|
|
|
|
|
&.is-unread {
|
|
|
|
rect {
|
|
|
|
//fill: #68AB5A;
|
|
|
|
fill: #B8DDA9;
|
|
|
|
}
|
|
|
|
|
|
|
|
.audio-time:after {
|
|
|
|
background-color: #68AB5A;
|
|
|
|
}
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
2020-06-13 08:19:39 +00:00
|
|
|
&.is-message-empty.is-group-last {
|
|
|
|
&:not(.with-media-tail) {
|
|
|
|
&.photo, &.video {
|
|
|
|
.bubble__container {
|
|
|
|
border-bottom-right-radius: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.with-media-tail {
|
2020-05-09 12:02:07 +00:00
|
|
|
.attachment {
|
|
|
|
border-bottom-right-radius: 0;
|
2020-06-13 08:19:39 +00:00
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
|
2020-06-13 08:19:39 +00:00
|
|
|
.bubble__media-container {
|
|
|
|
margin-right: -9px;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.audio-subtitle, .contact-number, .document-size {
|
|
|
|
color: #4FAE4E;
|
|
|
|
}
|
|
|
|
|
|
|
|
poll-element {
|
|
|
|
.poll {
|
|
|
|
&-desc, &-votes-count {
|
|
|
|
color: $color-text-green;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-line use {
|
|
|
|
stroke: #4fae4e;
|
|
|
|
}
|
|
|
|
|
2020-05-10 01:23:21 +00:00
|
|
|
&-answer-selected {
|
|
|
|
background-color: #4fae4e;
|
|
|
|
}
|
|
|
|
|
2020-06-05 16:01:06 +00:00
|
|
|
html.no-touch &-answer:hover {
|
2020-05-09 12:02:07 +00:00
|
|
|
.animation-ring {
|
|
|
|
background-color: rgba(79, 174, 78, 0.08);
|
|
|
|
}
|
|
|
|
}
|
2020-06-16 20:48:08 +00:00
|
|
|
|
|
|
|
&-footer-button {
|
|
|
|
color: #4fae4e;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.progress-ring__circle {
|
|
|
|
stroke: #4fae4e;
|
|
|
|
}
|
|
|
|
}
|
2020-06-16 20:48:08 +00:00
|
|
|
|
|
|
|
&.is-sending poll-element {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2020-08-28 11:25:43 +00:00
|
|
|
|
2020-08-28 19:53:10 +00:00
|
|
|
.progress-line {
|
2020-08-28 11:25:43 +00:00
|
|
|
&__loaded {
|
|
|
|
background-color: #90e18d !important;
|
|
|
|
}
|
|
|
|
}
|
2020-08-29 16:05:28 +00:00
|
|
|
|
|
|
|
.bubble-beside-button {
|
|
|
|
right: auto;
|
|
|
|
left: -46px;
|
2020-09-23 20:29:53 +00:00
|
|
|
//transform: scaleX(-1);
|
2020-08-29 16:05:28 +00:00
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
2020-05-18 01:21:58 +00:00
|
|
|
.reply-markup {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&-row {
|
|
|
|
margin-top: 5px;
|
|
|
|
overflow: hidden;
|
|
|
|
height: 40px;
|
|
|
|
display: flex;
|
2020-05-09 12:02:07 +00:00
|
|
|
|
2020-05-18 01:21:58 +00:00
|
|
|
&:last-child {
|
|
|
|
border-bottom-left-radius: $border-radius-big;
|
|
|
|
border-bottom-right-radius: $border-radius-big;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-button {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 6px;
|
|
|
|
background-color: rgba(0, 0, 0, 0.23);
|
|
|
|
z-index: 2;
|
|
|
|
font-size: 14px;
|
|
|
|
user-select: none;
|
|
|
|
text-align: center;
|
|
|
|
color: white !important;
|
|
|
|
outline: none;
|
|
|
|
border: none;
|
|
|
|
width: 100%;
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
|
|
|
transition: background-color 0.35s ease;
|
|
|
|
|
2020-06-05 16:01:06 +00:00
|
|
|
html.no-touch &:hover {
|
2020-05-18 01:21:58 +00:00
|
|
|
background-color: rgba(0, 0, 0, 0.06);
|
|
|
|
}
|
|
|
|
|
|
|
|
& + & {
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-link:before {
|
|
|
|
content: $tgico-next;
|
|
|
|
position: absolute;
|
|
|
|
right: 2px;
|
|
|
|
top: 2px;
|
|
|
|
display: block;
|
|
|
|
transform: rotate(-45deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* img.emoji {
|
|
|
|
vertical-align: middle !important;
|
|
|
|
} */
|
|
|
|
}
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
|
2020-06-16 20:48:08 +00:00
|
|
|
poll-element {
|
2020-05-09 12:02:07 +00:00
|
|
|
margin-top: -1px;
|
|
|
|
display: block;
|
2020-06-19 11:49:55 +00:00
|
|
|
//min-width: 280px;
|
|
|
|
min-width: 330px;
|
2020-06-21 12:25:17 +00:00
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
min-width: 240px;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
|
2020-06-16 20:48:08 +00:00
|
|
|
&:not(.is-closed):not(.is-voted) .poll-answer {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2020-05-09 12:02:07 +00:00
|
|
|
.poll {
|
|
|
|
&-title {
|
|
|
|
font-weight: 500;
|
2020-06-16 20:48:08 +00:00
|
|
|
user-select: none;
|
2020-06-21 12:25:17 +00:00
|
|
|
|
|
|
|
@include respond-to(handhelds) {
|
|
|
|
max-width: 88%;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-desc {
|
|
|
|
font-size: 14px;
|
|
|
|
color: #707579;
|
2020-06-19 11:49:55 +00:00
|
|
|
margin-top: 2px;
|
2020-05-09 12:02:07 +00:00
|
|
|
margin-bottom: 7px;
|
2020-06-16 20:48:08 +00:00
|
|
|
user-select: none;
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
2020-06-21 12:25:17 +00:00
|
|
|
|
|
|
|
// @include respond-to(handhelds) {
|
|
|
|
// max-width: 280px;
|
|
|
|
// }
|
2020-06-16 20:48:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-hint {
|
|
|
|
position: absolute;
|
|
|
|
font-size: 1.5rem;
|
2020-06-19 11:49:55 +00:00
|
|
|
top: -4px;
|
|
|
|
right: 2px;
|
2020-06-16 20:48:08 +00:00
|
|
|
color: #50a2e9;
|
|
|
|
cursor: pointer;
|
|
|
|
transform: scale(1);
|
|
|
|
transition: transform .2s ease;
|
|
|
|
|
2020-06-21 12:25:17 +00:00
|
|
|
// @include respond-to(handhelds) {
|
|
|
|
// right: 16px;
|
|
|
|
// }
|
|
|
|
|
2020-06-16 20:48:08 +00:00
|
|
|
&.active {
|
|
|
|
transform: scale(0);
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-send-vote {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-avatars {
|
|
|
|
display: flex;
|
2020-06-19 11:49:55 +00:00
|
|
|
margin-left: 18px;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-answer {
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
|
|
|
padding-bottom: 20px;
|
2020-06-19 11:49:55 +00:00
|
|
|
padding-left: 28px;
|
|
|
|
margin-top: 1px;
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
&-text {
|
2020-06-19 11:49:55 +00:00
|
|
|
margin-top: 6px;
|
|
|
|
margin-left: 12px;
|
2020-06-16 20:48:08 +00:00
|
|
|
user-select: none;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-percents {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
opacity: 0;
|
|
|
|
font-weight: 500;
|
|
|
|
margin-top: 7px;
|
2020-06-19 11:49:55 +00:00
|
|
|
font-size: 14px;
|
2020-05-09 12:02:07 +00:00
|
|
|
transition: .34s opacity;
|
2020-06-19 11:49:55 +00:00
|
|
|
margin-left: -9px;
|
2020-05-10 01:23:21 +00:00
|
|
|
text-align: right;
|
|
|
|
width: 40px;
|
2020-06-16 20:48:08 +00:00
|
|
|
user-select: none;
|
2020-05-10 01:23:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-selected {
|
|
|
|
position: absolute;
|
2020-06-16 20:48:08 +00:00
|
|
|
bottom: 1px;
|
2020-06-19 11:49:55 +00:00
|
|
|
left: 15px;
|
2020-05-10 01:23:21 +00:00
|
|
|
color: #fff;
|
|
|
|
background: #50a2e9;
|
|
|
|
border-radius: 50%;
|
2020-06-16 20:48:08 +00:00
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 1.4;
|
2020-05-10 01:23:21 +00:00
|
|
|
opacity: 0;
|
2020-10-10 17:19:04 +00:00
|
|
|
animation: fade-in-opacity .1s ease forwards;
|
2020-05-10 01:23:21 +00:00
|
|
|
animation-direction: reverse;
|
|
|
|
animation-delay: .24s;
|
2020-06-16 20:48:08 +00:00
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: $tgico-check;
|
|
|
|
//margin-left: 1px;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
2020-06-05 16:01:06 +00:00
|
|
|
html.no-touch &:hover {
|
2020-05-09 12:02:07 +00:00
|
|
|
.animation-ring {
|
|
|
|
visibility: visible;
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
2020-05-10 01:23:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.is-voting {
|
2020-05-09 12:02:07 +00:00
|
|
|
.progress-ring__circle {
|
|
|
|
stroke-dashoffset: -19.792;
|
|
|
|
animation: pollAnswerRotate 0.65s linear infinite;
|
|
|
|
}
|
|
|
|
}
|
2020-06-16 20:48:08 +00:00
|
|
|
|
|
|
|
&:not(.is-correct):not(.is-chosen) {
|
|
|
|
.poll-answer-selected {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Multiple answers
|
|
|
|
&.is-chosing {
|
|
|
|
.poll-answer-selected {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
& ~ .poll-footer {
|
|
|
|
.poll-send-vote {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-votes-count {
|
|
|
|
color: #707579;
|
|
|
|
font-size: 14px;
|
2020-06-16 20:48:08 +00:00
|
|
|
user-select: none;
|
2020-06-19 11:49:55 +00:00
|
|
|
padding-top: 1px;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-line {
|
2020-05-10 01:23:21 +00:00
|
|
|
height: 35px;
|
2020-05-09 12:02:07 +00:00
|
|
|
position: absolute;
|
2020-06-19 11:49:55 +00:00
|
|
|
left: 10px;
|
2020-05-26 15:04:06 +00:00
|
|
|
bottom: 2px;
|
2020-05-10 01:23:21 +00:00
|
|
|
transition: stroke-dashoffset .34s linear, stroke-dasharray .34s linear;
|
|
|
|
stroke-dashoffset: 0;
|
|
|
|
stroke-dasharray: 0, 485.9;
|
2020-05-09 12:02:07 +00:00
|
|
|
|
|
|
|
use {
|
2020-05-10 01:23:21 +00:00
|
|
|
stroke-width: 4px;
|
2020-05-09 12:02:07 +00:00
|
|
|
stroke-linecap: round;
|
|
|
|
stroke: #50a2e9;
|
|
|
|
fill: none;
|
|
|
|
}
|
|
|
|
}
|
2020-06-16 20:48:08 +00:00
|
|
|
|
|
|
|
&-footer {
|
|
|
|
text-align: center;
|
|
|
|
margin-top: 7px;
|
2020-10-28 16:11:57 +00:00
|
|
|
height: 27px;
|
2020-06-16 20:48:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-footer-button {
|
|
|
|
cursor: pointer;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
margin-top: -7px;
|
|
|
|
width: 100%;
|
|
|
|
height: 41px;
|
|
|
|
color: #50a2e9;
|
|
|
|
//text-transform: uppercase;
|
|
|
|
font-weight: 500;
|
|
|
|
border-top-left-radius: 0 !important;
|
|
|
|
border-top-right-radius: 0 !important;
|
|
|
|
//border-bottom-left-radius: 6px;
|
|
|
|
//border-bottom-right-radius: 12px;
|
|
|
|
font-size: 1rem;
|
|
|
|
line-height: 37px;
|
|
|
|
user-select: none;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-quiz-timer {
|
2020-06-19 11:49:55 +00:00
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
stroke: #a3adb6;
|
|
|
|
transform: rotate(270deg);
|
|
|
|
top: -7px;
|
2020-06-16 20:48:08 +00:00
|
|
|
fill: none;
|
|
|
|
position: absolute;
|
2020-06-19 11:49:55 +00:00
|
|
|
right: -2px;
|
|
|
|
stroke-linecap: round;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-time {
|
|
|
|
font-size: 12px;
|
|
|
|
font-weight: 500;
|
|
|
|
position: absolute;
|
|
|
|
right: 27px;
|
|
|
|
color: #a3adb6;
|
2020-06-16 20:48:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-quiz .poll {
|
|
|
|
&-answer {
|
|
|
|
&.is-chosen:not(.is-correct) {
|
|
|
|
use {
|
|
|
|
stroke: #DF3F40;
|
|
|
|
}
|
|
|
|
|
|
|
|
.poll-answer-selected {
|
|
|
|
background: #DF3F40;
|
2020-06-19 11:49:55 +00:00
|
|
|
//line-height: 16px;
|
2020-06-16 20:48:08 +00:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: $tgico-close;
|
|
|
|
font-size: 12px;
|
|
|
|
//margin-left: 2.5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-28 00:23:00 +00:00
|
|
|
/* &-line {
|
2020-06-16 20:48:08 +00:00
|
|
|
use {
|
|
|
|
|
|
|
|
}
|
2020-09-28 00:23:00 +00:00
|
|
|
} */
|
2020-06-16 20:48:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
avatar-element {
|
2020-06-19 11:49:55 +00:00
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
2020-06-16 20:48:08 +00:00
|
|
|
border: 1px solid #fff;
|
|
|
|
line-height: 20px;
|
|
|
|
font-size: 10px;
|
|
|
|
cursor: pointer;
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.circle-hover {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
width: 34px;
|
|
|
|
height: 34px;
|
|
|
|
position: absolute;
|
2020-06-19 11:49:55 +00:00
|
|
|
left: -1px;
|
|
|
|
top: -1px;
|
2020-05-09 12:02:07 +00:00
|
|
|
transform: scale(1);
|
|
|
|
transition: .1s transform;
|
2020-06-16 20:48:08 +00:00
|
|
|
|
|
|
|
.poll-answer-selected {
|
|
|
|
display: flex!important;
|
|
|
|
opacity: 0;
|
|
|
|
left: 50%;
|
|
|
|
top: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
2020-06-19 11:49:55 +00:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
font-size: 20px;
|
2020-06-16 20:48:08 +00:00
|
|
|
line-height: 16px;
|
|
|
|
animation: none;
|
|
|
|
transition: opacity .2s ease;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.animation-ring {
|
|
|
|
display: block;
|
|
|
|
border-radius: 50%;
|
|
|
|
height: 34px;
|
|
|
|
width: 34px;
|
|
|
|
transition: transform 0.12s;
|
|
|
|
background-color: #f4f4f4;
|
|
|
|
transform: scale(0.1);
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.progress-ring {
|
|
|
|
height: 26px;
|
|
|
|
width: 26px;
|
|
|
|
top: unset;
|
|
|
|
left: unset;
|
|
|
|
|
|
|
|
&__circle {
|
|
|
|
transform-origin: center;
|
|
|
|
transform: rotate(-90deg);
|
|
|
|
transition: stroke-dashoffset 0.15s;
|
|
|
|
stroke-dasharray: 56.5487, 56.5487;
|
|
|
|
stroke-dashoffset: 0;
|
|
|
|
stroke-opacity: 1;
|
|
|
|
stroke-width: 2;
|
2020-06-19 11:49:55 +00:00
|
|
|
stroke: #dadbdc;
|
2020-05-09 12:02:07 +00:00
|
|
|
fill: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-voted {
|
|
|
|
.circle-hover, .animation-ring {
|
|
|
|
transform: scale(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
.poll-answer-percents {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2020-05-10 01:23:21 +00:00
|
|
|
|
|
|
|
.poll-answer-selected {
|
|
|
|
animation-direction: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-retracting {
|
|
|
|
.circle-hover {
|
|
|
|
transition-delay: .24s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.animation-ring {
|
|
|
|
transition-delay: .22s;
|
|
|
|
}
|
2020-05-09 12:02:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes pollAnswerRotate {
|
|
|
|
to {
|
|
|
|
transform: rotate(270deg);
|
|
|
|
}
|
|
|
|
}
|