Skip to content

Commit e883e2f

Browse files
alyssarosenzweigmarcan
authored andcommitted
css: don't trans the opacity of images
this messes with the image itself and is probably unintentional since linked images is a very Alyssa thing anyway. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
1 parent 80a859d commit e883e2f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

static/css/main.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,14 @@ a:hover {
524524
transition: opacity 0.5s;
525525
}
526526

527+
/* The above rule makes sense for linked text but not for linked images.
528+
*
529+
* We shouldn't change the opacity of an image, since that would distort its content.
530+
*/
531+
.post a:hover:has(> img) {
532+
opacity: 1.0;
533+
}
534+
527535
a.stealth:hover {
528536
opacity: 1.0;
529537
cursor: default;

0 commit comments

Comments
 (0)