redoc/src/common-elements/panels.ts

35 lines
819 B
TypeScript
Raw Normal View History

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});
2018-07-19 13:05:53 +03:00
padding: ${props => props.theme.spacing.unit * 8}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};
2018-07-19 13:05:53 +03:00
padding: ${props => props.theme.spacing.unit * 8}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 = RightPanel.extend`
background-color: ${props => props.theme.rightPanel.backgroundColor};
`;
export const Row = styled.div`
display: flex;
width: 100%;
2018-01-30 16:35:18 +03:00
${media.lessThan('medium')`
flex-direction: column;
`};
`;