diff options
author | Joe Hutchinson <hutch7995@gmail.com> | 2021-02-03 07:19:47 +0300 |
---|---|---|
committer | Joe Hutchinson <hutch7995@gmail.com> | 2021-02-03 07:19:47 +0300 |
commit | 83846edbadad1c8bb4d10e2d5c806192c444592a (patch) | |
tree | 0029f4f5b82010bb65328c3b9382daa6d72f4f74 | |
parent | ecc2482582119a6a9f9f142702121ef10f448c8f (diff) |
Change homeblob color, smallimg retina fix, and smaller footer icons
-rw-r--r-- | assets/css/style.css | 3 | ||||
-rw-r--r-- | layouts/shortcodes/smallimg.html | 10 | ||||
-rw-r--r-- | static/img/home-blob-flip.svg | 8 | ||||
-rw-r--r-- | 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 @@ <source srcset="{{ replace (.Get "src") (path.Ext (.Get "src")) ".webp" | absURL }}" type="image/webp">
{{- 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")) }}
<source srcset="{{ $resized.Permalink }}">
<img src="{{ $resized.Permalink }}" class="small-img {{ if isset .Params "smartfloat" -}}
{{- if eq .Params.smartfloat "left" -}}
diff --git a/static/img/home-blob-flip.svg b/static/img/home-blob-flip.svg index f066296..38a1b3b 100644 --- a/static/img/home-blob-flip.svg +++ b/static/img/home-blob-flip.svg @@ -7,7 +7,7 @@ <feComposite operator="in" in2="blur"/> <feComposite in="SourceGraphic"/> </filter> - <filter id="Path_6" x="61.201" y="85.157" width="864.12" height="505.297" filterUnits="userSpaceOnUse"> + <filter id="Path_6" x="61.206" y="85.162" width="864.119" height="505.298" filterUnits="userSpaceOnUse"> <feOffset dy="5" input="SourceAlpha"/> <feGaussianBlur stdDeviation="7.5" result="blur-2"/> <feFlood flood-opacity="0.251"/> @@ -16,12 +16,12 @@ </filter> </defs> <g id="cool-background" transform="translate(22.5 17.5)"> - <path id="Path_1" data-name="Path 1" d="M727.865,81.108q-27.1-60.347,10.248-75.669C775.461-9.884,864.267-16.013,901.388-49.251s150.3-7.543,169.659,49.5,54.209,144.974-129.57,144.974q-183.78,0-213.612-64.118Z" transform="translate(-481.865 376.242)" fill="#fffa72"/> + <path id="Path_1" data-name="Path 1" d="M727.865,81.107q-27.1-60.347,10.248-75.669C775.461-9.884,864.267-16.013,901.388-49.251s150.3-7.543,169.659,49.5,54.209,144.976-129.569,144.976q-183.778,0-213.612-64.118Z" transform="translate(-481.867 376.245)" fill="#fffa72"/> <g transform="matrix(1, 0, 0, 1, -22.5, -17.5)" filter="url(#Path_3)"> - <path id="Path_3-2" data-name="Path 3" d="M343.971,269.935q8.609-159.92,128-200.524c119.392-40.6,362.9-56.846,505.563-144.927S1385.888-95.5,1361.159,55.669s-49.551,384.18-536.564,384.18q-487.018,0-480.622-169.914Z" transform="translate(-321.39 132.1)" fill="#2a2a84"/> + <path id="Path_3-2" data-name="Path 3" d="M343.971,269.935q8.609-159.92,128-200.524c119.392-40.6,362.9-56.846,505.563-144.927S1385.887-95.5,1361.158,55.67s-49.551,384.18-536.564,384.18q-487.018,0-480.622-169.914Z" transform="translate(-321.39 132.1)" fill="#233665"/> </g> <g transform="matrix(1, 0, 0, 1, -22.5, -17.5)" filter="url(#Path_6)"> - <path id="Path_6-2" data-name="Path 6" d="M442.65,218.437Q429.712,85.673,523.73,51.964C617.749,18.255,817.863,4.771,925.24-68.353S1261.74-84.947,1260.2,40.555,1267.311,359.5,863,359.5q-404.317,0-420.347-141.06Z" transform="translate(-357.38 203.46)" fill="#6fc97d"/> + <path id="Path_6-2" data-name="Path 6" d="M442.65,218.438Q429.712,85.674,523.73,51.965C617.749,18.256,817.863,4.772,925.24-68.352S1261.74-84.946,1260.2,40.556,1267.311,359.5,863,359.5q-404.317,0-420.347-141.06Z" transform="translate(-357.38 203.46)" fill="#8bd8bd"/> </g> </g> </svg> 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 @@ <g id="cool-background" transform="translate(-309.407 133.702)"> <path id="Path_1" data-name="Path 1" d="M727.865.118q-27.1,60.347,10.248,75.669c37.348,15.322,126.154,21.451,163.275,54.689s150.3,7.543,169.659-49.5S1125.256-64,941.478-64Q757.7-64,727.866.118Z" transform="translate(-149.958 -19.221)" fill="#fffa72"/> <g transform="matrix(1, 0, 0, 1, 309.41, -133.7)" filter="url(#Path_3)"> - <path id="Path_3-2" data-name="Path 3" d="M343.971,55.314q8.609,159.92,128,200.524c119.392,40.6,362.9,56.846,505.563,144.927s408.353,19.988,383.624-131.185S1311.607-114.6,824.594-114.6q-487.018,0-480.622,169.914Z" transform="translate(-321.39 132.1)" fill="#2a2a84"/> + <path id="Path_3-2" data-name="Path 3" d="M343.971,55.314q8.609,159.92,128,200.524c119.392,40.6,362.9,56.846,505.563,144.927s408.353,19.988,383.624-131.185S1311.607-114.6,824.594-114.6q-487.018,0-480.622,169.914Z" transform="translate(-321.39 132.1)" fill="#233665"/> </g> <g transform="matrix(1, 0, 0, 1, 309.41, -133.7)" filter="url(#Path_6)"> - <path id="Path_6-2" data-name="Path 6" d="M442.65,40.26q-12.938,132.764,81.08,166.473c94.019,33.709,294.133,47.193,401.51,120.317s336.5,16.594,334.956-108.908S1267.311-100.8,863-100.8q-404.317,0-420.347,141.06Z" transform="translate(-357.38 127.29)" fill="#6fc97d"/> + <path id="Path_6-2" data-name="Path 6" d="M442.65,40.26q-12.938,132.764,81.08,166.473c94.019,33.709,294.133,47.193,401.51,120.317s336.5,16.594,334.956-108.908S1267.311-100.8,863-100.8q-404.317,0-420.347,141.06Z" transform="translate(-357.38 127.29)" fill="#8BD8BD"/> </g> </g> </svg> |