From ef59ac4499e3bcac4578f363d8da0b11a67e17b1 Mon Sep 17 00:00:00 2001 From: Squibid Date: Mon, 9 Oct 2023 09:08:52 -0400 Subject: make view better + add warning color css for previous commit --- style/style.css | 22 +++++++++++++++++++--- view.php | 8 ++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/style/style.css b/style/style.css index 0002a69..d1e1e72 100644 --- a/style/style.css +++ b/style/style.css @@ -131,13 +131,25 @@ a#similar { float: left; width: 75%; height: 100%; + overflow: scroll; } #bwallpaperview img { + cursor: zoom-in; + max-width: 75%; + max-height: 78vh; + width: auto; + height: auto; display: block; - margin: auto; - max-width: 100%; - max-height: 100%; + margin: 0 auto auto auto; + inset: 0; +} + +#bwallpaperview input[type=checkbox]:checked~img { + cursor: zoom-out; + max-height: 100000000%; + max-width: 100000000%; + width: 150%; } #footer { @@ -217,3 +229,7 @@ a { a:hover { font-style: italic; } + +#error { color: var(--nsfw-color-1); } +#warn { color: var(--sketchy-color-1); } +#info { color: var(--sfw-color-1); } diff --git a/view.php b/view.php index e2e5d69..47777d0 100644 --- a/view.php +++ b/view.php @@ -55,5 +55,13 @@ if ($_GET['p'] == "nsfw" && !$apikey) printf("

Server doesn't have an apikey, cannot view image.

"); ?> +
+ +
-- cgit v1.2.1