main.less 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. .jstree-@{theme-name} {
  2. .jstree-node,
  3. .jstree-icon { background-repeat:no-repeat; background-color:transparent; }
  4. .jstree-anchor,
  5. .jstree-animated,
  6. .jstree-wholerow { transition:background-color 0.15s, box-shadow 0.15s; }
  7. .jstree-hovered { background:@hovered-bg-color; border-radius:2px; box-shadow:inset 0 0 1px @hovered-shadow-color; }
  8. .jstree-context { background:@hovered-bg-color; border-radius:2px; box-shadow:inset 0 0 1px @hovered-shadow-color; }
  9. .jstree-clicked { background:@clicked-bg-color; border-radius:2px; box-shadow:inset 0 0 1px @clicked-shadow-color; }
  10. .jstree-no-icons .jstree-anchor > .jstree-themeicon { display:none; }
  11. .jstree-disabled {
  12. background:transparent; color:@disabled-color;
  13. &.jstree-hovered { background:transparent; box-shadow:none; }
  14. &.jstree-clicked { background:@disabled-bg-color; }
  15. > .jstree-icon { opacity:0.8; filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale"); /* Firefox 10+ */ filter: gray; /* IE6-9 */ -webkit-filter: grayscale(100%); /* Chrome 19+ & Safari 6+ */ }
  16. }
  17. // search
  18. .jstree-search { font-style:italic; color:@search-result-color; font-weight:bold; }
  19. // checkboxes
  20. .jstree-no-checkboxes .jstree-checkbox { display:none !important; }
  21. &.jstree-checkbox-no-clicked {
  22. .jstree-clicked {
  23. background:transparent;
  24. box-shadow:none;
  25. &.jstree-hovered { background:@hovered-bg-color; }
  26. }
  27. > .jstree-wholerow-ul .jstree-wholerow-clicked {
  28. background:transparent;
  29. &.jstree-wholerow-hovered { background:@hovered-bg-color; }
  30. }
  31. }
  32. // stripes
  33. > .jstree-striped { min-width:100%; display:inline-block; background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB/qqA+AAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMNAMM9s3UAAAAXSURBVHjajcEBAQAAAIKg/H/aCQZ70AUBjAATb6YPDgAAAABJRU5ErkJggg==") left top repeat; }
  34. // wholerow
  35. > .jstree-wholerow-ul .jstree-hovered,
  36. > .jstree-wholerow-ul .jstree-clicked { background:transparent; box-shadow:none; border-radius:0; }
  37. .jstree-wholerow { -moz-box-sizing:border-box; -webkit-box-sizing:border-box; box-sizing:border-box; }
  38. .jstree-wholerow-hovered { background:@hovered-bg-color; }
  39. .jstree-wholerow-clicked { .gradient(@clicked-gradient-color-1, @clicked-gradient-color-2); }
  40. }
  41. // theme variants
  42. .jstree-@{theme-name} {
  43. .jstree-theme(24px, "@{image-path}32px.png", 32px);
  44. &.jstree-rtl .jstree-node { background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg=="); }
  45. &.jstree-rtl .jstree-last { background:transparent; }
  46. }
  47. .jstree-@{theme-name}-small {
  48. .jstree-theme(18px, "@{image-path}32px.png", 32px);
  49. &.jstree-rtl .jstree-node { background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg=="); }
  50. &.jstree-rtl .jstree-last { background:transparent; }
  51. }
  52. .jstree-@{theme-name}-large {
  53. .jstree-theme(32px, "@{image-path}32px.png", 32px);
  54. &.jstree-rtl .jstree-node { background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg=="); }
  55. &.jstree-rtl .jstree-last { background:transparent; }
  56. }
  57. // mobile theme attempt
  58. @media (max-width: 768px) {
  59. #jstree-dnd.jstree-dnd-responsive when (@responsive = true) {
  60. line-height:@base-height; font-weight:bold; font-size:1.1em; text-shadow:1px 1px white;
  61. > i { background:transparent; width:@base-height; height:@base-height; }
  62. > .jstree-ok { background-image:url("@{image-path}@{base-height}.png"); background-position:0 -(@base-height * 5); background-size:(@base-height * 3) (@base-height * 6); }
  63. > .jstree-er { background-image:url("@{image-path}@{base-height}.png"); background-position:-(@base-height * 1) -(@base-height * 5); background-size:(@base-height * 3) (@base-height * 6); }
  64. }
  65. #jstree-marker.jstree-dnd-responsive when (@responsive = true) {
  66. border-left-width:10px;
  67. border-top-width:10px;
  68. border-bottom-width:10px;
  69. margin-top:-10px;
  70. }
  71. }
  72. .jstree-@{theme-name}-responsive when (@responsive = true) {
  73. @import "responsive.less";
  74. }