securityos/components/apps/Paint/StyledPaint.ts

24 lines
474 B
TypeScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
import styled from "styled-components";
type StyledPaintProps = {
$loaded: boolean;
};
const StyledPaint = styled.div<StyledPaintProps>`
iframe {
opacity: ${({ $loaded }) => ($loaded ? "100%" : "0%")};
transition: opacity 0.25s ease-in;
}
.loading {
&::before {
color: #fff;
font-weight: 500;
mix-blend-mode: normal;
text-shadow: 1px 2px 3px rgba(0, 0, 0, 50%);
}
}
`;
export default StyledPaint;