UNPKG

@synergy-design-system/components

Version:

This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define

98 lines (79 loc) 2.29 kB
// src/components/tab/tab.custom.styles.ts import { css } from "lit"; var tab_custom_styles_default = css` /* Write custom CSS here */ :host { --background-color: none; --border-width: var(--syn-border-width-none); --border-color: none; --border-radius: var(--syn-border-radius-none); } .tab { border-color: transparent; border-radius: var(--border-radius); border-style: solid; border-width: var(--border-width); color: var(--syn-typography-color-text); font: var(--syn-body-small-bold); min-height: var(--syn-spacing-2x-large); padding: var(--syn-spacing-small) var(--syn-spacing-large); /* Stretch the tabs so they are aligned to each other vertically and the focus width stays the same */ width: 100%; } /** #429: Use token for opacity */ .tab.tab--disabled { opacity: var(--syn-opacity-50); } /** * Focus */ :host(:focus-visible) { outline-offset: calc(var(--syn-focus-ring-offset) * -1); } :host(:focus-visible:not(.tab--disabled)) { color: var(--syn-typography-color-text); } @media (forced-colors: active) { .tab.tab--active:not(.tab--disabled) { outline-offset: calc(var(--syn-focus-ring-offset) * -1); } } .tab:hover:not(.tab--disabled) { color: var(--syn-color-primary-700); } .tab.tab--active:not(.tab--disabled) { color: var(--syn-typography-color-text); } /** * Closable */ .tab.tab--closable { padding: var(--syn-spacing-2x-small) var(--syn-spacing-large); } .tab__close-button { color: var(--syn-color-neutral-500); font-size: var(--syn-font-size-x-large); margin-inline-start: var(--syn-spacing-2x-small); } .tab__close-button::part(base) { padding: var(--syn-spacing-x-small); } .tab__close-button::part(base):hover { color: var(--syn-color-primary-700); } .tab--active { background-color: var(--background-color); border-color: var(--border-color); border-style: solid; border-width: var(--border-width); } /* Slotted icon style */ .tab ::slotted(syn-icon) { font-size: var(--syn-font-size-x-large); margin-inline-end: var(--syn-spacing-x-small); } `; export { tab_custom_styles_default }; //# sourceMappingURL=chunk.JMMSJRM5.js.map