DocSpace-client/packages/asc-web-common/components/Loaders/ArticleGroupsLoader/StyledArticleGroupsLoader.js

37 lines
696 B
JavaScript
Raw Normal View History

2022-02-03 15:34:19 +00:00
import styled from "styled-components";
import RectangleLoader from "../RectangleLoader";
import { tablet, mobile } from "@appserver/components/utils/device";
const StyledContainer = styled.div`
margin: 0;
max-width: 216px;
padding: 0 20px;
display: flex;
flex-direction: column;
@media ${tablet} {
2022-02-03 15:34:19 +00:00
width: ${(props) => (props.showText ? "240px" : "52px")};
padding: 0 16px;
}
@media ${mobile} {
width: 100%;
}
`;
const StyledRectangleLoader = styled(RectangleLoader)`
height: 20px;
width: 216px;
padding: 0 0 16px;
@media ${tablet} {
height: 20px;
width: 20px;
padding: 0 0 24px;
}
`;
export { StyledContainer, StyledRectangleLoader };