Skip to content

Commit

Permalink
fix(Grid): Set correct max size
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Martinez authored and ooHmartY committed Jun 14, 2018
1 parent 944e107 commit 58a2698
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/components/Gradient.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import colors from "../theme/colors";
import { mediumAndUp, largeAndUp } from "../theme/mediaQueries";

const Gradient = styled.span`
z-index: 1;
background-image: ${props =>
`linear-gradient(${props.deg.small}, ${props.from}, ${props.to})`};
${mediumAndUp`
Expand All @@ -16,6 +17,8 @@ const Gradient = styled.span`
`};
&.gradient--overlay:after {
z-index: 2;
height: 100%;
content: "";
opacity: 0.4;
top: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Grid/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import spacing from "../../theme/spacing";

const Container = styled.div`
margin: 0 auto;
max-width: 1440px;
max-width: 1248px;
width: 100%;
padding-left: ${spacing.gutters.small}px;
padding-right: ${spacing.gutters.small}px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`Grid renders medium and up when medium size defined 1`] = `
.c0 {
margin: 0 auto;
max-width: 1440px;
max-width: 1248px;
width: 100%;
padding-left: 16px;
padding-right: 16px;
Expand Down Expand Up @@ -108,7 +108,7 @@ exports[`Grid renders medium and up when medium size defined 1`] = `
exports[`Grid renders multiple sizes defined 1`] = `
.c0 {
margin: 0 auto;
max-width: 1440px;
max-width: 1248px;
width: 100%;
padding-left: 16px;
padding-right: 16px;
Expand Down Expand Up @@ -213,7 +213,7 @@ exports[`Grid renders multiple sizes defined 1`] = `
exports[`Grid renders small size defined 1`] = `
.c0 {
margin: 0 auto;
max-width: 1440px;
max-width: 1248px;
width: 100%;
padding-left: 16px;
padding-right: 16px;
Expand Down Expand Up @@ -318,7 +318,7 @@ exports[`Grid renders small size defined 1`] = `
exports[`Grid renders with defaults 1`] = `
.c0 {
margin: 0 auto;
max-width: 1440px;
max-width: 1248px;
width: 100%;
padding-left: 16px;
padding-right: 16px;
Expand Down

0 comments on commit 58a2698

Please sign in to comment.