@zhangmmm/ming-ui
Version:
100 lines (99 loc) • 2.05 kB
CSS
.ming-image {
position: relative;
display: inline-block;
}
.ming-image-inner {
width: 100%;
height: 100%;
}
.ming-image-placeholder,
.ming-image-error {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 100%;
height: 100%;
color: #83898f;
background-color: #e6e8eb;
word-break: break-all;
}
.ming-image-preview {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100vw;
height: 100vh;
}
.ming-image-preview-mask {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background-color: #000000;
opacity: 0.5;
z-index: -1;
}
.ming-image-preview-close {
position: absolute;
right: 50px;
top: 30px;
z-index: 1;
font-size: 32px;
cursor: pointer;
}
.ming-image-preview-viewer {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 100%;
height: 100%;
}
.ming-image-preview-img {
-webkit-transition: -webkit-transform 0.3s;
transition: -webkit-transform 0.3s;
transition: transform 0.3s;
transition: transform 0.3s, -webkit-transform 0.3s;
}
.ming-image-preview-img-contain {
max-width: 100%;
max-height: 100%;
}
.ming-image-preview-img-original {
max-width: auto;
max-height: auto;
}
.ming-image-preview-actions {
position: absolute;
bottom: 30px;
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
padding: 10px 16px;
border-radius: 23px;
background-color: #565e66;
}
.ming-image-preview-actions .anticon {
font-size: 24px;
color: #ffffff;
margin: 0 10px;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}