mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +03:00
fix: fix panel paddings on small screens
This commit is contained in:
parent
974bc7ddb0
commit
f39fc98eab
|
@ -7,6 +7,8 @@ export const MiddlePanel = styled.div`
|
|||
|
||||
${media.lessThan('medium')`
|
||||
width: 100%;
|
||||
padding: ${props =>
|
||||
`${props.theme.spacing.sectionVertical}px ${props.theme.spacing.sectionHorizontal}px`};
|
||||
`};
|
||||
`;
|
||||
|
||||
|
@ -17,6 +19,9 @@ export const Section = withProps<{ underlined?: boolean }>(
|
|||
)`
|
||||
padding: ${props => props.theme.spacing.sectionVertical}px 0;
|
||||
|
||||
${media.lessThan('medium')`
|
||||
padding: 0;
|
||||
`}
|
||||
${props =>
|
||||
(props.underlined &&
|
||||
`
|
||||
|
@ -42,6 +47,8 @@ export const RightPanel = styled.div`
|
|||
|
||||
${media.lessThan('medium')`
|
||||
width: 100%;
|
||||
padding: ${props =>
|
||||
`${props.theme.spacing.sectionVertical}px ${props.theme.spacing.sectionHorizontal}px`};
|
||||
`};
|
||||
`;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user