Skip to content

Commit b1df683

Browse files
authored
[INFRA] fix draft rendering css on mobile or when browser window is narrow (#889)
* sty: fix draft rendering css * try md-sidebar * try nav__title * try [for=__drawer] * try set color via :root instead * try conditional css and do not accept overrides * better style and comment
1 parent 251f440 commit b1df683

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/css/watermark.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/* 76.1875em are based on stylesheets: https://github.com/squidfunk/mkdocs-material/tree/master/material/assets/stylesheets */
2+
@media screen and (max-width: 76.1875em) {
3+
.md-nav__title[for=__drawer] {
4+
background-color: #ff0000 !important;
5+
}
6+
}
7+
18
.md-header {
29
background-color: #ff0000;
310
}

0 commit comments

Comments
 (0)