@scania/tegel
Version:
Tegel Design System
43 lines • 1.35 kB
CSS
:host ::slotted(button),
:host ::slotted(a) {
all: unset;
box-sizing: border-box;
background-color: var(--tds-header-background);
border-right: 1px solid var(--tds-header--basic-element-border);
width: 100%;
height: 100%;
cursor: pointer;
padding: 0 24px;
display: flex;
align-items: center;
gap: 8px;
}
:host ::slotted(button) *,
:host ::slotted(a) * {
box-sizing: border-box;
}
:host ::slotted(button:hover),
:host ::slotted(a:hover) {
background-color: var(--tds-header-item-hover);
}
:host ::slotted(button:focus-visible),
:host ::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-active ::slotted(button),
:host .component-active ::slotted(a) {
background-color: var(--tds-header--basic-element-background-open);
color: var(--tds-header-nav-item-dropdown-opened-color);
border-color: var(--tds-header--basic-element-border-open);
}
:host .component-selected:not(.component-active) ::slotted(button),
:host .component-selected:not(.component-active) ::slotted(a) {
background-color: var(--tds-header--basic-element-background-selected);
padding-top: 4px;
border-bottom-style: solid;
border-bottom-width: 4px;
border-bottom-color: var(--tds-nav-item-border-color-active);
}