antd
Version:
An enterprise-class UI design language and React-based implementation
192 lines (191 loc) • 3.66 kB
CSS
.ant-modal {
position: relative;
width: auto;
margin: 0 auto;
top: 100px;
padding-bottom: 24px;
}
.ant-modal-wrap {
position: fixed;
overflow: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1000;
-webkit-overflow-scrolling: touch;
outline: 0;
}
.ant-modal-title {
margin: 0;
font-size: 14px;
line-height: 21px;
font-weight: bold;
}
.ant-modal-content {
position: relative;
background-color: #fff;
border: 0;
border-radius: 6px;
background-clip: padding-box;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.ant-modal-close {
cursor: pointer;
border: 0;
background: transparent;
position: absolute;
right: 18px;
top: 16px;
z-index: 10;
font-weight: 700;
line-height: 1;
text-decoration: none;
-webkit-transition: color .3s ease;
transition: color .3s ease;
color: #999;
outline: 0;
}
.ant-modal-close-x {
display: block;
font-style: normal;
vertical-align: baseline;
text-align: center;
text-transform: none;
text-rendering: auto;
width: 14px;
height: 14px;
font-size: 14px;
line-height: 1;
}
.ant-modal-close-x:before {
content: "\e633";
display: block;
font-family: "anticon" ;
}
.ant-modal-close:focus,
.ant-modal-close:hover {
color: #444;
text-decoration: none;
}
.ant-modal-header {
padding: 14px 16px;
border-radius: 6px 6px 0 0;
background: #fff;
color: #666;
border-bottom: 1px solid #e9e9e9;
}
.ant-modal-body {
padding: 16px;
font-size: 12px;
line-height: 1.5;
}
.ant-modal-footer {
border-top: 1px solid #e9e9e9;
padding: 10px 18px 10px 10px;
text-align: right;
border-radius: 0 0 6px 6px;
}
.ant-modal-footer button + button {
margin-left: 8px;
margin-bottom: 0;
}
.ant-modal.zoom-enter,
.ant-modal.zoom-appear {
-webkit-animation-duration: 0.3s;
animation-duration: 0.3s;
-webkit-transform: none;
-ms-transform: none;
transform: none;
opacity: 0;
}
.ant-modal-mask {
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
background-color: #373737;
background-color: rgba(55, 55, 55, 0.6);
height: 100%;
z-index: 1000;
filter: alpha(opacity=50);
}
.ant-modal-mask-hidden {
display: none;
}
.ant-modal-open {
overflow: hidden;
}
@media (max-width: 768px) {
.ant-modal {
width: auto ;
margin: 10px;
}
.vertical-center-modal .ant-modal {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
}
.ant-confirm .ant-modal-header {
display: none;
}
.ant-confirm .ant-modal-close {
display: none;
}
.ant-confirm .ant-modal-body {
padding: 30px 40px;
}
.ant-confirm-body-wrapper {
zoom: 1;
}
.ant-confirm-body-wrapper:before,
.ant-confirm-body-wrapper:after {
content: " ";
display: table;
}
.ant-confirm-body-wrapper:after {
clear: both;
visibility: hidden;
font-size: 0;
height: 0;
}
.ant-confirm-body .ant-confirm-title {
color: #666;
font-weight: bold;
font-size: 14px;
}
.ant-confirm-body .ant-confirm-content {
margin-left: 42px;
font-size: 12px;
color: #666;
margin-top: 8px;
}
.ant-confirm-body > .anticon {
font-size: 24px;
margin-right: 16px;
padding: 0 1px;
float: left;
}
.ant-confirm .ant-confirm-btns {
margin-top: 30px;
float: right;
}
.ant-confirm .ant-confirm-btns button + button {
margin-left: 10px;
margin-bottom: 0;
}
.ant-confirm-error .ant-confirm-body > .anticon {
color: #f50;
}
.ant-confirm-warning .ant-confirm-body > .anticon,
.ant-confirm-confirm .ant-confirm-body > .anticon {
color: #fa0;
}
.ant-confirm-info .ant-confirm-body > .anticon {
color: #2db7f5;
}
.ant-confirm-success .ant-confirm-body > .anticon {
color: #87d068;
}