toot medias: extract color from blurhash
All checks were successful
/ depoly (push) Successful in 1m17s

This commit is contained in:
thislight 2024-11-11 16:53:34 +08:00
parent c372ea4a92
commit 2aa2cf21da
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
5 changed files with 226 additions and 40 deletions

View file

@ -135,6 +135,7 @@
position: relative;
>img {
background-color: #eeeeee;
max-width: 100%;
height: auto;
}
@ -260,11 +261,8 @@
&:hover,
&:focus-visible {
/* TODO: the goal is to use the media's accent color as the outline */
/* but our infra is not prepared for this. The average color thing is slow */
/* and we need further managing to control its performance impact. */
outline: 8px solid var(--media-color-accent, var(--tutu-color-surface-d));
border-color: transparent;
border: none;
}
}
}