@fe6/water-pro
Version:
An enterprise-class UI design language and Vue-based implementation
88 lines (87 loc) • 1.95 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/** @format */
@font-face {
font-weight: bold;
font-family: 'DINAlternate-Bold';
font-style: normal;
src: url(https://cdn.dev.mosh.cn/assets/font/din_alternate_bold.ttf) format('truetype');
}
.ant-upload-image {
display: inline-block;
vertical-align: middle;
}
.ant-upload-image .ant-upload {
display: block;
width: 100%;
height: 100%;
}
.ant-upload-image-tip {
color: rgba(0, 0, 0, 0.45);
font-size: 12px;
line-height: 18px;
}
.ant-upload-image-btn {
display: flex;
align-items: center;
justify-content: center;
width: 100px;
height: 100px;
text-align: center;
vertical-align: top;
background-color: #fff;
border: 1px dashed #d9d9d9;
border-radius: 2px;
cursor: pointer;
transition: border-color 0.3s;
}
.ant-upload-image-btn:hover {
border-color: #40a9ff;
}
.ant-upload-image-img {
cursor: pointer;
}
.ant-upload-image-img-disabled {
cursor: not-allowed;
}
.ant-upload-image-handle {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 16px;
white-space: nowrap;
text-align: center;
background: rgba(0, 0, 0, 0.6);
cursor: pointer;
opacity: 0;
transition: all 0.3s;
}
.ant-upload-image-handle:hover {
opacity: 1;
}
.ant-upload-image-handle-box {
position: relative;
box-sizing: content-box;
width: 100px;
height: 100px;
text-align: center;
vertical-align: top;
background-color: #fff;
border: 1px dashed #d9d9d9;
border-radius: 2px;
cursor: pointer;
transition: border-color 0.3s;
display: inline-block;
vertical-align: middle;
}
.ant-upload-image-handle-icon {
margin-right: 8px;
}