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

58 lines (47 loc) 1.35 kB
// src/components/dropdown/dropdown.styles.ts import { css } from "lit"; var dropdown_styles_default = css` /* stylelint-disable */ :host { display: inline-block; } .dropdown::part(popup) { z-index: var(--syn-z-index-dropdown); } .dropdown[data-current-placement^='top']::part(popup) { transform-origin: bottom; } .dropdown[data-current-placement^='bottom']::part(popup) { transform-origin: top; } .dropdown[data-current-placement^='left']::part(popup) { transform-origin: right; } .dropdown[data-current-placement^='right']::part(popup) { transform-origin: left; } .dropdown__trigger { display: block; } .dropdown__panel { font-family: var(--syn-font-sans); font-size: var(--syn-font-size-medium); font-weight: var(--syn-font-weight-normal); box-shadow: var(--syn-shadow-large); border-radius: var(--syn-border-radius-medium); pointer-events: none; } .dropdown--open .dropdown__panel { display: block; pointer-events: all; } /* When users slot a menu, make sure it conforms to the popup's auto-size */ ::slotted(syn-menu) { max-width: var(--auto-size-available-width) !important; max-height: var(--auto-size-available-height) !important; } `; export { dropdown_styles_default }; //# sourceMappingURL=chunk.D6IIQDWJ.js.map