_tree.scss 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // Color for a property type
  2. .property-type {
  3. color:$color-bot;
  4. }
  5. .property-name {
  6. color:$color-top;
  7. }
  8. .insp-tree {
  9. overflow-y: auto;
  10. overflow-x: hidden;
  11. height : calc(50% - #{$tabbar-height} - #{$searchbar-height});
  12. .line {
  13. padding:3px;
  14. cursor:pointer;
  15. // Hover
  16. &:hover {
  17. background-color:$background-lighter;
  18. }
  19. // Line active (selected)
  20. &.active {
  21. background-color:$background-lighter3;
  22. .line-content {
  23. background-color:$background;
  24. }
  25. }
  26. // > before title names
  27. &.unfolded:before{
  28. width : 1em;
  29. height : 1em;
  30. line-height: 1em;
  31. display : inline-block;
  32. font-family: 'FontAwesome', sans-serif;
  33. content : "\f078";
  34. }
  35. &.folded:before{
  36. width : 1em;
  37. height : 1em;
  38. line-height: 1em;
  39. display : inline-block;
  40. font-family: 'FontAwesome', sans-serif;
  41. content : "\f054";
  42. }
  43. &.unfolded.transformNode > span:first-of-type{
  44. color:$color-top;
  45. }
  46. &.folded.transformNode > span:first-of-type{
  47. color:$color-top;
  48. }
  49. // Sub lines
  50. .line-content {
  51. padding-left:15px;
  52. &:hover {
  53. background-color:$background;
  54. }
  55. .line:hover:first-child {
  56. background-color:$background-lighter2;
  57. }
  58. }
  59. }
  60. .line_invisible {
  61. display: none;
  62. }
  63. }