Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Support dark colour scheme for website
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
  • Loading branch information
Richienb committed Oct 22, 2021
commit 1355a48ab490365679209427b738690bd70438a4
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h2 class="tagline">A modern, HTML5-ready alternative to CSS resets</h2>
<div class="share-bar">
<a class="read-more" href="http://nicolasgallagher.com/about-normalize-css/">Read more about normalize.css &raquo;</a>

<div class="share-opt">
<div class="share-opt share-github">
<a href="https://github.com/necolas/normalize.css">
<img src="github-logo.png" width="28" height="28" alt="GitHub">
</a>
Expand Down
15 changes: 15 additions & 0 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,18 @@ p {
margin: 0 1em 0.5em;
}
}

@media screen and (prefers-color-scheme: dark) {
html {
background: #333;
color: #fff;
}

.site-box, .share-bar {
background: #222;
}

.share-github {
filter: invert(1);
}
}