DocSpace-client/packages/common/components/Loaders/ArticleGroupsLoader/StyledArticleGroupsLoader.js
2023-11-10 11:20:02 +04:00

41 lines
808 B
JavaScript

import styled, { css } from "styled-components";
import RectangleSkeleton from "@docspace/components/skeletons/rectangle";
import { tablet, mobile } from "@docspace/components/utils/device";
const StyledContainer = styled.div`
margin: 0;
max-width: 216px;
padding: 0 20px;
display: flex;
flex-direction: column;
@media ${tablet} {
width: ${(props) => (props.showText ? "240px" : "52px")};
padding: 0 16px;
box-sizing: border-box;
}
@media ${mobile} {
width: 100%;
padding: 0 16px;
box-sizing: border-box;
}
`;
const StyledRectangleLoader = styled(RectangleSkeleton)`
height: 20px;
width: 216px;
padding: 0 0 16px;
@media ${tablet} {
height: 20px;
width: 20px;
padding: 0 0 24px;
}
`;
export { StyledContainer, StyledRectangleLoader };