From b767c7d23d031c58c594570d55933e40065495ae Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 26 Jun 2021 20:03:40 +0800 Subject: ... --- FrontEnd/src/views/common/ImageCropper.css | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 FrontEnd/src/views/common/ImageCropper.css (limited to 'FrontEnd/src/views/common/ImageCropper.css') diff --git a/FrontEnd/src/views/common/ImageCropper.css b/FrontEnd/src/views/common/ImageCropper.css new file mode 100644 index 00000000..2c4d0a8c --- /dev/null +++ b/FrontEnd/src/views/common/ImageCropper.css @@ -0,0 +1,38 @@ +.image-cropper-container { + position: relative; + box-sizing: border-box; + user-select: none; +} + +.image-cropper-container img { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; +} + +.image-cropper-mask-container { + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + overflow: hidden; +} + +.image-cropper-mask { + position: absolute; + box-shadow: 0 0 0 10000px rgba(255, 255, 255, 0.8); + touch-action: none; +} + +.image-cropper-handler { + position: absolute; + width: 26px; + height: 26px; + border: black solid 2px; + border-radius: 50%; + background: white; + touch-action: none; +} -- cgit v1.2.3