2019-05-06 12:04:39 +08:00
|
|
|
@import '../../style/themes/index';
|
2018-05-25 15:10:45 +08:00
|
|
|
|
2019-12-31 11:54:39 +08:00
|
|
|
@drawer-prefix-cls: ~'@{ant-prefix}-drawer';
|
2020-01-03 19:00:01 +08:00
|
|
|
@picker-prefix-cls: ~'@{ant-prefix}-picker';
|
2021-10-09 10:33:54 +08:00
|
|
|
@drawer-animation-ease: @ease-out-quint;
|
2019-01-30 10:23:32 +08:00
|
|
|
|
|
|
|
.@{drawer-prefix-cls} {
|
2018-05-23 10:56:37 +08:00
|
|
|
position: fixed;
|
2022-07-27 23:44:45 +08:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
z-index: @zindex-modal;
|
2022-07-25 21:04:43 +08:00
|
|
|
pointer-events: none;
|
2018-05-23 18:23:07 +08:00
|
|
|
|
2022-07-25 21:04:43 +08:00
|
|
|
&-inline {
|
2019-08-10 14:02:51 +08:00
|
|
|
position: absolute;
|
2018-08-18 12:34:40 +08:00
|
|
|
}
|
2020-05-12 17:39:59 +08:00
|
|
|
|
2022-07-25 21:04:43 +08:00
|
|
|
// ====================== Mask ======================
|
|
|
|
&-mask {
|
|
|
|
position: absolute;
|
2022-07-27 23:44:45 +08:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2022-07-25 21:04:43 +08:00
|
|
|
z-index: @zindex-modal;
|
|
|
|
background: @modal-mask-bg;
|
|
|
|
pointer-events: auto;
|
2018-05-23 10:56:37 +08:00
|
|
|
}
|
2019-04-28 14:03:07 +08:00
|
|
|
|
2022-07-25 21:04:43 +08:00
|
|
|
// ==================== Content =====================
|
|
|
|
&-content-wrapper {
|
|
|
|
position: absolute;
|
|
|
|
z-index: @zindex-modal;
|
2022-07-27 23:44:45 +08:00
|
|
|
transition: all @animation-duration-slow;
|
|
|
|
|
|
|
|
&-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-07-25 21:04:43 +08:00
|
|
|
|
|
|
|
// Placement
|
2022-08-02 14:54:13 +08:00
|
|
|
.@{drawer-prefix-cls}-left > & {
|
2022-07-25 21:04:43 +08:00
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2022-07-27 23:44:45 +08:00
|
|
|
box-shadow: @shadow-1-right;
|
2018-08-18 12:34:40 +08:00
|
|
|
}
|
2020-01-02 19:10:16 +08:00
|
|
|
|
2022-08-02 14:54:13 +08:00
|
|
|
.@{drawer-prefix-cls}-right > & {
|
2022-07-25 21:04:43 +08:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2022-07-27 23:44:45 +08:00
|
|
|
box-shadow: @shadow-1-left;
|
2020-01-02 19:10:16 +08:00
|
|
|
}
|
|
|
|
|
2022-08-02 14:54:13 +08:00
|
|
|
.@{drawer-prefix-cls}-top > & {
|
2022-07-25 21:04:43 +08:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
2022-07-27 23:44:45 +08:00
|
|
|
box-shadow: @shadow-1-down;
|
2018-05-23 10:56:37 +08:00
|
|
|
}
|
2019-04-28 14:03:07 +08:00
|
|
|
|
2022-08-02 14:54:13 +08:00
|
|
|
.@{drawer-prefix-cls}-bottom > & {
|
2022-07-25 21:04:43 +08:00
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2022-07-27 23:44:45 +08:00
|
|
|
box-shadow: @shadow-1-up;
|
2018-05-23 10:56:37 +08:00
|
|
|
}
|
|
|
|
}
|
2018-08-18 12:34:40 +08:00
|
|
|
|
2022-07-25 21:04:43 +08:00
|
|
|
&-content {
|
2018-08-10 16:47:44 +08:00
|
|
|
width: 100%;
|
2022-07-25 21:04:43 +08:00
|
|
|
height: 100%;
|
|
|
|
overflow: auto;
|
2022-07-27 23:44:45 +08:00
|
|
|
background: @drawer-bg;
|
2022-07-25 21:04:43 +08:00
|
|
|
pointer-events: auto;
|
2018-08-18 12:34:40 +08:00
|
|
|
}
|
2019-04-28 14:03:07 +08:00
|
|
|
|
2022-07-25 21:04:43 +08:00
|
|
|
// ===================== Panel ======================
|
|
|
|
&-wrapper-body {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
width: 100%;
|
2020-06-30 19:30:44 +08:00
|
|
|
height: 100%;
|
2018-05-23 10:56:37 +08:00
|
|
|
}
|
|
|
|
|
2022-07-25 21:04:43 +08:00
|
|
|
// Header
|
|
|
|
&-header {
|
|
|
|
display: flex;
|
|
|
|
flex: 0;
|
|
|
|
align-items: center;
|
|
|
|
padding: @drawer-header-padding;
|
2022-02-27 10:52:21 +08:00
|
|
|
font-size: @drawer-title-font-size;
|
|
|
|
line-height: @drawer-title-line-height;
|
2022-07-25 21:04:43 +08:00
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
|
|
|
|
|
|
&-title {
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
align-items: center;
|
|
|
|
min-width: 0;
|
|
|
|
min-height: 0;
|
|
|
|
}
|
2018-05-23 10:56:37 +08:00
|
|
|
}
|
|
|
|
|
2022-07-25 21:04:43 +08:00
|
|
|
&-extra {
|
|
|
|
flex: 0;
|
2018-05-23 10:56:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-close {
|
2021-06-11 08:39:17 +08:00
|
|
|
display: inline-block;
|
|
|
|
margin-right: 12px;
|
2020-05-11 20:08:46 +08:00
|
|
|
color: @modal-close-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-weight: 700;
|
|
|
|
font-size: @font-size-lg;
|
2019-01-02 13:53:19 +08:00
|
|
|
font-style: normal;
|
2020-03-29 12:38:12 +08:00
|
|
|
line-height: 1;
|
2019-01-02 13:53:19 +08:00
|
|
|
text-align: center;
|
|
|
|
text-transform: none;
|
2019-02-15 10:48:07 +08:00
|
|
|
text-decoration: none;
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
|
|
|
outline: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: color @animation-duration-slow;
|
2019-01-02 13:53:19 +08:00
|
|
|
text-rendering: auto;
|
2018-05-23 10:56:37 +08:00
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
2018-12-04 13:11:31 +08:00
|
|
|
color: @icon-color-hover;
|
2018-05-23 10:56:37 +08:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-25 21:04:43 +08:00
|
|
|
&-title {
|
|
|
|
flex: 1;
|
|
|
|
margin: 0;
|
|
|
|
color: @heading-color;
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: @drawer-title-font-size;
|
|
|
|
line-height: @drawer-title-line-height;
|
2020-01-06 14:56:00 +08:00
|
|
|
}
|
|
|
|
|
2022-07-25 21:04:43 +08:00
|
|
|
// Body
|
2018-05-23 10:56:37 +08:00
|
|
|
&-body {
|
2022-07-25 21:04:43 +08:00
|
|
|
flex: 1;
|
|
|
|
min-width: 0;
|
|
|
|
min-height: 0;
|
2019-03-01 11:17:54 +08:00
|
|
|
padding: @drawer-body-padding;
|
2020-01-06 14:56:00 +08:00
|
|
|
overflow: auto;
|
2018-05-23 10:56:37 +08:00
|
|
|
}
|
2020-01-06 14:56:00 +08:00
|
|
|
|
2022-07-25 21:04:43 +08:00
|
|
|
// Footer
|
2020-01-06 14:56:00 +08:00
|
|
|
&-footer {
|
|
|
|
flex-shrink: 0;
|
2021-01-21 23:13:14 +08:00
|
|
|
padding: @drawer-footer-padding-vertical @drawer-footer-padding-horizontal;
|
2020-01-06 14:56:00 +08:00
|
|
|
border-top: @border-width-base @border-style-base @border-color-split;
|
2019-11-15 17:23:14 +08:00
|
|
|
}
|
2018-05-23 10:56:37 +08:00
|
|
|
}
|