Skip to content

Commit

Permalink
fix(overlay): update style (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeJim authored Apr 18, 2023
1 parent 0aea279 commit 74a2dc7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 25 deletions.
26 changes: 4 additions & 22 deletions style/mobile/components/overlay/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@
position: fixed;
top: 0;
left: 0;
z-index: @overlay-z-index;
display: block;
bottom: 0;
width: 100%;
height: 100%;
background-color: @mask-bg-color;

&--transparent {
background-color: transparent;
}
z-index: @overlay-zindex;
background-color: @overlay-bg-color;
transition-duration: @overlay-transition-duration;

&-enter-from,
&-leave-to {
Expand All @@ -28,18 +24,4 @@
transition-property: background-color;
transition-timing-function: ease;
}

&-aria-button {
position: absolute;
top: 0;
left: 0;
z-index: 0;
width: 100%;
height: 100%;
pointer-events: none;
}

&-content {
z-index: 1;
}
}
5 changes: 3 additions & 2 deletions style/mobile/components/overlay/_var.less
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@overlay-z-index: 1500;
@mask-bg-color:rgba(0, 0, 0, .6);
@overlay-zindex: var(--td-overlay-zindex, 1000);
@overlay-bg-color: var(--td-overlay-bg-color, @font-gray-2);
@overlay-transition-duration: var(--td-overlay-transition-duration, 300ms);
2 changes: 1 addition & 1 deletion style/mobile/components/popup/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.@{prefix}-popup {
&--content {
position: fixed;
z-index: @overlay-z-index;
z-index: 1500;
}

&--content-top {
Expand Down

0 comments on commit 74a2dc7

Please sign in to comment.