Skip to content

Commit

Permalink
fix(v2): remove obsolete iframe attrs (#1986)
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 authored Nov 13, 2019
1 parent 37ec85b commit b1867e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 2 additions & 3 deletions website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ function Home() {
to={useBaseUrl('docs/introduction')}>
Get Started
</Link>
<span className={styles.indexCtasGitHubButton}>
<span className={styles.indexCtasGitHubButtonWrapper}>
<iframe
className={styles.indexCtasGitHubButton}
src="https://ghbtns.com/github-btn.html?user=facebook&amp;repo=docusaurus&amp;type=star&amp;count=true&amp;size=large"
frameBorder={0}
scrolling={0}
width={160}
height={30}
title="GitHub Stars"
Expand Down
7 changes: 6 additions & 1 deletion website/src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,15 @@
padding: 18px 36px;
}

.indexCtasGitHubButton {
.indexCtasGitHubButtonWrapper {
vertical-align: sub;
}

.indexCtasGitHubButton {
border: none;
overflow: hidden;
}

@media only screen and (max-width: 768px) {
.hero {
padding-left: 20px;
Expand Down

0 comments on commit b1867e9

Please sign in to comment.