Fix loading card margins

This commit is contained in:
Brian Lovin 2019-01-13 12:18:28 -08:00
parent 357a1043f8
commit 1040e25f76

View file

@ -4,71 +4,73 @@ import { ShimmerInboxThread, ShimmerBase, ShimmerLine, Cover } from './style';
import Card from '../Card';
const LoadingChecklistItem = () => (
<Card>
<ShimmerInboxThread>
<ShimmerBase>
<ShimmerLine />
<Cover
style={{
top: '0',
left: '40px',
height: '40px',
width: '16px',
}}
/>
<Cover
style={{
top: '0',
left: '50%',
height: '40px',
width: '50%',
}}
/>
<div style={{ marginTop: '24px' }}>
<Card>
<ShimmerInboxThread>
<ShimmerBase>
<ShimmerLine />
<Cover
style={{
top: '0',
left: '40px',
height: '40px',
width: '16px',
}}
/>
<Cover
style={{
top: '0',
left: '50%',
height: '40px',
width: '50%',
}}
/>
<Cover
style={{
top: '20px',
left: '40px',
height: '8px',
width: '50%',
}}
/>
<Cover
style={{
top: '20px',
left: '40px',
height: '8px',
width: '50%',
}}
/>
<Cover
style={{
top: '40px',
left: '0',
height: '16px',
width: '100%',
}}
/>
<Cover
style={{
top: '40px',
left: '0',
height: '100%',
width: '48px',
}}
/>
<Cover
style={{
top: '72px',
left: '48px',
height: '8px',
width: '100%',
}}
/>
<Cover
style={{
top: '72px',
left: '35%',
height: '24px',
width: '100%',
}}
/>
</ShimmerBase>
</ShimmerInboxThread>
</Card>
<Cover
style={{
top: '40px',
left: '0',
height: '16px',
width: '100%',
}}
/>
<Cover
style={{
top: '40px',
left: '0',
height: '100%',
width: '48px',
}}
/>
<Cover
style={{
top: '72px',
left: '48px',
height: '8px',
width: '100%',
}}
/>
<Cover
style={{
top: '72px',
left: '35%',
height: '24px',
width: '100%',
}}
/>
</ShimmerBase>
</ShimmerInboxThread>
</Card>
</div>
);
export default LoadingChecklistItem;