DocSpace-client/packages/shared/skeletons/table/Table.styled.ts

61 lines
1.1 KiB
TypeScript

import styled from "styled-components";
import { desktop } from "../../utils/device";
const StyledRow = styled.div<{ gap?: string }>`
width: 100%;
display: grid;
grid-template-columns: 22px 1fr 16px;
grid-template-rows: 1fr;
grid-column-gap: ${(props) => props.gap || "8px"};
margin-bottom: 22px;
justify-items: center;
align-items: center;
`;
const StyledBox1 = styled.div`
.rectangle-content {
width: 32px;
height: 32px;
}
@media ${desktop} {
.rectangle-content {
width: 22px;
height: 22px;
}
}
`;
const StyledBox2 = styled.div`
width: 100%;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 16px;
grid-row-gap: 4px;
justify-items: ${({ theme }) =>
theme.interfaceDirection === "rtl" ? `right` : `left`};
align-items: left;
.first-row-content__mobile {
width: 80%;
}
@media ${desktop} {
grid-template-rows: 16px;
grid-row-gap: 0;
.first-row-content__mobile {
width: 100%;
}
.second-row-content__mobile {
width: 100%;
display: none;
}
}
`;
export { StyledRow, StyledBox1, StyledBox2 };