Add new code new version
[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   .list-editor-view-title {
6     @extend .section-title;
7   }
8
9   .list-editor-view-title-inline {
10     @extend .list-editor-view-title;
11     position: relative;
12     top: 9px;
13     &:first-child {
14       padding: 0;
15     }
16   }
17
18   .list-editor-view-add-section {
19     display: inline-block;
20     padding: 0 10px 0 10px;
21   }
22
23   .list-editor-view-actions {
24     display: flex;
25     justify-content: space-between;
26     align-items: center;
27     border-bottom: 1px solid $light-gray;
28     padding-bottom: 18px;
29     .list-editor-view-add-controller {
30       @extend .body-1-medium;
31       color: $blue;
32       display: table;
33       cursor: pointer;
34       position: relative;
35       top: 9px;
36       span {
37         display: table-cell;
38         vertical-align: middle;
39         &:nth-child(2) {
40           padding-left: 10px;
41         }
42       }
43     }
44
45     .search-wrapper {
46       width: 265px;
47     }
48   }
49
50   .list-editor-view-list-scroller {
51     @extend .flex;
52     overflow: auto;
53     margin: 18px 0 30px 0;
54   }
55
56   .list-editor-view-list {
57     @extend .flex-column;
58
59
60     .list-editor-item-view {
61       margin: 8px 0;
62       border: 1px solid $light-gray;
63       background-color: $white;
64       cursor: pointer;
65       display: flex;
66       height: 100px;
67       min-height: 100px;
68       overflow: hidden;
69       .list-editor-item-view-content {
70         padding: 10px 28px;
71         display: flex;
72         flex-basis: 95%;
73         width: 95%;
74         .list-editor-item-view-field {
75           flex: 1 1;
76           color: $black;
77           padding: 0;
78           @include ellipsis;
79           overflow-wrap: break-word;
80           white-space: initial;
81           .number-field {
82             align-content: center;
83           }
84           .title {
85             @extend .body-1;
86             padding-bottom: 5px;
87             &:not(:first-child) {
88               line-height: 0.9;
89             }
90           }
91           .text {
92             @extend .body-1;
93           }
94         }
95       }
96       .list-editor-item-view-controller {
97         display: flex;
98         flex-basis: 5%;
99         align-self: center;
100         justify-content: center;
101         flex-direction: column;
102         .fa {
103           transition: color .3s;
104           font-size: 22px;
105           color: $white;
106           &:first-child{
107             margin-bottom: 10px;
108           }
109         }
110       }
111       &:hover {
112         @extend .box-hover;
113         .list-editor-item-view-controller {
114           .fa {
115             color: $gray;
116           }
117         }
118       }
119     }
120   }
121
122   &.thinner-list {
123     background-color: $white;
124     padding: 0;
125     margin-top: 35px;
126
127     .list-editor-view-list {
128       border-top: 0;
129       padding-top: 0;
130       margin-top: 23px;
131       .list-editor-item-view {
132         &:hover {
133           border-color: $light-gray;
134         }
135         margin: 5px 0 0 0;
136         height: 30px;
137         border-top: 0;
138         border-left: 0;
139         border-right: 0;
140         .list-editor-item-view-content {
141           padding: 4px;
142           .name {
143             @extend .body-2-medium;
144             flex-basis: 36%;
145           }
146         }
147         .list-editor-item-view-controller {
148           .fa-trash-o {
149             font-size: 20px;
150           }
151         }
152       }
153     }
154   }
155 }
156
157