From 83846edbadad1c8bb4d10e2d5c806192c444592a Mon Sep 17 00:00:00 2001 From: Joe Hutchinson Date: Tue, 2 Feb 2021 23:19:47 -0500 Subject: [PATCH] Change homeblob color, smallimg retina fix, and smaller footer icons --- assets/css/style.css | 3 +-- layouts/shortcodes/smallimg.html | 10 +++++----- static/img/home-blob-flip.svg | 8 ++++---- static/img/home-blob.svg | 4 ++-- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 5f5c55c..4b25c4a 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -23,7 +23,6 @@ p { display: flex; flex-direction: column; z-index: -1; - color: white; background-position: center; background-size: cover; } @@ -455,7 +454,7 @@ footer { margin: 1rem 0; } .footer-icon { - max-width: 3.2rem; + max-width: 3rem; margin: 0; } @media screen and (pointer: coarse) { diff --git a/layouts/shortcodes/smallimg.html b/layouts/shortcodes/smallimg.html index dd75690..b0be56a 100644 --- a/layouts/shortcodes/smallimg.html +++ b/layouts/shortcodes/smallimg.html @@ -3,12 +3,12 @@ {{- end }} {{ $image := $.Page.Resources.GetMatch (.Get "src") }} - {{ if or (gt $image.Width 800) (and (isset .Params "width") (gt $image.Width (.Get "width"))) -}} - {{ $.Scratch.Set "imgwidth" "800" }} - {{ if and (isset .Params "width") (lt (.Get "width") 800) -}} - {{ $.Scratch.Set "imgwidth" (trim (.Get "width") "px") }} + {{ if or (gt $image.Width 1600) (and (isset .Params "width") (gt $image.Width (.Get "width"))) -}} + {{ $.Scratch.Set "imgwidth" "1600" }} + {{ if and (isset .Params "width") (lt (.Get "width") 1600) -}} + {{ $.Scratch.Set "imgwidth" (mul (int (trim (.Get "width") "px")) 2) }} {{- end }} - {{ $resized := $image.Resize (printf "%sx Lanczos" ($.Scratch.Get "imgwidth")) }} + {{ $resized := $image.Resize (printf "%dx Lanczos" ($.Scratch.Get "imgwidth")) }} - + @@ -16,12 +16,12 @@ - + - + - + diff --git a/static/img/home-blob.svg b/static/img/home-blob.svg index f6d83eb..d697df8 100644 --- a/static/img/home-blob.svg +++ b/static/img/home-blob.svg @@ -18,10 +18,10 @@ - + - +