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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  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 #1b88ff;
  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 #1b88ff solid;
  69. border-bottom: 8px transparent solid;
  70. border-left: 8px transparent solid;
  71. border-right: 8px #1b88ff 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: #007AF;
  137. border-radius: 3px;
  138. }
  139. .tree-control .tree-view .selected.active {
  140. background-color: #007AF;
  141. border-radius: 10px;
  142. color: white;
  143. }
  144. /* container of helper elements */
  145. .tree-control .tree-view .helper-container {
  146. border-bottom: 1px solid #ddd;
  147. padding: 8px 8px 0px 8px;
  148. }
  149. /* container of multi select items */
  150. .tree-control .tree-view .tree-container {
  151. padding: 8px;
  152. }
  153. .tree-control .tree-view .item-container {
  154. padding: 3px 20px;
  155. color: #444;
  156. white-space: nowrap;
  157. -webkit-user-select: none;
  158. -moz-user-select: none;
  159. -ms-user-select: none;
  160. -o-user-select: none;
  161. user-select: none;
  162. border: 1px solid transparent;
  163. position: relative;
  164. border-radius: 10px;
  165. }
  166. /* item labels focus on mouse hover */
  167. .tree-control .tree-view .item-container:hover {
  168. /*background-image: linear-gradient( #c1c1c1, #999 ) !important;*/
  169. background: #007AFF;
  170. color: #fff !important;
  171. cursor: pointer;
  172. border: 1px solid #ccc !important;
  173. border-radius: 10px;
  174. }
  175. .tree-control .tree-view .selected {
  176. /*background-image: linear-gradient( #e9e9e9, #f1f1f1 );*/
  177. background: #007AFF;
  178. border-radius: 10px;
  179. color: white;
  180. cursor: pointer;
  181. border-top: 1px solid #e4e4e4;
  182. border-left: 1px solid #e4e4e4;
  183. border-right: 1px solid #d9d9d9;
  184. }
  185. /* helper buttons (select all, none, reset); */
  186. .tree-control .tree-view .helper-button {
  187. display: inline;
  188. text-align: center;
  189. cursor: pointer;
  190. border: 1px solid #ccc;
  191. height: 26px;
  192. font-size: 13px;
  193. border-radius: 2px;
  194. color: #666;
  195. background-color: #f1f1f1;
  196. line-height: 1.6;
  197. margin: 0px 0px 8px 0px;
  198. }
  199. /* clear button */
  200. .tree-control .tree-view .clear-button {
  201. position: absolute;
  202. display: inline;
  203. text-align: center;
  204. cursor: pointer;
  205. border: 1px solid #ccc;
  206. height: 22px;
  207. width: 22px;
  208. font-size: 13px;
  209. border-radius: 2px;
  210. color: #666;
  211. background-color: #f1f1f1;
  212. line-height: 1.4;
  213. right: 2px;
  214. top: 2px;
  215. }
  216. /* filter */
  217. .tree-control .tree-view .input-filter {
  218. border-radius: 2px;
  219. border: 1px solid #ccc;
  220. height: 26px;
  221. font-size: 14px;
  222. width: 100%;
  223. padding-left: 7px;
  224. -webkit-box-sizing: border-box;
  225. /* Safari/Chrome, other WebKit */
  226. -moz-box-sizing: border-box;
  227. /* Firefox, other Gecko */
  228. box-sizing: border-box;
  229. /* Opera/IE 8+ */
  230. color: #888;
  231. margin: 0px 0px 8px 0px;
  232. }
  233. /* helper elements on hover & focus */
  234. .tree-control .tree-view .clear-button:hover,
  235. .tree-control .tree-view .helper-button:hover {
  236. border: 1px solid #ccc;
  237. color: #999;
  238. background-color: #f4f4f4;
  239. }
  240. .tree-control .tree-view .clear-button:focus,
  241. .tree-control .tree-view .helper-button:focus,
  242. .tree-control .tree-view .input-filter:focus {
  243. border: 1px solid #66AFE9 !important;
  244. box-shadow: inset 0 0px 1px rgba(0, 0, 0, .035), 0 0 5px rgba(82, 168, 236, .7) !important;
  245. }
  246. /* ! create a "row" */
  247. .tree-control .tree-view .line {
  248. max-height: 30px;
  249. overflow: hidden;
  250. position: relative;
  251. }
  252. .tree-control .tree-view .item-close {
  253. width: 20px;
  254. cursor: pointer;
  255. font-weight: bold;
  256. padding: 5px;
  257. }
  258. .tree-control .tree-view .item-close:hover {
  259. background-color: #f2f2f2
  260. }
  261. .tree-control .tree-view .item-close:before {
  262. content: 'x';
  263. }
  264. .tree-control .tree-view li {
  265. list-style-type: none;
  266. margin-left: 15px;
  267. }
  268. .tree-control .tree-view li .expand {
  269. display: inline-block;
  270. width: 0;
  271. height: 0;
  272. border-top: 6px solid transparent;
  273. border-bottom: 6px solid transparent;
  274. border-left: 10px solid #525252;
  275. }
  276. .tree-control .tree-view li .expand-opened {
  277. border: none;
  278. border-left: 6px solid transparent;
  279. border-right: 6px solid transparent;
  280. border-top: 10px solid #525252;
  281. }
  282. .tree-control .tree-view li.top-level {
  283. margin: 0;
  284. }