Skip to content

Commit

Permalink
fix: fix panel paddings on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Oct 5, 2018
1 parent 974bc7d commit f39fc98
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/common-elements/panels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`};
`};
`;

Expand All @@ -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 &&
`
Expand All @@ -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`};
`};
`;

Expand Down

0 comments on commit f39fc98

Please sign in to comment.