You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_tree8.scss 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. @import "treegrid";
  2. $v-tree8-border-radius: 3px;
  3. @mixin valo-tree8 ($primary-stylename: v-tree8) {
  4. @include valo-treegrid($primary-stylename);
  5. .#{$primary-stylename} {
  6. background-color: transparent;
  7. }
  8. .#{$primary-stylename}-row > td {
  9. background-color: transparent;
  10. border: none;
  11. }
  12. .#{$primary-stylename}-tablewrapper {
  13. background-color: transparent;
  14. border: none;
  15. }
  16. .#{$primary-stylename}-row-selected > .#{$primary-stylename}-cell {
  17. background-color: transparent;
  18. background-image: none;
  19. color: inherit;
  20. text-shadow: none;
  21. border: none;
  22. }
  23. .#{$primary-stylename}:focus .#{$primary-stylename}-rowmode-row-focused:before {
  24. display: none;
  25. }
  26. .#{$primary-stylename}-cell-content {
  27. border: $v-grid-cell-focused-border;
  28. border-color: transparent;
  29. border-radius: $v-tree8-border-radius;
  30. padding: $v-grid-cell-padding;
  31. }
  32. .#{$primary-stylename}:focus .#{$primary-stylename}-rowmode-cell-focused
  33. > .#{$primary-stylename}-node > .#{$primary-stylename}-cell-content {
  34. border: $v-grid-cell-focused-border;
  35. }
  36. // Selected
  37. .#{$primary-stylename}-row-selected {
  38. $grid-sel-bg: $v-grid-row-selected-background-color;
  39. > .#{$primary-stylename}-cell > .#{$primary-stylename}-node > .#{$primary-stylename}-cell-content {
  40. @include valo-gradient($grid-sel-bg);
  41. color: valo-font-color($grid-sel-bg);
  42. text-shadow: valo-text-shadow($font-color: valo-font-color($grid-sel-bg), $background-color: $grid-sel-bg);
  43. border-color: adjust-color($grid-sel-bg, $lightness: -8%, $saturation: -8%);
  44. }
  45. > .#{$primary-stylename}-cell-focused > .#{$primary-stylename}-node > .#{$primary-stylename}-cell-content {
  46. border-color: adjust-color($grid-sel-bg, $lightness: 20%);
  47. }
  48. }
  49. }