Summary Files Commits Branches @commit @diff @stats
path: root / src / styles.css
diff options
context:
space:
mode:
Commitbc5188fc21a825f4849139cd9888b0476fd34a99 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-02-20 13:09:15 +0200
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-02-20 13:09:15 +0200
Files067f96fc807cab3269d54fa4874ba79292912e3b /src/styles.css
syndamia.com-bc5188fc21a825f4849139cd9888b0476fd34a99.tar
syndamia.com-bc5188fc21a825f4849139cd9888b0476fd34a99.tar.gz
syndamia.com-bc5188fc21a825f4849139cd9888b0476fd34a99.zip
Parentd00c9b47607d57512ebe90ce0ce98bdb3834dd9c (diff)
Implemented click to zoom on images
1 files changed, 19 insertions, 4 deletions
-rw-r--r--src/styles.css23
diff --git a/src/styles.css b/src/styles.css
index 5ecf230..abe7006 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -58,10 +58,6 @@ img {
image-rendering: crisp-edges;
}
-img:hover {
- image-rendering: pixelated;
-}
-
img, hr {
border: 1px solid black;
}
@@ -360,6 +356,25 @@ code span {
color: #afaf00;
}
+/* Script specific styling */
+
+.clicked-image {
+ position: absolute;
+ width: 100vw;
+ height: 100vh;
+ max-width: none !important;
+ max-height: none !important;
+ border: none;
+ object-fit: contain;
+ left: 0;
+ top: 0;
+ padding: 1em;
+}
+
+.body-on-clicked-image {
+ overflow: hidden;
+}
+
/* OpenSans font */
@font-face {