unified drawer and modal mask opacity (#17943)

This commit is contained in:
jiang 2019-07-29 15:57:05 +08:00 committed by GitHub
parent 68d1ec00d4
commit d7bbb48fce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -110,7 +110,7 @@
.@{drawer-prefix-cls} {
&-mask {
height: 100%;
opacity: 0.3;
opacity: 1;
transition: none;
animation: antdDrawerFadeIn @animation-duration-slow @ease-base-out;
}
@ -193,7 +193,7 @@
height: 0;
background-color: @modal-mask-bg;
opacity: 0;
filter: ~'alpha(opacity=50)';
filter: ~'alpha(opacity=45)';
transition: opacity @animation-duration-slow linear, height 0s ease @animation-duration-slow;
}
&-open {
@ -208,6 +208,6 @@
opacity: 0;
}
100% {
opacity: 0.3;
opacity: 1;
}
}

View File

@ -363,7 +363,7 @@
@modal-body-padding: 24px;
@modal-header-bg: @component-background;
@modal-footer-bg: transparent;
@modal-mask-bg: fade(@black, 65%);
@modal-mask-bg: fade(@black, 45%);
// Progress
// --