Skip to content

Commit

Permalink
add blurred backdrop
Browse files Browse the repository at this point in the history
  • Loading branch information
couleurm committed Apr 27, 2024
1 parent 7e0023e commit a233406
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/assets/css/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,20 @@
.md-typeset h1 {
color: var(--md-typeset-a-color);
font-weight: 700;
}

/* Blurred header on devices which support it */
@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {

[data-md-color-scheme="default"] .md-header {
background-color: hsla(0, 0%, 100%, 0.6);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
}

[data-md-color-scheme="slate"] .md-header {
background-color: rgba(30, 32, 41, 0.6);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
}
}

0 comments on commit a233406

Please sign in to comment.