diff options
author | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-13 18:26:52 +0800 |
---|---|---|
committer | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-13 18:26:52 +0800 |
commit | 70df5a0a1721aeaacb80580512fa4a232679301d (patch) | |
tree | 19dff7155fe67dc439872626790d3871c2caf3c9 /packages/website/ts/@next/components/newLayout.tsx | |
parent | 79dac626469bce3c93d9c0ee270ac5758547e327 (diff) | |
download | dexon-0x-contracts-70df5a0a1721aeaacb80580512fa4a232679301d.tar.gz dexon-0x-contracts-70df5a0a1721aeaacb80580512fa4a232679301d.tar.zst dexon-0x-contracts-70df5a0a1721aeaacb80580512fa4a232679301d.zip |
About pages wrapwidths
Diffstat (limited to 'packages/website/ts/@next/components/newLayout.tsx')
-rw-r--r-- | packages/website/ts/@next/components/newLayout.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/website/ts/@next/components/newLayout.tsx b/packages/website/ts/@next/components/newLayout.tsx index 617cc81c8..3126db7ee 100644 --- a/packages/website/ts/@next/components/newLayout.tsx +++ b/packages/website/ts/@next/components/newLayout.tsx @@ -95,7 +95,8 @@ const SectionBase = styled.section<SectionProps>` `; const Wrap = styled(FlexWrap)<WrapProps>` - width: ${props => props.bgColor ? 'calc(100% - 60px)' : props.wrapWidth}; + width: ${props => props.wrapWidth || 'calc(100% - 60px)'}; + width: ${props => props.bgColor && 'calc(100% - 60px)'}; max-width: ${props => !props.isFullWidth && (props.maxWidth || '895px')}; text-align: ${props => props.isTextCentered && 'center'}; margin: 0 auto; |