Components: Loaders: SectionHeader: fix style
This commit is contained in:
parent
a70e2339d9
commit
adf7362477
@ -25,20 +25,8 @@ const SectionHeaderLoader = ({ id, className, style, ...rest }) => {
|
||||
<StyledBox1>
|
||||
<RectangleLoader
|
||||
title={title}
|
||||
width="17"
|
||||
height="17"
|
||||
borderRadius={borderRadius}
|
||||
backgroundColor={backgroundColor}
|
||||
foregroundColor={foregroundColor}
|
||||
backgroundOpacity={backgroundOpacity}
|
||||
foregroundOpacity={foregroundOpacity}
|
||||
speed={speed}
|
||||
animate={animate}
|
||||
/>
|
||||
<RectangleLoader
|
||||
title={title}
|
||||
width="67"
|
||||
height="17"
|
||||
width="100%"
|
||||
height="100%"
|
||||
borderRadius={borderRadius}
|
||||
backgroundColor={backgroundColor}
|
||||
foregroundColor={foregroundColor}
|
||||
@ -62,18 +50,6 @@ const SectionHeaderLoader = ({ id, className, style, ...rest }) => {
|
||||
speed={speed}
|
||||
animate={animate}
|
||||
/>
|
||||
<RectangleLoader
|
||||
title={title}
|
||||
width="17"
|
||||
height="17"
|
||||
borderRadius={borderRadius}
|
||||
backgroundColor={backgroundColor}
|
||||
foregroundColor={foregroundColor}
|
||||
backgroundOpacity={backgroundOpacity}
|
||||
foregroundOpacity={foregroundOpacity}
|
||||
speed={speed}
|
||||
animate={animate}
|
||||
/>
|
||||
</StyledBox2>
|
||||
</StyledContainer>
|
||||
);
|
||||
|
@ -5,31 +5,45 @@ import { tablet, mobile } from "@docspace/components/utils/device";
|
||||
const StyledContainer = styled.div`
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 100px 0fr 42px;
|
||||
grid-template-columns: 140px 0fr 17px;
|
||||
grid-template-rows: 1fr;
|
||||
grid-column-gap: 16px;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 18px;
|
||||
grid-column-gap: 8px;
|
||||
margin-top: 22px;
|
||||
margin-bottom: 23px;
|
||||
align-items: center;
|
||||
|
||||
@media ${mobile}, ${tablet} {
|
||||
margin-top: 23px;
|
||||
grid-template-columns: 100px 1fr 42px;
|
||||
@media ${tablet} {
|
||||
margin-top: 16px;
|
||||
margin-bottom: 25px;
|
||||
grid-template-columns: 163px 1fr 17px;
|
||||
}
|
||||
|
||||
@media ${mobile} {
|
||||
margin-top: 14px;
|
||||
margin-bottom: 23px;
|
||||
grid-template-columns: 140px 1fr 17px;
|
||||
}
|
||||
`;
|
||||
|
||||
const StyledBox1 = styled.div`
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 17px 67px;
|
||||
grid-template-rows: 1fr;
|
||||
grid-column-gap: 16px;
|
||||
width: 140px;
|
||||
height: 24px;
|
||||
|
||||
@media ${tablet} {
|
||||
width: 163px;
|
||||
height: 28px;
|
||||
}
|
||||
|
||||
@media ${mobile} {
|
||||
width: 140px;
|
||||
height: 24px;
|
||||
}
|
||||
`;
|
||||
|
||||
const StyledBox2 = styled.div`
|
||||
display: grid;
|
||||
grid-template-columns: 17px 17px;
|
||||
grid-template-rows: 1fr;
|
||||
grid-column-gap: 8px;
|
||||
`;
|
||||
|
||||
const StyledSpacer = styled.div``;
|
||||
|
Loading…
Reference in New Issue
Block a user