securityos/components/apps/PDF/StyledPDF.ts

26 lines
562 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import styled from "styled-components";
import ScrollBars from "styles/common/ScrollBars";
import { DEFAULT_SCROLLBAR_WIDTH } from "utils/constants";
const StyledPDF = styled.div`
${ScrollBars(DEFAULT_SCROLLBAR_WIDTH)};
display: block;
overflow: auto;
position: relative;
text-align: center;
top: 40px;
&& {
height: ${({ theme }) =>
`calc(100% - ${theme.sizes.titleBar.height}px - 40px)`};
}
canvas {
box-shadow: 0 0 5px hsla(0, 0%, 10%, 50%);
margin: 4px 4px 0;
}
`;
export default StyledPDF;