Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (7.9 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 {
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
		$check-w : 60px;
214
		$img-wrap-w : 70px;
215
		$h4-w :40%;
216
		$tags-w :8%;
217
		$info-w: 25%;
218
		overflow:hidden;
219
		& >li {
220
			@extend .clearfix;
221
			height:auto;
222
			width:100%;
223
			padding:15px 15px 15px $lt-bar-width;
224
			background-image: none;
225
			&:hover{
226
				background-color:lighten($primary-color,30%);
227
			}
228
			.check {
229
				width:$check-w;
230
				height: $list-icon-height;
231
				line-height: $list-icon-height;
232
				text-align: center;
233
				float:left;
234
				&:hover {
235
					cursor: pointer;
236
					color:$link-color-hover;
237
				}
238
			}
239
			.img-wrap {
240
				width:$img-wrap-w;
241
				float:left;
242
				text-align: center;
243
				height: $list-icon-height;
244
				top: -6px;
245
				.os {
246
					@include sprite('../images/os-unknown.png', 14px, 14px);
247
					background-size:100%;
248
					position: absolute;
249
					display: block;
250
					text-align: center;
251
					// line-height:18px;
252
					left:50%;
253
					margin-left: -7px;
254
					top: 6px;
255
				}
256
				.snf-font {
257
					font-size: $list-icon-height;
258
					line-height: 120%;
259
				}
260
			}
261
			h4 {
262
				width:$h4-w;
263
				overflow: hidden;
264
				float:left;
265
				text-align: left;
266
				height:20px;
267
				margin: 0;
268
			}
269
			.tags {
270
				float:left;
271
				width:$tags-w;
272
				height:$list-icon-height;
273
				line-height: $list-icon-height;
274
				a {
275
					vertical-align: text-top;
276
				}
277
			}
278
			.size {
279
				float:left;
280
				width:$tags-w;
281
				height:$list-icon-height;
282
				line-height: $list-icon-height;
283
				font-size: emCalc(12px);
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 {
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 {
316
				visibility: hidden;
317
				height:$list-icon-height;
318
				line-height: $list-icon-height;
319
				text-align: left;
320
				a {
321
					margin-right: 10px;
322
				}
323
			}
324
			&.add-new {
325
				&:hover {
326
					background: $link-color;
327
				}
328
				.check {
329
					visibility: hidden;
330
				}
331
				h4 {
332
					// height:auto;
333
					// line-height: $bar-height;
334
					margin:0;
335
				}
336
				.img-wrap {
337
					.symbol {
338
						font-size:24px;
339
					}
340
				}
341
			}
342
			&.building {
343
				.img-wrap {
344
					.incomplete {
345
						width:$list-icon-height;
346
						margin:0 auto;
347
					}
348
					.complete {
349
						top:-$list-icon-height;
350
						margin:0 auto;
351
					}
352
				}
353
			}
354
		}
355
	}
356
}
357

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

    
391

    
392
/* img-wrap div ( colors & styles ) */
393

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

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

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

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