2021-09-27 06:14:26 -05:00
|
|
|
.file-tree {
|
|
|
|
font-family: $font-family-primary !important;
|
|
|
|
font-size: $tree-font-size !important;
|
|
|
|
background-color: $color-bg !important;
|
|
|
|
display: inline-block;
|
|
|
|
color: $tree-text-fg !important;
|
|
|
|
&, & * {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-tree > {
|
|
|
|
div {
|
2021-10-04 02:05:08 -05:00
|
|
|
position: absolute !important;
|
|
|
|
height: 100% !important;
|
|
|
|
top: 0px !important;
|
|
|
|
}
|
2021-09-27 06:14:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.file-entry
|
|
|
|
{
|
2021-10-04 02:05:08 -05:00
|
|
|
font: inherit;
|
|
|
|
text-align: left;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
white-space: nowrap;
|
|
|
|
padding: 2px 0;
|
|
|
|
cursor: pointer !important;
|
2021-09-27 06:14:26 -05:00
|
|
|
color: $tree-text-fg !important;
|
2021-10-12 07:23:38 -05:00
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
background: $color-gray-light;
|
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
height: 100%;
|
2022-01-13 01:22:55 -06:00
|
|
|
// set box-shadow to show tree indent guide.
|
2021-10-12 07:23:38 -05:00
|
|
|
box-shadow: -16px 0 0 0 $color-gray-light,
|
|
|
|
-32px 0 0 0 $color-gray-light,
|
|
|
|
-48px 0 0 0 $color-gray-light,
|
|
|
|
-64px 0 0 0 $color-gray-light,
|
|
|
|
-80px 0 0 0 $color-gray-light,
|
|
|
|
-96px 0 0 0 $color-gray-light,
|
|
|
|
-112px 0 0 0 $color-gray-light,
|
|
|
|
-128px 0 0 0 $color-gray-light,
|
|
|
|
-144px 0 0 0 $color-gray-light,
|
|
|
|
-160px 0 0 0 $color-gray-light,
|
|
|
|
-176px 0 0 0 $color-gray-light,
|
|
|
|
-192px 0 0 0 $color-gray-light,
|
2022-01-13 01:22:55 -06:00
|
|
|
-208px 0 0 0 $color-gray-light,
|
|
|
|
-224px 0 0 0 $color-gray-light,
|
|
|
|
-240px 0 0 0 $color-gray-light,
|
|
|
|
-256px 0 0 0 $color-gray-light,
|
|
|
|
-272px 0 0 0 $color-gray-light,
|
|
|
|
-288px 0 0 0 $color-gray-light,
|
|
|
|
-304px 0 0 0 $color-gray-light,
|
|
|
|
-320px 0 0 0 $color-gray-light,
|
|
|
|
-336px 0 0 0 $color-gray-light,
|
|
|
|
-352px 0 0 0 $color-gray-light,
|
|
|
|
-368px 0 0 0 $color-gray-light,
|
|
|
|
-384px 0 0 0 $color-gray-light,
|
|
|
|
-400px 0 0 0 $color-gray-light,
|
|
|
|
-416px 0 0 0 $color-gray-light,
|
|
|
|
-432px 0 0 0 $color-gray-light,
|
|
|
|
-448px 0 0 0 $color-gray-light,
|
|
|
|
-464px 0 0 0 $color-gray-light,
|
|
|
|
-480px 0 0 0 $color-gray-light,
|
|
|
|
-496px 0 0 0 $color-gray-light,
|
|
|
|
-512px 0 0 0 $color-gray-light,
|
|
|
|
-528px 0 0 0 $color-gray-light,
|
|
|
|
-544px 0 0 0 $color-gray-light,
|
|
|
|
-544px 0 0 0 $color-gray-light,
|
|
|
|
-560px 0 0 0 $color-gray-light;
|
2021-10-12 07:23:38 -05:00
|
|
|
}
|
2021-09-27 06:14:26 -05:00
|
|
|
&:hover, &.pseudo-active {
|
|
|
|
background-color: $tree-bg-hover !important;
|
2021-10-04 02:05:08 -05:00
|
|
|
color: $tree-fg-hover !important;
|
2021-10-04 02:45:19 -05:00
|
|
|
span.file-label {
|
|
|
|
span.file-name {
|
|
|
|
color: $tree-text-hover-fg !important;
|
|
|
|
}
|
|
|
|
}
|
2021-09-27 06:14:26 -05:00
|
|
|
}
|
2021-10-04 02:05:08 -05:00
|
|
|
&.active, &.prompt {
|
|
|
|
background-color: $tree-bg-selected !important;
|
|
|
|
border-color: $color-primary-light;
|
|
|
|
border-right: $active-border !important;
|
|
|
|
color: $tree-text-hover-fg !important;
|
|
|
|
span.file-label {
|
|
|
|
span.file-name {
|
|
|
|
color: $tree-text-hover-fg !important;
|
|
|
|
}
|
2021-09-27 06:14:26 -05:00
|
|
|
}
|
2021-10-04 02:05:08 -05:00
|
|
|
}
|
|
|
|
i {
|
|
|
|
display: inline-block;
|
|
|
|
font-size: 18px;
|
|
|
|
text-align: center;
|
|
|
|
height: 21px !important;
|
|
|
|
width: 20px !important;
|
2021-10-06 04:23:28 -05:00
|
|
|
flex-shrink: 0;
|
2021-10-04 02:05:08 -05:00
|
|
|
&:before {
|
|
|
|
height: inherit;
|
|
|
|
width: inherit;
|
2021-09-27 06:14:26 -05:00
|
|
|
display: inline-block;
|
|
|
|
}
|
2021-10-04 02:05:08 -05:00
|
|
|
&.directory-toggle {
|
|
|
|
&:before {
|
|
|
|
background-position: 6px center !important;
|
|
|
|
font-family: $font-family-icon;
|
|
|
|
content: "\f054" !important;
|
|
|
|
border-style: none;
|
|
|
|
margin-left: 5px;
|
|
|
|
font-weight: 900;
|
|
|
|
right: 15px;
|
|
|
|
top: 3px;
|
|
|
|
font-size: 0.6rem;
|
|
|
|
line-height: 2;
|
|
|
|
}
|
|
|
|
&.open:before {
|
|
|
|
background-position: -14px center !important;
|
|
|
|
font-family: $font-family-icon;
|
|
|
|
content: "\f078" !important;
|
|
|
|
border-style: none;
|
|
|
|
margin-left: 5px;
|
|
|
|
font-weight: 900;
|
|
|
|
transform: none !important;
|
|
|
|
}
|
|
|
|
&.loading:before {
|
|
|
|
font-weight: 900;
|
|
|
|
font-size: 0.6rem;
|
|
|
|
line-height: 2;
|
|
|
|
content: '' !important;
|
|
|
|
font-family: $font-family-icon;
|
|
|
|
margin-left: 5px;
|
|
|
|
border-style: none;
|
|
|
|
background: $loader-icon-small 0 0 no-repeat;
|
|
|
|
}
|
2021-09-27 06:14:26 -05:00
|
|
|
}
|
2021-10-04 02:05:08 -05:00
|
|
|
}
|
|
|
|
span.file-label {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding:0 2px 0 2px;
|
|
|
|
border:1px solid transparent;
|
|
|
|
height:auto;
|
|
|
|
white-space:normal;
|
|
|
|
cursor:pointer !important;
|
|
|
|
margin-left: 2px;
|
|
|
|
&:hover, &.pseudo-active {
|
|
|
|
color: $tree-fg-hover !important;
|
2021-09-27 06:14:26 -05:00
|
|
|
}
|
2021-10-04 02:05:08 -05:00
|
|
|
}
|
|
|
|
&.prompt.new .file-label, &.file .file-label {
|
|
|
|
margin-left: 18px;
|
|
|
|
}
|
|
|
|
span.file-name {
|
|
|
|
font: inherit;
|
|
|
|
flex-grow: 1;
|
|
|
|
user-select: none;
|
|
|
|
color: $tree-text-fg !important;
|
|
|
|
margin-left: 3px;
|
|
|
|
cursor: pointer !important;
|
|
|
|
white-space: nowrap;
|
|
|
|
&:hover, &.pseudo-active {
|
|
|
|
color: $tree-fg-hover !important;
|
2021-09-27 06:14:26 -05:00
|
|
|
}
|
2021-10-04 02:05:08 -05:00
|
|
|
}
|
2021-09-27 06:14:26 -05:00
|
|
|
}
|
|
|
|
|
2022-01-13 01:22:55 -06:00
|
|
|
// Set the tree depth CSS from depth level 21 to 50 as in default CSS depth is set from 0 to 20.
|
|
|
|
@for $i from 21 through 50 {
|
|
|
|
.file-entry.depth-#{$i} {
|
|
|
|
padding-left: 16px * ($i - 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-27 06:14:26 -05:00
|
|
|
.children-count {
|
2021-10-04 02:05:08 -05:00
|
|
|
margin-left: 3px;
|
2021-09-27 06:14:26 -05:00
|
|
|
}
|