Quick test responsive cols
This commit is contained in:
@@ -77,12 +77,18 @@ export const Wrap = styled.div<WrapProps>`
|
|||||||
max-width: ${props => WRAPPER_WIDTHS[props.width || 'default']};
|
max-width: ${props => WRAPPER_WIDTHS[props.width || 'default']};
|
||||||
background-color: ${props => props.bgColor};
|
background-color: ${props => props.bgColor};
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
||||||
|
@media (min-width: 768px) {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const Column = styled.div<ColumnProps>`
|
export const Column = styled.div<ColumnProps>`
|
||||||
width: ${props => props.colWidth ? COLUMN_WIDTHS[props.colWidth] : '100%'};
|
|
||||||
padding: ${props => !props.noPadding && '30px'};
|
padding: ${props => !props.noPadding && '30px'};
|
||||||
border: 1px dotted rgba(255, 0, 0, 0.3);
|
border: 1px dotted rgba(255, 0, 0, 0.3);
|
||||||
|
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
width: ${props => props.colWidth ? COLUMN_WIDTHS[props.colWidth] : '100%'};
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user