Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dwreeves committed Mar 10, 2024
1 parent 9982117 commit 6eb00de
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/dwreeves/dbt_linreg/main/docs/src/img/dbt-linreg-banner-dark.png">
<img src="https://raw.githubusercontent.com/dwreeves/dbt_linreg/main/docs/src/img/dbt-linreg-banner-light.png" alt="dbt_linreg logo">
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/dwreeves/dbt_linreg/main/docs/src/img/dbt-linreg-banner-dark.png#only-dark">
<img src="https://raw.githubusercontent.com/dwreeves/dbt_linreg/main/docs/src/img/dbt-linreg-banner-light.png#only-light" alt="dbt_linreg logo">
</picture>
</p>
<p align="center">
Expand Down
2 changes: 2 additions & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ markdown_extensions:
- markdown_include.include:
base_path: docs
- sane_lists
extra_css:
- css/extra.css
extra:
social:
- icon: fontawesome/brands/github
Expand Down
9 changes: 9 additions & 0 deletions docs/src/css/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[data-md-color-scheme="light"] img[src$="#only-dark"],
[data-md-color-scheme="light"] img[src$="#gh-dark-mode-only"] {
display: none; /* Hide dark images in light mode */
}

[data-md-color-scheme="dark"] img[src$="#only-light"],
[data-md-color-scheme="dark"] img[src$="#gh-light-mode-only"] {
display: none; /* Hide light images in dark mode */
}

0 comments on commit 6eb00de

Please sign in to comment.