From bc5188fc21a825f4849139cd9888b0476fd34a99 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 20 Feb 2022 13:09:15 +0200 Subject: Implemented click to zoom on images --- src/styles.css | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'src/styles.css') 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 { -- cgit v1.3.1-26-gb76a