Add collaboration feature
[sdc.git] / openecomp-ui / resources / scss / components / _listEditorView.scss
1 .list-editor-view {
2   @extend .flex-column;
3   background-color: $content-background-color;
4
5   .expandble-search-wrapper {
6     display: flex;
7     justify-content: flex-end;
8     margin-top: 10px;
9   }
10
11   .list-editor-view-header {
12     display: flex;
13     justify-content: space-between;
14     align-items: flex-end;
15     border-bottom: 1px solid $light-gray;
16     padding-bottom: 5px;
17     .list-editor-view-title {
18       @extend .heading-3-semibold;
19     }
20   }
21
22   .list-editor-view-list-scroller {
23     @extend .flex;
24     overflow: auto;
25     margin: 18px 0 30px 0;
26   }
27
28   .list-editor-view-list {
29     @extend .flex-column;
30
31     .list-editor-item-view {
32       margin: 8px 0;
33       border: 1px solid $light-gray;
34       background-color: $white;
35       display: flex;
36       min-height: 100px;
37       overflow: hidden;
38       .list-editor-item-view-content {
39         padding: 10px 28px;
40         display: flex;
41         flex: 1 1;
42         .list-editor-item-view-field {
43           flex: 1 1;
44           color: $black;
45           padding: 0;
46           @include ellipsis;
47           overflow-wrap: break-word;
48           white-space: initial;
49
50
51           .number-field {
52             align-content: center;
53           }
54           .title {
55             @extend .body-1;
56             padding-bottom: 5px;
57             &:not(:first-child) {
58               line-height: 0.9;
59             }
60           }
61           .description {
62             @include multiline-ellipsis(1.3em, 3);
63           }
64           .text {
65             @extend .body-1;
66           }
67           .textEllipses {
68             white-space: nowrap;
69             text-overflow: ellipsis;
70             overflow: hidden;
71             padding-right: 5px;
72           }
73         }
74       }
75       .list-editor-item-view-controller {
76         display: flex;
77         flex-basis: 5%;
78         align-self: center;
79         justify-content: center;
80         flex-direction: column;
81         .svg-icon-wrapper {
82           &:first-child {
83             margin-bottom: 10px;
84           }
85         }
86         .svg-icon {
87           margin-top: 5px;
88           transition: fill .3s;
89           fill: $white;
90         }
91       }
92       &.selectable:hover{
93         @extend .box-hover;
94         cursor: pointer;
95         .list-editor-item-view-controller {
96           .svg-icon {
97             fill: $dark-gray;
98             &:hover {
99               fill: $black;
100             }
101           }
102         }
103       }
104     }
105     &.two-columns {
106
107       flex-direction: row;
108       flex-wrap: wrap;
109
110       .list-editor-item-view {
111         .list-editor-item-view-content {
112           display: flex;
113           flex-direction: row;
114           align-items: center;
115           padding: 10px 18px 10px 0;
116           .list-editor-item-view-field {
117             flex: 0.3 1;
118             display: flex;
119             justify-content: center;
120             flex-direction: column;
121             height: 100%;
122             border-right : 1px solid $light-gray;
123             margin-left: 18px;
124             &:last-child{
125               border: none;
126               flex: 1;
127             }
128             .details{
129               display: flex;
130               flex-direction: row;
131               .title {
132                 padding: 0;
133                 margin-right: 5px;
134               }
135             }
136
137             .details-col{
138               flex-direction: column;
139               .title {
140                 padding-bottom: 0;
141               }
142             }
143
144             .description {
145               @extend .body-1;
146               @include multiline-ellipsis(1.3em, 3);
147             }
148           }
149         }
150
151         &:nth-child(odd){
152           flex: 0 0 48.5%;
153           margin-right: 50px;
154         }
155         &:nth-child(even) {
156           flex: 1;
157           margin-right: 0;
158         }
159       }
160     }
161   }
162 }