Skip to content

Commit

Permalink
fix: inset compatibility (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuuk authored Nov 7, 2022
1 parent 4209fae commit 47d4eea
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions assets/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,29 @@
@prefixCls: rc-drawer;
@zIndex: 1050;

.inset-0() {
top: 0;
bottom: 0;
left: 0;
right: 0;
}

.@{prefixCls} {
.inset-0;
position: fixed;
z-index: @zIndex;
pointer-events: none;
inset: 0;

&-inline {
position: absolute;
}

&-mask {
.inset-0;
position: absolute;
z-index: @zIndex;
background: rgba(0, 0, 0, 0.5);
pointer-events: auto;
inset: 0;
}

&-content-wrapper {
Expand Down

1 comment on commit 47d4eea

@vercel
Copy link

@vercel vercel bot commented on 47d4eea Nov 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

drawer – ./

drawer-react-component.vercel.app
drawer.vercel.app
drawer-git-master-react-component.vercel.app

Please sign in to comment.