From 8099bec4e5275f1fbb47092731a64be6e9e2cf51 Mon Sep 17 00:00:00 2001 From: Petter Rodhelind Date: Mon, 22 Feb 2021 00:53:06 +0100 Subject: Responsive sizes for images. --- templates.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/templates.go b/templates.go index f26a0b1..b3f9d26 100644 --- a/templates.go +++ b/templates.go @@ -55,13 +55,19 @@ const htmlRoot = ` padding-left: 1em; } img { - max-height: 200px; - max-width: 200px; + max-height: 120px; + max-width: 120px; height: auto; width: auto; border-radius: 12px; padding: 0.2em; } + @media screen and (min-width: 900px) { + img { + max-height: 250px; + max-width: 250px; + } + } -- cgit v1.2.3