@insaic/neon
Version:
A Mobile UI Components built on Vue
127 lines (125 loc) • 2.92 kB
CSS
.sq-uploader {
display: inline-block;
}
.sq-uploader-mask {
background: #000;
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 2;
overflow: hidden;
}
.sq-uploader-full-item {
display: block;
width: 100%;
height: 100%;
background-position: center center;
background-repeat: no-repeat;
background-size: contain;
-webkit-transform: translateY(-60px);
-ms-transform: translateY(-60px);
transform: translateY(-60px);
}
.sq-uploader-full-remove {
width: 100%;
height: 60px;
line-height: 60px;
text-align: center;
color: #fff;
font-size: 22px;
-webkit-transform: translateY(-60px);
-ms-transform: translateY(-60px);
transform: translateY(-60px);
}
.sq-uploader-full-remove i {
font-size: inherit;
}
.sq-uploader-files {
display: inline;
list-style: none;
}
.sq-uploader-file {
float: left;
width: 80px;
height: 80px;
display: block;
margin-top: 10px;
margin-right: 10px;
margin-bottom: 10px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
.sq-uploader-file-delete-wrap {
background-color: #e24a50;
display: inline-block;
position: absolute;
right: 0;
top: 0;
margin-top: -8px;
margin-right: -6px;
padding: 2px;
height: 20px;
border-radius: 50%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.sq-uploader-file-delete {
color: #fff;
font-size: 16px;
display: inline-block;
-webkit-transform: scale(0.8) translateY(-2px);
-ms-transform: scale(0.8) translateY(-2px);
transform: scale(0.8) translateY(-2px);
}
.sq-uploader-input-wrap {
float: left;
width: 80px;
height: 80px;
display: block;
margin-top: 10px;
margin-right: 10px;
margin-bottom: 10px;
border: 1px solid #D9D9D9;
position: relative;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.sq-uploader-input-wrap::before {
content: '';
position: absolute;
left: 20px;
right: 20px;
top: 50%;
height: 2px;
-webkit-transform: translate(0, -50%);
-ms-transform: translate(0, -50%);
transform: translate(0, -50%);
background-color: #D9D9D9;
}
.sq-uploader-input-wrap::after {
content: '';
position: absolute;
top: 20px;
bottom: 20px;
left: 50%;
width: 2px;
-webkit-transform: translate(-50%, 0);
-ms-transform: translate(-50%, 0);
transform: translate(-50%, 0);
background-color: #D9D9D9;
}
.sq-uploader-input {
position: absolute;
z-index: 1;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
}