1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-06-02 09:35:06 +07:00
verdaccio-ui/src/components/Layout/Layout.tsx
2019-08-08 22:03:54 +01:00

29 lines
567 B
TypeScript

import styled, { css } from 'react-emotion';
import colors from '../../utils/styles/colors';
export const Content = styled('div')({
'&&': {
backgroundColor: colors.white,
flex: 1,
display: 'flex',
position: 'relative',
flexDirection: 'column',
},
});
export const Container = styled('div')`
&& {
display: flex;
flex-direction: column;
min-height: 100vh;
overflow: hidden;
${props =>
// @ts-ignore
props.isLoading &&
css`
${Content} {
background-color: #f5f6f8;
}
`}
`;