Statistics
| Branch: | Tag: | Revision:

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

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

    
378
// disable hover effect for the .containers li
379
.containers {
380
	.storage {
381
		.items-list {
382
			&>li:hover {
383
				background-color: inherit;
384
			}
385
		}
386
	}
387
}
388

    
389
// select-all for pithos view (alignment)
390
.storage {
391
	.lt-bar {
392
		.lt-actions {
393
			.select {
394
				margin-right: 4px;
395
			}
396
		}
397
	}
398
}
399

    
400
.lt-bar {
401
	.items-list {
402
		.check, .actions, .info {
403
			display: none;
404
		}
405
		&> li {
406
			background: url(../images/dashed_atom-x.png) repeat-x center bottom;
407
			padding: 40px;
408
			height: auto;
409
			&:hover {
410
				background-color: $light-bg;
411
			}
412
			&.add-new {
413
				background-color: $link-color-hover;
414
				&:hover {
415
					background-color: $link-color;
416
				}
417
			}
418
		}
419
		.container {
420
				height:160px;
421
				position: relative;
422
				line-height:120%;
423
				.tags {
424
					width: 100%;
425
					min-height: 12px;
426
					position: absolute;
427
					bottom: 12px;
428
				}
429
			}
430
	}
431
}
432

    
433

    
434
/* img-wrap div ( colors & styles ) */
435

    
436
.img-wrap {
437
	width: 60px;
438
	position: relative;
439
	// overflow: hidden;
440
	display: inline-block;
441
	line-height: 100%;
442
	span {
443
		&:hover {
444
			cursor: pointer;
445
		}
446
	}
447
	.os {
448
		@include sprite('../images/os-unknown.png', 22px, 22px);
449
		position: absolute;
450
		top: 8px;
451
		left:50%;
452
		margin-left:-11px;
453
		&.windows { background-image:url('../images/os-windows.png'); }
454
		&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
455
		&.fedora { background-image:url('../images/os-fedora.png'); }
456
		&.symbol {
457
			position: relative;
458
			top: -50px;
459
			left: 0;
460
			margin-left: 0;
461
			width: auto;
462
			height: auto;
463
			// top: 10px;
464
		}
465
	}
466
}
467

    
468
.running {
469
	@include stateColor($vm-active-color);
470
}
471
.off {
472
	@include stateColor($vm-off-color);
473
}
474
.error {
475
	@include stateColor($vm-error-color);
476
}
477
.shutting {
478
	@include stateColor($vm-shutting-color);
479
}
480
.starting {
481
	@include stateColor($vm-starting-color);
482
}
483
.rebooting {
484
	@include stateColor($vm-rebooting-color);
485
}
486

    
487
.building {
488
	@include stateColor($vm-active-color);
489
}
490

    
491
.building {
492
	.img-wrap {
493
		.snf-pc-full {
494
			display: block;
495
			// overflow: hidden;
496
		}
497
		.incomplete {
498
			color: $vm-building-color;
499
			width:60px;
500
		}
501
		.complete {
502
			width: 0%;
503
			position: absolute;
504
			top: 0;
505
			overflow: hidden;
506
		}
507
	}
508
}