Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (8 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
					}
208
				}
209
			}
210
		}
211
	}
212
	.items-list {
213
		overflow:hidden;
214
		& >li {
215
			&.selected {
216
				background-color: $light-bg;
217
			}
218
			@extend .clearfix;
219
			height:auto;
220
			width:100%;
221
			padding:15px 15px 15px $lt-bar-width;
222
			background-image: none;
223
			&:hover{
224
				background-color:lighten($primary-color,30%);
225
			}
226
			.check {
227
				width:$check-w;
228
				height: $list-icon-height;
229
				line-height: $list-icon-height;
230
				text-align: center;
231
				float:left;
232
				&:hover {
233
					cursor: pointer;
234
					color:$link-color-hover;
235
				}
236
			}
237
			.img-wrap {
238
				width:$img-wrap-w;
239
				float:left;
240
				text-align: center;
241
				height: $list-icon-height;
242
				top: -6px;
243
				.os {
244
					@include sprite('../images/os-unknown.png', 14px, 14px);
245
					background-size:100%;
246
					position: absolute;
247
					display: block;
248
					text-align: center;
249
					// line-height:18px;
250
					left:50%;
251
					margin-left: -7px;
252
					top: 6px;
253
				}
254
				.snf-font {
255
					font-size: $list-icon-height;
256
					line-height: 120%;
257
				}
258
			}
259
			h4 {
260
				width:$h4-w;
261
				overflow: hidden;
262
				float:left;
263
				text-align: left;
264
				height:18px;
265
				margin: 0;
266
				color: inherit;
267
			}
268
			.tags {
269
				float:left;
270
				width:$tags-w;
271
				height:$list-icon-height;
272
				line-height: $list-icon-height;
273
				a {
274
					vertical-align: text-top;
275
				}
276
			}
277
			.size, .remove {
278
				float:left;
279
				width:$tags-w;
280
				height:$list-icon-height;
281
				line-height: $list-icon-height;
282
				font-size: emCalc(12px);
283
				text-align: left;
284
			}
285
			.status {
286
				position: absolute;
287
				left: $img-wrap-w+$check-w + $lt-bar-width;
288
				text-align: left;
289
				top:30px;
290
				width:$h4-w;
291
				span {
292
					display: inline;
293
				}
294
			}
295
			.info, .progress-col {
296
				float: left;
297
				width: $info-w;
298
				height:$list-icon-height;
299
				line-height: $list-icon-height;
300
				font-size: emCalc(12px);
301
			}
302
			.actions {
303
				float: left;
304
				height:$list-icon-height;
305
				line-height: $list-icon-height;
306
				position: relative;
307
				top:-4px;
308
				margin:0 10px;
309
				a {
310
					&:first-child {
311
						margin-right:5px;
312
					}
313
				}
314
			}
315
			.actions-col, .remove {
316
				visibility: hidden;
317
				height:$list-icon-height;
318
				line-height: $list-icon-height;
319
				text-align: left;
320
				width: $actions-w;
321
				float: left;
322
				a {
323
					margin-right: 10px;
324
				}
325
			}
326
			&.add-new {
327
				&:hover {
328
					background: $link-color;
329
				}
330
				.check {
331
					visibility: hidden;
332
				}
333
				h4 {
334
					// height:auto;
335
					// line-height: $bar-height;
336
					margin:0;
337
				}
338
				.img-wrap {
339
					.symbol {
340
						font-size:24px;
341
					}
342
				}
343
			}
344
			&.building {
345
				.img-wrap {
346
					.incomplete {
347
						width:$list-icon-height;
348
						margin:0 auto;
349
					}
350
					.complete {
351
						top:-$list-icon-height;
352
						margin:0 auto;
353
					}
354
				}
355
			}
356
		}
357
	}
358
}
359

    
360
.lt-bar {
361
	.items-list {
362
		.check, .actions, .info {
363
			display: none;
364
		}
365
		&> li {
366
			background: url(../images/dashed_atom-x.png) repeat-x center bottom;
367
			padding: 40px;
368
			height: auto;
369
			&:hover {
370
				background-color: $light-bg;
371
			}
372
			&.add-new {
373
				background-color: $link-color-hover;
374
				&:hover {
375
					background-color: $link-color;
376
				}
377
			}
378
		}
379
		.container {
380
				height:160px;
381
				position: relative;
382
				line-height:120%;
383
				.tags {
384
					width: 100%;
385
					min-height: 12px;
386
					position: absolute;
387
					bottom: 12px;
388
				}
389
			}
390
	}
391
}
392

    
393

    
394
/* img-wrap div ( colors & styles ) */
395

    
396
.img-wrap {
397
	width: 60px;
398
	position: relative;
399
	// overflow: hidden;
400
	display: inline-block;
401
	line-height: 100%;
402
	span {
403
		&:hover {
404
			cursor: pointer;
405
		}
406
	}
407
	.os {
408
		@include sprite('../images/os-unknown.png', 22px, 22px);
409
		position: absolute;
410
		top: 8px;
411
		left:50%;
412
		margin-left:-11px;
413
		&.windows { background-image:url('../images/os-windows.png'); }
414
		&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
415
		&.fedora { background-image:url('../images/os-fedora.png'); }
416
		&.symbol {
417
			position: relative;
418
			top: -50px;
419
			left: 0;
420
			margin-left: 0;
421
			width: auto;
422
			height: auto;
423
			// top: 10px;
424
		}
425
	}
426
}
427

    
428
.running {
429
	@include stateColor($vm-active-color);
430
}
431
.off {
432
	@include stateColor($vm-off-color);
433
}
434
.error {
435
	@include stateColor($vm-error-color);
436
}
437
.shutting {
438
	@include stateColor($vm-shutting-color);
439
}
440
.starting {
441
	@include stateColor($vm-starting-color);
442
}
443
.rebooting {
444
	@include stateColor($vm-rebooting-color);
445
}
446

    
447
.building {
448
	@include stateColor($vm-active-color);
449
}
450

    
451
.building {
452
	.img-wrap {
453
		.snf-pc-full {
454
			display: block;
455
			// overflow: hidden;
456
		}
457
		.incomplete {
458
			color: $vm-building-color;
459
			width:60px;
460
		}
461
		.complete {
462
			width: 0%;
463
			position: absolute;
464
			top: 0;
465
			overflow: hidden;
466
		}
467
	}
468
}