awesome.less 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. /*-------------------------------------
  2. zTree Style using fontawesome instead of images
  3. version: 1.1
  4. author: Mike King
  5. email: mikkelking @ hotmail . com
  6. website: http://code.google.com/p/jquerytree/
  7. -------------------------------------*/
  8. /* Definitions ----------------------*/
  9. @font-size: 12px;
  10. // Regular icon and text color is white, which suits any medium -> dark background
  11. @color-normal: white;
  12. // Background color
  13. @color-bg: #af0000;
  14. // Highlight color
  15. @color-highlight: yellow;
  16. // Partially selected (checkboxes, radio buttons)
  17. @color-partial: #aaaaaa;
  18. // Partially selected and focused (checkboxes, radio buttons)
  19. @color-partfocus: #cad96c;
  20. // Disabled altogether
  21. @color-disabled: #808080;
  22. // Editing color
  23. @color-edit: yellow;
  24. @w: 15px;
  25. @h: 17px;
  26. @pad-left: 2px;
  27. @pad-top: 10px;
  28. /* End of Definitions ---------------*/
  29. /* Imports -------------------------*/
  30. @import "fa.less";
  31. /* End of Imports ------------------*/
  32. .ztree * {padding:0; margin:0; font-size:@font-size; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif; background-color: @color-bg;}
  33. .ztree {
  34. margin:0; padding:5px; color:@color-normal; background-color: @color-bg;
  35. li {
  36. padding:0; margin:0; list-style:none; line-height:17px; text-align:left; white-space:nowrap; outline:0;
  37. ul {
  38. margin: 0px; padding:0 0 0 18px;
  39. }
  40. ul.line { }
  41. a {padding-right:3px; margin:0; cursor:pointer; height:@h; color:@color-normal; background-color: transparent;
  42. text-decoration:none; vertical-align:top; display: inline-block;
  43. input.rename {height:14px; width:80px; padding:0; margin:0;
  44. color: @color-bg; background-color: @color-normal;
  45. font-size:@font-size; border:1px #585956 solid; *border:0px}
  46. }
  47. a:hover {text-decoration:underline}
  48. a.curSelectedNode {padding-top:0px; background-color:#af4040; color:@color-highlight; height:@h; opacity:0.8;}
  49. a.curSelectedNode_Edit {padding-top:0px; background-color:transparent; color:@color-highlight; height:@h; border:1px #666 solid; opacity:0.8;}
  50. a.tmpTargetNode_inner {padding-top:0px; background-color:#aaa; color:@color-highlight; height:@h; border:1px #666 solid;
  51. opacity:0.8; filter:alpha(opacity=80)}
  52. a.tmpTargetNode_prev {}
  53. a.tmpTargetNode_next {}
  54. span {line-height:@h; margin-right:2px; background-color:transparent;}
  55. span.button {line-height:0; margin:0; padding: 0; width:@w; height:@h; display: inline-block; vertical-align:top;
  56. border:0px solid; cursor: pointer;outline:none;
  57. background-color:transparent; background-repeat:no-repeat; background-attachment: scroll;
  58. &::before{color: @color-normal; font-family: FontAwesome; padding-top:@pad-top;}
  59. &.chk { margin:0px; cursor: auto; width: 12px;
  60. display: inline-block;padding-top:@pad-top;padding-left:@pad-left;
  61. &.checkbox_false_full::before {content: @fa-square-o;}
  62. &.checkbox_false_full_focus::before {content: @fa-square-o; color:@color-highlight;}
  63. &.checkbox_false_part::before {content: @fa-square-o;color: @color-partial;}
  64. &.checkbox_false_part_focus::before {content: @fa-square-o; color:@color-partfocus;}
  65. &.checkbox_false_disable::before {content: @fa-square-o; color:@color-disabled;}
  66. &.checkbox_true_full::before {content: @fa-check-square-o;}
  67. &.checkbox_true_full_focus::before {content: @fa-check-square-o;}
  68. &.checkbox_true_part::before {content: @fa-check-square;}
  69. &.checkbox_true_part_focus::before {content: @fa-check-square; color: @color-highlight}
  70. &.checkbox_true_full_focus::before {content: @fa-check-square-o; color: @color-highlight}
  71. &.checkbox_true_part::before {content: @fa-check-square-o;color: @color-partial}
  72. &.checkbox_true_part_focus::before {content: @fa-check-square-o;color: @color-partfocus;}
  73. &.checkbox_true_disable::before {content: @fa-check-square-o;color: @color-disabled}
  74. &.radio_false_full::before {content: @fa-circle-o;}
  75. &.radio_false_full_focus::before {content: @fa-circle-o;color: @color-highlight}
  76. &.radio_false_part::before {content: @fa-circle-o;color: @color-partial}
  77. &.radio_false_part_focus::before {content: @fa-circle-o;color: @color-highlight}
  78. &.radio_false_disable::before {content: @fa-circle-thin;color: @color-disabled}
  79. &.radio_true_full::before {content: @fa-dot-circle-o;}
  80. &.radio_true_full_focus::before {content: @fa-dot-circle-o;color: @color-highlight}
  81. &.radio_true_part::before {content: @fa-dot-circle-o;color: @color-partial}
  82. &.radio_true_part_focus::before {content: @fa-dot-circle-o;color: @color-partial;}
  83. &.radio_true_disable::before {content: @fa-circle-thin;color: @color-disabled}
  84. }
  85. &.switch {width:@w; height:@h}
  86. &.root_open::before{content: @fa-chevron-down;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;}
  87. &.root_close::before{content: @fa-folder-open-o;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;}
  88. &.roots_open::before{content: @fa-chevron-down;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;}
  89. &.roots_close::before{content: @fa-chevron-right;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;}
  90. &.center_open::before{content: @fa-chevron-down;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;}
  91. &.center_close::before{content: @fa-chevron-right;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;}
  92. &.bottom_open::before{content: @fa-chevron-down;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;}
  93. &.bottom_close::before{content: @fa-chevron-right;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;}
  94. &.noline_open{}
  95. &.noline_close{}
  96. &.root_docu{ background:none;}
  97. &.roots_docu::before{content: @fa-list-alt;padding-left:@pad-left;display: inline-block;color:@color-normal;}
  98. &.center_docu::before{padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;}
  99. &.bottom_docu::before{padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;}
  100. &.noline_docu{ background:none;}
  101. &.ico_open::before {content: @fa-folder-open-o;font-family: FontAwesome;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;}
  102. &.ico_close::before {content: @fa-folder-o;font-family: FontAwesome;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;}
  103. &.ico_docu::before{content: @fa-list-alt;font-family: FontAwesome;padding-top:@pad-top;padding-left:@pad-left;display: inline-block;color:@color-normal;}
  104. &.edit {margin-left:4px; margin-right: -1px; vertical-align:top; *vertical-align:middle;padding-top:@pad-top;}
  105. &.edit::before{content: @fa-pencil-square-o;font-family: FontAwesome;}
  106. &.remove {margin-left:4px; margin-right: -1px; vertical-align:top; *vertical-align:middle;padding-top:@pad-top;}
  107. &.remove::before{content: @fa-trash;font-family: FontAwesome;}
  108. &.add {margin-left:4px; margin-right: -1px; vertical-align:top; *vertical-align:middle;padding-top:@pad-top;}
  109. &.add::before{content: @fa-plus;font-family: FontAwesome;}
  110. &.ico_loading{margin-right:2px; background:url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
  111. }
  112. }
  113. }
  114. ul.tmpTargetzTree {background-color:#FFE6B0; opacity:0.8; filter:alpha(opacity=80)}
  115. // this is the arrow that moves
  116. span.tmpzTreeMove_arrow{width:16px; height:@h; display: inline-block;
  117. padding:0; margin:2px 0 0 1px; border:0 none; position:absolute;
  118. background-color:transparent; background-attachment: scroll;
  119. }
  120. span.tmpzTreeMove_arrow::before{content: @fa-play;font-family: FontAwesome;color: @color-highlight;
  121. }
  122. // outline
  123. ul.ztree.zTreeDragUL {margin:0; padding:0; position:absolute; width:auto; height:auto;overflow:hidden;
  124. background-color:#cfcfcf; border:1px @color-highlight dotted; opacity:0.8; filter:alpha(opacity=80)}
  125. .ztreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute}