-
+
-
-
@@ -107,15 +107,15 @@
+
+
-
+
-
+
-
+
diff --git a/src/lib/appManagers/appDialogsManager.ts b/src/lib/appManagers/appDialogsManager.ts
index 7e478f8b..803622b4 100644
--- a/src/lib/appManagers/appDialogsManager.ts
+++ b/src/lib/appManagers/appDialogsManager.ts
@@ -629,7 +629,7 @@ export class AppDialogsManager {
const ul = this.createChatList();
const scrollable = this.generateScrollable(ul, filter.id);
- scrollable.container.classList.add('chatlist-parts');
+ scrollable.container.classList.add('tabs-tab', 'chatlist-parts');
/* const parts = document.createElement('div');
parts.classList.add('chatlist-parts'); */
diff --git a/src/scss/partials/_audio.scss b/src/scss/partials/_audio.scss
index 2c03de3c..6356f246 100644
--- a/src/scss/partials/_audio.scss
+++ b/src/scss/partials/_audio.scss
@@ -24,12 +24,19 @@
&-toggle {
transform: rotate(-119deg);
- transition: transform .25s;
+
+ @include animation-level(2) {
+ transition: transform .25s ease-in-out;
+ }
.part {
position: absolute;
background-color: white;
+ @include animation-level(2) {
+ transition: clip-path .25s ease-in-out;
+ }
+
@include respond-to(not-handhelds) {
height: 140px;
width: 140px;
@@ -177,10 +184,6 @@
56.87342% 42.46916%
);
}
-
- &.one, &.two {
- transition: clip-path .25s;
- }
}
}
diff --git a/src/scss/partials/_chat.scss b/src/scss/partials/_chat.scss
index d5dcfda2..52030c97 100644
--- a/src/scss/partials/_chat.scss
+++ b/src/scss/partials/_chat.scss
@@ -34,8 +34,8 @@ $chat-helper-size: 36px;
--bottom: var(--padding-bottom);
} */
- body.animation-level-0 & {
- transition: none;
+ @include animation-level(0) {
+ transition: none !important;
}
/* // * for no ESG top
@@ -532,6 +532,7 @@ $chat-helper-size: 36px;
//overflow: hidden;
flex-direction: column;
//z-index: 1;
+ transition: transform var(--tabs-transition), filter var(--tabs-transition);
@include animation-level(0) {
transition: none !important;
@@ -988,9 +989,9 @@ $chat-helper-size: 36px;
transform: translateY(var(--translateY));
transition: transform var(--transition-standard-out);
-
- body.animation-level-0 & {
- transition: none;
+
+ @include animation-level(0) {
+ transition: none !important;
}
/* html.is-safari & > .scrollable {
@@ -1080,8 +1081,11 @@ $chat-helper-size: 36px;
cursor: pointer;
//--translateY: 0;
opacity: 1;
- transition: opacity var(--layer-transition), visibility 0s 0s !important;
visibility: visible;
+
+ @include animation-level(2) {
+ transition: opacity var(--layer-transition), visibility 0s 0s !important;
+ }
/* &.is-broadcast {
--translateY: 79px !important;
@@ -1108,14 +1112,13 @@ $chat-helper-size: 36px;
max-width: var(--messages-container-width);
//padding-top: 10000px;
-
transition: transform var(--transition-standard-out);
transform: translateY(0);
/* transition: margin-top var(--layer-transition);
transition-delay: .2s; */
-
- body.animation-level-0 & {
- transition: none;
+
+ @include animation-level(0) {
+ transition: none !important;
}
@include respond-to(medium-screens) {
@@ -1171,8 +1174,11 @@ $chat-helper-size: 36px;
opacity: 0.99999 !important; // 0.99999 сделано для сафари, т.к. без этого будет прыжок при скролле в самом низу или верху
html.is-safari & {
- transition: transform var(--transition-standard-in);
transform: translateY(calc(var(--translateY) * -1));
+
+ @include animation-level(2) {
+ transition: transform var(--transition-standard-in);
+ }
}
}
}
@@ -1201,7 +1207,7 @@ $chat-helper-size: 36px;
//transition: opacity var(--layer-transition);
transform: none !important;
- body.animation-level-0 & {
+ @include animation-level(0) {
transition: none !important;
}
diff --git a/src/scss/partials/_chatBubble.scss b/src/scss/partials/_chatBubble.scss
index 70ea2fc1..e1d4ab9f 100644
--- a/src/scss/partials/_chatBubble.scss
+++ b/src/scss/partials/_chatBubble.scss
@@ -324,6 +324,9 @@ $bubble-margin: .25rem;
html.no-touch & {
opacity: 0;
+ }
+
+ html.no-touch body.animation-level-2 & {
transition: opacity .2s ease-in-out;
}
}
@@ -658,6 +661,10 @@ $bubble-margin: .25rem;
position: absolute;
overflow: hidden;
+ @include animation-level(0) {
+ transition: none !important;
+ }
+
/* .bubbles.is-selecting & {
-webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%); // fix safari overflow
} */
@@ -668,6 +675,10 @@ $bubble-margin: .25rem;
&-media { // * fix overflow for handhelds
border-radius: inherit;
+
+ @include animation-level(0) {
+ transition: none !important;
+ }
}
.bubble-select-checkbox {
@@ -1968,8 +1979,11 @@ $bubble-margin: .25rem;
//@include respond-to(no-floating-left-sidebar) {
body.is-right-column-shown & {
- transition: transform var(--transition-standard-in), opacity var(--transition-standard-in);
transform: scale(1) translateX(0);
+
+ @include animation-level(2) {
+ transition: transform var(--transition-standard-in), opacity var(--transition-standard-in);
+ }
&.zoom-fade {
transform: scale3d(.8, .8, 1) translateX(0);
diff --git a/src/scss/partials/_checkbox.scss b/src/scss/partials/_checkbox.scss
index 73942c13..c9986a4d 100644
--- a/src/scss/partials/_checkbox.scss
+++ b/src/scss/partials/_checkbox.scss
@@ -197,17 +197,16 @@
width: var(--size);
height: var(--size);
transform: translateY(-50%);
-
- @include animation-level(0) {
- transition: none;
- }
}
&::before {
border: 2px solid var(--secondary-text-color);
border-radius: 50%;
opacity: 1;
- transition: border-color .1s ease, opacity .1s ease;
+
+ @include animation-level(2) {
+ transition: border-color .1s ease, opacity .1s ease;
+ }
}
&::after {
@@ -218,7 +217,10 @@
background: var(--primary-color);
transform: translateY(-50%) scale(0);
transform-origin: center;
- transition: transform .1s ease;
+
+ @include animation-level(2) {
+ transition: transform .1s ease;
+ }
}
/* &-subtitle {
@@ -329,19 +331,25 @@
position: relative;
display: flex;
align-items: center;
- transition: background-color .1s;
margin: 0 var(--offset);
+
+ @include animation-level(2) {
+ transition: background-color .1s;
+ }
&:before {
width: 1.25rem;
height: 1.25rem;
border: 2px solid var(--secondary-color);
- transition: border-color .1s, transform .1s;
background-color: var(--surface-color);
content: " ";
transform: translateX(calc(var(--offset) * -1));
border-radius: 50%;
position: absolute;
+
+ @include animation-level(2) {
+ transition: border-color .1s, transform .1s;
+ }
}
}
diff --git a/src/scss/partials/_emojiDropdown.scss b/src/scss/partials/_emojiDropdown.scss
index 881aaf62..cc920903 100644
--- a/src/scss/partials/_emojiDropdown.scss
+++ b/src/scss/partials/_emojiDropdown.scss
@@ -97,7 +97,7 @@
}
}
- > div {
+ .tabs-tab {
min-height: 100%;
/* display: flex; */
flex-direction: column;
diff --git a/src/scss/partials/_slider.scss b/src/scss/partials/_slider.scss
index 89de46c8..5140c3f9 100644
--- a/src/scss/partials/_slider.scss
+++ b/src/scss/partials/_slider.scss
@@ -120,7 +120,7 @@
// transition: .3s transform;
// }
- > div {
+ .tabs-tab {
// * can't define these rules because of old firefox, though they don't work
//height: 100%;
//max-height: 100%;
@@ -129,11 +129,9 @@
display: none;
flex-direction: column;
- position: relative;
grid-row-start: 1;
grid-column-start: 1;
background-color: var(--background-color);
- //z-index: 1;
body.animation-level-0 & {
transition: none !important;
@@ -183,12 +181,30 @@
}
} */
- &[data-animation="tabs"] > div {
+ &[data-animation="tabs"] .tabs-tab {
transition: transform var(--tabs-transition);
}
- &[data-animation="navigation"] > div {
+ /* &[data-animation="navigation"] .tabs-tab {
transition: transform var(--tabs-transition), filter var(--tabs-transition);
+ } */
+
+ &[data-animation="navigation"] {
+ /* .tabs-tab {
+ transition: transform var(--tabs-transition), filter var(--tabs-transition);
+ } */
+
+ &.animating {
+ .tabs-tab {
+ transition: transform var(--transition-standard-in), filter var(--transition-standard-in);
+ }
+
+ &.backwards {
+ .tabs-tab {
+ transition: transform var(--transition-standard-out), filter var(--transition-standard-out);
+ }
+ }
+ }
}
}
diff --git a/src/scss/partials/pages/_pages.scss b/src/scss/partials/pages/_pages.scss
index 4a4fc221..d5310727 100644
--- a/src/scss/partials/pages/_pages.scss
+++ b/src/scss/partials/pages/_pages.scss
@@ -85,7 +85,7 @@
}
}
- > div {
+ .tabs-tab {
/* justify-content: center; */
/* &.active {
flex-direction: row;