Skip to content

Commit d1f493c

Browse files
Update README.md with new prefers-color-scheme media feature.
The old GitHub method using #gh-dark-mode-only and #gh-light-mode-only is deprecated and will stop working
1 parent e5d5b43 commit d1f493c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Diff for: .markdownlint.jsonc

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
"a",
2727
"br",
2828
"img",
29+
"picture",
30+
"source",
2931
"noscript",
3032
"p",
3133
"script"

Diff for: README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
<h1><img src="https://github.com/elixir-lang/elixir-lang.github.com/raw/main/images/logo/logo.png#gh-light-mode-only" width="200" alt="Elixir">
2-
<img src="https://github.com/elixir-lang/elixir-lang.github.com/raw/main/images/logo/logo-dark.png#gh-dark-mode-only" width="200" alt="Elixir"></h1>
1+
<h1>
2+
<picture>
3+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/elixir-lang/elixir-lang.github.com/raw/main/images/logo/logo-dark.png">
4+
<img alt="Elixir logo" src="https://github.com/elixir-lang/elixir-lang.github.com/raw/main/images/logo/logo.png" width="200">
5+
</picture>
6+
</h1>
37

48
[![CI](https://github.com/elixir-lang/elixir/workflows/CI/badge.svg?branch=main)](https://github.com/elixir-lang/elixir/actions?query=branch%3Amain+workflow%3ACI)
59

0 commit comments

Comments
 (0)