Skip to content

Commit

Permalink
Fix "draft" watermark dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nellh committed Sep 28, 2023
1 parent 84001f1 commit b722e9c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/css/watermark.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@
background-color: #ff0000;
}

:root {
--md-background-image: url(../images/draft_watermark.png);
--md-background-image--light: url(../images/draft_watermark.png);
--md-background-image--dark: url(../images/draft_watermark_dark.png);
}

.md-main__inner {
background-image: var(--md-background-image);
background-repeat: no-repeat;
background-attachment: fixed;
background-size: contain, cover;
background-position: center;
}

[data-md-color-scheme=default] .md-main__inner {
background-image: url(../images/draft_watermark.png);
}

[data-md-color-scheme=slate] .md-main__inner {
background-image: url(../images/draft_watermark_dark.png);
}

0 comments on commit b722e9c

Please sign in to comment.