Skip to content

Commit f13febf

Browse files
committed
try conditional css and do not accept overrides
1 parent 1b5d2bc commit f13febf

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

src/css/watermark.css

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,20 @@
66
background-position: center;
77
}
88

9-
/* See: https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#custom-color-schemes */
10-
:root {
11-
--md-primary-fg-color: #ff0000;
9+
@media screen and (max-width: 76.1875em) {
10+
.md-nav__title[for=__drawer] {
11+
background-color: #ff0000 !important;
12+
}
13+
}
14+
15+
.md-header {
16+
background-color: #ff0000;
17+
}
18+
19+
.md-main__inner {
20+
background-image: url(../images/draft_watermark.png);
21+
background-repeat: no-repeat;
22+
background-attachment: fixed;
23+
background-size: contain, cover;
24+
background-position: center;
1225
}

0 commit comments

Comments
 (0)