Skip to content

Commit

Permalink
fix mobile overflow issue (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedex authored and Michael Fix committed Aug 12, 2018
1 parent 22f2ea6 commit b7c8466
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 12 deletions.
3 changes: 1 addition & 2 deletions components/Carbon.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ class Carbon extends PureComponent {
#container {
position: relative;
min-width: ${config.widthAdjustment ? '90px' : '680px'};
max-width: 1024px; /* The Fallback */
max-width: 92vw;
max-width: 1024px;
padding: ${config.paddingVertical} ${config.paddingHorizontal};
}
Expand Down
7 changes: 0 additions & 7 deletions components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ const Header = ({ enableHeroText }) => (
h2 {
text-align: center;
max-width: 80vw;
}
@media only screen and (max-width: 756px) {
h2 {
font-size: 2.8vw;
}
}
`}
</style>
Expand Down
1 change: 0 additions & 1 deletion components/Meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default () => {
<Head>
<meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="description"
content="Carbon is the easiest way to create and share beautiful images of your source code."
Expand Down
1 change: 1 addition & 0 deletions components/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default ({ children, enableHeroText }) => (
justify-content: center;
flex-direction: column;
align-items: center;
min-width: 1080px; // temporary fix for mobile overflow issue
}
`}
</style>
Expand Down
1 change: 0 additions & 1 deletion components/style/Reset.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ export default () => (
font-style: normal;
text-transform: initial;
letter-spacing: initial;
overflow-y: auto;
/* min-width: 848px; */
min-height: 704px;
}
Expand Down
2 changes: 1 addition & 1 deletion components/style/Typography.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default () => (
body {
font-size: var(--h4);
line-height: var(--lh);
margin: 2rem 0;
margin: 6rem 0;
}
h1,
Expand Down

0 comments on commit b7c8466

Please sign in to comment.