Telegram Web K with changes to work inside I2P https://web.telegram.i2p/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1430 lines
28 KiB

4 years ago
$placeholder-color: #9e9e9e;
$border-radius: 8px;
$border-radius-medium: 10px;
$border-radius-big: 12px;
4 years ago
$button-primary-background: #4EA4F6;
$color-green: #4DCD5E;
4 years ago
$color-error: #E53935;
$color-gray: #707579;
$color-blue: #50a2e9;
4 years ago
$darkgreen: #50af4f;
$color-text-green: $darkgreen;
4 years ago
$lightgrey: #dadce0;
$light: rgba($color-gray, 0.08);
4 years ago
$small-screen: 720px;
4 years ago
$large-screen: 1680px;
//$large-screen: 16800px;
4 years ago
@mixin respond-to($media) {
@if $media == handhelds {
@media only screen and (max-width: $small-screen) { @content; }
}
@else if $media == medium-screens {
@media only screen and (min-width: $small-screen + 1) and (max-width: $large-screen) { @content; }
}
@else if $media == wide-screens {
@media only screen and (min-width: $large-screen + 1) { @content; }
}
@else if $media == not-handhelds {
@media only screen and (min-width: $small-screen + 1) { @content; }
}
}
4 years ago
@import "partials/ico";
@import "partials/chatlist";
@import "partials/chat";
@import "partials/chatBubble";
4 years ago
@import "partials/sidebar";
@import "partials/leftSidebar";
4 years ago
@import "partials/rightSidebar";
@import "partials/mediaViewer";
@import "partials/ckin";
@import "partials/emojiDropdown";
@import "partials/scrollable";
@import "partials/slider";
@import "partials/selector";
4 years ago
@import "partials/popups/popup";
@import "partials/popups/editAvatar";
@import "partials/popups/mediaAttacher";
@import "partials/popups/peer";
@import "partials/pages/pages";
@import "partials/pages/authCode";
@import "partials/pages/chats";
@import "partials/pages/password";
/* cyrillic */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Roboto'), local('Roboto-Regular'), url(assets/fonts/KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz.woff2) format('woff2');
unicode-range:U + 0400-045F, U + 0490-0491, U + 04B0-04B1, U + 2116
}
/* latin-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Roboto'), local('Roboto-Regular'), url(assets/fonts/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2) format('woff2');
unicode-range:U + 0100-024F, U + 0259, U + 1E00-1EFF, U + 2020, U + 20A0-20AB, U + 20AD-20CF, U + 2113, U + 2C60-2C7F, U + A720-A7FF
}
/* latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Roboto'), local('Roboto-Regular'), url(assets/fonts/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2) format('woff2');
unicode-range:U + 0000-00FF, U + 0131, U + 0152-0153, U + 02BB-02BC, U + 02C6, U + 02DA, U + 02DC, U + 2000-206F, U + 2074, U + 20AC, U + 2122, U + 2191, U + 2193, U + 2212, U + 2215, U + FEFF, U + FFFD
}
/* cyrillic */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
font-display: swap;
src: local('Roboto Medium'), local('Roboto-Medium'), url(assets/fonts/KFOlCnqEu92Fr1MmEU9fABc4AMP6lbBP.woff2) format('woff2');
unicode-range:U + 0400-045F, U + 0490-0491, U + 04B0-04B1, U + 2116
}
/* latin-ext */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
font-display: swap;
src: local('Roboto Medium'), local('Roboto-Medium'), url(assets/fonts/KFOlCnqEu92Fr1MmEU9fChc4AMP6lbBP.woff2) format('woff2');
unicode-range:U + 0100-024F, U + 0259, U + 1E00-1EFF, U + 2020, U + 20A0-20AB, U + 20AD-20CF, U + 2113, U + 2C60-2C7F, U + A720-A7FF
}
/* latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 500;
font-display: swap;
src: local('Roboto Medium'), local('Roboto-Medium'), url(assets/fonts/KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ.woff2) format('woff2');
unicode-range:U + 0000-00FF, U + 0131, U + 0152-0153, U + 02BB-02BC, U + 02C6, U + 02DA, U + 02DC, U + 2000-206F, U + 2074, U + 20AC, U + 2122, U + 2191, U + 2193, U + 2212, U + 2215, U + FEFF, U + FFFD
}
4 years ago
html, body {
height: 100%;
width: 100%;
/* @include respond-to(handhelds) {
//overflow-y: auto;
height: 100%;
min-height: 100%;
min-width: 100%;
}
@include respond-to(not-handhelds) {
width: 100%;
height: 100%;
} */
4 years ago
}
html {
font-size: 16px;
overflow: hidden;
}
/* body {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
min-height: 0!important;
} */
a {
color: $color-blue;
}
4 years ago
button, input, optgroup, select, textarea, html {
font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
input, textarea, button, select, a, div {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
4 years ago
.whole {
min-height: 100%;
4 years ago
width: 100%;
4 years ago
//min-width: 100%;
margin: 0 auto;
max-width: $large-screen;
//@include respond-to(not-handhelds) {
height: 100%;
//}
4 years ago
}
.disable-hover,
.disable-hover * {
pointer-events: none !important;
}
@include respond-to(not-handhelds) {
.only-handhelds {
display: none !important;
}
}
.container {
margin: 0 auto;
}
4 years ago
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%;
}
4 years ago
input {
caret-color: $button-primary-background;
}
input, textarea {
-webkit-appearance: none;
}
4 years ago
.subtitle {
/* font-weight: 500; */
color: #707579;
line-height: 1.35;
4 years ago
}
.btn-icon {
text-align: center;
font-size: 1.5rem;
line-height: 1.5rem;
4 years ago
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; */
4 years ago
/* kostil */
display: flex;
align-items: center;
justify-content: center;
&.active {
color: $color-blue;
4 years ago
}
html.no-touch &:hover {
4 years ago
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;
}
&-item {
display: flex;
position: relative;
padding: 0 40px 0 20px;
height: 56px;
cursor: pointer !important;
pointer-events: all !important;
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;
html.no-touch &: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;
width: auto;
z-index: 4;
}
@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 {
4 years ago
color: #fff;
width: 54px;
height: 54px;
line-height: 54px;
4 years ago
border-radius: 50%;
background-color: $color-blue;
4 years ago
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;
}
4 years ago
}
&[class*=" tgico-"] {
line-height: 52px;
font-size: 28px;
4 years ago
}
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;
4 years ago
}
&.tgico-avatar_deletedaccount {
font-size: 3rem;
}
4 years ago
}
.user-title, b/* , .user-last-message b */ {
4 years ago
color: #000;
font-weight: 500;
//font-weight: normal;
4 years ago
}
.user-last-message b {
font-weight: 400;
}
4 years ago
.rp {
position: relative;
}
/**
* Utility: Ripple
* --------------------------------------------------
*/
.c-ripple {
4 years ago
position: absolute;
top: 0;
left: 0;
4 years ago
bottom: 0;
right: 0;
4 years ago
width: 100%;
height: 100%;
overflow: hidden;
background: transparent;
border-radius: inherit;
-webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%); // fix safari overflow
4 years ago
4 years ago
&__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;
4 years ago
}
4 years ago
&__circle.hiding {
4 years ago
opacity: 0;
}
}
4 years ago
@keyframes ripple-effect {
4 years ago
0% {
4 years ago
transform: scale(0);
4 years ago
}
4 years ago
to {
transform: scale(2);
}
4 years ago
}
.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;
}
}
4 years ago
&-ico, &-download {
4 years ago
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');
}
4 years ago
}
&.photo {
.document-ico {
background: #000;
border-radius: $border-radius;
&:after {
display: none;
}
}
}
4 years ago
&-name {
4 years ago
white-space: nowrap;
font-weight: 500;
line-height: 1.3;
}
&-size {
4 years ago
white-space: nowrap;
color: $color-gray;
4 years ago
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: 1;
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;
}
4 years ago
}
.audio {
position: relative;
padding-left: 67px;
4 years ago
min-height: 58px;
4 years ago
max-width: 244px;
overflow: visible!important;
&-toggle, &-download {
border-radius: 50%;
background-color: $color-blue;
4 years ago
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;
4 years ago
margin-top: 3px;
margin-left: -1px;
}
&-title, &:not(.audio-show-progress) &-subtitle {
white-space: nowrap;
overflow: hidden;
max-width: 100%;
text-overflow: ellipsis;
}
}
.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);
}
}
4 years ago
.input-wrapper {
width: 360px;
4 years ago
margin: 0 auto;
}
.input-field {
position: relative;
.arrow-down {
position: absolute;
content: " ";
top: 50%;
bottom: 0;
right: 21px;
4 years ago
cursor: pointer;
height: 0;
width: 0;
border: solid #bdbdbd;
border-radius: 1px;
border-width: 0 2px 2px 0;
display: inline-block;
padding: 5px;
4 years ago
vertical-align: middle;
z-index: 2;
margin-top: -9px;
4 years ago
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
transition: .2s all;
}
label {
position: absolute;
color: $placeholder-color;
left: 1rem;
4 years ago
right: auto;
z-index: 2;
top: 50%;
transform: translateY(-50%);
background-color: #fff;
transition: .2s all, .1s opacity;
4 years ago
display: inline-block;
cursor: text;
}
input {
border: 1px solid #DADCE0;
border-radius: $border-radius-medium;
padding: 0 1rem;
4 years ago
box-sizing: border-box;
width: 100%;
height: 54px;
4 years ago
transition: .2s border-color;
position: relative;
z-index: 1;
/* font-weight: 500; */
/* &:hover {
border-color: #000;
} */
4 years ago
&:focus {
border-color: $button-primary-background;
border-width: 2px;
padding: 0 calc(1rem - 1px);
4 years ago
}
&:disabled {
background-color: #fff;
color: #000;
}
&.error {
border-color: $color-error;
4 years ago
& + label {
color: $color-error!important;
}
}
&.valid {
border-color: #26962F;
& + label {
color: #26962F !important;
}
}
/* &.error, &.valid {
transition: .2s border-width;
} */
4 years ago
&:focus ~ .arrow-down {
margin-top: -4px;
4 years ago
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;
4 years ago
transform: none;
padding: 0 5px;
left: .75rem;
font-size: 0.75rem!important;
opacity: 1;
4 years ago
}
}
}
.checkbox-field {
margin: 1.25rem 0;
4 years ago
display: block;
text-align: left;
padding: 0 19px;
4 years ago
/* 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);
4 years ago
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;
4 years ago
}
&:checked + span:after {
background-color: $button-primary-background;
}
}
.input-wrapper > * + * {
margin-top: 1.5rem;
4 years ago
}
.select-wrapper {
max-height: 23.5rem;
/* height: auto; */
4 years ago
position: absolute;
width: 100%;
top: calc(100% + .5rem);
4 years ago
left: 0;
overflow: hidden;
4 years ago
background-color: #fff;
z-index: 3;
border-radius: $border-radius-medium;
display: flex;
flex-direction: column;
flex-wrap: wrap;
4 years ago
ul {
margin: .5rem 0;
4 years ago
}
li {
/* display: flex; */
align-items: center;
padding: 0 1rem;
4 years ago
justify-content: space-between;
height: 3.5rem;
4 years ago
cursor: pointer;
/* font-weight: 500; */
4 years ago
text-align: left;
display: grid;
grid-template-columns: calc(26px + 2rem) 1fr 50px;
4 years ago
html.no-touch &:hover {
4 years ago
background-color: rgba(112, 117, 121, .08);
}
}
// +2 px bc of whitespace
4 years ago
.emoji {
height: 26px;
width: 26px;
font-size: 26px;
4 years ago
line-height: 1;
}
4 years ago
.scrollable {
position: relative;
}
4 years ago
}
.phone-code {
color: $placeholder-color;
text-align: right;
}
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
color: #a2acb4;
4 years ago
opacity: 1; /* Firefox */
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
color: #a2acb4;
4 years ago
}
::-ms-input-placeholder { /* Microsoft Edge */
color: #a2acb4;
4 years ago
}
input:focus, button:focus {
outline: none;
}
// this dimensions will be used for monkey business
4 years ago
.auth-image {
width: 166px;
height: 166px;
margin: 0 auto 18px;
4 years ago
}
/* .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;
html.no-touch &:hover {
4 years ago
opacity: 1;
}
}
.btn-primary {
background: $color-blue;
4 years ago
color: #fff;
border-radius: $border-radius-medium;
4 years ago
width: 100%;
text-align: center;
height: 54px;
4 years ago
border: none;
font-weight: 500;
cursor: pointer;
overflow: hidden;
position: relative;
padding: 0; // new
4 years ago
html.no-touch &:hover {
background: darken($color-blue, 8%);
4 years ago
}
svg, use {
height: calc(100% - 20px);
right: 15px;
4 years ago
left: auto;
}
}
.btn-primary.btn-circle {
.preloader-circular {
height: calc(100% - 20px);
right: auto;
left: auto;
margin: 0;
top: 10px;
.preloader-path {
stroke: #fff;
}
4 years ago
}
}
4 years ago
.btn-menu-toggle {
position: relative;
overflow: visible !important;
font-weight: normal !important;
cursor: pointer !important;
pointer-events: all !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;
}
4 years ago
&-container {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
width: 50px;
height: 50px;
/* cursor: pointer; */
}
4 years ago
}
.preloader-container {
.you-spin-me-round {
width: 100%;
height: 100%;
animation: rotate 2s linear infinite;
}
4 years ago
.preloader-circular {
animation: none;
4 years ago
cursor: pointer;
background-color: rgba(0, 0, 0, .7);
4 years ago
border-radius: 50%;
width: 100%;
height: 100%;
}
.preloader-path-new {
stroke-dasharray: 5, 200;
stroke-dashoffset: 0;
transition: stroke-dasharray 400ms ease-in-out;
4 years ago
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%;
html.no-touch &:hover {
4 years ago
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%; */
4 years ago
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;
}
4 years ago
img.emoji {
width: 18px;
height: 18px;
4 years ago
}
.btn-circle {
border-radius: 50%;
height: 54px;
width: 54px;
line-height: 54px;
4 years ago
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%;
html.no-touch &:hover, &:active {
4 years ago
cursor: move;
}
> img {
position: absolute;
display: block;
}
}
[contenteditable] {
-webkit-user-select: text;
user-select: text;
}
4 years ago
.justify-start {
justify-content: flex-start!important;
4 years ago
}
.position-center {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.sticky_sentinel {
position: absolute;
left: 0;
right: 0; /* needs dimensions */
visibility: hidden;
pointer-events: none;
}
.rlottie {
max-width: 100%;
max-height: 100%;
}
/* #chats-container {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
4 years ago
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
height: 100%;
4 years ago
.scrollable {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-moz-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
height: 1px;
4 years ago
position: relative;
overflow: auto;
-webkit-overflow-scrolling: touch;
-webkit-transform: translateZ(0px);
-moz-transform: translateZ(0px);
transform: translateZ(0px);
4 years ago
> div {
height: 100%;
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-moz-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
height: 1px;
4 years ago
}
}
4 years ago
} */