Skip to content

Commit

Permalink
[docs] Avoid social layout jump
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed May 3, 2020
1 parent 5dcd697 commit d7c51f5
Showing 1 changed file with 32 additions and 19 deletions.
51 changes: 32 additions & 19 deletions docs/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,23 @@ const useStyles = makeStyles(
alignItems: 'center',
minHeight: 21,
boxSizing: 'content-box',
'& span': {
display: 'flex',
marginRight: theme.spacing(1),
},
'& a': {
color: theme.palette.background.paper,
},
},
github: {
width: 105,
display: 'flex',
justifyContent: 'flex-end',
marginRight: theme.spacing(1),
'& span': {
display: 'flex',
},
},
twitter: {
width: 160,
display: 'flex',
},
}),
{ name: 'LandingPage' },
);
Expand Down Expand Up @@ -150,21 +159,25 @@ export default function LandingPage(props) {
</Container>
</div>
<div className={classes.social}>
<a
className="github-button"
href="https://github.com/mui-org/material-ui"
data-icon="octicon-star"
data-show-count="true"
>
Star
</a>
<a
className="twitter-follow-button"
href="https://twitter.com/@materialui"
data-show-screen-name="false"
>
Follow
</a>
<div className={classes.github}>
<a
className="github-button"
href="https://github.com/mui-org/material-ui"
data-icon="octicon-star"
data-show-count="true"
>
Star
</a>
</div>
<div className={classes.twitter}>
<a
className="twitter-follow-button"
href="https://twitter.com/@materialui"
data-show-screen-name="false"
>
Follow
</a>
</div>
</div>
<Pro />
<QuickWord />
Expand Down

0 comments on commit d7c51f5

Please sign in to comment.