ant-design/style/components/dialog/Dialog.less

161 lines
3.0 KiB
Plaintext
Raw Normal View History

2015-06-12 12:01:02 +08:00
.@{dialogPrefixCls} {
2015-06-09 15:21:44 +08:00
outline: none;
position: absolute;
left: -9999px;
top: -9999px;
z-index: 1000;
&-wrap * {
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
&-wrap-hidden > & {
display: none;
}
&-title {
margin: 0;
font-size: 14px;
line-height: 21px;
font-weight: bold;
}
&-content {
position: relative;
background-color: #ffffff;
border: none;
border-radius: 6px 6px;
background-clip: padding-box;
outline: 0;
}
&-close {
cursor: pointer;
outline: none;
margin-top: -2px;
float: right;
font-size: 21px;
font-weight: 700;
line-height: 1;
color: #000;
text-shadow: 0 1px 0 #fff;
filter: alpha(opacity=20);
opacity: .2;
text-decoration: none;
2015-06-26 15:29:44 +08:00
&-x {
position: absolute;
display: inline-block;
font-style: normal;
vertical-align: baseline;
text-align: center;
text-transform: none;
text-rendering: auto;
// 更好地渲染字体
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0px;
-moz-osx-font-smoothing: grayscale;
width: 12px;
height: 12px;
font-size: 12px;
line-height: 12px;
color:#000;
top:18px;
right: 18px;
&:before {
content:"\e61e";
display: block;
font-family: "anticon" !important;
}
}
2015-06-09 15:21:44 +08:00
&:hover {
2015-06-26 15:29:44 +08:00
color:#000;
2015-06-09 15:21:44 +08:00
opacity: 1;
filter: alpha(opacity=100);
text-decoration: none;
}
}
&-header {
padding: 13px 20px 14px 20px;
border-radius: 5px 5px 0 0;
background: #fff;
color: #666;
border-bottom: 1px solid #e9e9e9;
}
&-body {
2015-06-15 20:04:14 +08:00
padding: 8px 20px;
font-size: 12px;
line-height: 1.5;
2015-06-09 15:21:44 +08:00
}
&-footer {
border-top: 1px solid #e9e9e9;
2015-06-15 20:04:14 +08:00
padding: 8px 20px 16px 10px;
2015-06-09 15:21:44 +08:00
text-align: right;
border-radius: 0 0 5px 5px;
}
.effect() {
animation-duration: 0.3s;
animation-fill-mode: both;
}
&-wrap-hidden > &&-zoom-enter,
&-wrap-hidden > &&-zoom-leave {
display: block;
}
&-zoom-enter {
opacity: 0;
.effect();
animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28);
animation-play-state: paused;
}
&-zoom-leave {
.effect();
animation-timing-function: cubic-bezier(0.6, -0.3, 0.74, 0.05);
animation-play-state: paused;
}
&-zoom-enter&-zoom-enter-active {
animation-name: rcDialogZoomIn;
animation-play-state: running;
}
&-zoom-leave&-zoom-leave-active {
animation-name: rcDialogZoomOut;
animation-play-state: running;
}
@keyframes rcDialogZoomIn {
0% {
opacity: 0;
transform-origin: 50% 50%;
transform: scale(0, 0);
}
100% {
opacity: 1;
transform-origin: 50% 50%;
transform: scale(1, 1);
}
}
@keyframes rcDialogZoomOut {
0% {
opacity: 1;
transform-origin: 50% 50%;
transform: scale(1, 1);
}
100% {
opacity: 0;
transform-origin: 50% 50%;
transform: scale(0, 0);
}
}
}