.chat-container { display: flex; // padding: 200px; width: 100%; align-items: center; height: 100vh; overflow: hidden; flex-direction: column; position: relative; background-image: url('../../../public/assets/img/camomile.jpg'); background-size: cover; background-position: center center; #im-title { cursor: pointer; span.emoji { vertical-align: inherit; } } /* .chat-background, #chat-closed { position: absolute; /* left: 0; top: 0; width: 100%; height: 100%; * left: -1%; top: -1%; width: 102%; height: 102%; background-image: url('../../../public/assets/img/camomile.jpg'); background-size: cover; background-position: center center; display: none; } */ #chat-background-canvas { display: none; } /* #chat-closed { z-index: 3; } > *:not(.chat-background) { z-index: 2; } */ #topbar { width: 100%; background-color: #fff; box-sizing: border-box; user-select: none; -webkit-user-select: none; display: flex; align-items: center; box-shadow: 0 1px 2px 0 rgba(16, 35, 47, 0.07); padding: .5rem 1rem; flex: 0 0 auto; /* Forces side columns to stay same width */ min-height: 60px; max-height: 60px; & > * { margin: 0 2px; } .chat-info { flex-grow: 1; } .content { padding-left: 1rem; flex: 1; } .person { display: flex; align-items: center; cursor: pointer; &:hover { background-color: transparent; } .user-avatar { width: 44px; height: 44px; line-height: 44px; } .bottom { font-size: 14px; line-height: 18px; color: $placeholder-color; .online { color: $darkblue; } } } } #bubbles { /* 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; > .scrollable { position: unset; } &:not(.scrolled-down) { -webkit-mask-image: -webkit-linear-gradient(bottom, transparent, #000 20px); mask-image: linear-gradient(0deg, transparent 0, #000 20px); #bubbles-go-down { opacity: 1; } } .preloader { width: 100%; height: 100%; svg { width: 50px; height: 50px; } } #bubbles-inner { max-width: 700px; width: 100%; display: flex; flex-direction: column; flex-shrink: 1; padding-top: 9px; margin: 0 auto; box-sizing: border-box; min-height: 100%; justify-content: flex-end; &.is-chat { .in { padding-left: 45px; } } } #bubbles-go-down { position: absolute; //opacity: 0; 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: pointer; opacity: 0; transition: .2s opacity; user-select: none; -webkit-user-select: none; &:before { margin-left: .75px; } } .service { margin: 1rem 0; align-self: center; .service-msg { color: #fff; background-color: rgba(#000, 0.22); padding: 0 8px; line-height: 24px; font-size: 15px; border-radius: 12px; user-select: none; display: flex; align-items: center; justify-content: center; .name { cursor: pointer; margin-right: 5px; } } } .bubble { min-width: 60px; max-width: 85%; 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; &.forwarded { .forward { opacity: 0; 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; transition: .2s opacity; svg { width: 20px; height: 20px; } } } &:not(.hide-name) { .audio { margin: 4px 0; } } &:hover { .forward { opacity: 1; } } .reply { width: auto; .reply-content { height: auto; min-height: 32px; } } &.photo, &.video { width: min-content; .box.web { /* width: max-content; */ // commented 10.02.2020 /* width: min-content; */ max-width: 100%; } } &.webpage { .time { float: none; width: 0; } } img.emoji { height: 18px; width: 18px; margin: 0 .05rem; } span.emoji { height: auto; width: auto; overflow: visible; vertical-align: unset; } &.emoji-big { font-size: 0; background: none!important; box-shadow: none; line-height: 1; user-select: none; -webkit-user-select: none; .attachment { padding-top: .5rem; padding-bottom: 1.5rem; max-width: fit-content!important; max-height: fit-content!important; span.emoji { height: auto; width: auto; } } } &.emoji-1x { font-size: 96px; img.emoji { height: 64px; width: 64px; /* height: 96px; width: 96px; */ } } &.emoji-2x { font-size: 64px; img.emoji { height: 48px; width: 48px; /* height: 64px; width: 64px; */ } } &.emoji-3x { font-size: 52px; img.emoji { height: 32px; width: 32px; /* height: 48px; width: 48px; */ } } &.sticker, &.round { cursor: pointer; background: none!important; box-shadow: none; max-width: 300px; max-height: 300px; img { object-fit: contain; } .message.message-empty { display: none; } &:hover .message.message-empty { display: block; } } &.round { .attachment { max-width: 200px; max-height: 200px; } } .message:not(.message-empty) + .attachment, &.is-reply .message:not(.message-empty) + .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; display: flex; // lol justify-content: center; position: relative; img, video { width: auto; height: auto; max-width: 100%; cursor: pointer; } } &:not(.sticker) { .attachment { max-width: 380px; max-height: 380px; width: max-content; } img:not(.emoji), video { /* object-fit: contain; */ object-fit: cover; width: 100%; height: 100%; } } //&.video { //.attachment { //max-height: fit-content; /*img { width: 100%; height: 100%; }*/ //} //} &.round.video { .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); } } .box, .reply { font-size: .95rem; // margin: .25rem; margin: 4px 4px 4px 6px; padding: .25rem; margin-bottom: -5px; border-radius: 4px; //transition: anim(background-color); /* &:hover { cursor: pointer; } */ &.web { margin-top: -6px; // margin-bottom: 5px; max-width: 100%; overflow: hidden; .preview { max-height: 300px; max-width: 380px; /* max-height: 100%; max-width: 100%; */ border-radius: 4px; margin-bottom: 3px; overflow: hidden; user-select: none; -webkit-user-select: none; cursor: pointer; position: relative; width: max-content; img, video { max-width: 100%; /* width: 100%; height: 100%; */ } } .title { letter-spacing: -0.2px; line-height: 1.2; font-weight: 500; } .name { letter-spacing: -0.3px; display: block; &:hover { text-decoration: underline; } } .text { overflow: hidden; text-overflow: ellipsis; line-height: 1.2; letter-spacing: -0.3px; margin-top: 2px; font-size: 0.965rem; } } .quote { // padding-left: .5rem; padding-left: 0.55rem; max-width: 100%; overflow: hidden; width: 100%; } .text/* , .reply-subtitle */ { line-height: 1.2; } .name, .reply-title { font-weight: 500; display: inline!important; } } .reply { max-width: 300px; margin-bottom: 6px; margin-top: 0; cursor: pointer; } &.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; .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; * { overflow: hidden; text-overflow: ellipsis; } &:last-child { //padding-top: .2675rem; padding-top: 6px; } &.message-empty { position: absolute; bottom: .1rem; right: .1rem; border-radius: 12px; background-color: rgba(0, 0, 0, .4); padding: 0 .3rem; z-index: 2; .time { color: #fff; } } .emoji { font-size: 1.2rem; } } .time { font-size: .8rem; user-select: none; float: right; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; height: 20px; line-height: 20px; .inner { position: absolute; bottom: 0; right: 0; font-size: 12px; display: flex; align-items: center; line-height: 1; i { font-size: 1.15rem; margin-right: .4rem; margin-left: .1rem; } i.edited { overflow: visible; font-size: .8rem; } } } &.is-edited.channel-post .time { width: calc(5rem + 42px); } &.channel-post .time { width: 5rem; } &.is-edited .time { width: 90px; } .message.message-empty .time { padding: 0; display: flex; align-items: center; width: auto; .inner { margin-bottom: 0; position: relative; padding: 0 2.5px; bottom: 0; } } .user-avatar { position: absolute; left: -3rem; width: 40px; height: 40px; line-height: 40px; bottom: 0; font-size: 1rem; cursor: pointer; } &:not(.forwarded).hide-name, &.emoji-big { .name { display: none; } } .name { cursor: pointer; } > .name { /* padding: .2675rem .6rem 0 .6rem; */ padding: .32rem .6rem 0 .6rem; font-weight: 500; /* padding-bottom: 4px; */ color: $darkblue; font-size: .9rem; width: max-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } &:not(.webpage) { &.photo, &.video { .name { //padding-bottom: .2675rem; padding-bottom: 6px; } .message:not(.message-empty) { //padding-top: .2675rem; padding-top: 6px; } } } &.hide-name:not(.is-reply) .message:not(.message-empty) { //padding-top: .2675rem; padding-top: 6px; } &.hide-name:not(.sticker):not(.emoji-big) .reply { margin-top: 6px; } &:not(.sticker):not(.emoji-big):not(.round):last-child:after { position: absolute; bottom: -1px; width: 11px; height: 20px; background-repeat: no-repeat repeat; content: ''; background-size: 11px 20px; } } .bubble + .bubble { margin-top: 5px; } .in, .out { display: flex; flex-direction: column; padding: 5px 0; } .in { align-items: flex-start; a { color: $darkblue; } .quote:hover, .reply:hover { background-color: $light; } .bubble.is-reply { &.emoji-big, &.sticker { .box, .reply { left: calc(100% + 10px); background-color: #fff; } } } .quote { border-left: 2px $darkblue solid; * { overflow: hidden; text-overflow: ellipsis; } } .quote .name, .reply-title { color: $darkblue; } .time { color: #a3adb6; width: 36px; .inner { padding: 0 7px 0 5px; margin-bottom: 4px; } } .bubble { background-color: #ffffff; border-radius: 6px 12px 12px 6px; &:first-child { border-radius: 12px 12px 12px 6px; } &:last-child { border-radius: 6px 12px 12px 0px; //border-radius: 12px 12px 12px 0px; &:after { left: -8.4px; background-image: url('../../assets/img/msg-tail-left.svg'); } } &:first-child:last-child { border-radius: 12px 12px 12px 0px; } &.forwarded .attachment, &.is-reply .attachment, &:not(.hide-name) .message-empty + .attachment/* , &:not(.hide-name):not(.sticker) .attachment */ { border-top-left-radius: 0; border-top-right-radius: 0; } } } .out { align-items: flex-end; .quote:hover, .reply:hover { background-color: rgba($green, 0.12); } .bubble.is-reply { &.emoji-big, &.sticker { .box, .reply { background-color: #eeffde; right: calc(100% + 10px); border-color: rgba($green, .12); } } } .quote { border-left: 2px $darkgreen solid; } .reply-border { background-color: $darkgreen; } .quote .name, .reply-title { color: $darkgreen; } .time { color: $darkgreen; width: 50px; display: inline-block; .inner { padding: 0 4px 0 4px; bottom: 1px; } } .bubble { .time .tgico:after { font-size: 19px; vertical-align: middle; margin-left: 1px; } } .bubble.forwarded { .name { color: $darkgreen; } } .bubble.is-read { .time .tgico:after { content: $tgico-checks; } } .bubble.is-sent { .time .tgico:after { content: $tgico-check; } } .bubble.is-sending { .time .tgico:after { content: $tgico-sending; } } .bubble.is-reply .name { display: none; } .bubble.is-edited .time { width: 85px; } .bubble { background-color: #eeffde; border-radius: 12px 6px 6px 12px; &:first-child { border-radius: 12px 12px 6px 12px; } &:last-child { border-radius: 12px 6px 0px 12px; &:after { right: -8.4px; background-image: url('../../assets/img/msg-tail-right.svg'); } } &:first-child:last-child { border-radius: 12px 12px 0px 12px; } &.forwarded .attachment, &.is-reply .attachment { border-top-left-radius: 0; border-top-right-radius: 0; } } .user-avatar { left: auto; right: -2.5rem; } .audio { &-waveform { rect { fill: #B8DDA9; &.active { fill: #68AB5A; } } } &-time { color: #68AB5A; } &-toggle, &-download { background-color: #4FAE4E; } } } } #chat-input { display: flex; align-items: center; width: 100%; max-width: 700px; padding-top: .35rem; padding-bottom: 1rem; justify-content: space-between; flex: 0 0 auto; /* Forces side columns to stay same width */ position: relative; #input-message { background: none; border: none; width: 100%; padding: .5rem .5rem; font-size: .95rem; /* height: 100%; */ max-height: 30rem; overflow-y: none; resize: none; border: none; outline: none; cursor: text; } [contenteditable=true]:empty:before { content: attr(data-placeholder); color: #9e9e9e; display: block; /* For Firefox By Ariel Flesler */ } .btn-circle { flex: 0 0 auto; font-size: 1.5rem; line-height: 1.5rem; height: 3.25rem; width: 3.25rem; color: #9e9e9e; background-color: #fff; align-self: flex-end; &.tgico-send { color: $blue; } } .os-scrollbar-handle { background: rgba(0, 0, 0, 0.2); } } .input-message { display: flex; align-items: center; flex-direction: column; width: calc(100% - 3.75rem); justify-content: center; background-color: #fff; border-radius: 12px; border-bottom-right-radius: 0; box-shadow: 0 1px 2px 0 rgba(16, 35, 47, 0.07); margin-right: 9px; padding: 4.5px .5rem; /* padding: 3px .5rem 6px .5rem; */ min-height: 3.25rem; max-height: 30rem; caret-color: $button-primary-background; flex: 1; position: relative; &:after { position: absolute; bottom: -1px; width: 11px; height: 20px; background-repeat: no-repeat repeat; content: ''; background-size: 11px 20px; right: -9px; background-image: url('../../assets/img/msg-tail-left.svg'); transform: scaleX(-1); } #attach-file { &.menu-open { color: $blue; } } > div { display: flex; justify-content: space-between; align-items: center; width: 100%; //min-height: inherit; } .reply-wrapper { justify-content: flex-start; overflow: hidden; transition: .2s all; height: 0px; &.active { height: 39px; } .reply { width: 100%; margin-left: .5rem; min-height: 35px; } } .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; } .btn-icon { display: block; color: $placeholder-color; font-size: 1.5rem; line-height: 1.5rem; transition: .2s color; flex: 0 0 auto; &.active { color: $blue; } } .emoji { font-size: 24px; height: 24px; width: 24px; } } .pinned-message, .reply { cursor: pointer; display: flex; flex-direction: row; align-items: center; overflow: hidden; box-sizing: border-box; width: 187px; margin-right: 1rem; max-height: 35px; position: relative; /* padding: .25rem; */ &.is-reply-media { .pinned-message-content, .reply-content { padding-left: 40px; } } &:hover { background-color: rgba(112, 117, 121, 0.08); } &-border { height: 32px; border-radius: 1px; min-width: 2px; background: $blue; } &-content { margin-left: 8px; flex-grow: 1; flex-shrink: 1; overflow: hidden; pointer-events: none; position: relative; height: 32px; display: flex; flex-direction: column; justify-content: space-between; } &-title { color: $blue; } &-title, &-subtitle { font-size: 14px; //line-height: 18px; line-height: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } &-subtitle { white-space: nowrap; color: #111; } &-media { height: 32px; width: 32px; border-radius: 8px; overflow: hidden; position: absolute; left: 0; top: 0; background-repeat: no-repeat; background-size: cover; background-position: center center; } img.emoji { height: 16px; width: 16px; vertical-align: top; } span.emoji { font-size: 16px; vertical-align: unset; } } /* #chat-closed { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-color: inherit; z-index: 3; display: flex; align-items: center; justify-content: center; flex-direction: column; .tgico-chatsplaceholder { font-size: 10rem; color: #ABB0B3; } h3 { font-size: 2rem; color: #707579; text-align: center; } .buttons { display: flex; justify-content: center; align-items: center; margin-top: 1rem; button { margin: 0 2.5rem; width: 4rem; height: 4rem; background: #fff; border: none; position: relative; font-size: 2rem; color: #707579; cursor: pointer; box-shadow: 0 1px 2px 0 rgba(16, 35, 47, 0.07); &:hover { background: #4EA4F6; color: #fff; span { color: #4EA4F6; } } span { position: absolute; top: 100%; left: 50%; width: 100%; padding-top: 1rem; transform: translateX(-50%); font-size: .9rem; font-family: "Roboto"; } } } } */ } #bubble-contextmenu { position: fixed; right: auto; bottom: auto; } .emoji-dropdown { position: absolute; left: 0; top: calc(-420px + -0.75rem); display: flex; flex-direction: column; width: 420px; height: 420px; background: #fff; box-shadow: 0px 5px 10px 5px rgba(16, 35, 47, 0.14); border-radius: 12px; z-index: 2; /* display: none; */ display: flex; overflow: hidden; transition: all 0.2s ease-out; transform: scale(0); transform-origin: 0 100%; &.active { /* display: flex; */ transition: all 0.2s ease-in; transform: scale(1); } > .menu-horizontal { padding: 0 3rem; } .emoji-container { width: 100%; max-width: 100%; overflow: hidden; height: 100%; } .tabs-container { /* width: 300%; */ height: 100%; .emoji-category { font-size: 2.25rem; line-height: 2.25rem; margin-top: 1px; > * { margin: 0; padding: 5px 5px; line-height: inherit; border-radius: 8px; cursor: pointer; user-select: none; -webkit-user-select: none; width: 44px; height: 44px; .emoji { width: 100%; height: 100%; } &:hover { background-color: rgba(112, 117, 121, 0.08); } } /* &::after { content: ""; flex: auto; } */ } .emoji-category, .sticker-category { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; &::after { content: ""; flex: auto; } } .sticker-category { /* &.not-full::after { content: ""; flex: auto; } */ > div { width: 80px; height: 80px; display: flex; align-items: center; /* overflow: hidden; */ cursor: pointer; user-select: none; -webkit-user-select: none; /* margin: 3.5px 0; margin-right: 6.25px; */ padding: 1px 2.5px; justify-content: center; border-radius: 12px; &:hover { background-color: rgba(112, 117, 121, 0.08); } /* &:nth-child(5n+5) { margin-right: 0; } */ > * { max-width: 100%; max-height: 100%; } } } > div { min-height: 100%; /* display: flex; */ flex-direction: column; height: 100%; > div:first-of-type { flex: 1; padding: 0; padding-top: 10px; } } .scrollable { padding: 0 10px; } } .emoji-padding { .menu-horizontal { border-top: 1px solid $lightgrey; } } .emoji-padding, .stickers-padding { .menu-horizontal { height: 50px; border-bottom: none; padding: 0; width: 100%; li { padding: 0; width: 50px; height: 50px; line-height: 50px; display: flex; align-items: center; &.active { &:after { display: none; } } } } } /* #content-stickers { padding: 0; } */ .emoji-padding { .menu-horizontal > li { font-size: 1.65rem; } } .stickers-padding { .menu-wrapper { padding: 0; height: 50px; max-width: 100%; border-top: 1px solid $lightgrey; .menu-horizontal { width: 100%; height: 100%; } } li { /* width: calc(100% / 7); */ flex: 0 0 auto; &.active { &:not(.tgico-recent) { background-color: rgba(112, 117, 121, 0.08); } } > * { padding: .75rem; max-width: 100%; max-height: 100%; width: 100%; height: 100%; } } } } .popup { &.popup-delete-message { .popup-header { margin-bottom: 1rem; } } .popup-buttons { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; button { background: none; outline: none; border: none; padding: .5rem .5rem; text-transform: uppercase; transition: .2s; border-radius: $border-radius; cursor: pointer; color: $blue; &:hover { background-color: rgba(112, 117, 121, 0.08); } & + button { margin-top: .5rem; } } } }