UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

90 lines 2.54 kB
/* * Tabs theme * */ /* * Utilities */ /* * Utilities */ /* * Button mixins * */ .dnb-tabs { --tablist-border-color--default: var(--color-black-8); --tab-title-font-color: var(--color-sea-green); --tab-title-font-weight: var(--font-weight-regular); --tab-title-font-size: var(--font-size-basis); --tab-title-background--hover: var(--color-mint-green-50); --tab-title-color--hover: var(--color-sea-green); --tab-title-border--hover: var(--color-sea-green); --tab-title-color--disabled: var(--color-sea-green-30); --tab-title-border--active-selected: var(--color-sea-green); --tab-title-color--active-selected: var(--color-emerald-green); } .dnb-tabs__button__title { font-weight: var(--font-weight-regular); font-size: var(--font-size-basis); text-align: center; display: block; color: var(--color-sea-green); padding: 0.5rem 0 0.25rem; } html:not([data-whatintent=touch]) .dnb-tabs__button:hover[disabled] { cursor: not-allowed; } html:not([data-whatintent=touch]) .dnb-tabs__button:hover:not([disabled]) { background-color: var(--color-mint-green-50); } html:not([data-whatintent=touch]) .dnb-tabs__button:hover:not([disabled])::after { height: 2px; border-radius: 2px; background-color: var(--color-sea-green); } .dnb-tabs__button:focus::before { content: ""; position: absolute; z-index: 1; top: 0; left: -0.5rem; bottom: 0; right: -0.5rem; height: inherit; border-radius: inherit; outline: none; } html[data-whatinput=keyboard] .dnb-tabs__button:focus::before { --border-color: var(--focus-ring-color); --border-width: var(--focus-ring-width); box-shadow: 0 0 0 var(--border-width) var(--border-color); border-color: transparent; } .dnb-tabs__button:focus { overflow: visible; } .dnb-tabs__button:focus::before { top: 0.5rem; left: -0.375rem; right: -0.375rem; bottom: 0.5rem; border-radius: 1.5rem; } .dnb-tabs__button[disabled] .dnb-tabs__button__title { color: var(--color-sea-green-30); } .dnb-tabs__button:not([disabled]):active::after, .dnb-tabs__button:not([disabled]).selected::after { height: 2px; border-radius: 2px; background-color: var(--color-sea-green); } .dnb-tabs__button:not([disabled]):active .dnb-tabs__button__title, .dnb-tabs__button:not([disabled]).selected .dnb-tabs__button__title { color: var(--color-emerald-green); } .dnb-tabs__button:not([disabled]).selected .dnb-tabs__button__title { font-weight: var(--font-weight-medium); } .dnb-tabs__button span[hidden] { font-weight: var(--font-weight-medium); }