scinote-web/app/assets/stylesheets/partials/_tree_view.scss
2019-10-04 15:18:17 +02:00

142 lines
2 KiB
SCSS

@import "constants";
@import "mixins";
.tree {
height: 100%;
padding-bottom: 30px;
ul {
padding-left: 0;
}
> ul {
margin-bottom: 0;
}
.no-indent {
background-color: $color-white;
}
.first-indent {
background-color: $color-concrete;
padding-left: 30px;
}
.second-indent {
background-color: $color-concrete;
padding-left: 60px;
}
li {
list-style-type: none;
margin: 0;
position: relative;
span {
display: block;
padding: 15px;
&.my-module-group-element {
border: 0;
padding: 0;
}
&.fa-map-marker-alt {
border: 0;
display: inline-block;
padding: 0;
}
}
&.active > span {
background-color: $brand-primary;
color: $color-white;
font-weight: bold;
&.first-indent > span,
&.no-indent > span {
border: 0;
display: inline-block;
padding: 0;
width: 100%;
}
}
i.no-arrow {
padding-left: 15px;
}
i.fas {
cursor: pointer;
font-size: 9pt;
&.expanded {
@include rotate(90deg);
}
}
// Links are recolored
a {
color: $color-emperor;
position: relative;
&.disabled {
color: $color-white;
}
&:hover {
color: $brand-primary;
}
}
.border-custom {
box-shadow: 0 -.25px 0 .25px $color-alto;
margin: 0 15px;
}
}
.tree-link {
display: flex;
a:not(.canvas-center-on) {
width: 100%;
}
a:not(.canvas-center-on)::after {
height: 48px;
left: -3px;
position: absolute;
top: -18px;
width: 100%;
}
}
#settings {
.fa-caret-right {
margin-left: -15px;
}
.no-indent {
padding-left: 30px;
}
.first-indent {
padding-left: 45px;
}
}
}
#repo-tree {
height: calc(100% - 50px);
.fas-custom {
float: right;
top: 2px;
}
.active {
.fas-custom {
fill: $color-white;
}
}
}