Skip to content

Commit

Permalink
fix(overylay): fix style (#1521)
Browse files Browse the repository at this point in the history
Co-authored-by: yaogengzhu <yaogengzhu@tencent.com>
  • Loading branch information
yaogengzhu and yaogengzhu authored Jul 11, 2023
1 parent 1622f0f commit 33a9f69
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
16 changes: 10 additions & 6 deletions style/mobile/components/overlay/v2/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@
bottom: 0;
background-color: @overlay-bg-color;
transition: opacity @overlay-transition-duration ease;
}
opacity: 1;

.t-fade-enter {
opacity: 0;
}
&-enter-from,
&-leave-to {
opacity: 0;
}

.t-fade-leave-to {
opacity: 0;
&-enter-active,
&-leave-active {
transition-property: opacity;
transition-timing-function: ease;
}
}
3 changes: 2 additions & 1 deletion style/mobile/components/overlay/v2/_var.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@overlay: ~"@{prefix}-overlay";
@overlay-bg-color: var(--td-overlay-bg-color, @font-gray-2);
@overlay-zindex: var(--td-overlay-zindex, 1000);
@overlay-bg-color: var(--td-overlay-bg-color, @font-gray-1);
@overlay-transition-duration: var(--td-overlay-transition-duration, 300ms);

0 comments on commit 33a9f69

Please sign in to comment.