2016-09-14 16:18:33 +08:00
|
|
|
@dialog-prefix-cls: ~"@{ant-prefix}-modal";
|
2016-05-05 15:03:24 +08:00
|
|
|
|
|
|
|
.@{dialog-prefix-cls} {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2016-05-05 15:03:24 +08:00
|
|
|
position: relative;
|
|
|
|
width: auto;
|
2016-05-05 16:52:36 +08:00
|
|
|
margin: 0 auto;
|
|
|
|
top: 100px;
|
2016-05-18 18:55:50 +08:00
|
|
|
padding-bottom: 24px;
|
2016-05-05 15:03:24 +08:00
|
|
|
|
|
|
|
&-wrap {
|
|
|
|
position: fixed;
|
|
|
|
overflow: auto;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: @zindex-modal;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-title {
|
|
|
|
margin: 0;
|
2016-11-08 21:07:01 +08:00
|
|
|
font-size: @font-size-lg;
|
2016-05-05 15:03:24 +08:00
|
|
|
line-height: 21px;
|
2017-03-07 14:29:02 +08:00
|
|
|
font-weight: 500;
|
|
|
|
color: @heading-color;
|
2016-05-05 15:03:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-content {
|
|
|
|
position: relative;
|
2016-11-29 11:56:10 +08:00
|
|
|
background-color: @component-background;
|
2016-05-05 15:03:24 +08:00
|
|
|
border: 0;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
background-clip: padding-box;
|
2016-10-14 21:43:59 +08:00
|
|
|
box-shadow: @shadow-2;
|
2016-05-05 15:03:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-close {
|
|
|
|
cursor: pointer;
|
|
|
|
border: 0;
|
|
|
|
background: transparent;
|
|
|
|
position: absolute;
|
2017-04-19 11:13:39 +08:00
|
|
|
right: 0;
|
|
|
|
top: 0;
|
2016-05-05 15:03:24 +08:00
|
|
|
z-index: 10;
|
|
|
|
font-weight: 700;
|
|
|
|
line-height: 1;
|
|
|
|
text-decoration: none;
|
|
|
|
transition: color .3s ease;
|
2016-11-08 20:45:56 +08:00
|
|
|
color: @text-color-secondary;
|
2016-05-12 15:36:17 +08:00
|
|
|
outline: 0;
|
2016-05-05 15:03:24 +08:00
|
|
|
|
|
|
|
&-x {
|
|
|
|
display: block;
|
|
|
|
font-style: normal;
|
|
|
|
vertical-align: baseline;
|
|
|
|
text-align: center;
|
|
|
|
text-transform: none;
|
|
|
|
text-rendering: auto;
|
2017-04-19 11:13:39 +08:00
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
|
|
|
line-height: 48px;
|
2016-11-08 21:07:01 +08:00
|
|
|
font-size: @font-size-lg;
|
2016-05-05 15:03:24 +08:00
|
|
|
|
|
|
|
&:before {
|
2016-09-18 09:54:47 +08:00
|
|
|
content: "\e633";
|
2016-05-05 15:03:24 +08:00
|
|
|
display: block;
|
|
|
|
font-family: "anticon" !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-05-12 15:36:17 +08:00
|
|
|
&:focus,
|
2016-05-05 15:03:24 +08:00
|
|
|
&:hover {
|
|
|
|
color: #444;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-header {
|
2017-04-19 11:13:39 +08:00
|
|
|
padding: 13px 16px;
|
2016-05-05 15:03:24 +08:00
|
|
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
2016-11-29 11:56:10 +08:00
|
|
|
background: @component-background;
|
2016-11-08 20:50:59 +08:00
|
|
|
color: @text-color;
|
2017-01-31 16:05:10 +08:00
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
2016-05-05 15:03:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-body {
|
|
|
|
padding: 16px;
|
2016-11-08 20:57:07 +08:00
|
|
|
font-size: @font-size-base;
|
2016-05-05 15:03:24 +08:00
|
|
|
line-height: 1.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-footer {
|
2017-01-31 16:05:10 +08:00
|
|
|
border-top: @border-width-base @border-style-base @border-color-split;
|
2017-02-13 10:23:55 +08:00
|
|
|
padding: 10px 16px 10px 10px;
|
2016-05-05 15:03:24 +08:00
|
|
|
text-align: right;
|
|
|
|
border-radius: 0 0 @border-radius-base @border-radius-base;
|
|
|
|
button + button {
|
|
|
|
margin-left: 8px;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.zoom-enter,
|
|
|
|
&.zoom-appear {
|
2016-10-07 18:29:55 +08:00
|
|
|
animation-duration: @animation-duration-slow;
|
2016-05-05 15:03:24 +08:00
|
|
|
transform: none; // reset scale avoid mousePosition bug
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-mask {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
background-color: #373737;
|
2017-04-25 16:43:42 +08:00
|
|
|
background-color: @modal-mask-bg; // lesshint duplicateProperty: false
|
2016-05-05 15:03:24 +08:00
|
|
|
height: 100%;
|
|
|
|
z-index: @zindex-modal-mask;
|
|
|
|
filter: ~"alpha(opacity=50)";
|
|
|
|
|
|
|
|
&-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2016-05-18 18:55:50 +08:00
|
|
|
|
|
|
|
&-open {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2016-05-05 15:03:24 +08:00
|
|
|
}
|
2016-08-03 15:21:22 +08:00
|
|
|
|
2017-09-25 11:18:26 +08:00
|
|
|
@media (max-width: @screen-md) {
|
2016-08-03 15:21:22 +08:00
|
|
|
.@{dialog-prefix-cls} {
|
|
|
|
width: auto !important;
|
|
|
|
margin: 10px;
|
|
|
|
}
|
|
|
|
.vertical-center-modal {
|
|
|
|
.@{dialog-prefix-cls} {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|