diff options
author | Petter Rodhelind <petter.rodhelind@gmail.com> | 2021-02-22 00:53:06 +0100 |
---|---|---|
committer | Petter Rodhelind <petter.rodhelind@gmail.com> | 2021-02-22 00:53:06 +0100 |
commit | 8099bec4e5275f1fbb47092731a64be6e9e2cf51 (patch) | |
tree | ee5ec5ec05bdb20b44d1393738960a048248a513 | |
parent | cdf46c006778bde5281e2cd6f63f940308134b60 (diff) | |
download | fbfeed-8099bec4e5275f1fbb47092731a64be6e9e2cf51.tar.gz fbfeed-8099bec4e5275f1fbb47092731a64be6e9e2cf51.tar.bz2 fbfeed-8099bec4e5275f1fbb47092731a64be6e9e2cf51.zip |
Responsive sizes for images.
-rw-r--r-- | templates.go | 10 |
1 files 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; + } + } </style> </head> <body> |