daedalOS/components/system/Files/Views/Icon/StyledFileManager.ts

25 lines
738 B
TypeScript

import StyledWindow from "components/system/Window/StyledWindow";
import styled from "styled-components";
const StyledFileManager = styled.ol`
display: grid;
grid-auto-flow: column;
grid-template-columns: ${({ theme }) =>
`repeat(auto-fill, ${theme.sizes.fileManager.gridEntryWidth})`};
grid-template-rows: ${({ theme }) =>
`repeat(auto-fill, ${theme.sizes.fileManager.gridEntryHeight})`};
height: ${({ theme }) => `calc(100% - ${theme.sizes.taskbar.height})`};
padding: ${({ theme }) => theme.sizes.fileManager.padding};
row-gap: ${({ theme }) => theme.sizes.fileManager.rowGap};
main > & {
padding-bottom: 20px;
}
${StyledWindow} & {
grid-auto-flow: row;
}
`;
export default StyledFileManager;