UNPKG

@coderundebug/ui-web

Version:

A collection of UI web components that can be used in any web project.

2 lines 800 B
/* By Stephen Paul Hassall (web: https://coderundebug.com) */ import{UiTools as e}from"./ui-tools.js";export class UiHeaderMenu extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=UiHeaderMenu.uiHtml,this.shadowRoot.adoptedStyleSheets=[UiHeaderMenu.uiCssStyleSheet]}}UiHeaderMenu.uiCss=":host{display:inline-flex;flex-direction:row;justify-content:center;flex-shrink:0;background-color:var(--ui-menu-header-background, var(--ui-module-background, hsl(0 0% 97% / 1)));color:var(--ui-menu-header-foreground, var(--ui-module-foreground, hsl(0 0% 18% / 1)));}::slotted(*:not(:defined)){display:none;}@media (forced-colors:active) or (prefers-contrast:more) {}",UiHeaderMenu.uiHtml="<slot></slot>",e.createUi(UiHeaderMenu,"ui-header-menu",import.meta.url);