Active style when click on media

This commit is contained in:
Lim Chee Aun 2023-01-09 23:44:02 +08:00
parent 7f5214c8c6
commit a1401e0b69
2 changed files with 4 additions and 1 deletions

View file

@ -364,7 +364,7 @@ a.mention span {
background-color: var(--link-bg-hover-color);
outline-offset: -2px;
}
.status-link:active {
.status-link:active:not(:has(.media:active)) {
filter: brightness(0.95);
}

View file

@ -361,6 +361,9 @@
.status .media:is(:hover, :focus) {
border-color: var(--outline-hover-color);
}
.status .media:active {
filter: brightness(0.8);
}
.status .media :is(img, video) {
width: 100%;
height: 100%;