angular-multi-select-tree-0.1.0.css 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. .tree-control .tree-input {}
  2. .tree-control .tree-input {
  3. /* height: 100%; */
  4. padding-top: 3px;
  5. min-height: 30px!important;
  6. position: relative;
  7. display: inline-block;
  8. /*text-align: center;*/
  9. cursor: pointer;
  10. border: 1px solid #c6c6c6;
  11. /*padding: 1px 8px 1px 8px;*/
  12. font-size: 14px;
  13. /*min-height : 38px !important;*/
  14. border-radius: 4px;
  15. color: #555;
  16. -webkit-user-select: none;
  17. -moz-user-select: none;
  18. -ms-user-select: none;
  19. -o-user-select: none;
  20. user-select: none;
  21. white-space: normal;
  22. background-color: #fff;
  23. /*background-image: linear-gradient(#fff, #f7f7f7);*/
  24. }
  25. .tree-control .tree-input:hover {
  26. /*background-image: linear-gradient(#fff, #e9e9e9);*/
  27. }
  28. /* downward pointing arrow */
  29. .tree-control .caret {
  30. display: inline-block;
  31. width: 0;
  32. height: 0;
  33. margin: 0px 0px 1px 12px !important;
  34. vertical-align: middle;
  35. border-top: 4px solid #333;
  36. border-right: 4px solid transparent;
  37. border-left: 4px solid transparent;
  38. border-bottom: 0 dotted;
  39. }
  40. .tree-control .tree-input span.noselected-items {
  41. text-align: left;
  42. }
  43. .tree-control .tree-input span.selected-items .selected-item {
  44. /*background: #f2f2f2;*/
  45. /*border: 1px solid darkgray;*/
  46. border: 1px solid #428bca;
  47. /*border-radius: 3px;*/
  48. border-radius: 3px;
  49. padding: 0px 10px;
  50. margin-right: 5px;
  51. /*padding: 4px 16px;*/
  52. cursor: text;
  53. position: relative;
  54. /*height: 100%;*/
  55. overflow: hidden;
  56. text-overflow: ellipsis;
  57. white-space: nowrap;
  58. /*width: 90%;*/
  59. display: inline-block;
  60. }
  61. .tree-control .tree-input span.selected-items .selected-item::before {
  62. content: "";
  63. color: white;
  64. position: absolute;
  65. right: -1px;
  66. top: -1px;
  67. /*width: 10px;*/
  68. border-top: 8px #428bca solid;
  69. border-bottom: 8px transparent solid;
  70. border-left: 8px transparent solid;
  71. border-right: 8px #428bca solid;
  72. text-align: center;
  73. line-height: 20px;
  74. }
  75. /*.tree-control .tree-input span.selected-items .selected-item-close {
  76. width: 20px;
  77. cursor: pointer;
  78. font-weight: bold;
  79. display: inline-block;
  80. padding: 2px;
  81. text-align: center;
  82. }*/
  83. .tree-control .tree-input span.selected-items .selected-item-close {
  84. position: absolute;
  85. right: 0px;
  86. top: -2px;
  87. color: white;
  88. font-size: 6px;
  89. z-index: 1;
  90. padding: 1px;
  91. cursor: pointer;
  92. }
  93. /*.tree-control .tree-input span.selected-items .selected-item-close:hover {
  94. background-color: #f2f2f2
  95. }*/
  96. .tree-control .tree-input span.selected-items .selected-item-close:before {
  97. content: 'x';
  98. }
  99. .tree-control .tree-input .caret {
  100. position: absolute;
  101. height: 10px;
  102. top: 50%;
  103. right: 10px;
  104. margin-top: -2px;
  105. }
  106. .tree-control .tree-view {
  107. background-color: #fff;
  108. position: absolute;
  109. z-index: 999;
  110. border: 1px solid rgba(0, 0, 0, 0.15);
  111. border-radius: 4px;
  112. -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  113. box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  114. min-width: 300px;
  115. width: 100%;
  116. /*margin-right: 30px;*/
  117. max-height: 300px;
  118. overflow: auto;
  119. padding: 10px 5px;
  120. }
  121. .tree-control .tree-view ul {
  122. padding: 0;
  123. margin: 0;
  124. }
  125. .tree-control .tree-view ul .item-details {
  126. display: inline-block;
  127. margin-left: 5px;
  128. }
  129. .tree-control .tree-view ul .tree-checkbox {
  130. margin-right: 3px;
  131. margin-top: 0;
  132. color: #ddd !important;
  133. cursor: pointer;
  134. }
  135. .tree-control .tree-view .active {
  136. background-color: #428bca;
  137. border-radius: 3px;
  138. color: #fff !important;
  139. }
  140. .tree-control .tree-view .selected.active {
  141. background-color: #428bca;
  142. border-radius: 10px;
  143. color: white;
  144. }
  145. /* container of helper elements */
  146. .tree-control .tree-view .helper-container {
  147. border-bottom: 1px solid #ddd;
  148. padding: 8px 8px 0px 8px;
  149. }
  150. /* container of multi select items */
  151. .tree-control .tree-view .tree-container {
  152. padding: 8px;
  153. }
  154. .tree-control .tree-view .item-container {
  155. padding: 3px 20px;
  156. color: #444;
  157. white-space: nowrap;
  158. -webkit-user-select: none;
  159. -moz-user-select: none;
  160. -ms-user-select: none;
  161. -o-user-select: none;
  162. user-select: none;
  163. border: 1px solid transparent;
  164. position: relative;
  165. border-radius: 10px;
  166. }
  167. /* item labels focus on mouse hover */
  168. .tree-control .tree-view .item-container:hover {
  169. /*background-image: linear-gradient( #c1c1c1, #999 ) !important;*/
  170. background: #428bca;
  171. color: #fff !important;
  172. cursor: pointer;
  173. border: 1px solid #ccc !important;
  174. border-radius: 10px;
  175. }
  176. .tree-control .tree-view .item-container:hover, .tree-control .tree-view .selected, .tree-control .tree-view .active{
  177. background-color: #428bca;
  178. background-image: linear-gradient(#428bca, #428bca)!important;
  179. background: #428bca;
  180. color: #fff !important;
  181. }
  182. .tree-control .tree-view .selected {
  183. /*background-image: linear-gradient( #e9e9e9, #f1f1f1 );*/
  184. background: #428bca;
  185. border-radius: 10px;
  186. color: #fff !important;
  187. cursor: pointer;
  188. border-top: 1px solid #e4e4e4;
  189. border-left: 1px solid #e4e4e4;
  190. border-right: 1px solid #d9d9d9;
  191. }
  192. /* helper buttons (select all, none, reset); */
  193. .tree-control .tree-view .helper-button {
  194. display: inline;
  195. text-align: center;
  196. cursor: pointer;
  197. border: 1px solid #ccc;
  198. height: 26px;
  199. font-size: 13px;
  200. border-radius: 2px;
  201. color: #666;
  202. background-color: #f1f1f1;
  203. line-height: 1.6;
  204. margin: 0px 0px 8px 0px;
  205. }
  206. /* clear button */
  207. .tree-control .tree-view .clear-button {
  208. position: absolute;
  209. display: inline;
  210. text-align: center;
  211. cursor: pointer;
  212. border: 1px solid #ccc;
  213. height: 22px;
  214. width: 22px;
  215. font-size: 13px;
  216. border-radius: 2px;
  217. color: #666;
  218. background-color: #f1f1f1;
  219. line-height: 1.4;
  220. right: 2px;
  221. top: 2px;
  222. }
  223. /* filter */
  224. .tree-control .tree-view .input-filter {
  225. border-radius: 2px;
  226. border: 1px solid #ccc;
  227. height: 26px;
  228. font-size: 14px;
  229. width: 100%;
  230. padding-left: 7px;
  231. -webkit-box-sizing: border-box;
  232. /* Safari/Chrome, other WebKit */
  233. -moz-box-sizing: border-box;
  234. /* Firefox, other Gecko */
  235. box-sizing: border-box;
  236. /* Opera/IE 8+ */
  237. color: #888;
  238. margin: 0px 0px 8px 0px;
  239. }
  240. /* helper elements on hover & focus */
  241. .tree-control .tree-view .clear-button:hover,
  242. .tree-control .tree-view .helper-button:hover {
  243. border: 1px solid #ccc;
  244. color: #999;
  245. background-color: #f4f4f4;
  246. }
  247. .tree-control .tree-view .clear-button:focus,
  248. .tree-control .tree-view .helper-button:focus,
  249. .tree-control .tree-view .input-filter:focus {
  250. border: 1px solid #66AFE9 !important;
  251. box-shadow: inset 0 0px 1px rgba(0, 0, 0, .035), 0 0 5px rgba(82, 168, 236, .7) !important;
  252. }
  253. /* ! create a "row" */
  254. .tree-control .tree-view .line {
  255. max-height: 30px;
  256. overflow: hidden;
  257. position: relative;
  258. }
  259. .tree-control .tree-view .item-close {
  260. width: 20px;
  261. cursor: pointer;
  262. font-weight: bold;
  263. padding: 5px;
  264. }
  265. .tree-control .tree-view .item-close:hover {
  266. background-color: #f2f2f2
  267. }
  268. .tree-control .tree-view .item-close:before {
  269. content: 'x';
  270. }
  271. .tree-control .tree-view li {
  272. list-style-type: none;
  273. margin-left: 15px;
  274. }
  275. .tree-control .tree-view li .expand {
  276. display: inline-block;
  277. width: 0;
  278. height: 0;
  279. border-top: 6px solid transparent;
  280. border-bottom: 6px solid transparent;
  281. border-left: 10px solid #525252;
  282. }
  283. .tree-control .tree-view li .expand-opened {
  284. border: none;
  285. border-left: 6px solid transparent;
  286. border-right: 6px solid transparent;
  287. border-top: 10px solid #525252;
  288. }
  289. .tree-control .tree-view .active .expand{
  290. border-left-color: #fff;
  291. }
  292. .tree-control .tree-view .active .expand-opened{
  293. border-top-color: #fff ;
  294. border-left-color: transparent ;
  295. }
  296. .tree-control .tree-view li.top-level {
  297. margin: 0;
  298. }