// @ts-ignore import topAppBarStyles from "@material/top-app-bar/dist/mdc.top-app-bar.min.css"; import { css, html, LitElement, unsafeCSS } from "lit"; import { customElement } from "lit/decorators"; @customElement("ha-header-bar") export class HaHeaderBar extends LitElement { protected render() { return html`
`; } static get styles() { return [ unsafeCSS(topAppBarStyles), css` .mdc-top-app-bar__row { height: var(--header-height); } .mdc-top-app-bar { position: static; color: var(--mdc-theme-on-primary, #fff); } .mdc-top-app-bar__section.mdc-top-app-bar__section--align-start { flex: 1; } .mdc-top-app-bar__section.mdc-top-app-bar__section--align-end { flex: none; } .mdc-top-app-bar__title { font-size: var(--ha-font-size-xl); padding-inline-start: 24px; padding-inline-end: initial; } `, ]; } } declare global { interface HTMLElementTagNameMap { "ha-header-bar": HaHeaderBar; } }