From 44ac385e8bcdadb4208c5afe030e91ae16a8b552 Mon Sep 17 00:00:00 2001 From: Ezekiel Aquino Date: Thu, 29 Nov 2018 09:12:12 +0100 Subject: Make dev layout guidelines less obtrusive --- packages/website/ts/@next/components/footer.tsx | 6 ++++-- packages/website/ts/@next/components/layout.tsx | 10 +++++----- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'packages/website/ts/@next/components') diff --git a/packages/website/ts/@next/components/footer.tsx b/packages/website/ts/@next/components/footer.tsx index 4c48f09f3..5a501504c 100644 --- a/packages/website/ts/@next/components/footer.tsx +++ b/packages/website/ts/@next/components/footer.tsx @@ -46,9 +46,11 @@ const linkRows = [ ]; export const Footer: React.StatelessComponent = ({}) => ( - + - + diff --git a/packages/website/ts/@next/components/layout.tsx b/packages/website/ts/@next/components/layout.tsx index b0989224c..edf739229 100644 --- a/packages/website/ts/@next/components/layout.tsx +++ b/packages/website/ts/@next/components/layout.tsx @@ -15,6 +15,7 @@ interface ColumnWidths { interface SectionProps { noPadding?: any, + noMargin?: any, bgColor?: string, } @@ -58,7 +59,7 @@ const COLUMN_WIDTHS: ColumnWidths = { export const Main = styled.main` - border: 1px solid blue; + border: 1px dotted rgba(0, 0, 255, 0.3); width: calc(100% - 60px); max-width: ${MAX_WIDTH}px; margin: 0 auto; @@ -67,16 +68,15 @@ export const Main = styled.main` export const Section = styled.section` width: 100%; padding: ${props => !props.noPadding && '30px'}; - margin-bottom: 30px; + margin-bottom: ${props => !props.noMargin && '30px'}; background-color: ${props => props.bgColor}; - border: 1px solid blue; + border: 1px dotted rgba(0, 255, 0, 0.3); `; export const Wrap = styled.div` max-width: ${props => WRAPPER_WIDTHS[props.width || 'default']}; background-color: ${props => props.bgColor}; margin: 0 auto; - border: 1px solid green; display: flex; justify-content: space-between; `; @@ -84,5 +84,5 @@ export const Wrap = styled.div` export const Column = styled.div` width: ${props => props.colWidth ? COLUMN_WIDTHS[props.colWidth] : '100%'}; padding: ${props => !props.noPadding && '30px'}; - border: 1px solid yellow; + border: 1px dotted rgba(255, 0, 0, 0.3); `; -- cgit