base.less 5.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. // base jstree
  2. .jstree-node, .jstree-children, .jstree-container-ul { display:block; margin:0; padding:0; list-style-type:none; list-style-image:none; }
  3. .jstree-node { white-space:nowrap; }
  4. .jstree-anchor { display:inline-block; color:black; white-space:nowrap; padding:0 4px 0 1px; margin:0; vertical-align:top; }
  5. .jstree-anchor:focus { outline:0; }
  6. .jstree-anchor, .jstree-anchor:link, .jstree-anchor:visited, .jstree-anchor:hover, .jstree-anchor:active { text-decoration:none; color:inherit; }
  7. .jstree-icon { display:inline-block; text-decoration:none; margin:0; padding:0; vertical-align:top; text-align:center; }
  8. .jstree-icon:empty { display:inline-block; text-decoration:none; margin:0; padding:0; vertical-align:top; text-align:center; }
  9. .jstree-ocl { cursor:pointer; }
  10. .jstree-leaf > .jstree-ocl { cursor:default; }
  11. .jstree .jstree-open > .jstree-children { display:block; }
  12. .jstree .jstree-closed > .jstree-children,
  13. .jstree .jstree-leaf > .jstree-children { display:none; }
  14. .jstree-anchor > .jstree-themeicon { margin-right:2px; }
  15. .jstree-no-icons .jstree-themeicon,
  16. .jstree-anchor > .jstree-themeicon-hidden { display:none; }
  17. .jstree-hidden, .jstree-node.jstree-hidden { display:none; }
  18. // base jstree rtl
  19. .jstree-rtl {
  20. .jstree-anchor { padding:0 1px 0 4px; }
  21. .jstree-anchor > .jstree-themeicon { margin-left:2px; margin-right:0; }
  22. .jstree-node { margin-left:0; }
  23. .jstree-container-ul > .jstree-node { margin-right:0; }
  24. }
  25. // base jstree wholerow
  26. .jstree-wholerow-ul {
  27. position:relative;
  28. display:inline-block;
  29. min-width:100%;
  30. .jstree-leaf > .jstree-ocl { cursor:pointer; }
  31. .jstree-anchor, .jstree-icon { position:relative; }
  32. .jstree-wholerow { width:100%; cursor:pointer; position:absolute; left:0; -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none; }
  33. }
  34. // base contextmenu
  35. .jstree-contextmenu .jstree-anchor {
  36. -webkit-user-select: none; /* disable selection/Copy of UIWebView */
  37. -webkit-touch-callout: none; /* disable the IOS popup when long-press on a link */
  38. user-select: none;
  39. }
  40. .vakata-context {
  41. display:none;
  42. &, ul { margin:0; padding:2px; position:absolute; background:#f5f5f5; border:1px solid #979797; box-shadow:2px 2px 2px #999999; }
  43. ul { list-style:none; left:100%; margin-top:-2.7em; margin-left:-4px; }
  44. .vakata-context-right ul { left:auto; right:100%; margin-left:auto; margin-right:-4px; }
  45. li {
  46. list-style:none;
  47. > a {
  48. display:block; padding:0 2em 0 2em; text-decoration:none; width:auto; color:black; white-space:nowrap; line-height:2.4em; text-shadow:1px 1px 0 white; border-radius:1px;
  49. &:hover { position:relative; background-color:#e8eff7; box-shadow:0 0 2px #0a6aa1; }
  50. &.vakata-context-parent { background-image:url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw=="); background-position:right center; background-repeat:no-repeat; }
  51. }
  52. > a:focus { outline:0; }
  53. }
  54. .vakata-context-no-icons { margin-left:0; }
  55. .vakata-context-hover > a { position:relative; background-color:#e8eff7; box-shadow:0 0 2px #0a6aa1; }
  56. .vakata-context-separator {
  57. > a, > a:hover { background:white; border:0; border-top:1px solid #e2e3e3; height:1px; min-height:1px; max-height:1px; padding:0; margin:0 0 0 2.4em; border-left:1px solid #e0e0e0; text-shadow:0 0 0 transparent; box-shadow:0 0 0 transparent; border-radius:0; }
  58. }
  59. .vakata-contextmenu-disabled {
  60. a, a:hover { color:silver; background-color:transparent; border:0; box-shadow:0 0 0; }
  61. > a > i { filter: grayscale(100%); }
  62. }
  63. li > a {
  64. > i { text-decoration:none; display:inline-block; width:2.4em; height:2.4em; background:transparent; margin:0 0 0 -2em; vertical-align:top; text-align:center; line-height:2.4em; }
  65. > i:empty { width:2.4em; line-height:2.4em; }
  66. .vakata-contextmenu-sep { display:inline-block; width:1px; height:2.4em; background:white; margin:0 0.5em 0 0; border-left:1px solid #e2e3e3; }
  67. }
  68. .vakata-contextmenu-shortcut { font-size:0.8em; color:silver; opacity:0.5; display:none; }
  69. }
  70. .vakata-context-rtl {
  71. ul { left:auto; right:100%; margin-left:auto; margin-right:-4px; }
  72. li > a.vakata-context-parent { background-image:url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7"); background-position:left center; background-repeat:no-repeat; }
  73. .vakata-context-separator > a { margin:0 2.4em 0 0; border-left:0; border-right:1px solid #e2e3e3;}
  74. .vakata-context-left ul { right:auto; left:100%; margin-left:-4px; margin-right:auto; }
  75. li > a {
  76. > i { margin:0 -2em 0 0; }
  77. .vakata-contextmenu-sep { margin:0 0 0 0.5em; border-left-color:white; background:#e2e3e3; }
  78. }
  79. }
  80. // base drag'n'drop
  81. #jstree-marker { position: absolute; top:0; left:0; margin:-5px 0 0 0; padding:0; border-right:0; border-top:5px solid transparent; border-bottom:5px solid transparent; border-left:5px solid; width:0; height:0; font-size:0; line-height:0; }
  82. #jstree-dnd {
  83. line-height:16px;
  84. margin:0;
  85. padding:4px;
  86. .jstree-icon,
  87. .jstree-copy { display:inline-block; text-decoration:none; margin:0 2px 0 0; padding:0; width:16px; height:16px; }
  88. .jstree-ok { background:green; }
  89. .jstree-er { background:red; }
  90. .jstree-copy { margin:0 2px 0 2px; }
  91. }