tin-react-components
Version:
All components used for Omadi apps
139 lines (135 loc) • 2.51 kB
CSS
.tree .node:not(.level-0) {
margin-left: 16px;
font-size: 12px;
}
.tree .node {
position: relative;
}
.tree .node:not(.barren)::before {
content: '';
display: inline-block;
position: absolute;
top: 22px;
bottom: -9px;
width: 1px;
background: white;
left: 7px;
opacity: .03;
}
.tree .node > .node {
display: none;
}
.tree .node.open > .node {
display: block;
}
.tree .node a {
cursor: pointer;
position: relative;
}
.tree .node a > i {
opacity: 0;
position: absolute;
top: 3px;
transition: opacity .25s;
right: 0;
}
.tree .node a:hover > i {
opacity: 1;
transition: opacity .25s;
}
.tree .node.selected > a {
color: white;
}
.tree .node.selected-leaf::after {
content: '';
display: inline-block;
position: absolute;
top: 0px;
bottom: 0px;
width: 1px;
background: white;
left: -9px;
}
.tree .search-part .search-word {
text-decoration: underline;
}
.tree .search-item {
font-size: .75rem;
}
.tree input.search {
background: none;
border: none;
border-bottom: thin solid white;
width: 100%;
color: white;
font-size: var(--font-size-normal);
padding: var(--gutter-small) 0;
margin-bottom: var(--gutter-2);
outline: none;
font-weight: var(--weight-normal);
}
.tree .search-container {
position: relative;
}
.tree .search-container .clear {
display: inline-block;
cursor: pointer;
position: absolute;
top: 0;
right: 0;
height: 22px;
width: 22px;
}
.tree .search-container .icon {
opacity: .4;
margin-top: var(--gutter);
position: absolute;
top: -6px;
right: 0px;
display: inline-block;
background-color: #fff;
width: 9px;
height: 2px;
transform: rotate(45deg);
margin: 24px 1px 0 24px;
transition: all 200ms ease-in-out;
}
.tree .search-container .icon::before {
position: absolute;
content: '';
width: 100%;
height: 100%;
background-color: #fff;
transition: all 200ms ease-in-out;
}
.tree .search-container .icon::after {
position: absolute;
content: '';
width: 12px;
height: 12px;
border-radius: 50%;
margin-top: -5px;
margin-left: -10px;
box-shadow: 0 0 0 2px #fff inset;
transition: all 200ms ease-in-out;
}
.tree .search-container .icon.x {
cursor: pointer;
width: 14px;
margin: 0;
margin-top: 22px;
margin-right: 0px;
}
.tree .search-container .icon.x:before {
transform: rotate(90deg);
}
.tree .search-container .icon.x:after {
opacity: 0;
margin-top: 10px;
margin-left: 24px;
width: 0;
height: 0;
}
.tree .match {
text-decoration: underline;
}