Skip to content

Commit

Permalink
Fix light background in docusaurus night mode (facebook#7936)
Browse files Browse the repository at this point in the history
* Fix light background in docusaurus night mode

Closes facebook#7930

* Rename lightBackground to gettingStartedSection
  • Loading branch information
heyimalex authored and wombleton committed Jun 1, 2021
1 parent eb493a8 commit 09243d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docusaurus/website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function Home() {
</div>
</div>
)}
<div className={styles.lightBackground}>
<div className={styles.gettingStartedSection}>
<div className="container padding-vert--xl text--left">
<div className="row">
<div className="col col--4 col--offset-1">
Expand Down
7 changes: 5 additions & 2 deletions docusaurus/website/src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
margin: 0 auto;
}

.lightBackground {
.gettingStartedSection {
background-color: #f7f7f7;
color: rgb(31, 34, 39);
}

html[data-theme='dark'] .gettingStartedSection {
background-color: #33363b;
}

0 comments on commit 09243d4

Please sign in to comment.