@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
80 lines (66 loc) • 2.18 kB
JavaScript
// src/components/breadcrumb-item/breadcrumb-item.custom.styles.ts
import { css } from "lit";
var breadcrumb_item_custom_styles_default = css`
.breadcrumb-item {
color: var(--syn-color-neutral-500);
font-size: var(--syn-font-size-x-small);
font-weight: var(--syn-font-weight-normal);
}
/**
* Make sure to remove the border radius.
* Without this, focus will be rounded
*/
.breadcrumb-item__label {
border-radius: var(--syn-border-radius-none);
}
:host(:not(:last-of-type)) .breadcrumb-item__label {
color: var(--syn-typography-color-text);
}
:host(:not(:last-of-type)) .breadcrumb-item__label:hover {
color: var(--syn-color-primary-600);
}
:host(:not(:last-of-type)) .breadcrumb-item__label:active {
color: var(--syn-color-primary-950);
}
.breadcrumb-item--has-prefix .breadcrumb-item__prefix {
margin-inline-end: var(--syn-spacing-2x-small);
}
.breadcrumb-item--has-suffix .breadcrumb-item__suffix {
margin-inline-start: var(--syn-spacing-2x-small);
}
/**
* Adjust color and font size to match Synergy's typography.
*/
.breadcrumb-item--has-prefix .breadcrumb-item__prefix,
.breadcrumb-item--has-suffix .breadcrumb-item__suffix {
color: var(--syn-typography-color-text);
font-size: var(--syn-spacing-medium);
}
/**
* Make sure the color of the last item's prefix and suffix matches the text.
*/
:host(:last-of-type) .breadcrumb-item--has-prefix .breadcrumb-item__prefix,
:host(:last-of-type) .breadcrumb-item--has-suffix .breadcrumb-item__suffix {
color: var(--syn-color-neutral-500);
}
.breadcrumb-item__separator {
font-size: var(--syn-spacing-medium);
margin: 0 var(--syn-spacing-x-small) 0 var(--syn-spacing-2x-small);
}
/**
* Make sure the direction of the chevron matches the direction of the text.
*/
.breadcrumb-item__separator ::slotted(syn-icon.ltr) {
rotate: -90deg;
}
.breadcrumb-item__separator ::slotted(syn-icon.rtl) {
rotate: 90deg;
}
.breadcrumb-item__label--drop-down {
display: flex;
}
`;
export {
breadcrumb_item_custom_styles_default
};
//# sourceMappingURL=chunk.NGIGPLN2.js.map