$placeholder-color: #9e9e9e; $border-radius: 8px; $border-radius-medium: 10px; $border-radius-big: 12px; $button-primary-background: #4EA4F6; $color-green: #4DCD5E; $color-error: #E53935; $color-gray: #707579; $color-blue: #50a2e9; $darkgreen: #50af4f; $color-text-green: $darkgreen; $lightgrey: #dadce0; $light: rgba($color-gray, 0.08); $text-size: 16px; $large-screen: 1680px; //$large-screen: 16800px; @import "partials/ico"; @import "partials/chatlist"; @import "partials/chat"; @import "partials/chatBubble"; @import "partials/sidebar"; @import "partials/leftSidebar"; @import "partials/rightSidebar"; @import "partials/mediaViewer"; @import "partials/ckin"; @import "partials/emojiDropdown"; @import "partials/scrollable"; @import "partials/slider"; @import "partials/selector"; @import "partials/popups/popup"; @import "partials/popups/editAvatar"; @import "partials/popups/mediaAttacher"; @import "partials/popups/peer"; html, body { height: 100%; width: 100%; } html { font-size: $text-size; } a { color: $color-blue; } button, input, optgroup, select, textarea, html { font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; } .whole { height: 100vh; min-height: 100vh; width: 100%; //min-width: 100%; margin: 0 auto; max-width: $large-screen; } .disable-hover, .disable-hover * { pointer-events: none !important; } .container { margin: 0 auto; } h1, h2, h3, h4, h5, h6 { font-weight: 500; } body.is-mac * { font-weight: normal !important; /* h1, h2, h3, h4, h5, h6, .mac-thin { font-weight: normal; } */ } h4 { font-size: 2rem; //margin: 1.5rem 0 1rem 0; margin: 22px 0 14px; line-height: 110%; } input { caret-color: $button-primary-background; } .subtitle { /* font-weight: 500; */ color: #707579; line-height: 1.35; } .page-authCode { .auth-image { transform: translateY(12px); } .phone-wrapper { display: flex; align-items: center; justify-content: center; h4 { &[contenteditable="true"] { padding: 0 1rem; border: none; outline: none; padding: 0 1rem; border-bottom: 2px solid $button-primary-background; } } .phone.error { border-color: $color-error!important; } } .subtitle { margin-top: 0; } } .btn-icon { text-align: center; font-size: 1.5rem; line-height: 1.5rem; border-radius: 50%; -webkit-transition: background-color .15s ease-out; transition: background-color .15s ease-out; color: $color-gray; cursor: pointer; background: none; border: none; padding: .5rem; position: relative; /* overflow: hidden; */ /* kostil */ display: flex; align-items: center; justify-content: center; &.active { color: $color-blue; } &:hover { background-color: rgba(112, 117, 121, 0.08); } } .btn-corner { position: absolute !important; bottom: 20px; right: 20px; transition: .2s ease; transform: translateY(calc(100% + 20px)); z-index: 3; &.is-visible { transform: translateY(0px); } } .danger { color: $color-error!important; } .btn-menu { visibility: hidden; position: absolute; background: #fff; box-shadow: 0 5px 8px 1px rgba(0,0,0,.24); z-index: 3; top: 100%; margin-top: 8px; padding: 9px 0; border-radius: $border-radius-medium; opacity: 0; transform: scale(.8); transition-property: opacity,transform,visibility; transition-duration: .2s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); font-size: 16px; &.active { visibility: visible; opacity: 1; transform: scale(1); } &.bottom-left { right: 0; top: 100%; transform-origin: top right; } &.bottom-right { left: 0; top: 100%; transform-origin: top left; } &.top-left { top: initial; right: 0; bottom: 100%; transform-origin: bottom right; } &.top-right { top: initial; left: 0; bottom: 100%; transform-origin: bottom left; } > div { display: flex; position: relative; padding: 0 40px 0 20px; height: 56px; cursor: pointer; background-position: 16px center; background-size: 24px 24px; background-repeat: no-repeat; color: #000; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-items: center; &:hover { background-color: rgba(112, 117, 121, 0.06); } &:before { color: $color-gray; font-size: 1.5rem; margin-right: 32px; } &.danger:before { color: $color-error; } } } #bubble-contextmenu, #dialogs-contextmenu { position: fixed; right: auto; bottom: auto; } @keyframes fadeIn { 0% { opacity: 0; } to { opacity: 1; } } @keyframes fadeInFadeOut { 0% { opacity: 0; } 10% { opacity: 1; } 50% { opacity: 1; } to { opacity: 0; } } .toast { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: .5rem 1rem; background-color: rgba(0, 0, 0, .66); color: #fff; font-size: 1rem; border-radius: $border-radius-medium; animation: fadeInFadeOut 3s linear forwards; } hr { width: 100%; border: none; border-bottom: 1px solid #DADCE0; margin: 0 0 8px; } avatar-element { color: #fff; width: 54px; height: 54px; line-height: 54px; border-radius: 50%; background-color: $color-blue; text-align: center; font-size: 1.25em; /* overflow: hidden; */ position: relative; user-select: none; /* kostil */ display: flex; align-items: center; justify-content: center; img { width: 100%; height: 100%; border-radius: inherit; user-select: none; &.fade-in { animation: fadeIn .2s ease forwards; } } &[class*=" tgico-"] { line-height: 52px; font-size: 28px; } path { fill: white; } &.is-online:after { position: absolute; content: " "; display: block; border-radius: 50%; border: 2px solid white; background-color: #0ac630; left: 74%; top: 73%; width: 14px; height: 14px; } &.tgico-avatar_deletedaccount { font-size: 3rem; } } .user-title, b/* , .user-last-message b */ { color: #000; font-weight: 500; //font-weight: normal; } .user-last-message b { font-weight: 400; } .rp { position: relative; } /** * Utility: Ripple * -------------------------------------------------- */ .c-ripple { position: absolute; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 100%; overflow: hidden; background: transparent; border-radius: inherit; &__circle { background-color: rgba(0,0,0,.08); display: block; position: absolute; transform: scale(0); border-radius: 50%; animation: ripple-effect .7s forwards; transition: .35s opacity; overflow: hidden; } &__circle.hiding { opacity: 0; } } @keyframes ripple-effect { 0% { //transform: translate(-50%, -50%) scale(0); transform: scale(0); } /* 50% { opacity: 1; } */ to { transform: scale(2); //transform: translate(-50%, -50%) scale(2); //opacity: 0; } } .document { padding-left: 4.5rem; height: 70px; &-ico { background-color: $color-blue; border-radius: 5px; line-height: 10px; &:after { content: ""; display: block; position: absolute; top: 0; right: 0; width: 1.125rem; height: 1.125rem; border-bottom-left-radius: .25rem; border-left: .5625rem solid rgba(0, 0, 0, .25); border-bottom: .5625rem solid rgba(0, 0, 0, .25); border-top: .5625rem solid #fff; border-right: .5625rem solid #fff; } } &-ico, &-download { font-weight: 500; letter-spacing: 1px; font-size: 1.1rem; background-size: contain; overflow: hidden; text-overflow: ellipsis; } &-download { background-color: $color-blue; border-radius: 8px; } &.ext-zip { .document-ico, .document-download { background-color: #FB8C00; } } &.ext-pdf { .document-ico, .document-download { background-color: #DF3F40; } } &.ext-apk { .document-ico, .document-download { background-color: #43A047; } } &:not(.photo) { .document-ico { padding-top: 1.5rem; //background-image: url('../assets/img/doc-in.svg'); } } &.photo { .document-ico { background: #000; border-radius: $border-radius; &:after { display: none; } } } &-name { white-space: nowrap; font-weight: 500; line-height: 1.3; } &-size { white-space: nowrap; color: $color-gray; font-size: 14px; padding-right: 32px; line-height: 1.3; } } .document, .audio { display: flex; flex-direction: column; justify-content: center; cursor: pointer; position: relative; &-ico, &-download { position: absolute; left: 0; width: 54px; height: 54px; color: #fff; display: flex; justify-content: center; } &-download { z-index: 2; align-items: center; font-size: 24px; cursor: pointer; .tgico-download { transform: scale(1); transition: .2s scale; } &.downloading { .tgico-download { transform: scale(0); } } } .preloader-container { width: 42px; height: 42px; } } .audio { position: relative; padding-left: 67px; min-height: 58px; max-width: 244px; overflow: visible!important; &-toggle, &-download { border-radius: 50%; background-color: $color-blue; font-size: 2.3rem; align-items: center; } &-download { z-index: 2; } &-waveform { height: 23px; //overflow: visible!important; rect { //overflow: visible!important; fill: #CBCBCB; &.active { fill: $color-blue; } } } &-title { font-size: 1rem; color: #000; } &-time, &-subtitle { font-size: 14px; color: $color-gray; margin-top: 3px; margin-left: -1px; } &-title, &:not(.audio-show-progress) &-subtitle { white-space: nowrap; overflow: hidden; max-width: 100%; text-overflow: ellipsis; } } #auth-pages { max-width: 720px; // 360 + 360 / 2 overflow: hidden; .subtitle { margin: 0; } .input-wrapper { margin-top: 49px; } .tabs-container { height: 100%; transform: translateX(0); width: 100%; &.animated { transition: .42s transform; } > div { /* justify-content: center; */ /* &.active { flex-direction: row; } */ &:before, &:after { content: " "; flex: 1; min-height: 3rem; /* height: 105px; */ width: 100%; } > div { height: 810px; padding: 0; flex: 1 1 auto; display: flex; flex-direction: column; } } } @media (max-height: 858px) { height: auto; /* .tabs-container > div > div { height: auto; } */ } } .page-sign, .page-signUp { .auth-image { width: 10rem; height: 10rem; margin-bottom: 1.5rem; } } .page-sign, .page-signQR { .qr { margin-top: 1.5rem; } p.qr-description { color: #707579; line-height: 1.85; text-align: left; margin-left: auto; margin-right: auto; } } /* .page-signQR { .auth-image { position: relative; .sign-logo { width: 36px; height: 36px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #fff; border-radius: 50%; } } } */ .avatar-edit { position: relative; border-radius: 50%; cursor: pointer; overflow: hidden; &-canvas { max-width: 100%; max-height: 100%; width: 100%; height: 100%; background-color: $color-blue; } .tgico-cameraadd { position: absolute; font-size: 48px; line-height: 48px; top: 50%; left: 50%; transform: translateY(-50%) translateX(-50%); z-index: 2; color: #fff; } .avatar-placeholder { position: absolute; left: 0; top: 0; width: 100%; height: 100%; filter: brightness(0.7); } } .page-signUp { .auth-image { margin-top: 10px; margin-bottom: 14px; } } .input-wrapper { width: 360px; margin: 0 auto; } .input-field { position: relative; .arrow-down { position: absolute; content: " "; top: 50%; bottom: 0; right: 21px; cursor: pointer; height: 0; width: 0; border: solid #bdbdbd; border-radius: 1px; border-width: 0 2px 2px 0; display: inline-block; padding: 5px; vertical-align: middle; z-index: 2; margin-top: -9px; transform: rotate(45deg); -webkit-transform: rotate(45deg); transition: .2s all; } label { position: absolute; color: $placeholder-color; left: 1rem; right: auto; z-index: 2; top: 50%; transform: translateY(-50%); background-color: #fff; transition: .2s all, .1s opacity; display: inline-block; cursor: text; } input { border: 1px solid #DADCE0; border-radius: $border-radius-medium; padding: 0 1rem; box-sizing: border-box; width: 100%; height: 54px; transition: .2s border-color; position: relative; z-index: 1; /* font-weight: 500; */ /* &:hover { border-color: #000; } */ &:focus { border-color: $button-primary-background; border-width: 2px; padding: 0 calc(1rem - 1px); } &:disabled { background-color: #fff; color: #000; } &.error { border-color: $color-error; & + label { color: $color-error!important; } } &.valid { border-color: #26962F; & + label { color: #26962F !important; } } /* &.error, &.valid { transition: .2s border-width; } */ &:focus ~ .arrow-down { margin-top: -4px; transform: rotate(225deg); -webkit-transform: rotate(225deg); border-color: $button-primary-background; } &:focus + label { color: $button-primary-background; } &:focus + label, &:valid + label, &:disabled + label { top: -.5rem; transform: none; padding: 0 5px; left: .75rem; font-size: 0.75rem!important; opacity: 1; } } } .checkbox-field { margin: 1.25rem 0; display: block; text-align: left; padding: 0 19px; /* font-weight: 500; */ position: relative; } [type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; -webkit-box-sizing: border-box; box-sizing: border-box; padding: 0; & + span { position: relative; padding-left: calc(18px + 2.25rem); cursor: pointer; display: inline-block; height: 25px; line-height: 25px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; &:before, &:after { content: ''; left: 0; position: absolute; -webkit-transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s; transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s; } &:before { border-radius: 2px; z-index: 1; } &:after { height: 18px; width: 18px; z-index: 0; border: 2px solid $button-primary-background; border-radius: 3px; top: 50%; transform: translateY(-50%); } } &:not(:checked) + span:before { width: 0; height: 0; border: 2px solid transparent; left: 6px; top: 10px; -webkit-transform: rotateZ(45deg); transform: rotateZ(45deg); -webkit-transform-origin: 100% 100%; transform-origin: 100% 100%; } &:checked + span:before { top: 4px; left: -1px; width: 8px; height: 14px; border-top: 2px solid transparent; border-left: 2px solid transparent; border-right: 2px solid #fff; border-bottom: 2px solid #fff; -webkit-transform: rotateZ(45deg); transform: rotateZ(45deg); -webkit-transform-origin: 100% 100%; transform-origin: 100% 100%; } &:not(:checked) + span:after { background-color: transparent; border-color: #8d969c; } &:checked + span:after { background-color: $button-primary-background; } } .input-wrapper > * + * { margin-top: 1.5rem; } .select-wrapper { max-height: 23.5rem; /* height: auto; */ position: absolute; width: 100%; top: calc(100% + .5rem); left: 0; overflow: hidden; background-color: #fff; z-index: 3; border-radius: $border-radius-medium; display: flex; flex-direction: column; flex-wrap: wrap; ul { margin: .5rem 0; } li { /* display: flex; */ align-items: center; padding: 0 1rem; justify-content: space-between; height: 3.5rem; cursor: pointer; /* font-weight: 500; */ text-align: left; display: grid; grid-template-columns: calc(26px + 2rem) 1fr 50px; &:hover { background-color: rgba(112, 117, 121, .08); } } // +2 px bc of whitespace .emoji { height: 26px; width: 26px; font-size: 26px; line-height: 1; } .scrollable { position: relative; } } .phone-code { color: $placeholder-color; text-align: right; } ::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */ color: #a2acb4; opacity: 1; /* Firefox */ } :-ms-input-placeholder { /* Internet Explorer 10-11 */ color: #a2acb4; } ::-ms-input-placeholder { /* Microsoft Edge */ color: #a2acb4; } input:focus, button:focus { outline: none; } // this dimensions will be used for monkey business .auth-image { width: 166px; height: 166px; margin: 0 auto 18px; } /* .phone-wrapper { display: flex; align-items: ; } */ .phone-edit { display: inline-block; width: 24px; height: 24px; margin-left: .4rem; opacity: .5; transition: .2s; cursor: pointer; font-size: 1.5rem; &:hover { opacity: 1; } } /* button { position: relative; overflow: hidden; &:hover { &:before { display: block; } } &:before { display: none; content: " "; position: absolute; z-index: 2; background: #000; top: 0; left: 0; right: 0; bottom: 0; opacity: .08; } } */ .btn-primary { background: $color-blue; color: #fff; border-radius: $border-radius-medium; width: 100%; text-align: center; height: 54px; border: none; font-weight: 500; cursor: pointer; overflow: hidden; position: relative; padding: 0; // new &:hover { background: darken($color-blue, 8%); } svg, use { height: calc(100% - 20px); right: 12.5px; left: auto; margin: 4px 0 auto; } } .btn-primary.btn-circle { .preloader-circular { height: calc(100% - 20px); right: auto; left: auto; margin: 0; top: 10px; .preloader-path { stroke: #fff; } } } .btn-menu-toggle { position: relative; overflow: visible !important; font-weight: normal !important; &:not(.btn-primary).menu-open { background-color: rgba(112, 117, 121, 0.08); } } .preloader { &-circular { animation: rotate 2s linear infinite; height: 100%; transform-origin: center center; /* width: 100%; */ position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; } &-path { stroke-dasharray: 1, 200; stroke-dashoffset: 0; animation: dash 1.5s ease-in-out infinite/* , color 6s ease-in-out infinite */; stroke-linecap: round; stroke: white; stroke-width: 3; } &-container { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; width: 50px; height: 50px; /* cursor: pointer; */ } } .preloader-container { .you-spin-me-round { width: 100%; height: 100%; animation: rotate 2s linear infinite; } .preloader-circular { animation: none; cursor: pointer; background-color: rgba(0, 0, 0, .7); border-radius: 50%; width: 100%; height: 100%; } .preloader-path-new { stroke-dasharray: 5, 200; stroke-dashoffset: 0; transition: stroke-dasharray 400ms ease-in-out; stroke-linecap: round; stroke: white; stroke-width: 1.5; } &.preloader-swing { cursor: default; .preloader-circular { cursor: default; } .preloader-path-new { stroke-dasharray: 1, 200; stroke-dashoffset: 0; animation: dashNew 1.5s ease-in-out infinite/* , color 6s ease-in-out infinite */; } } .preloader-close { cursor: pointer; position: absolute; top: 0; left: 0; bottom: 0; right: 0; margin: auto; color: #fff; stroke: #fff; width: 34%; height: 34%; &:hover { background: none; } } } @keyframes rotate { 100% { transform: rotate(360deg); } } @keyframes dash { 0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; } 50% { stroke-dasharray: 89, 200; stroke-dashoffset: -35px; } 100% { stroke-dasharray: 89, 200; stroke-dashoffset: -124px; } } @keyframes dashNew { 0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; } 50% { stroke-dasharray: 89, 200; stroke-dashoffset: -35px; } 100% { stroke-dasharray: 89, 200; stroke-dashoffset: -286%; } } .emoji { display: inline-block; /* width: 100%; height: 100%; */ max-width: 100%; max-height: 100%; vertical-align: middle; line-height: 1em; font-size: 1em; font-family: apple color emoji,segoe ui emoji,noto color emoji,android emoji,emojisymbols,emojione mozilla,twemoji mozilla,segoe ui symbol; } img.emoji { width: 18px; height: 18px; } .btn-circle { border-radius: 50%; height: 54px; width: 54px; line-height: 54px; path { fill: white; } } .overlay::selection { background: transparent; } .crop-component::selection { background: transparent; } /* .crop-blur { -webkit-filter: blur(10px) sepia(0.2); filter: blur(10px) sepia(0.2); } */ .crop-image, .overlay > img { width: auto; height: auto; /* можно явно указать либо ширину, либо высоту */ /* width: 500px; */ /*либо height: 300px;*/ display: block; object-fit: contain; object-position: center; } /*add stretch*/ .crop-image { display: block; position: relative; pointer-events: none; } .crop-component { position: relative; z-index: 999; background-color: white; margin: 0 auto; overflow: hidden; > img { max-width: 100%; } .crop-overlay-color { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.7); border-radius: $border-radius; } } .overlay { position: absolute; left: 50%; top: 50%; z-index: 999; margin-left: -100px; margin-top: -100px; width: 200px; height: 200px; /* box-shadow: 0 0 0 3px white; */ overflow: hidden; box-sizing: content-box; border-radius: 50%; &:hover, &:active { cursor: move; } > img { position: absolute; display: block; } } .overlays { top: 0; left: 0; width: 100%; height: 100%; position: fixed!important; background-color: rgba(0, 0, 0, .2); z-index: 4; //display: none; opacity: 0; visibility: hidden; -webkit-transition: opacity 0.2s 0s, visibility 0s 0.2s; -moz-transition: opacity 0.2s 0s, visibility 0s 0.2s; transition: opacity 0.2s 0s, visibility 0s 0.2s; &.active { opacity: 1; visibility: visible; -webkit-transition: opacity 0.2s 0s, visibility 0s 0s; -moz-transition: opacity 0.2s 0s, visibility 0s 0s; transition: opacity 0.2s 0s, visibility 0s 0s; } } [contenteditable] { -webkit-user-select: text; user-select: text; } .justify-start { justify-content: flex-start!important; } .position-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } .page-chats { /* display: grid; */ /* grid-template-columns: 25% 50%; */ display: flex; max-height: 100vh; min-height: 100vh; .avatar-edit { .tgico-cameraadd { top: 52%; } } > div { height: 100%; position: relative; min-height: 100%; max-height: 100%; } #column-left { width: 25%; /* grid-column: 1; */ } .chat-container { background-color: #e6ebee; /* grid-column: 2; */ width: 100%; flex: 1; } .preloader { width: 50px; height: 50px; position: absolute; top: 50%; left: 50%; transform: translateY(-50%) translateX(-50%); &-path { stroke: $button-primary-background; } } #search-container, .sidebar-search { flex-direction: column; width: 100%; max-height: 100%; height: 100%; overflow: hidden; position: absolute; left: 0; top: 0; z-index: 3; background: #fff; } @media (min-width: $large-screen) { border-top-width: 0; border-bottom-width: 0; border-left-width: 1px; border-right-width: 1px; border-style: solid; border-color: #DADCE0; } } .page-password { #password { padding-right: 2.5rem; &[type="password"] { font-size: 2.25rem; padding-left: 10px; } } .toggle-visible { position: absolute; right: .25rem; z-index: 2; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: $placeholder-color; cursor: pointer; transition: .2s; padding: .5rem; &:hover { color: #000; } } }