.tree .root,
.tree ul,
.tree li {
list-style: none;
margin: 0;
padding: 0;
position: relative;
display: table-cell;
}
.tree .root {
margin: 0 0 1em;
text-align: center;
overflow-x: auto;
}
.tree ul {
margin: 0 !important;
width: 100%;
}
.tree li {
padding: .5em 0;
vertical-align: top;
}
.tree .root > ul {
display: block;
}
.tree li > div:first-child {
left: 0;
position: absolute;
right: 0;
top: 0;
}
.tree div:first-child + li > div:first-child {
left: 50% !important;
}
.tree li:last-child > div:first-child {
right: 50%;
}
.tree code,
.tree span {
border-radius: .25rem;
display: inline-block;
margin: 0 .2em .5em;
padding: .2em .5em;
position: relative;
width: max-content;
}
.tree ul > div:first-child,
.tree code > div:first-child,
.tree span > div:first-child {
height: .5em;
left: 50%;
position: absolute;
}
.tree ul > div:first-child {
top: -.5em;
}
.tree code > div:first-child,
.tree span > div:first-child {
top: -.55em;
}
.tree .root > li {
margin-top: 0;
}
.tree .root > div:first-child,
.tree .root > li > span div:first-child,
.tree .root > li > div:first-child {
display: none;
}