Skip to content

Commit

Permalink
remove unscoped img border & add border hover transition
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDTR committed Oct 21, 2024
1 parent 1083ca7 commit 30ce36e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/layouts/Blog.astro
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,6 @@ const imgLink = `${Astro.site.origin}/og${Astro.url.pathname.replace(/\/$/, "")}
left-margin: 20px;
}

img,
video {
border: 1px solid #f0e7d8;
padding: 5px;
}

.tags a {
text-decoration: none;
}
Expand Down
7 changes: 6 additions & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,13 @@ code {

.actual-content img,
.actual-content video {
border: 1px solid #f0e7d8;
border: 1px solid #cfbe9b;
padding: 5px;
transition: border 0.2s;
}

.actual-content img:hover {
border: 1px solid #f1e9d8;
}

*, *::before, *::after {
Expand Down

0 comments on commit 30ce36e

Please sign in to comment.