Skip to content

Commit a8a3ece

Browse files
committed
Fix blur on help dialog
Closes: #52 Thanks @Kerollmops for reporting and finding a workaround for this!
1 parent 36223e7 commit a8a3ece

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

templates/style.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,22 @@ body {
7272
}
7373

7474

75+
// this is a super nasty override for help dialog in rustdocs
76+
// see #52 for details
77+
body.blur > :not(#help) {
78+
filter: none;
79+
-webkit-filter: none;
80+
}
81+
82+
body.blur > div.nav-container > *,
83+
body.blur > div.cratesfyi-package-container > *,
84+
body.blur > div.rustdoc > :not(#help) {
85+
filter: blur(8px);
86+
-webkit-filter: blur(8px);
87+
opacity: .7;
88+
}
89+
90+
7591
// rustdocs have 200px sidebar and
7692
// max-width 960px main pane
7793
// BUT I really want to make the website centered

0 commit comments

Comments
 (0)