Skip to content

Commit

Permalink
Use typography rhythm for Diagram Gatsby logo and container
Browse files Browse the repository at this point in the history
…and increase its size for Desktop along the way.
  • Loading branch information
Florian Kissling committed Jul 25, 2017
1 parent a00541f commit d1f7f81
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions www/src/components/diagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,18 +152,26 @@ const Gatsby = ({ children }) =>
<div
css={{
...borderAndBoxShadow,
padding: `1rem`,
padding: rhythm(1),
margin: `0 auto`,
width: `6.5rem`,
height: `6.5rem`,
width: rhythm(5.5),
height: rhythm(5.5),
[presets.Desktop]: {
width: rhythm(6),
height: rhythm(6),
},
}}
>
<img
src={logo}
css={{
display: `inline-block`,
height: rhythm(1.6),
width: rhythm(1.6),
height: rhythm(1.75),
width: rhythm(1.75),
[presets.Desktop]: {
width: rhythm(2.25),
height: rhythm(2.25),
},
margin: 0,
verticalAlign: `middle`,
}}
Expand Down

0 comments on commit d1f7f81

Please sign in to comment.