aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/pages/interface-operation/interface-operation.page.component.less
blob: b79e2f580c3c1728e6ec1f9126c5b40a99f11be9 (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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
@import '../../../../assets/styles/variables.less';
@import '../../../../assets/styles/override.less';

.interface-operation {
    font-size: 14px;

    .top-add-btn {
        position: relative;
        top: -31px;
        text-transform: uppercase;
        font-size: 14px;
        font-family: @font-opensans-medium;
    }

    .link {
        color: @sdcui_color_blue;
        text-decoration: underline;
        font-family: @font-opensans-regular;

        &:not(.disabled) {
            &:not(.empty-list-add-btn) {
                &:hover {
                    color: @sdcui_color_dark-blue;
                    cursor: pointer;
                }
            }
        }
    }

    .operation-list {
        border-top: 1px solid @main_color_o;
        padding-top: 5px;

        .empty-list-container {
            width: 100%;
            display: flex;
            justify-content: center;

            .empty-list-add-btn {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;

                border: 1px solid @main_color_o;
                margin-top: 50px;

                height: 229px;
                width: 480px;

                &.disabled {
                    pointer-events: none;
                }

                &:hover {
                    &:not(.disabled) {
                        border: 1px solid @sdcui_color_blue;
                        cursor: pointer;
                    }
                }

                .button-text {
                    margin-top: 9px;
                    font-family: @font-opensans-medium;
                    font-size: 16px;
                    text-transform: uppercase;
                    color: @sdcui_color_blue;
                }
            }
        }

        .expand-collapse {
            margin-top: 4px;
            margin-bottom: 18px;
            color: @sdcui_color_light-gray;
        }

        .interface-row {
            width: 100%;
            margin-top: 13px;
            border-bottom: 1px solid @main_color_o;
            padding-left: 4px;
            min-height: 37px;


            .interface-accordion {
                cursor: pointer;

                .chevron-container {
                    position: relative;
                    margin-right: 5px;

                    &.isCollapsed {
                        right: -6px;
                        top: 0;
                        * {
                            transform: rotate(270deg);
                        }
                    }
                    &:not(.isCollapsed) {
                        top: 6px;
                    }
                    * {
                        &:hover {
                            cursor: pointer;
                        }
                    }
                }
                .interface-name {
                    font-size: 18px;
                    font-family: @font-opensans-bold;
                    margin-bottom: 15px;
                }
            }

            .generic-table {
                margin-bottom: 24px;
                margin-top: 10px;
                margin-left: 22px;
                font-size: 14px;

                .header-row, .data-row {
                    .cell {
                        &.field-description {
                            flex: 2.5;
                        }

                        &.field-actions {
                            flex-basis: 72px;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                        }
                    }
                }

                .header-row {
                    .cell {
                        background: @sdcui_color_silver;

                        &.field-actions {
                            font-size: 10px;
                        }
                    }
                }

                .data-row {
                    cursor: pointer;

                    &:hover {
                        background: @sdcui_color_light-silver;

                        .cell {
                            &.field-name {
                                color: @sdcui_color_dark-blue;
                            }
                        }
                    }

                    &:not(:hover) {
                       .field-actions {
                            visibility: hidden;
                        }
                    }

                    .cell {
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        overflow: hidden;

                        &.field-description {
                            &:not(.collapsed) {
                                white-space: normal;
                            }
                            &.collapsed {
                                text-overflow: clip;
                            }
                            .more-or-less {
                                margin-left: 5px;
                            }
                        }

                        &.field-actions {
                            .delete-action {
                                position: relative;
                                top: 2px;
                            }
                        }
                    }

                }
            }

        }
    }
}