awesome.less 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  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 * {
  33. padding: 0;
  34. margin: 0;
  35. font-size: @font-size;
  36. font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif;
  37. background-color: @color-bg;
  38. }
  39. .ztree {
  40. margin: 0;
  41. padding: 5px;
  42. color: @color-normal;
  43. background-color: @color-bg;
  44. li {
  45. padding: 0;
  46. margin: 0;
  47. list-style: none;
  48. line-height: 17px;
  49. text-align: left;
  50. white-space: nowrap;
  51. outline: 0;
  52. ul {
  53. margin: 0px;
  54. padding: 0 0 0 18px;
  55. }
  56. ul.line {
  57. }
  58. a {
  59. padding-right: 3px;
  60. margin: 0;
  61. cursor: pointer;
  62. height: @h;
  63. color: @color-normal;
  64. background-color: transparent;
  65. text-decoration: none;
  66. vertical-align: top;
  67. display: inline-block;
  68. input.rename {
  69. height: 14px;
  70. width: 80px;
  71. padding: 0;
  72. margin: 0;
  73. color: @color-bg;
  74. background-color: @color-normal;
  75. font-size: @font-size;
  76. border: 1px #585956 solid;
  77. *border: 0px
  78. }
  79. }
  80. a:hover {
  81. text-decoration: underline
  82. }
  83. a.curSelectedNode {
  84. padding-top: 0px;
  85. background-color: #af4040;
  86. color: @color-highlight;
  87. height: @h;
  88. opacity: 0.8;
  89. }
  90. a.curSelectedNode_Edit {
  91. padding-top: 0px;
  92. background-color: transparent;
  93. color: @color-highlight;
  94. height: @h;
  95. border: 1px #666 solid;
  96. opacity: 0.8;
  97. }
  98. a.tmpTargetNode_inner {
  99. padding-top: 0px;
  100. background-color: #aaa;
  101. color: @color-highlight;
  102. height: @h;
  103. border: 1px #666 solid;
  104. opacity: 0.8;
  105. filter: alpha(opacity=80)
  106. }
  107. a.tmpTargetNode_prev {
  108. }
  109. a.tmpTargetNode_next {
  110. }
  111. span {
  112. line-height: @h;
  113. margin-right: 2px;
  114. background-color: transparent;
  115. }
  116. span.button {
  117. line-height: 0;
  118. margin: 0;
  119. padding: 0;
  120. width: @w;
  121. height: @h;
  122. display: inline-block;
  123. vertical-align: top;
  124. border: 0px solid;
  125. cursor: pointer;
  126. outline: none;
  127. background-color: transparent;
  128. background-repeat: no-repeat;
  129. background-attachment: scroll;
  130. &::before {
  131. color: @color-normal;
  132. font-family: FontAwesome;
  133. padding-top: @pad-top;
  134. }
  135. &.chk {
  136. margin: 0px;
  137. cursor: auto;
  138. width: 12px;
  139. display: inline-block;
  140. padding-top: @pad-top;
  141. padding-left: @pad-left;
  142. &.checkbox_false_full::before {
  143. content: @fa-square-o;
  144. }
  145. &.checkbox_false_full_focus::before {
  146. content: @fa-square-o;
  147. color: @color-highlight;
  148. }
  149. &.checkbox_false_part::before {
  150. content: @fa-square-o;
  151. color: @color-partial;
  152. }
  153. &.checkbox_false_part_focus::before {
  154. content: @fa-square-o;
  155. color: @color-partfocus;
  156. }
  157. &.checkbox_false_disable::before {
  158. content: @fa-square-o;
  159. color: @color-disabled;
  160. }
  161. &.checkbox_true_full::before {
  162. content: @fa-check-square-o;
  163. }
  164. &.checkbox_true_full_focus::before {
  165. content: @fa-check-square-o;
  166. }
  167. &.checkbox_true_part::before {
  168. content: @fa-check-square;
  169. }
  170. &.checkbox_true_part_focus::before {
  171. content: @fa-check-square;
  172. color: @color-highlight
  173. }
  174. &.checkbox_true_full_focus::before {
  175. content: @fa-check-square-o;
  176. color: @color-highlight
  177. }
  178. &.checkbox_true_part::before {
  179. content: @fa-check-square-o;
  180. color: @color-partial
  181. }
  182. &.checkbox_true_part_focus::before {
  183. content: @fa-check-square-o;
  184. color: @color-partfocus;
  185. }
  186. &.checkbox_true_disable::before {
  187. content: @fa-check-square-o;
  188. color: @color-disabled
  189. }
  190. &.radio_false_full::before {
  191. content: @fa-circle-o;
  192. }
  193. &.radio_false_full_focus::before {
  194. content: @fa-circle-o;
  195. color: @color-highlight
  196. }
  197. &.radio_false_part::before {
  198. content: @fa-circle-o;
  199. color: @color-partial
  200. }
  201. &.radio_false_part_focus::before {
  202. content: @fa-circle-o;
  203. color: @color-highlight
  204. }
  205. &.radio_false_disable::before {
  206. content: @fa-circle-thin;
  207. color: @color-disabled
  208. }
  209. &.radio_true_full::before {
  210. content: @fa-dot-circle-o;
  211. }
  212. &.radio_true_full_focus::before {
  213. content: @fa-dot-circle-o;
  214. color: @color-highlight
  215. }
  216. &.radio_true_part::before {
  217. content: @fa-dot-circle-o;
  218. color: @color-partial
  219. }
  220. &.radio_true_part_focus::before {
  221. content: @fa-dot-circle-o;
  222. color: @color-partial;
  223. }
  224. &.radio_true_disable::before {
  225. content: @fa-circle-thin;
  226. color: @color-disabled
  227. }
  228. }
  229. &.switch {
  230. width: @w;
  231. height: @h
  232. }
  233. &.root_open::before {
  234. content: @fa-chevron-down;
  235. padding-top: @pad-top;
  236. padding-left: @pad-left;
  237. display: inline-block;
  238. }
  239. &.root_close::before {
  240. content: @fa-folder-open-o;
  241. padding-top: @pad-top;
  242. padding-left: @pad-left;
  243. display: inline-block;
  244. }
  245. &.roots_open::before {
  246. content: @fa-chevron-down;
  247. padding-top: @pad-top;
  248. padding-left: @pad-left;
  249. display: inline-block;
  250. }
  251. &.roots_close::before {
  252. content: @fa-chevron-right;
  253. padding-top: @pad-top;
  254. padding-left: @pad-left;
  255. display: inline-block;
  256. }
  257. &.center_open::before {
  258. content: @fa-chevron-down;
  259. padding-top: @pad-top;
  260. padding-left: @pad-left;
  261. display: inline-block;
  262. }
  263. &.center_close::before {
  264. content: @fa-chevron-right;
  265. padding-top: @pad-top;
  266. padding-left: @pad-left;
  267. display: inline-block;
  268. }
  269. &.bottom_open::before {
  270. content: @fa-chevron-down;
  271. padding-top: @pad-top;
  272. padding-left: @pad-left;
  273. display: inline-block;
  274. }
  275. &.bottom_close::before {
  276. content: @fa-chevron-right;
  277. padding-top: @pad-top;
  278. padding-left: @pad-left;
  279. display: inline-block;
  280. }
  281. &.noline_open {
  282. }
  283. &.noline_close {
  284. }
  285. &.root_docu {
  286. background: none;
  287. }
  288. &.roots_docu::before {
  289. content: @fa-list-alt;
  290. padding-left: @pad-left;
  291. display: inline-block;
  292. color: @color-normal;
  293. }
  294. &.center_docu::before {
  295. padding-top: @pad-top;
  296. padding-left: @pad-left;
  297. display: inline-block;
  298. color: @color-normal;
  299. }
  300. &.bottom_docu::before {
  301. padding-top: @pad-top;
  302. padding-left: @pad-left;
  303. display: inline-block;
  304. color: @color-normal;
  305. }
  306. &.noline_docu {
  307. background: none;
  308. }
  309. &.ico_open::before {
  310. content: @fa-folder-open-o;
  311. font-family: FontAwesome;
  312. padding-top: @pad-top;
  313. padding-left: @pad-left;
  314. display: inline-block;
  315. color: @color-normal;
  316. }
  317. &.ico_close::before {
  318. content: @fa-folder-o;
  319. font-family: FontAwesome;
  320. padding-top: @pad-top;
  321. padding-left: @pad-left;
  322. display: inline-block;
  323. color: @color-normal;
  324. }
  325. &.ico_docu::before {
  326. content: @fa-list-alt;
  327. font-family: FontAwesome;
  328. padding-top: @pad-top;
  329. padding-left: @pad-left;
  330. display: inline-block;
  331. color: @color-normal;
  332. }
  333. &.edit {
  334. margin-left: 4px;
  335. margin-right: -1px;
  336. vertical-align: top;
  337. *vertical-align: middle;
  338. padding-top: @pad-top;
  339. }
  340. &.edit::before {
  341. content: @fa-pencil-square-o;
  342. font-family: FontAwesome;
  343. }
  344. &.remove {
  345. margin-left: 4px;
  346. margin-right: -1px;
  347. vertical-align: top;
  348. *vertical-align: middle;
  349. padding-top: @pad-top;
  350. }
  351. &.remove::before {
  352. content: @fa-trash;
  353. font-family: FontAwesome;
  354. }
  355. &.add {
  356. margin-left: 4px;
  357. margin-right: -1px;
  358. vertical-align: top;
  359. *vertical-align: middle;
  360. padding-top: @pad-top;
  361. }
  362. &.add::before {
  363. content: @fa-plus;
  364. font-family: FontAwesome;
  365. }
  366. &.ico_loading {
  367. margin-right: 2px;
  368. background: url(./img/loading.gif) no-repeat scroll 0 0 transparent;
  369. vertical-align: top;
  370. *vertical-align: middle
  371. }
  372. }
  373. }
  374. }
  375. ul.tmpTargetzTree {
  376. background-color: #FFE6B0;
  377. opacity: 0.8;
  378. filter: alpha(opacity=80)
  379. }
  380. // this is the arrow that moves
  381. span.tmpzTreeMove_arrow {
  382. width: 16px;
  383. height: @h;
  384. display: inline-block;
  385. padding: 0;
  386. margin: 2px 0 0 1px;
  387. border: 0 none;
  388. position: absolute;
  389. background-color: transparent;
  390. background-attachment: scroll;
  391. }
  392. span.tmpzTreeMove_arrow::before {
  393. content: @fa-play;
  394. font-family: FontAwesome;
  395. color: @color-highlight;
  396. }
  397. // outline
  398. ul.ztree.zTreeDragUL {
  399. margin: 0;
  400. padding: 0;
  401. position: absolute;
  402. width: auto;
  403. height: auto;
  404. overflow: hidden;
  405. background-color: #cfcfcf;
  406. border: 1px @color-highlight dotted;
  407. opacity: 0.8;
  408. filter: alpha(opacity=80)
  409. }
  410. .ztreeMask {
  411. z-index: 10000;
  412. background-color: #cfcfcf;
  413. opacity: 0.0;
  414. filter: alpha(opacity=0);
  415. position: absolute
  416. }