Statistics
| Branch: | Tag: | Revision:

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

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

    
335
.lt-bar {
336
	.items-list {
337
		.check, .actions, .info {
338
			display: none;
339
		}
340
		&> li {
341
			background: url(../images/dashed_atom-x.png) repeat-x center bottom;
342
			padding: 40px;
343
			height: auto;
344
			&:hover {
345
				background-color: $light-bg;
346
			}
347
			&.add-new {
348
				background-color: $link-color-hover;
349
				&:hover {
350
					background-color: $link-color;
351
				}
352
			}
353
		}
354
		.container {
355
				height:160px;
356
				position: relative;
357
				line-height:120%;
358
				.tags {
359
					width: 100%;
360
					min-height: 12px;
361
					position: absolute;
362
					bottom: 12px;
363
				}
364
			}
365
	}
366
}
367

    
368

    
369
/* img-wrap div ( colors & styles ) */
370

    
371
.img-wrap {
372
	width: 60px;
373
	position: relative;
374
	// overflow: hidden;
375
	display: inline-block;
376
	line-height: 100%;
377
	span {
378
		&:hover {
379
			cursor: pointer;
380
		}
381
	}
382
	.os {
383
		@include sprite('../images/os-unknown.png', 22px, 22px);
384
		position: absolute;
385
		top: 8px;
386
		left:50%;
387
		margin-left:-11px;
388
		&.windows { background-image:url('../images/os-windows.png'); }
389
		&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
390
		&.fedora { background-image:url('../images/os-fedora.png'); }
391
		&.symbol {
392
			position: relative;
393
			top: -50px;
394
			left: 0;
395
			margin-left: 0;
396
			width: auto;
397
			height: auto;
398
			// top: 10px;
399
		}
400
	}
401
}
402

    
403
.running {
404
	@include stateColor($vm-active-color);
405
}
406
.off {
407
	@include stateColor($vm-off-color);
408
}
409
.error {
410
	@include stateColor($vm-error-color);
411
}
412
.shutting {
413
	@include stateColor($vm-shutting-color);
414
}
415
.starting {
416
	@include stateColor($vm-starting-color);
417
}
418
.rebooting {
419
	@include stateColor($vm-rebooting-color);
420
}
421

    
422
.building {
423
	@include stateColor($vm-active-color);
424
}
425

    
426
.building {
427
	.img-wrap {
428
		.snf-pc-full {
429
			display: block;
430
			// overflow: hidden;
431
		}
432
		.incomplete {
433
			color: $vm-building-color;
434
			width:60px;
435
		}
436
		.complete {
437
			width: 0%;
438
			position: absolute;
439
			top: 0;
440
			overflow: hidden;
441
		}
442
	}
443
}