summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2024-04-14 15:59:10 -0400
committerJune McEnroe <june@causal.agency>2024-04-14 15:59:10 -0400
commitb8f32f1551bbd21a0748a5f580c899097860e5d3 (patch)
treed20c048455e72f03ae160729383755551698a9c7
parentAdd rsync script (diff)
downloadsrc-b8f32f1551bbd21a0748a5f580c899097860e5d3.tar.gz
src-b8f32f1551bbd21a0748a5f580c899097860e5d3.zip
Add meta viewport, some padding for the anchors
-rw-r--r--generate.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/generate.sh b/generate.sh
index 5e26638b..e337aada 100644
--- a/generate.sh
+++ b/generate.sh
@@ -44,10 +44,11 @@ page_head() {
 	cat <<-EOF
 	<!DOCTYPE html>
 	<meta charset="utf-8">
+	<meta name="viewport" content="width=device-width, initial-scale=1.0">
 	<title>${title}</title>
 	<style>
 	html { color: #bbb; background-color: black; font-family: sans-serif; }
-	figure { margin: 1em; text-align: center; }
+	figure { margin: 1em; padding-top: 0.5em; text-align: center; }
 	img { max-width: calc(100vw - 2.5em); max-height: calc(100vh - 2.5em); }
 	details { max-width: 78ch; margin: 0.5em auto; }
 	</style>
@@ -104,6 +105,7 @@ index_head() {
 	cat <<-EOF
 	<!DOCTYPE html>
 	<meta charset="utf-8">
+	<meta name="viewport" content="width=device-width, initial-scale=1.0">
 	<title>Photos</title>
 	<style>
 	html { color: #bbb; background-color: black; font-family: sans-serif; }