style: orange border for avatar when hover

This commit is contained in:
Ayo 2023-05-30 22:00:35 +02:00
parent 3ea37fb1f6
commit 1adebc9240
2 changed files with 10 additions and 1 deletions

View file

@ -153,9 +153,12 @@
repostsAvatars.className = "avatar-block";
reposts.forEach((repost) => {
const image = document.createElement("img");
const link = document.createElement("a");
link.href = repost.author.url;
image.src = repost.author.photo;
image.alt = `Avatar for ${repost.author.name}`;
repostsAvatars.append(image);
link.append(image);
repostsAvatars.append(link);
});
repostsWrapper.append(repostsAvatars);

View file

@ -459,6 +459,12 @@ table.image caption {
border-left: 3px solid rgba(34, 34, 34, 0.15);
}
.reply-photo:hover,
.avatar-block img:hover {
berder-width: 5px;
border-color: #bb4a03;
}
.reply-photo,
.avatar-block img {
width: 3em;