UNPKG

@synergy-design-system/components

Version:
55 lines (47 loc) 1.61 kB
// src/components/tag-group/tag-group.styles.ts import { css } from "lit"; var tag_group_styles_default = css` :host { --tag-group-item-gap: var(--syn-spacing-x-small); --tag-group-label-gap: var(--syn-spacing-x-small); --tag-group-label-font: var(--syn-body-medium-semibold); display: block; } .tag-group { align-items: anchor-center; display: flex; flex-wrap: wrap; gap: var(--tag-group-item-gap); } /* Label Styles */ .tag-group__label { color: var(--syn-input-label-color); display: block; font: var(--tag-group-label-font); } .tag-group--top .tag-group__label { /** * When calculating the margin-bottom, we have to take the gap of .tag-group into account. * We dont want to remove the row-gap above, as otherwise the gap between multi line tags would be 0. * By subtracting the row-gap from the label gap, we ensure that the distance between the label and the first row of tags is consistent. */ margin-bottom: calc(var(--tag-group-label-gap) - var(--syn-spacing-2x-small)); order: -1; width: 100%; } /* Size Modifiers */ .tag-group--small { --tag-group-item-gap: var(--syn-spacing-2x-small); --tag-group-label-gap: var(--syn-spacing-x-small); --tag-group-label-font: var(--syn-body-small-semibold); } .tag-group--large { --tag-group-item-gap: var(--syn-spacing-small); --tag-group-label-gap: var(--syn-spacing-x-small); --tag-group-label-font: var(--syn-body-large-semibold); } `; export { tag_group_styles_default }; //# sourceMappingURL=chunk.TWTN3XDM.js.map