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

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