mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 21:59:41 +08:00
f4859202f5
* chore: bump drawer * docs: Drawer test demo * test: Update snapshot * docs: Update demo * chore: fix nest style * chore: trigger CI * chore: modify bundle size
147 lines
2.2 KiB
Plaintext
147 lines
2.2 KiB
Plaintext
@import (reference) '../../style/themes/index';
|
|
|
|
@drawer-prefix-cls: ~'@{ant-prefix}-drawer';
|
|
|
|
.panel-motion {
|
|
&-enter,
|
|
&-appear,
|
|
&-leave {
|
|
&-start {
|
|
transition: none;
|
|
}
|
|
|
|
&-active {
|
|
transition: all @animation-duration-slow;
|
|
}
|
|
}
|
|
}
|
|
|
|
.@{drawer-prefix-cls} {
|
|
// ======================== Mask ========================
|
|
&-mask-motion {
|
|
&-enter,
|
|
&-appear,
|
|
&-leave {
|
|
&-active {
|
|
transition: all @animation-duration-slow;
|
|
}
|
|
}
|
|
|
|
&-enter,
|
|
&-appear {
|
|
opacity: 0;
|
|
|
|
&-active {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
&-leave {
|
|
opacity: 1;
|
|
|
|
&-active {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
// ======================= Panel ========================
|
|
&-panel-motion {
|
|
// Left
|
|
&-left {
|
|
.panel-motion();
|
|
|
|
&-enter,
|
|
&-appear {
|
|
&-start {
|
|
transform: translateX(-100%) !important;
|
|
}
|
|
|
|
&-active {
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
&-leave {
|
|
transform: translateX(0);
|
|
|
|
&-active {
|
|
transform: translateX(-100%);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Right
|
|
&-right {
|
|
.panel-motion();
|
|
|
|
&-enter,
|
|
&-appear {
|
|
&-start {
|
|
transform: translateX(100%) !important;
|
|
}
|
|
|
|
&-active {
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
&-leave {
|
|
transform: translateX(0);
|
|
|
|
&-active {
|
|
transform: translateX(100%);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Top
|
|
&-top {
|
|
.panel-motion();
|
|
|
|
&-enter,
|
|
&-appear {
|
|
&-start {
|
|
transform: translateY(-100%) !important;
|
|
}
|
|
|
|
&-active {
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
&-leave {
|
|
transform: translateY(0);
|
|
|
|
&-active {
|
|
transform: translateY(-100%);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Bottom
|
|
&-bottom {
|
|
.panel-motion();
|
|
|
|
&-enter,
|
|
&-appear {
|
|
&-start {
|
|
transform: translateY(100%) !important;
|
|
}
|
|
|
|
&-active {
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
&-leave {
|
|
transform: translateY(0);
|
|
|
|
&-active {
|
|
transform: translateY(100%);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|