UNPKG

@asup/tree-of-nodes

Version:
112 lines (95 loc) 2.06 kB
:root { --ton-transition-time: .3s; --ton-long-transition-time: .6s; } .tree-of-nodes { flex-direction: column; gap: 1px; width: 100%; max-width: 100%; display: flex; } .ton-checkbox { margin-top: 3px; margin-right: 3px; } .ton-expander { margin: 0; } .ton-node { cursor: pointer; align-items: center; width: 100%; max-width: 100%; height: 30px; display: flex; } .ton-label { height: 26px; } .ton-label-span { text-overflow: ellipsis; white-space: nowrap; border: 1px; border-radius: 3px; width: 100%; padding: 1px 3px; display: inline-block; overflow: hidden; } .ton-rename-holder { width: 100%; } .ton-rename { border: 1px dotted #000; width: 100%; min-width: 0; line-height: 24px; } .ton-child { opacity: 1; transition: opacity var(--ton-long-transition-time) linear; margin-left: 16px; display: block; } .ton-collapsible-wrapper { width: 100%; max-width: 100%; display: flex; overflow: hidden; } .ton-collapsible-wrapper:after { content: ""; height: 1px; transition: height var(--ton-transition-time) linear, max-height 0s var(--ton-transition-time) linear; max-height: 0; } .ton-collapsible { transition: margin-bottom var(--ton-transition-time) cubic-bezier(0, 0, 0, 1); flex-direction: column; gap: 1px; width: 100%; max-height: 10000px; margin-top: 1px; margin-bottom: 1px; display: flex; } .ton-collapsible-wrapper.collapsed > .ton-collapsible { transition: margin-bottom var(--ton-transition-time) cubic-bezier(1, 0, 1, 1), visibility 0s var(--ton-transition-time), max-height 0s var(--ton-transition-time); visibility: hidden; max-height: 0; margin-bottom: -2000px; } .ton-collapsible-wrapper.collapsed:after { height: 0; transition: height var(--ton-transition-time) linear; max-height: 20px; } .ton-collapsible-wrapper.collapsed { visibility: hidden; } .ton-collapsible-wrapper.collapsed .ton-child { opacity: 0; transition: opacity var(--ton-long-transition-time) linear; } /*# sourceMappingURL=main.css.map */