redoc/src/common-elements/panels.ts

41 lines
932 B
TypeScript
Raw Normal View History

2018-01-30 16:35:18 +03:00
import styled, { media } from '../styled-components';
2017-10-12 00:01:37 +03:00
export const MiddlePanel = styled.div`
2018-03-16 18:02:31 +03:00
width: calc(100% - ${props => props.theme.rightPanel.width});
2017-10-12 00:01:37 +03:00
padding: ${props => props.theme.spacingUnit * 2}px;
2018-01-30 16:35:18 +03:00
${media.lessThan('medium')`
width: 100%;
`};
2017-10-12 00:01:37 +03:00
`;
export const RightPanel = styled.div`
2018-03-16 18:02:31 +03:00
width: ${props => props.theme.rightPanel.width};
2017-10-12 00:01:37 +03:00
color: #fafbfc;
2018-03-16 18:02:31 +03:00
background-color: ${props => props.theme.rightPanel.backgroundColor};
2017-10-12 00:01:37 +03:00
padding: ${props => props.theme.spacingUnit * 2}px;
2018-01-30 16:35:18 +03:00
${media.lessThan('medium')`
width: 100%;
`};
2017-10-12 00:01:37 +03:00
`;
export const DarkRightPanel = styled(RightPanel)`
background-color: ${props => props.theme.rightPanel.backgroundColor};
`;
2018-01-30 16:35:18 +03:00
export const EmptyDarkRightPanel = styled(DarkRightPanel)`
${media.lessThan('medium')`
padding: 0
`};
`;
export const Row = styled.div`
display: flex;
width: 100%;
2018-01-30 16:35:18 +03:00
${media.lessThan('medium')`
flex-direction: column;
`};
`;