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.
 
 
 
 
 

357 lines
12 KiB

  1. /*!
  2. * Fancytree "bootstrap" skin.
  3. *
  4. * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from
  5. * the LESS templates.
  6. */
  7. // Import common styles
  8. @import "skin-common.less";
  9. /*******************************************************************************
  10. * Styles specific to this skin.
  11. *
  12. * This section is automatically generated from the `ui-fancytree.less` template.
  13. ******************************************************************************/
  14. // local vars
  15. // @fancy-my-icon-size: 16px;
  16. //------------------------------------------------------------------------------
  17. // Original bootstrap colors
  18. // See http://getbootstrap.com/css/#less-variables-colors and
  19. // https://github.com/twbs/bootstrap/blob/master/less/variables.less
  20. @gray-base: #000;
  21. @gray-darker: lighten(@gray-base, 13.5%); // #222
  22. @gray-dark: lighten(@gray-base, 20%); // #333
  23. @gray: lighten(@gray-base, 33.5%); // #555
  24. @gray-light: lighten(@gray-base, 46.7%); // #777
  25. @gray-lighter: lighten(@gray-base, 93.5%); // #eee
  26. @brand-primary: darken(#428bca, 6.5%); // blue, #337ab7
  27. @brand-success: #5cb85c; // green
  28. @brand-info: #5bc0de; // light blue
  29. @brand-warning: #f0ad4e; // orange
  30. @brand-danger: #d9534f; // red
  31. @font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
  32. @font-family-serif: Georgia, "Times New Roman", Times, serif;
  33. //** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
  34. @font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
  35. @font-family-base: @font-family-sans-serif;
  36. @font-size-base: 14px;
  37. @font-size-large: ceil((@font-size-base * 1.25)); // ~18px
  38. @font-size-small: ceil((@font-size-base * 0.85)); // ~12px
  39. @border-radius-base: 4px;
  40. @border-radius-large: 6px;
  41. @border-radius-small: 3px;
  42. @text-color: @gray-dark;
  43. //** Default background color used for all tables.
  44. @table-bg: transparent;
  45. //** Background color used for `.table-striped`.
  46. @table-bg-accent: #f9f9f9;
  47. //** Background color used for `.table-hover`.
  48. @table-bg-hover: #f5f5f5;
  49. @table-bg-active: @table-bg-hover;
  50. //** Border color for table and cell borders.
  51. @table-border-color: #ddd;
  52. //------------------------------------------------------------------------------
  53. // Override the variable after the import.
  54. // NOTE: Variables are always resolved as the last definition, even if it is
  55. // after where it is used.
  56. @fancy-use-sprites: false; // false: suppress all background images (i.e. icons)
  57. @fancy-loading-url: none;
  58. @fancy-line-height: 1em; // height of a nodes selection bar including borders
  59. @fancy-node-v-spacing: 0px; // gap between two node borders
  60. @fancy-icon-width: 1em;
  61. @fancy-icon-height: 1em;
  62. @fancy-icon-spacing: 0.5em; // margin between icon/icon or icon/title
  63. @fancy-icon-ofs-top: 2px; // extra vertical offset for expander, checkbox and icon
  64. @fancy-title-ofs-top: 0px; // extra vertical offset for title
  65. @fancy-node-border-width: 1px;
  66. @fancy-node-border-radius: @border-radius-small;
  67. @fancy-node-outline-width: 1px;
  68. @fancy-font-family: @font-family-base;
  69. @fancy-font-size: @font-size-base;
  70. @fancy-font-color: @text-color;
  71. @fancy-font-color-dimm: @gray-dark;
  72. @fancy-font-error-color: @brand-danger;
  73. @fancy-active-text: #fff;
  74. @fancy-active-color: @brand-primary;
  75. @fancy-select-color: @brand-success;
  76. @fancy-hover-color: @table-bg-hover;
  77. // We need to define this variable here (not in skin-common.less) to make it
  78. // work with grunt and webpack:
  79. @fancy-image-prefix: "./skin-bootstrap/";
  80. /*******************************************************************************
  81. * Plain tree
  82. * Modifier classes on <ul> container:
  83. * table-hover : Enable a light mouse hover effect
  84. * fancytree-colorize-selected: Give selected (checked) rows a color
  85. */
  86. ul.fancytree-container ul {
  87. padding: 0 0 0 1.5em;
  88. margin: 0;
  89. }
  90. /* Prevent focus frame */
  91. .fancytree-container:focus {
  92. outline: none;
  93. }
  94. // Active and (optionally) selected nodes are white on colored bg. Undo this for input controls:
  95. .fancytree-container .fancytree-active span.fancytree-title input,
  96. .fancytree-container.fancytree-colorize-selected .fancytree-selected span.fancytree-title input {
  97. color: black;
  98. }
  99. // Error status node
  100. .fancytree-container span.fancytree-statusnode-error span.fancytree-expander {
  101. color: @fancy-font-error-color;
  102. }
  103. // set icon color to font color as well
  104. span.fancytree-node {
  105. color: @fancy-font-color;
  106. }
  107. //// ------------------------------------------------------------------------------
  108. //// * Drag'n'drop support
  109. //// *----------------------------------------------------------------------------
  110. //// div.fancytree-drag-helper {
  111. //// }
  112. //// div.fancytree-drag-helper a {
  113. //// border: 1px solid gray;
  114. //// background-color: white;
  115. //// padding-left: 5px;
  116. //// padding-right: 5px;
  117. //// opacity: 0.8;
  118. //// }
  119. //// span.fancytree-drag-helper-img {
  120. //// // position: relative;
  121. //// // left: -16px;
  122. //// }
  123. //div.fancytree-drag-helper.fancytree-drop-reject,
  124. //div.fancytree-drag-helper.fancytree-drop-reject span.fancytree-title
  125. //{
  126. // color: @fancy-font-error-color;
  127. //}
  128. //// div.fancytree-drop-accept span.fancytree-drag-helper-img {
  129. //// .useSprite(2, 7);
  130. //// }
  131. //// div.fancytree-drop-reject span.fancytree-drag-helper-img {
  132. //// .useSprite(1, 7);
  133. //// }
  134. //
  135. //// //--- Drop marker icon ---------------------------------------------------------
  136. //// #fancytree-drop-marker {
  137. //// width: 2 * @fancy-icon-width; // was 24px, but 32 should be correct
  138. //// position: absolute;
  139. //// .useSprite(0, 8);
  140. //// margin: 0;
  141. //// &.fancytree-drop-after,
  142. //// &.fancytree-drop-before {
  143. //// width: 4 * @fancy-icon-width; // 64px;
  144. //// .useSprite(0, 9);
  145. //// }
  146. //// &.fancytree-drop-copy {
  147. //// .useSprite(4, 8);
  148. //// }
  149. //// &.fancytree-drop-move {
  150. //// .useSprite(2, 8);
  151. //// }
  152. //// }
  153. ////
  154. ////--- Source node while dragging -----------------------------------------------
  155. //
  156. //span.fancytree-node.fancytree-drag-source {
  157. // background-color: @brand-info !important;
  158. // span.fancytree.title {
  159. // // outline: 1px solid @brand-info;
  160. // // color: @brand-primary;
  161. // }
  162. //}
  163. //
  164. ////--- Target node while dragging cursor is over it -----------------------------
  165. //
  166. //span.fancytree-node.fancytree-drop-target {
  167. // &.fancytree-drop-accept span.fancytree.title {
  168. // // background-color: @brand-danger !important;
  169. // // outline: 1px solid @brand-success;
  170. // // color: white !important;
  171. // }
  172. // &.fancytree-drop-reject span.fancytree.title {
  173. // background-color: @brand-danger !important;
  174. // // outline: 1px solid @brand-danger;
  175. // // color: white !important;
  176. // }
  177. //}
  178. //
  179. //span.fancytree-expander {
  180. // color: #999; // colpased expander is gray
  181. //}
  182. //.fancytree-expanded span.fancytree-expander {
  183. // color: @fancy-font-color;
  184. //}
  185. //span.fancytree-node span.fancytree-expander:hover {
  186. // color: cyan;
  187. //}
  188. // Inactive tree:
  189. .fancytree-plain {
  190. &.fancytree-colorize-selected {
  191. span.fancytree-node.fancytree-selected,
  192. span.fancytree-node.fancytree-selected span.fancytree-title { // selected nodes inside inactive tree
  193. background-color: lighten(@fancy-select-color, 10%);
  194. border-color: lighten(@fancy-select-color, 10%);
  195. color: @fancy-active-text;
  196. }
  197. span.fancytree-node.fancytree-selected:hover span.fancytree-title {
  198. background-color: lighten(@fancy-select-color, 5%);
  199. }
  200. span.fancytree-node.fancytree-active.fancytree-selected span.fancytree-title { // active nodes inside inactive tree
  201. color: lighten(@fancy-select-color, 10%);
  202. }
  203. &.fancytree-treefocus {
  204. span.fancytree-title:hover {
  205. background-color: @fancy-hover-color;
  206. }
  207. span.fancytree-node.fancytree-selected span.fancytree-title {
  208. background-color: @fancy-select-color;
  209. }
  210. span.fancytree-node.fancytree-selected:hover span.fancytree-title {
  211. background-color: darken(@fancy-select-color, 5%);
  212. }
  213. span.fancytree-node.fancytree-active.fancytree-selected span.fancytree-title {
  214. color: @fancy-select-color;
  215. }
  216. }
  217. }
  218. &.fancytree-container { // adding this class to increase specificity, so we can override .fancytree-colorize-selected
  219. span.fancytree-node {
  220. margin-top: 2px;
  221. margin-bottom: 2px;
  222. }
  223. span.fancytree-title {
  224. border: @fancy-node-border-width solid transparent; // avoid jumping, when a border is added on hover
  225. border-radius: @border-radius-small;
  226. outline-radius: @border-radius-small;
  227. }
  228. span.fancytree-title:hover {
  229. background-color: @fancy-hover-color;
  230. }
  231. span.fancytree-node.fancytree-active span.fancytree-title { // active nodes inside inactive tree
  232. background-color: lighten(@fancy-active-color, 10%);
  233. color: @fancy-active-text;
  234. }
  235. span.fancytree-node.fancytree-active:hover span.fancytree-title {
  236. background-color: lighten(@fancy-active-color, 5%);
  237. }
  238. &.fancytree-ext-wide span.fancytree-node.fancytree-active { // in wide mode, icons of active nodes must be white-on-color
  239. color: @fancy-active-text;
  240. }
  241. // Active tree:
  242. &.fancytree-treefocus {
  243. span.fancytree-node.fancytree-focused span.fancytree-title {
  244. border-color: @brand-primary;
  245. }
  246. span.fancytree-node.fancytree-active span.fancytree-title {
  247. background-color: @fancy-active-color;
  248. border-color: @fancy-active-color;
  249. }
  250. span.fancytree-node.fancytree-active:hover span.fancytree-title {
  251. background-color: darken(@fancy-active-color, 5%);
  252. }
  253. }
  254. }
  255. }
  256. ///*******************************************************************************
  257. // * 'table' extension
  258. // * Modifier classes on <table>:
  259. // * table-hover : Enable a light mouse hover effect
  260. // * fancytree-colorize-selected: Give selected (checked) rows a color
  261. // */
  262. //table.fancytree-ext-table {
  263. // >tbody >tr >td span.fancytree-title {
  264. // border: none;
  265. // }
  266. //
  267. // // Give a separate color for selected (checked) rows
  268. // // Define *before* the .fancytree-active rules, because active color should
  269. // // override selected color.
  270. // &.fancytree-colorize-selected {
  271. // >tbody >tr.fancytree-selected >td {
  272. // // dimmed, if inside inactive tree
  273. // background-color: lighten(@fancy-select-color, 10%);
  274. // // white text for selected nodes
  275. // &,
  276. // span.fancytree-title {
  277. // color: @fancy-active-text;
  278. // }
  279. // }
  280. // &.fancytree-treefocus >tbody >tr.fancytree-selected >td {
  281. // background-color: @fancy-select-color;
  282. // }
  283. // &.table-hover >tbody >tr.fancytree-selected:hover >td {
  284. // // dimmed, if inside inactive tree
  285. // background-color: lighten(@fancy-select-color, 5%);
  286. // }
  287. // &.fancytree-treefocus.table-hover >tbody >tr.fancytree-selected:hover >td {
  288. // background-color: darken(@fancy-select-color, 5%);
  289. // }
  290. // &.fancytree-treefocus.table-hover >tbody >tr.fancytree-selected.fancytree-active:hover >td,
  291. // &.table-hover >tbody >tr.fancytree-selected.fancytree-active:hover >td {
  292. // background-color: darken(@fancy-active-color, 5%);
  293. // }
  294. // >tbody >tr.fancytree-active.fancytree-selected {
  295. // outline-width: 2px;
  296. // outline-offset: -2px;
  297. // outline-style: solid;
  298. // outline-color: lighten(@fancy-select-color, 10%);
  299. // }
  300. // }
  301. //
  302. // // General tree (slightly dimmed, since we also define colors for inactive
  303. // // mode here).
  304. //
  305. // &.fancytree-container >tbody >tr.fancytree-active >td {
  306. // background-color: lighten(@fancy-active-color, 10%);
  307. // // white text for selected nodes
  308. // &,
  309. // span.fancytree-title {
  310. // color: @fancy-active-text;
  311. // }
  312. // }
  313. //
  314. // // Reset to standard colors if tree has keyboard focus.
  315. // // We add .fancytree-container to increase specificity, so we can override
  316. // // .fancytree-colorize-selected defined above
  317. //
  318. // &.fancytree-treefocus.fancytree-container {
  319. // >tbody >tr.fancytree-focused span.fancytree-title {
  320. // outline: 1px dotted #000;
  321. // }
  322. // >tbody >tr.fancytree-active >td {
  323. // background-color: @fancy-active-color;
  324. // }
  325. // &.table-hover >tbody >tr.fancytree-active:hover >td {
  326. // background-color: darken(@fancy-active-color, 5%);
  327. // }
  328. // }
  329. //}