Merge from ecomp 718fd196 - Modern UI
[vid.git] / vid-webpack-master / src / app / drawingBoard / service-planning / available-models-tree / available-models-tree.component.scss
1 .tree-children.tree-children-no-padding { padding-left: 0 }
2 .tree-children { padding-left: 20px; overflow: hidden }
3 .node-drop-slot { display: block; height: 2px }
4 .node-drop-slot.is-dragging-over { background: #ddffee; height: 20px; border: 2px dotted #888; }
5 .toggle-children-wrapper-expanded .toggle-children { transform: rotate(90deg) }
6 .toggle-children-wrapper-collapsed .toggle-children { transform: rotate(0); }
7 .toggle-children-wrapper {
8   padding: 2px 3px 5px 1px;
9 }
10 /* tslint:disable */
11 .toggle-children {
12   background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAASCAYAAABSO15qAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABAhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ1dWlkOjY1RTYzOTA2ODZDRjExREJBNkUyRDg4N0NFQUNCNDA3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkYzRkRFQjcxODUzNTExRTU4RTQwRkQwODFEOUZEMEE3IiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkYzRkRFQjcwODUzNTExRTU4RTQwRkQwODFEOUZEMEE3IiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE1IChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MTk5NzA1OGEtZDI3OC00NDZkLWE4ODgtNGM4MGQ4YWI1NzNmIiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6YzRkZmQxMGMtY2NlNS0xMTc4LWE5OGQtY2NkZmM5ODk5YWYwIi8+IDxkYzp0aXRsZT4gPHJkZjpBbHQ+IDxyZGY6bGkgeG1sOmxhbmc9IngtZGVmYXVsdCI+Z2x5cGhpY29uczwvcmRmOmxpPiA8L3JkZjpBbHQ+IDwvZGM6dGl0bGU+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+5iogFwAAAGhJREFUeNpiYGBgKABigf///zOQg0EARH4A4gZyDIIZ8B/JoAJKDIDhB0CcQIkBRBtEyABkgxwoMQCGD6AbRKoBGAYxQgXIBRuZGKgAKPIC3QLxArnRSHZCIjspk52ZKMrOFBUoAAEGAKnq593MQAZtAAAAAElFTkSuQmCC');
13   height: 8px;
14   width: 9px;
15   background-size: contain;
16   display: inline-block;
17   position: relative;
18   top: 1px;
19   background-repeat: no-repeat;
20   background-position: center;
21 }
22 .toggle-children-placeholder {
23   display: inline-block;
24   height: 10px;
25   width: 10px;
26   position: relative;
27   top: 1px;
28   padding-right: 3px;
29 }
30 .node-content-wrapper {
31   display: inline-block;
32   padding: 2px 5px;
33   border-radius: 2px;
34   transition: background-color .15s,box-shadow .15s;
35 }
36 .node-wrapper {display: flex; align-items: flex-start;}
37 .node-content-wrapper-active,
38 .node-content-wrapper.node-content-wrapper-active:hover,
39 .node-content-wrapper-active.node-content-wrapper-focused {
40   background: #beebff;
41 }
42 .node-content-wrapper-focused { background: #e7f4f9 }
43 .node-content-wrapper:hover { background: #f7fbff }
44 .node-content-wrapper-active, .node-content-wrapper-focused, .node-content-wrapper:hover {
45   box-shadow: inset 0 0 1px #999;
46 }
47 .node-content-wrapper.is-dragging-over { background: #ddffee; box-shadow: inset 0 0 1px #999; }
48 .node-content-wrapper.is-dragging-over-disabled { opacity: 0.5 }
49
50 tree-viewport {
51   height: 100%;
52   overflow: auto;
53   display: block;
54 }
55 .tree-children { padding-left: 20px }
56 .empty-tree-drop-slot .node-drop-slot { height: 20px; min-width: 100px }
57 .angular-tree-component {
58   width: 100%;
59   position:relative;
60   display: inline-block;
61   cursor: pointer;
62   -webkit-touch-callout: none; /* iOS Safari */
63   -webkit-user-select: none;   /* Chrome/Safari/Opera */
64   -khtml-user-select: none;    /* Konqueror */
65   -moz-user-select: none;      /* Firefox */
66   -ms-user-select: none;       /* IE/Edge */
67   user-select: none;           /* non-prefixed version, currently not supported by any browser */
68 }
69
70 tree-root .angular-tree-component-rtl {
71   direction: rtl;
72 }
73 tree-root .angular-tree-component-rtl .toggle-children-wrapper-collapsed .toggle-children {
74   transform: rotate(180deg) !important;
75 }
76 tree-root .angular-tree-component-rtl .tree-children {
77   padding-right: 20px;
78   padding-left: 0;
79 }
80
81 tree-node-checkbox {
82   padding: 1px;
83 }
84
85
86 available-models-tree {
87   height: 100%;
88   &.left-side{
89     background: #F2F2F2;
90     padding: 0;
91     border-right: #D2D2D2 1px solid;
92     max-width: 690px;
93   }
94
95   .available-models-tree {
96     display: flex;
97     flex-direction: column;
98     line-height: 14px;
99     min-width: 340px;
100     padding: 30px;
101     height: 100%;
102     .models-tree-header {
103       display: flex;
104       justify-content: space-between;
105
106       h5 {
107         margin: 0;
108         font-family: OpenSans-Semibold;
109         color: #191919;
110         font-size: 16px;
111
112         span {
113           vertical-align: middle;
114           display: inline-block;
115           font-size: 16px;
116           color: #191919;
117           line-height: 16px;
118           &.sub-title {
119             font-family: OpenSans-Regular;
120             font-size: 14px;
121             color: #0D0D0D;
122           }
123         }
124
125         #service-model-name {
126           padding-top: 5px;
127           display: block;
128           font-size: 14px;
129         }
130       }
131
132       .search-container {
133         width: 275px;
134       }
135     }
136     .available-models-content-wrapper {
137       flex: 1;
138       display: flex;
139       flex-direction: column;
140       margin-top: 20px;
141
142
143       tree-root {
144         flex: 1;
145         display: flex;
146       }
147       tree-viewport {
148         flex: 1;
149         .tree-node {
150           color: #5A5A5A;
151           font-size: 13px;
152           white-space: normal;
153           word-break: break-all;
154           tree-node-drop-slot {
155             .node-drop-slot {
156               display: none;
157             }
158           }
159           &.tree-node-disabled {
160             color: #D2D2D2;
161             cursor: default;
162             pointer-events: none;
163           }
164           &:not(.tree-node-disabled) {
165             >tree-node-wrapper {
166               .node-wrapper:hover {
167                 color: #191919;
168                 .node-content-wrapper.node-content-wrapper-focused {
169                   tree-node-content {
170                     > div {
171                       background: #009FDB !important;
172                       color: white;
173                     }
174                   }
175                 }
176                 .node-content-wrapper {
177                   tree-node-content {
178                     > div {
179                       background: #F2F2F2;
180                       &.tree-node-focused:not(.tree-node-disabled) {
181                         background: #009FDB !important;
182                         color: white;
183                       }
184                       span.actions {
185                         .icon-plus{
186                           display: block;
187                           color: #009FDB;
188                           span:before {
189                             display: inline-block;
190                             color: #5A5A5A;
191                           }
192                         }
193                       }
194                     }
195                   }
196                 }
197               }
198             }
199           }
200           &.tree-node-focused:not(.tree-node-disabled)  {
201             & > tree-node-wrapper {
202               .node-wrapper {
203                 border-color:  #1EB9F3;
204                 .node-content-wrapper{
205                   background: #009FDB;
206                   border-color: #1EB9F3;
207                 }
208                 .node-content-wrapper-focused{
209                   background: #009FDB !important;
210                   border-color: #1EB9F3;
211                   box-shadow: none;
212                   tree-node-content {
213
214                     .vf-type{
215                       color: #ffffff;
216                       border-color: #1EB9F3;
217                     }
218                     > div {
219                       span.actions {
220                         .icon-plus {
221                           color: #ffffff;
222                         }
223                       }
224                     }
225                   }
226                 }
227               }
228             }
229           }
230           tree-node-wrapper {
231             .node-wrapper {
232               height: 36px;
233               tree-node-expander {
234                 font-family: 'icomoon' !important;
235                 height: 100%;
236                 .toggle-children-wrapper {
237                   padding: 0;
238                   display: block;
239                   height: 100%;
240                   span.toggle-children {
241                     display: flex;
242                     width: 20px;
243                     top: 0;
244                     height: inherit;
245                     background-image: none;
246                     &:before {
247                       content: "\e900";
248                       font-weight: 600;
249                       text-align: center;
250                       display: inline-block;
251                       flex: auto;
252                       align-self: center;
253                       font-size: 20px;
254                     }
255                   }
256                 }
257                 .toggle-children-wrapper-expanded {
258                   span.toggle-children {
259                     transform: none;
260                     &:before {
261                       content: "\e930";
262                     }
263                   }
264                 }
265                 .toggle-children-placeholder {
266                   width: 20px;
267                 }
268               }
269               .node-content-wrapper {
270                 padding: 0;
271                 background: none;
272                 box-shadow: none;
273                 height: 100%;
274                 flex: 1;
275                 min-width: 0;
276                 border-left: 1px solid #D2D2D2;
277                 tree-node-content {
278                   > div {
279                     height: 100%;
280                     display: flex;
281                     align-items: center;
282                     justify-content: space-between;
283                     span {
284                       &.actions {
285                         height: 100%;
286                         display: flex;
287                         justify-content: space-between;
288                         align-items: center;
289                         >span {
290                           width: 45px;
291                           max-width: 45px;
292                           text-align: center;
293                         }
294                         .number-button {
295                           width: 30px;
296                           padding-left: 0;
297                           text-align: center;
298                           span {
299                             display: block;
300                             font-family: OpenSans-SemiBold;
301                             font-size: 13px;
302                             color: #5A5A5A;
303                             line-height: 16px;
304                           }
305                         }
306                         .icon-plus {
307                           display: none;
308                           width: 45px;
309                           font-size: 22px;
310                         }
311                       }
312                     }
313                   }
314                 }
315               }
316
317             }
318           }
319         }
320         & > tree-node-collection > tree-node > .node-wrapper{
321           //border-top: 1px solid #D2D2D2;
322         }
323       }
324
325     }
326   }
327 }
328 .highlight {
329   background-color: #9DD9EF;
330 }
331
332 #drawing-board-tree{
333   .tree-node.tree-node-expanded.tree-node-focused {
334   }
335 }
336
337 available-models-tree {
338
339   .tree-root {
340     margin-top: 35px;
341   }
342
343   tree-node-expander {
344     background: #FFFFFF;
345     border: 1px solid #D2D2D2;
346     border-right: none;
347     width: 45px;
348     padding-left: 12px;
349   }
350
351   .node-content-wrapper {
352     border: none;
353   }
354
355   tree-node-wrapper tree-node-expander{
356     background: none !important;
357     border: none !important;
358   }
359
360
361   .node-wrapper {
362     height: 45px !important;
363     background: #FFFFFF;
364     border: 1px solid #D2D2D2;
365   }
366
367   tree-node-collection div {
368     margin-top: 0px;
369   }
370
371   .tree-node-leaf .node-wrapper tree-node-expander {
372     display: none;
373   }
374
375   .tree-node.tree-node-expanded {
376     margin-bottom: 10px;
377   }
378   .tree-node-collapsed {
379     margin-bottom: 10px;
380   }
381   .tree-children {
382     padding-left: 0;
383   }
384
385   tree-node-content .actions .number-button {
386     height: 45px;
387     padding-top: 14px;
388     border-right: 1px solid #D2D2D2;
389     border-left: 1px solid #D2D2D2;
390     padding-left: 0;
391     span {
392       background: none;
393       font-size: 11px;
394       color: #5A5A5A;
395     }
396   }
397
398   .node-content-wrapper.node-content-wrapper-focused{
399      border-color:#1EB9F3 ;
400      background: #009FDB !important;
401      tree-node-content > div{
402        .vf-type,.model-info,.model-info .property-name {
403          color: white;
404        }
405       .number-button{
406         border-color: #1EB9F3 ;
407         span{
408           color: white !important;
409         }
410       }
411
412     }
413   }
414
415
416   available-models-tree .node-content-wrapper.node-content-wrapper-focused {
417     background: #009FDB !important;
418   }
419   .vf-type {
420     width: 40px;
421     height: 45px;
422     padding-top: 16px;
423     border-right: 1px solid #D2D2D2;
424     color: #959595;
425     font-size: 13px;
426     font-family: OpenSans-SemiBold;
427     text-transform: uppercase;
428     text-align: center;
429     flex-basis: 40px;
430     flex-grow: 0;
431     flex-shrink: 0;
432   }
433
434   .isParent {
435     width: 100%;
436     padding-left: 0 !important;
437   }
438   .model-info {
439     padding-left: 16px;
440     width: 100%;
441     .property-name {
442       font-family: OpenSans-Regular;
443       font-size: 12px;
444       line-height: 12px;
445       color: #191919;
446       //text-transform: capitalize;  problematic with search
447       .auto-name{
448         display: inline-flex;//required for search more then one sub highlight
449       }
450     }
451
452     tree-node-header-properties {
453       display: none;
454     }
455   }
456
457   .span-name {
458     margin-right: auto;
459     padding-left: 10px;
460   }
461
462   .toggle-children-wrapper.toggle-children-wrapper-expanded {
463     .toggle-children:before {
464       color: #009FDB;
465     }
466   }
467
468   .tree-node.tree-node-expanded .tree-children {
469   }
470
471   .tree-node.tree-node-expanded.tree-node-focused .tree-children {
472
473   }
474
475   .tree-node.tree-node-expanded > tree-node-wrapper{
476     box-shadow: 0 2px 2px 0 rgba(0,0,0,.1);
477     position: relative;
478     z-index: 1;
479     display: block;
480   }
481
482   .tree-node-leaf .node-wrapper{
483     margin-left: 46px;
484     border-left: none;
485   }
486   .tree-children .tree-node-leaf .node-wrapper{
487     margin-left: 86px;
488   }
489 }
490
491 @media (max-width: 992px)  {
492   available-models-tree{
493     //width: 40%;
494     max-width: 690px;
495   }
496   drawing-board-tree{
497     //width: 60%;
498   }
499 }
500
501 @media (min-width: 992px)  {
502   available-models-tree{
503     //width: 50%;
504     max-width: 650px;
505   }
506   drawing-board-tree{
507     //width: 50%;
508   }
509 }
510
511