redoc/src/common-elements/panels.ts

36 lines
895 B
TypeScript
Raw Normal View History

2018-05-16 12:44:36 +03:00
import * as React from 'react';
import styled, { media, ResolvedThemeInterface, StyledComponentClass } 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 = 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;
`};
`;