Skip to content

Commit

Permalink
feat: image invert for dark mode
Browse files Browse the repository at this point in the history
Resolves #229
  • Loading branch information
oodamien committed Apr 17, 2024
1 parent b52a876 commit 189bac5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions preview-src/samples/content/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ image::/_/img/spring-logo.svg[Interactive,300,opts=interactive]

image::/_/img/spring-logo.svg[Embedded,300,opts=inline]

=== Image invert dark mode

[.invert-dark]
image::/_/img/lorem.png[Spring,100]

[.impact]
== Text formatting

Expand Down
4 changes: 4 additions & 0 deletions src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,7 @@ html.dark-theme #modal-versions .modal-versions-close .cls-1h {
display: block;
}
}

html.dark-theme .invert-dark img {
filter: invert(1);
}
Binary file added src/img/lorem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 189bac5

Please sign in to comment.