scinote-web/app/assets/stylesheets/partials/_tree_view.scss

87 lines
1.3 KiB
SCSS
Raw Normal View History

2018-03-22 18:41:33 +08:00
@import "constants";
2016-02-12 23:52:43 +08:00
@import "mixins";
.tree {
height: 100%;
padding-bottom: 30px;
2018-03-22 18:41:33 +08:00
ul {
padding-left: 0;
}
> ul {
margin-bottom: 0;
}
.no-indent {
2016-02-12 23:52:43 +08:00
background-color: $color-white;
}
2018-03-22 18:41:33 +08:00
.first-indent {
2018-03-28 19:54:01 +08:00
background-color: $color-concrete;
2018-03-22 18:41:33 +08:00
padding-left: 30px;
2016-02-12 23:52:43 +08:00
}
2018-03-22 18:41:33 +08:00
.second-indent {
background-color: $color-gainsboro;
padding-left: 60px;
2016-02-12 23:52:43 +08:00
}
2018-03-22 18:41:33 +08:00
li {
list-style-type: none;
margin: 0;
position: relative;
span {
display: block;
padding: 15px;
2016-02-12 23:52:43 +08:00
2018-03-22 18:41:33 +08:00
&.my-module-group-element {
border: 0;
padding: 0;
}
&.glyphicon-map-marker {
border: 0;
display: inline-block;
padding: 0;
}
2016-02-12 23:52:43 +08:00
}
2018-03-22 18:41:33 +08:00
&.active > span {
2018-03-28 19:54:01 +08:00
background-color: $brand-primary;
2018-03-22 18:41:33 +08:00
color: $color-white;
font-weight: bold;
2016-02-12 23:52:43 +08:00
2018-03-22 18:41:33 +08:00
&.first-indent > span,
&.no-indent > span {
border: 0;
display: inline-block;
padding: 0;
}
2016-02-12 23:52:43 +08:00
}
2018-03-22 18:41:33 +08:00
i.glyphicon {
font-size: 9pt;
&.expanded {
@include rotate(90deg);
}
}
// Links are recolored
a {
color: $color-emperor;
&:hover {
2018-03-28 19:54:01 +08:00
color: $brand-primary;
2018-03-22 18:41:33 +08:00
}
}
.border-custom {
box-shadow: 0 -.25px 0 .25px $color-alto;
margin: 0 15px;
}
2016-02-12 23:52:43 +08:00
}
}