diff --git a/web/src/elements/Banner.ts b/web/src/elements/Banner.ts deleted file mode 100644 index 0c8d651ec..000000000 --- a/web/src/elements/Banner.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { customElement, CSSResult, html, LitElement, property, TemplateResult } from "lit-element"; -import PFBase from "@patternfly/patternfly/patternfly-base.css"; -import PFFlex from "@patternfly/patternfly/layouts/Flex/flex.css"; -import PFBanner from "@patternfly/patternfly/components/Banner/banner.css"; -import AKGlobal from "../authentik.css"; - -@customElement("ak-banner") -export class Banner extends LitElement { - - @property() - level = "pf-m-warning"; - - static get styles(): CSSResult[] { - return [PFBase, PFBanner, PFFlex, AKGlobal]; - } - - render(): TemplateResult { - return html`
`; - } - -} diff --git a/web/src/elements/sidebar/Sidebar.ts b/web/src/elements/sidebar/Sidebar.ts index b1e03cc05..5d2f6e076 100644 --- a/web/src/elements/sidebar/Sidebar.ts +++ b/web/src/elements/sidebar/Sidebar.ts @@ -19,7 +19,6 @@ export class Sidebar extends LitElement { css` :host { z-index: 100; - box-shadow: none !important; } .pf-c-nav__link.pf-m-current::after, .pf-c-nav__link.pf-m-current:hover::after, diff --git a/web/src/elements/sidebar/SidebarItem.ts b/web/src/elements/sidebar/SidebarItem.ts index 27d4b6ee1..701575395 100644 --- a/web/src/elements/sidebar/SidebarItem.ts +++ b/web/src/elements/sidebar/SidebarItem.ts @@ -21,6 +21,13 @@ export class SidebarItem extends LitElement { z-index: 100; box-shadow: none !important; } + :host([highlight]) .pf-c-nav__item { + background-color: var(--ak-accent); + margin: 16px; + } + :host([highlight]) .pf-c-nav__item .pf-c-nav__link { + padding-left: 0.5rem; + } .pf-c-nav__link.pf-m-current::after, .pf-c-nav__link.pf-m-current:hover::after, .pf-c-nav__item.pf-m-current:not(.pf-m-expanded) .pf-c-nav__link::after { @@ -75,6 +82,12 @@ export class SidebarItem extends LitElement { @property({ type: Boolean }) isActive = false; + @property({ type: Boolean }) + isAbsoluteLink?: boolean; + + @property({ type: Boolean }) + highlight?: boolean; + parent?: SidebarItem; get childItems(): SidebarItem[] { @@ -159,9 +172,15 @@ export class SidebarItem extends LitElement { `; } return html`