toot medias: extract color from blurhash
All checks were successful
/ depoly (push) Successful in 1m17s
All checks were successful
/ depoly (push) Successful in 1m17s
This commit is contained in:
parent
c372ea4a92
commit
2aa2cf21da
5 changed files with 226 additions and 40 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue