Add a container component (like bootstrap's).

Just meant to help with sizing.
master
Tom Hacohen 7 years ago
parent 3cfdb07b6a
commit 56947722d3

@ -0,0 +1,21 @@
.Container {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
@media (min-width: 768px) {
.Container {
width: 750px;
}
}
@media (min-width: 992px) {
.Container {
width: 970px;
}
}
@media (min-width: 1200px) {
.Container {
width: 1170px;
}
}

@ -0,0 +1,7 @@
import * as React from 'react';
import './Container.css';
export default ({children}: {children: any}) => (
<div className="Container">{children}</div>
);
Loading…
Cancel
Save