UNPKG

@scania/tegel

Version:
58 lines (56 loc) 1.54 kB
:host { display: block; box-sizing: border-box; height: var(--tds-header-list-item-md-height); width: 100%; } :host .component { height: 100%; } :host .component ::slotted(a), :host .component ::slotted(button) { all: unset; box-sizing: border-box; border: none; display: flex; align-items: center; height: 100%; padding: 0 24px; width: 100%; font: var(--tds-detail-02); letter-spacing: var(--tds-detail-02-ls); background-color: var(--tds-nav-dropdown-item-background); color: var(--tds-header-nav-item-dropdown-opened-color); } :host .component ::slotted(a:hover) { background-color: var(--tds-nav-item-background-hover); cursor: pointer; } :host .component ::slotted(a:focus-visible) { outline: 2px solid var(--tds-focus-outline-color); box-shadow: 0 0 0 1px var(--tds-white); outline-offset: 1px; z-index: 1; } :host .component-selected { background-color: var(--tds-nav-item-background-selected); padding-right: 4px; border-left-width: 4px; border-left-style: solid; border-left-color: var(--tds-nav-item-border-color-active); } :host .component-selected ::slotted(a), :host .component-selected ::slotted(button) { background-color: var(--tds-nav-item-background-selected); } :host(:not(:last-child)) { border-bottom: 1px solid var(--tds-nav-dropdown-item-border-color); } :host([size=lg]) { height: var(--tds-header-height); } :host([size=lg]) ::slotted(a), :host([size=lg]) ::slotted(button) { padding: 0 16px; color: var(--tds-header-app-launcher-item-color); }