Skip to content

Commit

Permalink
fix: homepage grid alignment and expressive type
Browse files Browse the repository at this point in the history
  • Loading branch information
vpicone committed Jun 3, 2019
1 parent 2703332 commit a9e16e4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const StyledGrid = styled(Grid)`
const StyledRow = styled(Row)`
height: 100%;
h1 {
padding: 2rem 1rem;
padding: 2rem 0;
}
`;

Expand Down
14 changes: 11 additions & 3 deletions packages/gatsby-theme-carbon/src/components/Homepage/Callout.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,35 @@ const StyledRow = styled.section`
`;

const firstColumn = ({ typeStyles, layout }) => [
typeStyles.expressiveParagraph01,
typeStyles.expressiveHeading03,
{
padding: '0 1rem',
paddingLeft: 0,
paddingBottom: layout[2],
width: '100%',
fontSize: '1.5rem',
fontSize: 'calc(1.25rem + 0*(100vw - 20rem)/62)',
[mq.md]: {
width: '33%',
},
[mq.max]: {
fontSize: '1.5rem',
},
},
];

const secondColumn = ({ typeStyles }) => [
typeStyles.expressiveParagraph01,
{
padding: '0 1rem',
fontSize: '1.75rem',
fontSize: 'calc(1.75rem + 0.25*(100vw - 66rem)/33)',
width: '100%',
paddingLeft: 0,
[mq.md]: {
width: '66%',
},
[mq.max]: {
fontSize: '2rem',
},
},
];

Expand Down

0 comments on commit a9e16e4

Please sign in to comment.