Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / _items-list.scss @ 1f03ad61

History | View | Annotate | Download (8.5 kB)

1
/* List view for VMs, networks  */
2

    
3
.entities {
4
	position:relative;
5
}
6

    
7
.items-list {
8
	&>li {
9
		text-align:center;
10
		position: relative;
11
		list-style: none;
12
		background:url(../images/dashed-bg-corner.png) no-repeat right bottom;
13
		height: 215px;
14
		.status {
15
			font-size: emCalc(12px);
16
			line-height:140%;
17
			span {
18
				display: block;
19
			}
20
		}
21
		.more {
22
			$col-height: 200px;
23
			display: none;
24
			background: #fff;
25
			left:-10px;
26
			top: -10px;
27
			z-index:101;
28
			position: absolute;
29
			@include clearfix;
30
			@include box-shadow(0 0 10px #ccc);
31
			.col {
32
				width: 50%;
33
				float: left;
34
				font-size: emCalc(14px);
35
				height: $col-height;
36
				ul {
37
					margin: 0;
38
					padding: 0;
39
					list-style: none outside none;
40
					li {
41
						padding: 0;
42
						text-align: left;
43
						padding: 5px 5px 5px 30px;
44
						a {
45
							display: block;
46
							width:100%;
47
						}
48
					}
49
				}
50
				&.lt {
51
					ul {
52
						padding-top:10px;
53
					}
54
				}
55
				&.rt {
56
					ul {
57
						li {
58
							height: $col-height/2;
59
							padding:0 30px 0 0 ;
60
							text-align: right;
61
							a {
62
								height: 100%;
63
								line-height: $col-height/2;
64
								span {
65
									margin-right: 8px;
66
									position: relative;
67
									top: 1px;
68
								}
69
							}
70
						}
71
					}
72
				}
73
			}
74
			.name {
75
				background:url(../images/dashed_atom-x.png) repeat-x center top;
76
				padding: 10px;
77
				font-size: emCalc(10px);
78
			}
79
		}
80
		h4 {
81
			font-size: emCalc(12px);
82
			// overflow: hidden;
83
			margin-bottom: 4px;
84
			height: 32px;
85
			font-weight: normal;
86
		}
87
		&.add-new {
88
			background-color: $link-color-hover;
89
			@include transition(background-color, 300ms, linear);
90
			.container {
91
				.img-wrap {
92
					span.snf-font {
93
						color: white;
94
					}
95
					.symbol {
96
						background-image: none;
97
						color: $link-color-hover;
98
						font-size: 30px;
99
						text-indent: 0;
100
					}
101
				}
102
				h4 {
103
					color: white;
104
				}
105
			}
106
			&:hover {
107
				background-color: $link-color;
108
				@include transition(background-color, 300ms, linear);
109
				cursor: pointer;
110
				.container {
111
					.img-wrap {
112
						.symbol {
113
							color: $link-color;
114
						}
115
					}
116
				}
117
			}
118
		}
119
	}
120
}
121

    
122
.grid-view {
123
	.lt-bar {
124
		display: none;
125
	}
126
	.items-list {
127
		@include block-grid(2, 0, true);
128
		padding-left:1px;
129
		@media #{$small} {
130
			@include block-grid(4, 0, true);
131
			padding-left:1px;
132
		};
133
		background:url(../images/dashed_atom.png) repeat-y left center;
134

    
135
		&>li {
136
			height:215px;
137
			.check, .info, .actions {
138
				display: none;
139
			}
140
			.img-wrap {
141
				margin-bottom: 6px;
142
				height:$grid-icon-height;
143
				.snf-font {
144
					font-size: $grid-icon-height;
145
					// line-height: 120%;
146
				}
147
			}
148
			.container {
149
				height:100%;
150
				padding: 40px 10px 20px;
151
				position: relative;
152
				line-height:120%;
153
				overflow: hidden;
154
				.tags {
155
					margin:1em 0;
156
				}
157
			}
158
		}
159
	}
160
}
161
.list-view, .storage-progress {
162
	.btn5 {
163
		display: none;
164
	}
165
	.lt-bar {
166
		@include ltbar;
167
		ul {
168
			list-style: none outside none;
169
			font-size:emCalc(12px);
170
			li  {
171
				list-style: none outside none;
172
				height: $list-icon-height;
173
				line-height: $list-icon-height;
174
				&.select {
175
					text-transform: capitalize;
176
					span {
177
						font-size: 16px;
178
						margin-right: 5px;
179
						position: relative;
180
						top: 2px;
181
					}
182
					em {
183
						display: none;
184
						font-style: normal;
185
					}
186
					&:hover {
187
						color: $link-color-hover;
188
						cursor: pointer;
189
					}
190
					&.selected {
191
							text-transform: lowercase;
192
						em {
193
							text-transform: capitalize;
194
						}
195
					}
196
				}
197
			}
198
			&.lt-actions {
199
				li {
200
					a {
201
						color:$inactive-color;
202
						&:hover {
203
							color:$inactive-color;
204
							cursor:default;
205
						}
206
						&.active {
207
							color:$link-color;
208
							&:hover {
209
								color:$link-color-hover;
210
								cursor: pointer;
211
							}
212
						}
213
						span {
214
							margin-right: 6px;
215
							width: 14px;
216
							display: inline-block;
217
							&.snf-folder-move-outline {
218
								font-size: 1.5em;
219
								position: relative;
220
								// top: -2px;
221
							}
222
						}
223
					}
224
				}
225
			}
226
			&.more {
227
				li {
228
					a {
229
						span {
230
							font-size: 1.5em;
231
							margin-right: 2px;
232
						}
233
					}
234
				}
235
			}
236
		}
237
	}
238
	.items-list {
239
		overflow:hidden;
240
		& >li {
241
			&.selected {
242
				background-color: $gray-4;
243
			}
244
			@extend .clearfix;
245
			height:auto;
246
			width:100%;
247
			padding:15px 15px 15px $lt-bar-width;
248
			background-image: none;
249
			&:hover{
250
				background-color: $gray-4;
251
			}
252
			.check {
253
				width:$check-w;
254
				height: $list-icon-height;
255
				line-height: $list-icon-height;
256
				text-align: center;
257
				float:left;
258
				padding-left: 20px;
259
				&:hover {
260
					cursor: pointer;
261
					color:$link-color-hover;
262
				}
263
			}
264
			.img-wrap {
265
				width:$img-wrap-w;
266
				float:left;
267
				text-align: center;
268
				height: $list-icon-height;
269
				.os {
270
					@include sprite('../images/os-unknown.png', 14px, 14px);
271
					background-size:100%;
272
					position: absolute;
273
					display: block;
274
					text-align: center;
275
					// line-height:18px;
276
					left:50%;
277
					margin-left: -7px;
278
					top: 6px;
279
				}
280
				.snf-font {
281
					font-size: $list-icon-height;
282
					line-height: 120%;
283
				}
284
			}
285
			h4 {
286
				width:$h4-w;
287
				overflow: hidden;
288
				float:left;
289
				text-align: left;
290
				padding-right: 20px;
291
				height: $list-icon-height;
292
				line-height: $list-icon-height;
293
				margin: 0;
294
				color: inherit;
295
				padding-right: 20px;
296
			}
297
			.tags {
298
				float:left;
299
				width:$tags-w;
300
				height:$list-icon-height;
301
				line-height: $list-icon-height;
302
				a {
303
					vertical-align: middle;
304
				}
305
			}
306
			.size, .remove {
307
				float:left;
308
				width:$tags-w;
309
				height:$list-icon-height;
310
				line-height: $list-icon-height;
311
				font-size: emCalc(12px);
312
				text-align: left;
313
				padding-left: 20px;
314
			}
315
			.status {
316
				position: absolute;
317
				left: $img-wrap-w+$check-w + $lt-bar-width;
318
				text-align: left;
319
				top:36px;
320
				font-size: 11px;
321
				line-height: 110%;
322
				width:$vm-h4-w;
323
				span {
324
					display: inline;
325
				}
326
			}
327
			.info, .progress-col {
328
				float: left;
329
				width: $info-w;
330
				padding-right: 20px;
331
				height:$list-icon-height;
332
				line-height: $list-icon-height;
333
				font-size: emCalc(12px);
334
			}
335
			.actions {
336
				float: left;
337
				height:$list-icon-height;
338
				line-height: $list-icon-height;
339
				position: relative;
340
				padding:0 10px;
341
				top: 2px;
342
				a {
343
					&:first-child {
344
						margin-right:5px;
345
					}
346
				}
347
			}
348
			.actions-col, .remove {
349
				visibility: hidden;
350
				height:$list-icon-height;
351
				line-height: $list-icon-height;
352
				text-align: left;
353
				width: $actions-w;
354
				float: left;
355
				a {
356
					margin-right: 10px;
357
				}
358
			}
359
			&.add-new {
360
				&:hover {
361
					background: $link-color;
362
				}
363
				.check {
364
					visibility: hidden;
365
				}
366
				h4 {
367
					margin:0;
368
				}
369
				.img-wrap {
370
					.symbol {
371
						font-size:24px;
372
					}
373
				}
374
			}
375
			&.building {
376
				.img-wrap {
377
					.incomplete {
378
						width:$list-icon-height;
379
						margin:0 auto;
380
					}
381
					.complete {
382
						top:-$list-icon-height;
383
						margin:0 auto;
384
					}
385
				}
386
			}
387
		}
388
	}
389
}
390

    
391
// disable hover effect for the .containers li
392
.containers {
393
	.storage {
394
		.items-list {
395
			&>li:hover {
396
				background-color: inherit;
397
			}
398
		}
399
	}
400
}
401

    
402
// select-all for pithos view (alignment)
403
.storage {
404
	.lt-bar {
405
		.lt-actions {
406
			.select {
407
				margin-right: 4px;
408
			}
409
		}
410
	}
411
}
412

    
413
.lt-bar {
414
	.items-list {
415
		.check, .actions, .info {
416
			display: none;
417
		}
418
		.container {
419
			padding: 40px 0;
420
		}
421
		.side-actions {
422
			display: none;
423
		}
424
	}
425
}
426

    
427

    
428
/* img-wrap div ( colors & styles ) */
429

    
430
.img-wrap {
431
	width: 60px;
432
	position: relative;
433
	// overflow: hidden;
434
	display: inline-block;
435
	line-height: 100%;
436
	.os {
437
		@include sprite('../images/os-unknown.png', 22px, 22px);
438
		position: absolute;
439
		top: 8px;
440
		left:50%;
441
		margin-left:-11px;
442
		&.windows { background-image:url('../images/os-windows.png'); }
443
		&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
444
		&.fedora { background-image:url('../images/os-fedora.png'); }
445
		&.symbol {
446
			position: relative;
447
			top: -50px;
448
			left: 0;
449
			margin-left: 0;
450
			width: auto;
451
			height: auto;
452
			// top: 10px;
453
		}
454
	}
455
}
456

    
457
.running {
458
	@include stateColor($vm-active-color);
459
}
460
.off {
461
	@include stateColor($vm-off-color);
462
}
463
.error {
464
	@include stateColor($vm-error-color);
465
}
466
.shutting {
467
	@include stateColor($vm-shutting-color);
468
}
469
.starting {
470
	@include stateColor($vm-starting-color);
471
}
472
.rebooting {
473
	@include stateColor($vm-rebooting-color);
474
}
475

    
476
.building {
477
	@include stateColor($vm-active-color);
478
}
479

    
480
.building {
481
	.img-wrap {
482
		.snf-pc-full {
483
			display: block;
484
			// overflow: hidden;
485
		}
486
		.incomplete {
487
			color: $vm-building-color;
488
			width:60px;
489
		}
490
		.complete {
491
			width: 0%;
492
			position: absolute;
493
			top: 0;
494
			overflow: hidden;
495
		}
496
	}
497
}