2018-12-07 20:02:01 +08:00
|
|
|
@dialog-prefix-cls: ~'@{ant-prefix}-modal';
|
2016-05-05 15:03:24 +08:00
|
|
|
|
|
|
|
.@{dialog-prefix-cls} {
|
2020-12-22 11:08:12 +08:00
|
|
|
.reset-component();
|
|
|
|
.modal-mask();
|
2019-04-15 10:52:00 +08:00
|
|
|
|
2016-05-05 15:03:24 +08:00
|
|
|
position: relative;
|
2019-02-15 10:48:07 +08:00
|
|
|
top: 100px;
|
2016-05-05 15:03:24 +08:00
|
|
|
width: auto;
|
2020-09-03 16:29:40 +08:00
|
|
|
max-width: calc(100vw - 32px);
|
2016-05-05 16:52:36 +08:00
|
|
|
margin: 0 auto;
|
2016-05-18 18:55:50 +08:00
|
|
|
padding-bottom: 24px;
|
2016-05-05 15:03:24 +08:00
|
|
|
|
|
|
|
&-wrap {
|
|
|
|
z-index: @zindex-modal;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-title {
|
|
|
|
margin: 0;
|
2019-10-24 10:36:59 +08:00
|
|
|
color: @modal-heading-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-weight: 500;
|
2020-06-15 17:53:30 +08:00
|
|
|
font-size: @modal-header-title-font-size;
|
|
|
|
line-height: @modal-header-title-line-height;
|
2019-04-24 12:37:20 +08:00
|
|
|
word-wrap: break-word;
|
2016-05-05 15:03:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-content {
|
|
|
|
position: relative;
|
2019-11-25 18:59:52 +08:00
|
|
|
background-color: @modal-content-bg;
|
2019-02-15 10:48:07 +08:00
|
|
|
background-clip: padding-box;
|
2016-05-05 15:03:24 +08:00
|
|
|
border: 0;
|
2022-07-15 14:50:07 +08:00
|
|
|
border-radius: @modal-border-radius;
|
2016-10-14 21:43:59 +08:00
|
|
|
box-shadow: @shadow-2;
|
2019-06-21 17:52:28 +08:00
|
|
|
pointer-events: auto;
|
2016-05-05 15:03:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-close {
|
|
|
|
position: absolute;
|
2017-04-19 11:13:39 +08:00
|
|
|
top: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
right: 0;
|
2019-01-06 13:25:59 +08:00
|
|
|
z-index: @zindex-popup-close;
|
2019-02-15 10:48:07 +08:00
|
|
|
padding: 0;
|
2020-05-11 20:08:46 +08:00
|
|
|
color: @modal-close-color;
|
2016-05-05 15:03:24 +08:00
|
|
|
font-weight: 700;
|
|
|
|
line-height: 1;
|
|
|
|
text-decoration: none;
|
2019-02-15 10:48:07 +08:00
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
2016-05-12 15:36:17 +08:00
|
|
|
outline: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
cursor: pointer;
|
|
|
|
transition: color 0.3s;
|
2016-05-05 15:03:24 +08:00
|
|
|
|
|
|
|
&-x {
|
|
|
|
display: block;
|
2020-03-29 10:39:46 +08:00
|
|
|
width: @modal-header-close-size;
|
|
|
|
height: @modal-header-close-size;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-size: @font-size-lg;
|
2016-05-05 15:03:24 +08:00
|
|
|
font-style: normal;
|
2020-03-29 10:39:46 +08:00
|
|
|
line-height: @modal-header-close-size;
|
2016-05-05 15:03:24 +08:00
|
|
|
text-align: center;
|
|
|
|
text-transform: none;
|
|
|
|
text-rendering: auto;
|
|
|
|
}
|
|
|
|
|
2016-05-12 15:36:17 +08:00
|
|
|
&:focus,
|
2016-05-05 15:03:24 +08:00
|
|
|
&:hover {
|
2018-12-04 13:11:31 +08:00
|
|
|
color: @icon-color-hover;
|
2016-05-05 15:03:24 +08:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-header {
|
2020-03-29 10:39:46 +08:00
|
|
|
padding: @modal-header-padding;
|
2016-11-08 20:50:59 +08:00
|
|
|
color: @text-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
background: @modal-header-bg;
|
2020-08-22 22:02:20 +08:00
|
|
|
border-bottom: @modal-header-border-width @modal-header-border-style
|
|
|
|
@modal-header-border-color-split;
|
2022-07-15 14:50:07 +08:00
|
|
|
border-radius: @modal-border-radius @modal-border-radius 0 0;
|
2016-05-05 15:03:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-body {
|
2019-03-18 15:07:14 +08:00
|
|
|
padding: @modal-body-padding;
|
2016-11-08 20:57:07 +08:00
|
|
|
font-size: @font-size-base;
|
2017-10-11 12:01:27 +08:00
|
|
|
line-height: @line-height-base;
|
2018-03-09 20:06:50 +08:00
|
|
|
word-wrap: break-word;
|
2016-05-05 15:03:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-footer {
|
2019-03-12 18:45:49 +08:00
|
|
|
padding: @modal-footer-padding-vertical @modal-footer-padding-horizontal;
|
2016-05-05 15:03:24 +08:00
|
|
|
text-align: right;
|
2019-03-18 23:56:40 +08:00
|
|
|
background: @modal-footer-bg;
|
2020-08-22 22:02:20 +08:00
|
|
|
border-top: @modal-footer-border-width @modal-footer-border-style
|
|
|
|
@modal-footer-border-color-split;
|
2022-07-15 14:50:07 +08:00
|
|
|
border-radius: 0 0 @modal-border-radius @modal-border-radius;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
2021-04-28 12:19:40 +08:00
|
|
|
.@{ant-prefix}-btn + .@{ant-prefix}-btn:not(.@{ant-prefix}-dropdown-trigger) {
|
2016-05-05 15:03:24 +08:00
|
|
|
margin-bottom: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
margin-left: 8px;
|
2016-05-05 15:03:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2018-07-31 17:05:07 +08:00
|
|
|
.@{dialog-prefix-cls}-centered {
|
|
|
|
text-align: center;
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2019-02-15 10:48:07 +08:00
|
|
|
&::before {
|
2018-07-31 17:05:07 +08:00
|
|
|
display: inline-block;
|
2019-02-15 10:48:07 +08:00
|
|
|
width: 0;
|
2018-07-31 17:05:07 +08:00
|
|
|
height: 100%;
|
|
|
|
vertical-align: middle;
|
2019-02-15 10:48:07 +08:00
|
|
|
content: '';
|
2018-07-31 17:05:07 +08:00
|
|
|
}
|
|
|
|
.@{dialog-prefix-cls} {
|
|
|
|
top: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
display: inline-block;
|
2021-11-25 18:06:40 +08:00
|
|
|
padding-bottom: 0;
|
2018-07-31 17:05:07 +08:00
|
|
|
text-align: left;
|
2019-02-15 10:48:07 +08:00
|
|
|
vertical-align: middle;
|
2018-07-31 17:05:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-29 03:38:15 +08:00
|
|
|
@media (max-width: @screen-sm-max) {
|
2016-08-03 15:21:22 +08:00
|
|
|
.@{dialog-prefix-cls} {
|
2018-12-26 20:43:47 +08:00
|
|
|
max-width: calc(100vw - 16px);
|
2019-01-11 11:26:10 +08:00
|
|
|
margin: 8px auto;
|
2016-08-03 15:21:22 +08:00
|
|
|
}
|
2018-07-31 17:05:07 +08:00
|
|
|
.@{dialog-prefix-cls}-centered {
|
2016-08-03 15:21:22 +08:00
|
|
|
.@{dialog-prefix-cls} {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|