|
@@ -11,6 +11,7 @@ Page {
|
|
|
/* 裁剪所有的背景色 */
|
|
|
--cropper-bg: #000;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info {
|
|
|
position: fixed;
|
|
|
top: 0;
|
|
@@ -19,6 +20,7 @@ Page {
|
|
|
bottom: 0;
|
|
|
background: var(--cropper-bg);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content {
|
|
|
min-height: calc(20%);
|
|
|
width: 720rpx;
|
|
@@ -34,6 +36,7 @@ Page {
|
|
|
z-index: 2;
|
|
|
bottom: 88rpx;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper {
|
|
|
position: relative;
|
|
|
overflow: visible;
|
|
@@ -45,10 +48,12 @@ Page {
|
|
|
-webkit-touch-callout: none;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content {
|
|
|
position: relative;
|
|
|
/* 内部的信息 */
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-content-bg {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
@@ -61,7 +66,8 @@ Page {
|
|
|
margin: 0 auto;
|
|
|
position: relative;
|
|
|
}
|
|
|
-.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-content-bg .mask{
|
|
|
+
|
|
|
+.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-content-bg .mask {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
@@ -69,6 +75,7 @@ Page {
|
|
|
bottom: 0;
|
|
|
background: rgba(0, 0, 0, 0.7);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
@@ -111,6 +118,7 @@ Page {
|
|
|
border-top: 1px dashed var(--primary-color-dashed);
|
|
|
border-bottom: 1px dashed var(--primary-color-dashed);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .wx-cropper-dashed-v {
|
|
|
position: absolute;
|
|
|
left: 33.33333333%;
|
|
@@ -120,6 +128,7 @@ Page {
|
|
|
border-left: 1px dashed var(--primary-color-dashed);
|
|
|
border-right: 1px dashed var(--primary-color-dashed);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .wx-cropper-line-t {
|
|
|
position: absolute;
|
|
|
display: block;
|
|
@@ -131,6 +140,7 @@ Page {
|
|
|
opacity: 0.1;
|
|
|
cursor: n-resize;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .wx-cropper-line-t::before {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
@@ -144,6 +154,7 @@ Page {
|
|
|
background: transparent;
|
|
|
z-index: 11;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .wx-cropper-line-r {
|
|
|
position: absolute;
|
|
|
display: block;
|
|
@@ -155,6 +166,7 @@ Page {
|
|
|
height: 100%;
|
|
|
cursor: e-resize;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .wx-cropper-line-r::before {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
@@ -168,6 +180,7 @@ Page {
|
|
|
background: transparent;
|
|
|
z-index: 11;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .wx-cropper-line-b {
|
|
|
position: absolute;
|
|
|
display: block;
|
|
@@ -179,6 +192,7 @@ Page {
|
|
|
opacity: 0.1;
|
|
|
cursor: s-resize;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .wx-cropper-line-b::before {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
@@ -192,6 +206,7 @@ Page {
|
|
|
background: transparent;
|
|
|
z-index: 11;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .wx-cropper-line-l {
|
|
|
position: absolute;
|
|
|
display: block;
|
|
@@ -203,6 +218,7 @@ Page {
|
|
|
height: 100%;
|
|
|
cursor: w-resize;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .wx-cropper-line-l::before {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
@@ -216,6 +232,7 @@ Page {
|
|
|
background: transparent;
|
|
|
z-index: 11;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .wx-cropper-point {
|
|
|
width: 5px;
|
|
|
height: 5px;
|
|
@@ -224,12 +241,14 @@ Page {
|
|
|
position: absolute;
|
|
|
z-index: 3;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-t {
|
|
|
top: -3px;
|
|
|
left: 50%;
|
|
|
margin-left: -3px;
|
|
|
cursor: n-resize;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-r {
|
|
|
top: 50%;
|
|
|
left: 100%;
|
|
@@ -237,6 +256,7 @@ Page {
|
|
|
margin-top: -3px;
|
|
|
cursor: n-resize;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-tr,
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-rb,
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-bl,
|
|
@@ -248,26 +268,31 @@ Page {
|
|
|
z-index: 1112;
|
|
|
opacity: 1;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-rb {
|
|
|
right: 0;
|
|
|
bottom: 0;
|
|
|
-webkit-transform: translate3d(50%, 50%, 0);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-tr {
|
|
|
right: 0;
|
|
|
top: 0;
|
|
|
-webkit-transform: translate3d(50%, -50%, 0);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-bl {
|
|
|
left: 0;
|
|
|
bottom: 0;
|
|
|
-webkit-transform: translate3d(-50%, 50%, 0);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-lt {
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
-webkit-transform: translate3d(-50%, -50%, 0);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-rb::before,
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-rb::after,
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-tr::before,
|
|
@@ -280,54 +305,63 @@ Page {
|
|
|
position: absolute;
|
|
|
background-color: var(--primary-color);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-rb::before {
|
|
|
width: 6rpx;
|
|
|
height: 30rpx;
|
|
|
right: calc(44%);
|
|
|
bottom: calc(44%);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-rb::after {
|
|
|
height: 6rpx;
|
|
|
width: 30rpx;
|
|
|
right: calc(44%);
|
|
|
bottom: calc(44%);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-tr::before {
|
|
|
width: 6rpx;
|
|
|
height: 30rpx;
|
|
|
right: calc(44%);
|
|
|
top: calc(44%);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-tr::after {
|
|
|
height: 6rpx;
|
|
|
width: 30rpx;
|
|
|
right: calc(44%);
|
|
|
top: calc(44%);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-bl::before {
|
|
|
width: 6rpx;
|
|
|
height: 30rpx;
|
|
|
left: calc(44%);
|
|
|
bottom: calc(44%);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-bl::after {
|
|
|
height: 6rpx;
|
|
|
width: 30rpx;
|
|
|
left: calc(44%);
|
|
|
bottom: calc(44%);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-lt::before {
|
|
|
width: 6rpx;
|
|
|
height: 30rpx;
|
|
|
left: calc(44%);
|
|
|
top: calc(44%);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-lt::after {
|
|
|
height: 6rpx;
|
|
|
width: 30rpx;
|
|
|
left: calc(44%);
|
|
|
top: calc(44%);
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-b {
|
|
|
left: 50%;
|
|
|
top: 100%;
|
|
@@ -335,6 +369,7 @@ Page {
|
|
|
margin-top: -3px;
|
|
|
cursor: n-resize;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-content .wx-corpper .wx-corpper-content .wx-corpper-crop-box .wx-cropper-view-box .point-l {
|
|
|
left: 0%;
|
|
|
top: 50%;
|
|
@@ -342,26 +377,45 @@ Page {
|
|
|
margin-top: -3px;
|
|
|
cursor: n-resize;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-config {
|
|
|
position: absolute;
|
|
|
- bottom: 0;
|
|
|
+ bottom: 100rpx;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
- height: 80rpx;
|
|
|
+ height: 88rpx;
|
|
|
z-index: 3;
|
|
|
- width: 100%;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- border-top: 1px solid rgba(255, 255, 255, 0.12);
|
|
|
+margin-left: 102rpx;
|
|
|
+margin-right: 102rpx;
|
|
|
}
|
|
|
+
|
|
|
.wx-content-info .cropper-config .cropper-cancle,
|
|
|
.wx-content-info .cropper-config .cropper-save {
|
|
|
color: #fff;
|
|
|
font-size: 26rpx;
|
|
|
padding: 15rpx 25px;
|
|
|
display: block;
|
|
|
+ font-weight: bold;
|
|
|
+ width: 218rpx;
|
|
|
+ border-radius: 44rpx;
|
|
|
+ text-align: center;
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+.cropper-save-color {
|
|
|
+ background: #6546A3;
|
|
|
+}
|
|
|
+
|
|
|
+.cropper-cancel-color {
|
|
|
+ margin-right: 112rpx;
|
|
|
+ background: rgba(0, 0, 0, 0.4);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/* 裁剪框预览内容 */
|
|
|
.wx-cropper-viewer {
|
|
|
position: relative;
|
|
@@ -369,7 +423,8 @@ Page {
|
|
|
height: 100%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
+
|
|
|
.wx-cropper-viewer image {
|
|
|
position: absolute;
|
|
|
z-index: 2;
|
|
|
-}
|
|
|
+}
|