Skip to content

Commit

Permalink
Change style when in dark mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
TakiKazuya authored and stevenharman committed May 13, 2024
1 parent af99799 commit ce3e77f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/views/layouts/letter_opener_web/styles/_letters.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<style>
@media (prefers-color-scheme: dark) {
body {
background-color: black;
}
.left, .right {
filter: invert(1) hue-rotate(180deg);
}
}

body {
margin: 0
}
Expand Down

0 comments on commit ce3e77f

Please sign in to comment.