Skip to content

Commit

Permalink
Add CSS var for header -webkit-backdrop-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoncal committed Apr 8, 2024
1 parent 0d3e730 commit 8070031
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/layouts/home-assistant-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export class HomeAssistantMain extends LitElement {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
--mdc-drawer-width: 56px;
--mdc-top-app-bar-width: calc(100% - var(--mdc-drawer-width));
--backdrop-filter: unset;
}
:host([expanded]) {
--mdc-drawer-width: calc(256px + env(safe-area-inset-left));
Expand Down
1 change: 1 addition & 0 deletions src/panels/lovelace/hui-root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,7 @@ class HUIRoot extends LitElement {
position: fixed;
top: 0;
width: var(--mdc-top-app-bar-width, 100%);
-webkit-backdrop-filter: var(--backdrop-filter, unset);
padding-top: env(safe-area-inset-top);
z-index: 4;
transition: box-shadow 200ms linear;
Expand Down

0 comments on commit 8070031

Please sign in to comment.