shoelace/src/components/tree/tree.styles.ts

24 wiersze
662 B
TypeScript

import { css } from 'lit';
export default css`
:host {
/*
* These are actually used by tree item, but we define them here so they can more easily be set and all tree items
* stay consistent.
*/
--indent-guide-color: var(--sl-color-neutral-200);
--indent-guide-offset: 0;
--indent-guide-style: solid;
--indent-guide-width: 0;
--indent-size: var(--sl-spacing-large);
display: block;
/*
* Tree item indentation uses the "em" unit to increment its width on each level, so setting the font size to zero
* here removes the indentation for all the nodes on the first level.
*/
font-size: 0;
}
`;