Add spoilers back.

This commit is contained in:
Paul
2021-07-10 15:55:21 +01:00
parent ef5944b065
commit 392cb23541
3 changed files with 52 additions and 93 deletions

View File

@@ -3,6 +3,8 @@ import { Children } from "../../../../types/Preact";
const Grid = styled.div`
display: grid;
overflow: hidden;
max-width: min(var(--attachment-max-width), 100%, var(--width));
max-height: min(var(--attachment-max-height), var(--height));
aspect-ratio: var(--aspect-ratio);
@@ -19,6 +21,14 @@ const Grid = styled.div`
grid-area: 1 / 1;
}
&.spoiler {
img, video {
filter: blur(44px);
}
border-radius: var(--border-radius);
}
`;
export default Grid;