Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jljsj33 committed Aug 6, 2018
1 parent b6e9646 commit 060ad52
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
23 changes: 16 additions & 7 deletions components/drawer/style/drawer.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@
.@{dawer-prefix-cls} {
position: fixed;
top: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: @zindex-modal;
transition: transform 0.3s @ease-in-out-circ;
transition: transform @animation-duration-slow @ease-in-out-circ;
> * {
transition: transform 0.3s @ease-in-out-circ;
transition: transform @animation-duration-slow @ease-in-out-circ;
}

&-content-wrapper {
position: absolute;
position: fixed;
}

&-left,
Expand Down Expand Up @@ -51,6 +49,8 @@
.@{dawer-prefix-cls} {
&-mask {
opacity: 0.3;
animation: antdDrawerFadeIn @animation-duration-slow @ease-in-out-circ;
transition: none;
}
}
}
Expand Down Expand Up @@ -82,7 +82,7 @@
font-weight: 700;
line-height: 1;
text-decoration: none;
transition: color 0.3s;
transition: color @animation-duration-slow;
color: @text-color-secondary;
outline: 0;
padding: 0;
Expand Down Expand Up @@ -136,7 +136,7 @@
opacity: 0;
background-color: @modal-mask-bg;
height: 100%;
transition: opacity 0.3s @ease-in-out-circ;
transition: opacity @animation-duration-slow @ease-in-out-circ;
filter: ~"alpha(opacity=50)";
}

Expand All @@ -147,3 +147,12 @@
}
}
}

@keyframes antdDrawerFadeIn {
0% {
opacity: 0;
}
100% {
opacity: 0.3;
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"rc-checkbox": "~2.1.5",
"rc-collapse": "~1.9.0",
"rc-dialog": "~7.2.0",
"rc-drawer": "~1.6.2",
"rc-drawer": "~1.7.0",
"rc-dropdown": "~2.2.0",
"rc-editor-mention": "^1.0.2",
"rc-form": "^2.1.0",
Expand Down

0 comments on commit 060ad52

Please sign in to comment.