aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-10-15 17:32:14 +0200
committerOscar Najera <hi@oscarnajera.com>2023-10-15 17:32:14 +0200
commita909a44cc4477b30dec8c5889d9c4d4e153058a0 (patch)
tree6fe4a04403dbeb199c760aef4de8719007ae573e
parent6fbfa9f0f71f5fe17ed3999322badacf54d7cbbf (diff)
downloadhugo-minimalist-theme-a909a44cc4477b30dec8c5889d9c4d4e153058a0.tar.gz
hugo-minimalist-theme-a909a44cc4477b30dec8c5889d9c4d4e153058a0.tar.bz2
hugo-minimalist-theme-a909a44cc4477b30dec8c5889d9c4d4e153058a0.zip
Image thumbnail to 20rem
-rw-r--r--assets/scss/style.scss9
-rw-r--r--layouts/partials/post.html2
2 files changed, 10 insertions, 1 deletions
diff --git a/assets/scss/style.scss b/assets/scss/style.scss
index da1db94..e4c8ad0 100644
--- a/assets/scss/style.scss
+++ b/assets/scss/style.scss
@@ -136,6 +136,15 @@
color: #fff !important;
background-color: #79c753 !important;
}
+// Extra sizes
+.mw-20 {
+ max-width: 20rem;
+}
+@media screen and (min-width: 30em) {
+ .mw-20-ns {
+ max-width: 20rem;
+ }
+}
// HERO
#hero {
text-shadow: 2px 2px 3px black;
diff --git a/layouts/partials/post.html b/layouts/partials/post.html
index fe24ad9..08583cb 100644
--- a/layouts/partials/post.html
+++ b/layouts/partials/post.html
@@ -17,7 +17,7 @@
{{ else }}
{{ $image.RelPermalink }}
{{ end }}"
- class="mw5-ns db center"
+ class="mw-20-ns db center"
/>
</div>
{{ end }}