Skip to content

Commit

Permalink
CSS: support dark mode
Browse files Browse the repository at this point in the history
addresses adobe-fonts#244
  • Loading branch information
frankrolf committed Nov 11, 2020
1 parent c6abe95 commit 2fca874
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,31 @@
max-width: 1100px;
}
}
@media (prefers-color-scheme: dark) {
body {
background-color: #222;
color: #FFF;
}
div:hover
{
background-color: #333;
}
.ribbon:before {
background-color: rgb(221, 221, 221);;
}
.ribbon:after {
color: #000;
}
@media (prefers-color-scheme: light) {
body {
background-color: #FFF;
color: #000;
}
div:hover
{
background-color: #EEE;
}
}
</style>
</head>
<body>
Expand Down

0 comments on commit 2fca874

Please sign in to comment.