diff --git a/web/src/elements/router/RouterOutlet.ts b/web/src/elements/router/RouterOutlet.ts index f66d6c7fb..2aeb4493a 100644 --- a/web/src/elements/router/RouterOutlet.ts +++ b/web/src/elements/router/RouterOutlet.ts @@ -53,12 +53,7 @@ export class RouterOutlet extends LitElement { css` :host { height: 100vh; - background-color: var(--pf-global--BackgroundColor--light-300) !important; - } - @media (prefers-color-scheme: dark) { - :host { - background-color: var(--ak-dark-background) !important; - } + background-color: transparent !important; } *:first-child { flex-direction: column; diff --git a/web/src/interfaces/AdminInterface.ts b/web/src/interfaces/AdminInterface.ts index 795a89d0b..32d0b8014 100644 --- a/web/src/interfaces/AdminInterface.ts +++ b/web/src/interfaces/AdminInterface.ts @@ -62,10 +62,20 @@ export class AdminInterface extends LitElement { .pf-c-drawer__content, .pf-c-page__drawer { z-index: auto !important; + background-color: transparent; } .display-none { display: none; } + .pf-c-page { + background-color: var(--pf-global--BackgroundColor--light-300) !important; + } + @media (prefers-color-scheme: dark) { + /* Global page background colour */ + .pf-c-page { + --pf-c-page--BackgroundColor: var(--ak-dark-background); + } + } `, ]; } diff --git a/web/src/interfaces/UserInterface.ts b/web/src/interfaces/UserInterface.ts index 89f0091c1..ab2e4cced 100644 --- a/web/src/interfaces/UserInterface.ts +++ b/web/src/interfaces/UserInterface.ts @@ -72,6 +72,10 @@ export class UserInterface extends LitElement { .pf-c-drawer__content, .pf-c-page__drawer { z-index: auto !important; + background-color: transparent !important; + } + .pf-c-page { + background-color: var(--pf-global--BackgroundColor--light-300) !important; } .display-none { display: none; @@ -114,185 +118,187 @@ export class UserInterface extends LitElement { } render(): TemplateResult { - return html`