Fix focus style not working for news' images

This commit is contained in:
Lim Chee Aun 2023-10-27 00:01:32 +08:00
parent b6d8c46e2c
commit 0678366566

View file

@ -108,10 +108,6 @@
); );
transition: background-position-y 0.15s ease-out; transition: background-position-y 0.15s ease-out;
&:is(:hover, :focus-visible) {
background-position-y: -40px;
}
figure { figure {
flex-grow: 1; flex-grow: 1;
margin: 0 0 -16px; margin: 0 0 -16px;
@ -148,6 +144,10 @@
} }
} }
&:is(:hover, :focus-visible) article {
background-position-y: -40px;
}
.article-body { .article-body {
padding: 0 8px 8px; padding: 0 8px 8px;
line-height: 1.3; line-height: 1.3;