90c2cd878ce5f42be1a2a6c76d66f9e44bca120a
[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;
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;
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                   box-shadow: none;
210                   tree-node-content {
211
212                     .vf-type{
213                       color: #ffffff;
214                       border-color: #1EB9F3;
215                     }
216                     > div {
217                       span.actions {
218                         .icon-plus {
219                           color: #ffffff;
220                         }
221                       }
222                     }
223                   }
224                 }
225               }
226             }
227           }
228           tree-node-wrapper {
229             .node-wrapper {
230               height: 36px;
231               tree-node-expander {
232                 font-family: 'icomoon' !important;
233                 height: 100%;
234                 .toggle-children-wrapper {
235                   padding: 0;
236                   display: block;
237                   height: 100%;
238                   span.toggle-children {
239                     display: flex;
240                     width: 20px;
241                     top: 0;
242                     height: inherit;
243                     background-image: none;
244                     &:before {
245                       content: "\e900";
246                       font-weight: 600;
247                       text-align: center;
248                       display: inline-block;
249                       flex: auto;
250                       align-self: center;
251                       font-size: 20px;
252                     }
253                   }
254                 }
255                 .toggle-children-wrapper-expanded {
256                   span.toggle-children {
257                     transform: none;
258                     &:before {
259                       content: "\e930";
260                     }
261                   }
262                 }
263                 .toggle-children-placeholder {
264                   width: 20px;
265                 }
266               }
267               .node-content-wrapper {
268                 padding: 0;
269                 background: none;
270                 box-shadow: none;
271                 height: 100%;
272                 flex: 1;
273                 min-width: 0;
274                 border-left: 1px solid #D2D2D2;
275                 tree-node-content {
276                   > div {
277                     height: 100%;
278                     display: flex;
279                     align-items: center;
280                     justify-content: space-between;
281                     span {
282                       &.actions {
283                         height: 100%;
284                         display: flex;
285                         justify-content: space-between;
286                         align-items: center;
287                         >span {
288                           width: 45px;
289                           max-width: 45px;
290                           text-align: center;
291                         }
292                         .number-button {
293                           width: 30px;
294                           padding-left: 0;
295                           text-align: center;
296                           span {
297                             display: block;
298                             font-family: OpenSans-SemiBold;
299                             font-size: 13px;
300                             color: #5A5A5A;
301                             line-height: 16px;
302                           }
303                         }
304                         .icon-plus {
305                           display: none;
306                           width: 45px;
307                           font-size: 22px;
308                         }
309                       }
310                     }
311                   }
312                 }
313               }
314
315             }
316           }
317         }
318         & > tree-node-collection > tree-node > .node-wrapper{
319           //border-top: 1px solid #D2D2D2;
320         }
321       }
322
323     }
324   }
325 }
326 .highlight {
327   background-color: #9DD9EF;
328 }
329
330 #drawing-board-tree{
331   .tree-node.tree-node-expanded.tree-node-focused {
332   }
333 }
334
335 available-models-tree {
336
337   .tree-root {
338     margin-top: 35px;
339   }
340
341   tree-node-expander {
342     background: #FFFFFF;
343     border: 1px solid #D2D2D2;
344     border-right: none;
345     width: 45px;
346     padding-left: 12px;
347   }
348
349   .node-content-wrapper {
350     border: none;
351   }
352
353   tree-node-wrapper tree-node-expander{
354     background: none !important;
355     border: none !important;
356   }
357
358
359   .node-wrapper {
360     height: 45px !important;
361     background: #FFFFFF;
362     border: 1px solid #D2D2D2;
363   }
364
365   tree-node-collection div {
366     margin-top: 0px;
367   }
368
369   .tree-node-leaf .node-wrapper tree-node-expander {
370     display: none;
371   }
372
373   .tree-node.tree-node-expanded {
374     margin-bottom: 10px;
375   }
376   .tree-node-collapsed {
377     margin-bottom: 10px;
378   }
379   .tree-children {
380     padding-left: 0;
381   }
382
383   tree-node-content .actions .number-button {
384     height: 45px;
385     padding-top: 14px;
386     border-right: 1px solid #D2D2D2;
387     border-left: 1px solid #D2D2D2;
388     padding-left: 0;
389     span {
390       background: none;
391       font-size: 11px;
392       color: #5A5A5A;
393     }
394   }
395
396   .node-content-wrapper.node-content-wrapper-focused{
397      border-color:#1EB9F3 ;
398      tree-node-content > div{
399        .vf-type,.model-info,.model-info .property-name {
400          color: white;
401        }
402       .number-button{
403         border-color: #1EB9F3 ;
404         span{
405           color: white !important;
406         }
407       }
408
409     }
410   }
411
412
413
414   .vf-type {
415     width: 40px;
416     height: 45px;
417     padding-top: 16px;
418     border-right: 1px solid #D2D2D2;
419     color: #959595;
420     font-size: 13px;
421     font-family: OpenSans-SemiBold;
422     text-transform: uppercase;
423     text-align: center;
424     flex-basis: 40px;
425     flex-grow: 0;
426     flex-shrink: 0;
427   }
428
429   .isParent {
430     width: 100%;
431     padding-left: 0 !important;
432   }
433   .model-info {
434     padding-left: 16px;
435     width: 100%;
436     .property-name {
437       font-family: OpenSans-Regular;
438       font-size: 12px;
439       line-height: 12px;
440       color: #191919;
441       //text-transform: capitalize;  problematic with search
442       .auto-name{
443         display: inline-flex;//required for search more then one sub highlight
444       }
445     }
446
447     tree-node-header-properties {
448       display: none;
449     }
450   }
451
452   .span-name {
453     margin-right: auto;
454     padding-left: 10px;
455   }
456
457   .toggle-children-wrapper.toggle-children-wrapper-expanded {
458     .toggle-children:before {
459       color: #009FDB;
460     }
461   }
462
463   .tree-node.tree-node-expanded .tree-children {
464   }
465
466   .tree-node.tree-node-expanded.tree-node-focused .tree-children {
467
468   }
469
470   .tree-node.tree-node-expanded > tree-node-wrapper{
471     box-shadow: 0 2px 2px 0 rgba(0,0,0,.1);
472     position: relative;
473     z-index: 1;
474     display: block;
475   }
476
477   .tree-node-leaf .node-wrapper{
478     margin-left: 46px;
479     border-left: none;
480   }
481   .tree-children .tree-node-leaf .node-wrapper{
482     margin-left: 86px;
483   }
484 }
485
486 @media (max-width: 992px)  {
487   available-models-tree{
488     //width: 40%;
489     max-width: 690px;
490   }
491   drawing-board-tree{
492     //width: 60%;
493   }
494 }
495
496 @media (min-width: 992px)  {
497   available-models-tree{
498     //width: 50%;
499     max-width: 650px;
500   }
501   drawing-board-tree{
502     //width: 50%;
503   }
504 }
505
506