aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-ui/resources/scss/modules/_versionsPage.scss
blob: d99532cb209ba42f8699052925e7bed5a6724edb (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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
.dox-ui-punch-out {
  background-color: $content-background-color;
}

.dox-ui-punch-out.dox-ui-punch-out-full-page {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: auto;
}

@mixin version-page-box-shadow() {
	box-shadow: 0 1px 4px 0 rgba(24, 24, 24, 0.06);
}

@mixin version-page-sub-title(){
	color: $text-black;
	text-transform: uppercase;
	background-color: $white;
	border-bottom: 1px solid $light-gray;
	padding: 12px 0 10px 23px;
}

.versions-tree-modal {
	.modal-dialog {
		width: 800px;
	}

	.tree-view {
		display: flex;
    align-items: center;
	}
}

.versions-page-view {
	height: 100%;
	background-color: $background-gray;
	overflow: auto;
	padding: 35px 50px 20px 50px;

	.svg-icon-wrapper {
		justify-content: flex-start;
	}
	.version-page-header {
		display: flex;
		justify-content: space-between;
		.versions-page-title {
			@extend .heading-1;
			text-transform: uppercase;
			margin-bottom: 29px;
			color: $blue;
		}
		.depricate-btn-wrapper {
			display: flex;
			justify-content: flex-end;
			margin-bottom: 10px;
		}
	}		
	.versions-page-permissions-view-wrapper {
		@extend .body-1-semibold;
		@include version-page-box-shadow();

		.permissions-view-wrapper-title {
			@include version-page-sub-title();
		}

		.svg-icon-wrapper.user-view {
			fill: transparent;
			stroke: $blue;
			.svg-icon {
				height: 18px;
				width: 16px;
				margin: 0 7px;
			}
			&.current-user {
				.svg-icon {
					background-color: $blue;
					stroke: $white;
					padding-top: 5px;
					padding-bottom: 3px;
					height: 29px;
					width: 29px;
					border-radius: 20px;
					border: 1px solid $blue;
					box-shadow: inset 0px 0px 0px 2px $white;
					margin: 0;
				}
				.svg-icon-label {
					margin-left: 7px;
				}
			}
			.svg-icon-label {
				@extend .body-2;
				color: $dark-gray;
				margin-left: 6px;
			}
		}

		.permissions-view-content {
			padding: 20px 40px 20px 25px;
			background-color: $white;

			height: 120px;
			display: flex;
		}

		.permissions-view {
			display: flex;
			flex: 1;
			flex-direction: column;
			justify-content: space-around;

			.permissions-view-title {
				text-transform: uppercase;
				color: $dark-gray;
			}

			.contributors-view, .owner-view {
				display: flex;
				height: 16px;
				@extend .body-1-semibold;

				.permissions-view-title {
					width: 130px;
					line-height: 16px;
				}

				.extra-contributors {
					border-radius: 30px;
					background-color: $gray;
					width: 26px;
					height: 26px;
					padding-right: 2px;
					display: flex;
					align-items: center;
					justify-content: center;
					color: $white;
					cursor: default;
					&:hover {
						background-color: $dark-gray;
					}
				}

				.user-view {
					margin-right: 38px;
				}

				.manage-permissions {
					color: $blue;
					margin-left: auto;
					cursor: pointer;

					&:hover {
						color: $dark-blue;
					}
				}
			}
		}
	}

	.versions-page-list-and-tree {
		display: flex;
		margin-top: 20px;

		.version-tree-wrapper {
			display: flex;
			flex-direction: column;
			margin-right:10px;
			transition: all 1s ease;
			@include version-page-box-shadow();

			.version-tree-title-container {
				display: flex;
				align-items: center;
				height: 40px;
				@include version-page-sub-title();
				padding-right: 10px;

				.version-tree-full-screen {
					margin-left: auto;
				}
			}

			.tree-view {
				background-color: $white;
				flex: 1;

				.node:not(.selectedNode):hover {
					.outer-circle, .inner-circle {
						transform: scale(1.1);
					}
				}
			}
		}
	}

	.version-list {
		flex: 1;
		@extend .body-1-semibold;
		color: $text-black;
		display: flex;
		flex-direction: column;

		.version-list-items {
			flex: 1;
			display: flex;
			flex-direction: column;

			.version-item-row {
				border-bottom: 1px solid $tlv-light-gray;

				&:last-child {
					border-bottom: none;
				}
			}
		}

		.version-item-row {
			$row-hover-color: lighten($blue, 54%);
			$row-active-color: lighten($blue, 51%);

			display: flex;
			align-items: center;
			padding: 15px 30px;
			@include version-page-box-shadow();
			background-color: $white;
			height: 70px;

			&:hover {
				background-color: $row-hover-color;
			}

			&.selected {
				box-shadow: 0 1px 4px 0 rgba(24, 24, 24, 0.06), inset 5px 0 0 0 $blue;
				background-color: $row-active-color;

				&:hover {
					box-shadow: 0 1px 4px 0 rgba(24, 24, 24, 0.06), inset 5px 0 0 0 lighten($blue, 35%);
				}
			}

			&.header-row {
				height: 40px;

				@extend .body-1-semibold;
				@include version-page-sub-title();
				padding: 15px 27px;

				&:hover {
					background-color: $white;
					pointer-events: none;
					&:active {
						background-color: $white;
						@include version-page-box-shadow();
					}
				}
				.header-field.actions {
					margin-right: 57px;
				}
			}

			.version-item-field {
				flex: 1;
				display: flex;
				margin-right: 10px;

				&.item-version, &.item-status {
					flex: 0 1 10%;
					@extend .body-1-semibold;
					color: $text-black;
				}

				&.item-description, &.item-last-edited {
					@extend .body-1;
					color: $dark-gray;
				}

				&.item-description, &.header-description {
					flex: 2 1 0;
				}

				&.item-description > .description-text {
					margin-right: 10px;
					@include ellipsis($max-width: 300px);
					width: initial;
				}

				&.item-actions {
					display: flex;
					flex: 1 1 3%;
					justify-content: space-between;
				}

				&.item-select, &.item-create {
					@extend .body-1;
					flex: 0 1 auto;
					margin-right: 0;

					.svg-icon-wrapper {
						fill: $blue;
						color: $blue;

						&[disabled] {
							cursor: default;
						}

						.svg-icon {
							width: 16px;
							height: 16px;
						}

						&:hover:not([disabled]) {
							fill: $dark-blue;
							color: $dark-blue;
						}
					}
				}

			}

			/* To keep ellipsis hider's background the same color as row background */
			&:not(.selected):hover .item-description > .description-text:after {
				background: $row-hover-color;
			}

			&:hover:active .item-description > .description-text:after {
				background: $row-active-color;
			}

		}

	}

	&.clickable {
		cursor: pointer;
	}
}