You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
291 lines
7.1 KiB
291 lines
7.1 KiB
.image-cropper{
|
|
background:rgba(14, 13, 13);
|
|
position: fixed;
|
|
top:0;
|
|
left:0;
|
|
width:100vw;
|
|
height:100vh;
|
|
z-index: 999;
|
|
}
|
|
.main{
|
|
position: absolute;
|
|
width:100vw;
|
|
height:100vh;
|
|
overflow: hidden;
|
|
}
|
|
.content{
|
|
z-index: 995;
|
|
position: absolute;
|
|
width:100vw;
|
|
height:100vh;
|
|
display: flex;
|
|
flex-direction:column;
|
|
pointer-events:none;
|
|
}
|
|
.bg_black{
|
|
background: rgba(0, 0, 0, 0.8)!important;
|
|
}
|
|
.bg_gray{
|
|
background: rgba(0, 0, 0, 0.45);
|
|
transition-duration: .35s;
|
|
}
|
|
.content>.content_top{
|
|
pointer-events:none;
|
|
}
|
|
.content>.content_middle{
|
|
display: flex;
|
|
height: 200px;
|
|
width:100%;
|
|
}
|
|
.content_middle_middle{
|
|
width:200px;
|
|
box-sizing:border-box;
|
|
position: relative;
|
|
transition-duration: .3s;
|
|
}
|
|
.content_middle_right{
|
|
flex: auto;
|
|
}
|
|
.content>.content_bottom{
|
|
flex: auto;
|
|
}
|
|
.image-cropper .img{
|
|
z-index: 992;
|
|
top:0;
|
|
left:0;
|
|
position: absolute;
|
|
border:none;
|
|
width:100%;
|
|
backface-visibility: hidden;
|
|
transform-origin:center;
|
|
}
|
|
.image-cropper-canvas{
|
|
position: fixed;
|
|
background: white;
|
|
width:150px;
|
|
height:150px;
|
|
z-index: 999;
|
|
top:-200%;
|
|
pointer-events:none;
|
|
}
|
|
.border{
|
|
background: white;
|
|
pointer-events:auto;
|
|
position:absolute;
|
|
}
|
|
.border-top-left{
|
|
left:-2.5px;
|
|
top:-2.5px;
|
|
height:2.5px;
|
|
width:33rpx;
|
|
}
|
|
.border-top-right{
|
|
right:-2.5px;
|
|
top:-2.5px;
|
|
height:2.5px;
|
|
width:33rpx;
|
|
}
|
|
.border-right-top{
|
|
top:-1px;
|
|
width:2.5px;
|
|
height:30rpx;
|
|
right:-2.5px;
|
|
}
|
|
.border-right-bottom{
|
|
width:2.5px;
|
|
height:30rpx;
|
|
right:-2.5px;
|
|
bottom:-1px;
|
|
}
|
|
.border-bottom-left{
|
|
height:2.5px;
|
|
width:33rpx;
|
|
bottom:-2.5px;
|
|
left:-2.5px;
|
|
}
|
|
.border-bottom-right{
|
|
height:2.5px;
|
|
width:33rpx;
|
|
bottom:-2.5px;
|
|
right:-2.5px;
|
|
}
|
|
.border-left-top{
|
|
top:-1px;
|
|
width:2.5px;
|
|
height:30rpx;
|
|
left:-2.5px;
|
|
}
|
|
.border-left-bottom{
|
|
width:2.5px;
|
|
height:30rpx;
|
|
left:-2.5px;
|
|
bottom:-1px;
|
|
}
|
|
|
|
|
|
/* 旋转 */
|
|
.image-cropper .crop-list {
|
|
width: 97.5%;
|
|
height: 200rpx;
|
|
position: absolute;
|
|
bottom: 100rpx;
|
|
padding: 10rpx;
|
|
left: 0;
|
|
right: 0;
|
|
white-space: nowrap;
|
|
display: flex;
|
|
z-index: 999;
|
|
}
|
|
|
|
.image-cropper .crop-list .crop-image{
|
|
height: 180rpx;
|
|
width: 180rpx;
|
|
margin: 6rpx;
|
|
}
|
|
.img_border{
|
|
border: 4rpx solid #008AFF;
|
|
}
|
|
.start{
|
|
justify-content:start
|
|
}
|
|
.center{
|
|
justify-content: center;
|
|
}
|
|
|
|
/* 旋转 */
|
|
.image-cropper .crop-rotate {
|
|
width: 92%;
|
|
height: 66px;
|
|
position: absolute;
|
|
bottom: 68px;
|
|
left: 0;
|
|
right: 0;
|
|
margin: auto;
|
|
overflow: hidden;
|
|
-webkit-mask-image: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.64) 50%, rgba(255, 255, 255, 0.00) 100%);
|
|
mask-image: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.64) 50%, rgba(255, 255, 255, 0.00) 100%);
|
|
}
|
|
|
|
.image-cropper .crop-rotate .current {
|
|
margin: auto;
|
|
width: 0;
|
|
height: 0;
|
|
border-left: 5px solid transparent;
|
|
border-right: 5px solid transparent;
|
|
border-bottom: 9px solid #D8D8D8;
|
|
border-radius: 1px;
|
|
}
|
|
|
|
.image-cropper .crop-rotate .lineation {
|
|
height: 50px;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
font-size: 0;
|
|
margin: 0;
|
|
padding: 0 0 8px 0;
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.image-cropper .crop-rotate .lineation>view {
|
|
flex: 1;
|
|
height: 100%;
|
|
display: inline-block;
|
|
}
|
|
|
|
.image-cropper .crop-rotate .lineation .number {
|
|
width: 100%;
|
|
height: 32px;
|
|
font-size: 16px;
|
|
line-height: 36px;
|
|
text-align: center;
|
|
font-family: DINCondensed-Bold;
|
|
overflow: hidden;
|
|
color: #fff;
|
|
}
|
|
|
|
.image-cropper .crop-rotate .lineation .bg {
|
|
width: 100%;
|
|
height: 18px;
|
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAAAkCAQAAABbaR7PAAAA3ElEQVR42u2YMQ6DMAxFfSOuVRjKWSBsyRT3nq9zFxvJpEQoGbEUvTzs6CsiFy4mdnYm6Xexoyhbz4iViqJ9IypKHRYvsDgQ+0dkZjHrK2sM0d5BhMUmEA4Os54pDuLHnmgK2SFINmJyEXPQYrEO6Us6YzGKmKMWPcTi/ujmFpN9BtdibW/xH72Y2/Ziub8XU/jSiVtMLS2qn3Tut1jbW7xiXB5gsfQ/0eGru/uJfgRi+6s7nHRGXhx5ceTFkRdHXnxUXtyoKHtbizOz89zxNqonHpLtHURYeP1++QJbckm6SmQBuQAAAABJRU5ErkJggg==);
|
|
background-size: 100% 100%;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
/* 功能按钮 */
|
|
.image-cropper .crop-btns {
|
|
position: absolute;
|
|
bottom: 16px;
|
|
width: 100%;
|
|
height: 24px;
|
|
display: flex;
|
|
z-index: 999;
|
|
}
|
|
|
|
.image-cropper .crop-btns>view {
|
|
flex: 1;
|
|
height: 100%;
|
|
background-color: transparent;
|
|
border: none;
|
|
padding: 0;
|
|
display: inline-block;
|
|
margin: auto;
|
|
position: relative;
|
|
}
|
|
|
|
.image-cropper .crop-btns>view:after {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left:0;
|
|
right:0;
|
|
margin: auto;
|
|
content: '';
|
|
display: inline-block;
|
|
}
|
|
|
|
.image-cropper .crop-close:after {
|
|
width: 18px;
|
|
height: 18px;
|
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAQAAABLCVATAAAArElEQVR42q2WWw6AIAwEuQ/eh+t4cMkajCERH7R1+ifZnSCUtikdoawUi4tTqzaVCEpFm1Z1TIsA6sC0aCjl88ON6pjmzOOCGfXo8qNeHT7Up9qOmiptKJNqLjLv+1voOsl3sftunw2hbLubYkl7N0YxA6qqhjED6g/mRNWOqWEMBoJ+DTps6PqhhISeCPRooTICFTao1ELFH2pHUIOEWrYWbohgxhpw0GJGvx1lZkUZoxUOQQAAAABJRU5ErkJggg==);
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
.image-cropper .crop-btn:after {
|
|
right: 16px;
|
|
width: 21px;
|
|
height: 15px;
|
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAeCAYAAABaKIzgAAAAgklEQVR4AezOAQaEMQwF4d4nB+p1evBlFn4KFBheyAOCjG+lDqiVPmADP+DkI+9OByTfXR2QuwtykIMc5CCB6oA89zEb+Q4EIOsdcpBC0Ec6YaHlY4WGhxWQAlZAClgBKWAFpIcVkA5WQDpYASlgBaSCjUb+h+TYACB+DMUBSFKjAAABevZOv672hAAAAABJRU5ErkJggg==);
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
.image-cropper .crop-reset:after {
|
|
width: 22px;
|
|
height: 19px;
|
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAmCAQAAAAVFrHsAAAB3klEQVR42u3XPUhVUQAH8OuzngaF1pAFVkQJElFEoPaxRELY0uAQVLS5REM0JCQYpNELiqitpoaGdKjN0cCKIFoSxOGRROJTEBoqkj6ev/B0faJpXOk9IvD8h3M4h/Pjcr7gRqKiJi0jJycTaTHq78ssnJnrKAY7B+fmOvwfcOZ3uOibV1y4kBW4hHCJTsUf4RrVS06rULVoUkngl96o0Wh8Xt6Hse4lLsj2JPAek7IaXAt5ZyzUV2P4m7NxJvQX2muTrfFuN5SF1gF5V1QURrpNidzWq1feYKh71S5389KG8NC4vfPgYVk9cZ5iVxK43quQmY3qkUe7rLfWz4NfaI9zLylc65Y+bDDgq9M4r8kPj+LX61OAc57FGUwKz+QU7vrimMoAR7pwVOS+bID7tMbpXC5crUlUgFc7E7bziQGRIXl504Q6vzz416mYhWfzXI9InQsqtYUFO+J48it9B1sWgdM+65L22oh1MfzYh6THrcO0YWPOaVLnsmZbbVOvRjP2uynvsMjFAG80qT/Jla7yUadyl0wtuLYnnDQi5YHrUiZ8N6FcpNWgTUm+uEE61Cmb7dPooEMha0R2hpGywLXZEc9Y9Y+fzRV4BS5RKSE8WhJ3tFi/CgtYLZES5Sdy/jxAWzo1BgAAAABJRU5ErkJggg==);
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
.image-cropper .crop-around:after {
|
|
width: 18px;
|
|
height: 22px;
|
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAsCAQAAACnWtJ+AAABHklEQVR42u3UsUrDQBzH8YvFrYOhvoLp0BcohA5dhIzZdexrZHMU+wrt2sG9Q9LBICg4CkV0CfQFdBP9OpikqebSS//UQfJbj3zucv/7/5WqCBaWkocBz9xIkUMu+ACQMSfckUbCjHgDIcQx12xkN+aUFYghLvmkPK8siZhwhr2d6WGSd0L8auiAK+2JfibGrX1H2oxp1a4abRyGBDxsLM052vkd0WVWoB63UQ73+vLT56Vwqpag1+iwWN+VSfc/cavdaE25Jo9UO4/o5D8YS0dNPz+TL6WyCoZSqJs3ji2lsid6rvBIjFoiwSuBgnR1qgwZgKQEGqZrkaJGSnvgO0sp1M5GnxBS+fcN9AfQL7GBGuifQaJRW4REw38P+QIQNLRX56aQYgAAAABJRU5ErkJggg==);
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
/* iphoneX */
|
|
@media only screen and (device-width : 375px) and (device-height : 812px) and (-webkit-device-pixel-ratio : 3),
|
|
(device-width : 414px) and (device-height : 896px) {
|
|
.image-cropper .crop-btns {
|
|
bottom: 43px;
|
|
}
|
|
|
|
.image-cropper .crop-rotate {
|
|
bottom: 95px;
|
|
}
|
|
}
|