mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-17 18:32:35 +00:00
155 lines
2.1 KiB
SCSS
155 lines
2.1 KiB
SCSS
.tree {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0 0 12px;
|
|
|
|
.tree-item & {
|
|
padding-left: 8px;
|
|
}
|
|
}
|
|
|
|
.tree-item {
|
|
@extend %first-last-no-margin;
|
|
|
|
position: relative;
|
|
margin: 4px 0;
|
|
border-radius: 3px;
|
|
|
|
&.active {
|
|
background-color: $color-primary-100;
|
|
}
|
|
|
|
&.tree-item-loading::after {
|
|
content: " ";
|
|
|
|
@include loading(14px);
|
|
@include absolute(9px, 9px, auto, auto);
|
|
}
|
|
}
|
|
|
|
%tree-size {
|
|
line-height: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
.tree-action {
|
|
@extend %tree-size;
|
|
|
|
padding: 0 32px 0 6px;
|
|
border-radius: 3px;
|
|
|
|
&:hover {
|
|
background-color: $color-neutral-100;
|
|
}
|
|
|
|
.tree-item.active &:hover {
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
|
|
.tree-link {
|
|
@extend %tree-size;
|
|
@extend %ellipsis;
|
|
|
|
display: block;
|
|
color: $color-primary-900;
|
|
font-size: 14px;
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
.tree-type {
|
|
@extend %tree-size;
|
|
|
|
text-align: center;
|
|
width: $fa-fw-width;
|
|
color: $color-neutral-300;
|
|
margin-right: 4px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
%sub-tree-size {
|
|
line-height: 28px;
|
|
height: 28px;
|
|
}
|
|
|
|
.tree-subs {
|
|
list-style: none;
|
|
padding: 0 0 2px 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.tree-sub {
|
|
@extend %sub-tree-size;
|
|
|
|
position: relative;
|
|
padding: 0 34px;
|
|
|
|
&::before,
|
|
&::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: 12px;
|
|
}
|
|
|
|
&::before {
|
|
top: 0;
|
|
height: 28px;
|
|
border-left: 1px solid $color-neutral-200;
|
|
}
|
|
|
|
&::after {
|
|
top: 14px;
|
|
width: 12px;
|
|
border-bottom: 1px solid $color-neutral-200;
|
|
}
|
|
|
|
&:last-child::before {
|
|
height: 15px;
|
|
}
|
|
}
|
|
|
|
.tree-sub-link {
|
|
@extend %sub-tree-size;
|
|
@extend %ellipsis;
|
|
|
|
color: $color-primary-900;
|
|
display: block;
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
color: $color-primary-500;
|
|
}
|
|
|
|
.active > & {
|
|
font-weight: 600;
|
|
color: $color-primary-600;
|
|
}
|
|
}
|
|
|
|
.tree-options {
|
|
display: none;
|
|
position: absolute;
|
|
z-index: 1;
|
|
right: 0;
|
|
top: 0;
|
|
text-align: center;
|
|
width: 32px;
|
|
color: $color-neutral-300;
|
|
height: inherit;
|
|
line-height: inherit;
|
|
|
|
&:hover {
|
|
color: $color-neutral-700;
|
|
}
|
|
|
|
:hover > & {
|
|
display: block;
|
|
}
|
|
|
|
.tree-item-loading > .tree-action > & {
|
|
display: none;
|
|
}
|
|
}
|