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

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