aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2021-02-22 00:53:06 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2021-02-22 00:53:06 +0100
commit8099bec4e5275f1fbb47092731a64be6e9e2cf51 (patch)
treeee5ec5ec05bdb20b44d1393738960a048248a513
parentcdf46c006778bde5281e2cd6f63f940308134b60 (diff)
downloadfbfeed-8099bec4e5275f1fbb47092731a64be6e9e2cf51.tar.gz
fbfeed-8099bec4e5275f1fbb47092731a64be6e9e2cf51.tar.bz2
fbfeed-8099bec4e5275f1fbb47092731a64be6e9e2cf51.zip
Responsive sizes for images.
-rw-r--r--templates.go10
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>