diff --git a/kahuna/public/js/crop/controller.js b/kahuna/public/js/crop/controller.js
index dbdde377a8..23f9169c5d 100644
--- a/kahuna/public/js/crop/controller.js
+++ b/kahuna/public/js/crop/controller.js
@@ -177,6 +177,11 @@ crop.controller('ImageCropCtrl', [
}
};
+ ctrl.gutterTransparency = 0.8;
+ ctrl.changeGutterTransparency = (newOpacity) => {
+ ctrl.gutterTransparency = newOpacity;
+ };
+
$scope.$watch('ctrl.cropType', (newCropType, oldCropType) => {
const isCropTypeDisabled = ctrl.cropOptions.find(_ => _.key === newCropType).disabled;
diff --git a/kahuna/public/js/crop/view.html b/kahuna/public/js/crop/view.html
index 5a98a5d46f..46c733257f 100644
--- a/kahuna/public/js/crop/view.html
+++ b/kahuna/public/js/crop/view.html
@@ -104,8 +104,21 @@
+
+
diff --git a/kahuna/public/js/directives/ui-crop-box/cropper-override.css b/kahuna/public/js/directives/ui-crop-box/cropper-override.css
index 8624cf533b..8247b7aaa5 100644
--- a/kahuna/public/js/directives/ui-crop-box/cropper-override.css
+++ b/kahuna/public/js/directives/ui-crop-box/cropper-override.css
@@ -41,7 +41,9 @@
background-position: 0 0, 10px 0, 10px -10px, 0px 10px;
}
-
+:root {
+ --crop-gutter-opacity: 0.8; /* default, overriden in crop/view.html based on slider */
+}
/* GUTTERS to show what will be clipped if the 5:3 crop is used in 5:4 space */
.easel.vertical-warning-gutters .cropper-view-box::before,
@@ -54,6 +56,7 @@
top: 0;
bottom: 0;
mix-blend-mode: difference;
+ opacity: var(--crop-gutter-opacity);
}
.easel.vertical-warning-gutters .cropper-view-box::before { /* left gutter */
left: 0;
@@ -64,5 +67,5 @@
background: repeating-linear-gradient(45deg, transparent, white 1px, transparent 3px, transparent 6px);
}
.easel.vertical-warning-gutters .easel__canvas {
- height: calc(100vh - 115px);
+ height: calc(100vh - 135px);
}