style: orange border for avatar when hover
This commit is contained in:
parent
3ea37fb1f6
commit
1adebc9240
2 changed files with 10 additions and 1 deletions
|
@ -153,9 +153,12 @@
|
||||||
repostsAvatars.className = "avatar-block";
|
repostsAvatars.className = "avatar-block";
|
||||||
reposts.forEach((repost) => {
|
reposts.forEach((repost) => {
|
||||||
const image = document.createElement("img");
|
const image = document.createElement("img");
|
||||||
|
const link = document.createElement("a");
|
||||||
|
link.href = repost.author.url;
|
||||||
image.src = repost.author.photo;
|
image.src = repost.author.photo;
|
||||||
image.alt = `Avatar for ${repost.author.name}`;
|
image.alt = `Avatar for ${repost.author.name}`;
|
||||||
repostsAvatars.append(image);
|
link.append(image);
|
||||||
|
repostsAvatars.append(link);
|
||||||
});
|
});
|
||||||
repostsWrapper.append(repostsAvatars);
|
repostsWrapper.append(repostsAvatars);
|
||||||
|
|
||||||
|
|
|
@ -459,6 +459,12 @@ table.image caption {
|
||||||
border-left: 3px solid rgba(34, 34, 34, 0.15);
|
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,
|
.reply-photo,
|
||||||
.avatar-block img {
|
.avatar-block img {
|
||||||
width: 3em;
|
width: 3em;
|
||||||
|
|
Loading…
Reference in a new issue