Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (8.7 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: $gray-4;
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: $gray-4;
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
				padding-left: 20px;
253
				&:hover {
254
					cursor: pointer;
255
					color:$link-color-hover;
256
				}
257
			}
258
			.img-wrap {
259
				width:$img-wrap-w;
260
				float:left;
261
				text-align: center;
262
				height: $list-icon-height;
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
				padding-right: 20px;
285
				height: $list-icon-height;
286
				line-height: $list-icon-height;
287
				margin: 0;
288
				color: inherit;
289
				padding-right: 20px;
290
			}
291
			.tags {
292
				float:left;
293
				width:$tags-w;
294
				height:$list-icon-height;
295
				line-height: $list-icon-height;
296
				a {
297
					vertical-align: middle;
298
				}
299
			}
300
			.size, .remove {
301
				float:left;
302
				width:$tags-w;
303
				height:$list-icon-height;
304
				line-height: $list-icon-height;
305
				font-size: emCalc(12px);
306
				text-align: left;
307
				padding-left: 20px;
308
			}
309
			.status {
310
				position: absolute;
311
				left: $img-wrap-w+$check-w + $lt-bar-width;
312
				text-align: left;
313
				top:36px;
314
				font-size: 11px;
315
				line-height: 110%;
316
				width:$vm-h4-w;
317
				span {
318
					display: inline;
319
				}
320
			}
321
			.info, .progress-col {
322
				float: left;
323
				width: $info-w;
324
				padding-right: 20px;
325
				height:$list-icon-height;
326
				line-height: $list-icon-height;
327
				font-size: emCalc(12px);
328
			}
329
			.actions {
330
				float: left;
331
				height:$list-icon-height;
332
				line-height: $list-icon-height;
333
				position: relative;
334
				padding:0 10px;
335
				top: 2px;
336
				a {
337
					&:first-child {
338
						margin-right:5px;
339
					}
340
				}
341
			}
342
			.actions-col, .remove {
343
				visibility: hidden;
344
				height:$list-icon-height;
345
				line-height: $list-icon-height;
346
				text-align: left;
347
				width: $actions-w;
348
				float: left;
349
				a {
350
					margin-right: 10px;
351
				}
352
			}
353
			&.add-new {
354
				&:hover {
355
					background: $link-color;
356
				}
357
				.check {
358
					visibility: hidden;
359
				}
360
				h4 {
361
					margin:0;
362
				}
363
				.img-wrap {
364
					.symbol {
365
						font-size:24px;
366
					}
367
				}
368
			}
369
			&.building {
370
				.img-wrap {
371
					.incomplete {
372
						width:$list-icon-height;
373
						margin:0 auto;
374
					}
375
					.complete {
376
						top:-$list-icon-height;
377
						margin:0 auto;
378
					}
379
				}
380
			}
381
		}
382
	}
383
}
384

    
385
// disable hover effect for the .containers li
386
.containers {
387
	.storage {
388
		.items-list {
389
			&>li:hover {
390
				background-color: inherit;
391
			}
392
		}
393
	}
394
}
395

    
396
// select-all for pithos view (alignment)
397
.storage {
398
	.lt-bar {
399
		.lt-actions {
400
			.select {
401
				margin-right: 4px;
402
			}
403
		}
404
	}
405
}
406

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

    
440

    
441
/* img-wrap div ( colors & styles ) */
442

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

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

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

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