aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-ui/resources/scss/components/_listEditorView.scss
blob: 18d5426eb7f25b7621e57ddb8561739d8b0ad558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
.list-editor-view {
  @extend .flex-column;
  background-color: $content-background-color;

  .expandble-search-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
  }

  .list-editor-view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid $light-gray;
    padding-bottom: 5px;
    .list-editor-view-title {
      @extend .heading-3-medium;
    }
    .list-editor-view-add-controller {
      @extend .heading-4-medium;
      color: $blue;
      display: table;
      cursor: pointer;
      position: relative;
      padding-top: 0px;
      padding-bottom: 0px;
      margin-left: auto;
      .list-editor-view-add-title {
        display: flex;
      }
      span {
        display: table-cell;
        vertical-align: middle;
        margin-top:4px;
        &:nth-child(2) {
          padding-left: 10px;
        }
      }
    }
  }

  .list-editor-view-list-scroller {
    @extend .flex;
    overflow: auto;
    margin: 18px 0 30px 0;
  }

  .list-editor-view-list {
    @extend .flex-column;

    .list-editor-item-view {
      margin: 8px 0;
      border: 1px solid $light-gray;
      background-color: $white;
      display: flex;
      min-height: 100px;
      overflow: hidden;
      .list-editor-item-view-content {
        padding: 10px 28px;
        display: flex;
        flex: 1 1 auto;
        .list-editor-item-view-field {
          flex: 1 1;
          color: $black;
          padding: 0;
          @include ellipsis;
          overflow-wrap: break-word;
          white-space: initial;
          .number-field {
            align-content: center;
          }
          .title {
            @extend .body-1;
            padding-bottom: 5px;
            &:not(:first-child) {
              line-height: 0.9;
            }
          }
          .text {
            @extend .body-1;
          }
          .textEllipses {
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            padding-right: 5px;
          }
        }
      }
      .list-editor-item-view-controller {
        display: flex;
        flex-basis: 5%;
        align-self: center;
        justify-content: center;
        flex-direction: column;
        .svg-icon-wrapper {
          &:first-child {
            margin-bottom: 10px;
          }
        }
        .svg-icon {
          transition: fill .3s;
          height: 18px;
          width: 18px;
          fill: $white;
        }
      }
      &.selectable:hover{
        @extend .box-hover;
        cursor: pointer;
        .list-editor-item-view-controller {
          .svg-icon {
            fill: $dark-gray;
            &:hover {
              fill: $black;
            }
          }
        }
      }
    }
    &.two-columns {

      flex-direction: row;
      flex-wrap: wrap;

      .list-editor-item-view {
        .list-editor-item-view-content {
          display: flex;
          flex-direction: row;
          align-items: center;
          padding: 10px 18px 10px 0;
          .list-editor-item-view-field {
            flex: 0.3 1;
            display: flex;
            justify-content: center;
            flex-direction: column;
            height: 100%;
            border-right : 1px solid $light-gray;
            margin-left: 18px;
            &:last-child{
              border: none;
              flex: 1;
            }
            .details{
              display: flex;
              flex-direction: row;
              .title {
                padding: 0;
                margin-right: 5px;
              }
            }

            .description {
              @extend .body-1;
              @include multiline-ellipsis(1.3em, 3);
            }
          }
        }

        &:nth-child(odd){
          flex: 0 0 48.5%;
          margin-right: 50px;
        }
        &:nth-child(even) {
          flex: 1;
          margin-right: 0;
        }
      }
    }
  }
}