aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/imageZoom/styles.css
diff options
context:
space:
mode:
authorSyncx <47534062+Syncxv@users.noreply.github.com>2023-04-06 11:06:11 +1000
committerGitHub <noreply@github.com>2023-04-06 01:06:11 +0000
commitdf7357b3574bf87eba5caa41e637c73ba2158ee3 (patch)
tree94a1a56f5249bd60c60c66ffd1dc09f8ab03fa86 /src/plugins/imageZoom/styles.css
parent2e6c5eacf7d6f3ec92da14fb91302f490962cad5 (diff)
downloadVencord-df7357b3574bf87eba5caa41e637c73ba2158ee3.tar.gz
Vencord-df7357b3574bf87eba5caa41e637c73ba2158ee3.tar.bz2
Vencord-df7357b3574bf87eba5caa41e637c73ba2158ee3.zip
feat(plugin): Image Zoom (#510)
Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Co-authored-by: Ven <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/imageZoom/styles.css')
-rw-r--r--src/plugins/imageZoom/styles.css31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/plugins/imageZoom/styles.css b/src/plugins/imageZoom/styles.css
new file mode 100644
index 0000000..103ac54
--- /dev/null
+++ b/src/plugins/imageZoom/styles.css
@@ -0,0 +1,31 @@
+.lens {
+ position: absolute;
+ inset: 0;
+ z-index: 9999;
+ border: 2px solid grey;
+ border-radius: 50%;
+ overflow: hidden;
+ cursor: none;
+ box-shadow: inset 0 0 10px 2px grey;
+ filter: drop-shadow(0 0 2px grey);
+ pointer-events: none;
+}
+
+.zoom img {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+}
+
+/* make the carousel take up less space so we can click the backdrop and exit out of it */
+[class^="focusLock"] > [class^="carouselModal"] {
+ height: fit-content;
+ box-shadow: none;
+}
+
+[class^="focusLock"] > [class^="carouselModal"] > div {
+ height: fit-content;
+ top: 50%;
+ transform: translateY(-50%);
+}