summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRayHammer <evkondratyev@yandex.ru>2022-10-24 18:44:26 +0200
committerRayHammer <evkondratyev@yandex.ru>2022-10-24 18:44:26 +0200
commitb89a40003d55b9d458f00347be882f616aa4bbec (patch)
treed94cd15eaf6c4c054e352859a444d139f631acdf
parent09a86ce1b9d33d4399ee21b13f75d08dd9d8468c (diff)
Fixed side menu to follow best practices
-rw-r--r--themes/stingray/layouts/partials/aside.html2
-rw-r--r--themes/stingray/static/css/main.css1
2 files changed, 2 insertions, 1 deletions
diff --git a/themes/stingray/layouts/partials/aside.html b/themes/stingray/layouts/partials/aside.html
index 176e9b0..7fb4aff 100644
--- a/themes/stingray/layouts/partials/aside.html
+++ b/themes/stingray/layouts/partials/aside.html
@@ -1,7 +1,7 @@
<aside id="card">
<div class="h-card text-center">
<a class="u-url u-uid" href="https://rayhammer.dev" rel="me">
- <img class="u-photo" src="/img/rayhammer.jpg">
+ <img class="u-photo" src="/img/rayhammer.jpg" alt="h-card photo">
</a>
<p>
<span class="p-nickname">RayHammer</span>
diff --git a/themes/stingray/static/css/main.css b/themes/stingray/static/css/main.css
index 76f7ef0..a374354 100644
--- a/themes/stingray/static/css/main.css
+++ b/themes/stingray/static/css/main.css
@@ -19,6 +19,7 @@
}
#card .u-photo {
+ aspect-ratio: 1;
width: 100%;
height: auto;
object-fit: contain;