commit a5c6722dbb9d254486ffe341b3e62c6bdb778bbd
parent 16394733c5dfce9a269df4f12d98f9c349a5bdec
Author: David Eisinger <[email protected]>
Date: Tue, 10 Oct 2023 14:17:31 -0400
Mobile CSS fixes
Diffstat:
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/themes/v2/assets/css/style.scss b/themes/v2/assets/css/style.scss
@@ -7,6 +7,12 @@ body {
color: #333;
}
+@media only screen and (max-width: 600px) {
+ body {
+ padding: 10px;
+ }
+}
+
h1, h2, h3 {
font-size: 1em;
margin: 1em 0;
diff --git a/themes/v2/layouts/partials/head.html b/themes/v2/layouts/partials/head.html
@@ -3,4 +3,5 @@
<title>{{ .Site.Title }}</title>
{{ $css := resources.Get "css/style.scss" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>