Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (7.3 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
				.os {
241
					@include sprite('../images/os-unknown.png', 16px, 16px);
242
					background-size:100%;
243
					position: absolute;
244
					display: block;
245
					text-align: center;
246
					line-height:18px;
247
					left:50%;
248
					margin-left:-8px;
249
					top:4px;
250
				}
251
				.snf-font {
252
					font-size: $list-icon-height;
253
					line-height: 120%;
254
				}
255
			}
256
			h4 {
257
				width:$h4-w
258
				;
259
				float:left;
260
				text-align: left;
261
				height:20px;
262
			}
263
			.tags {
264
				float:left;
265
				width:$tags-w;
266
				height:$list-icon-height;
267
				line-height: $list-icon-height;
268
				a {
269
					vertical-align: text-top;
270
				}
271
			}
272
			.status {
273
				position: absolute;
274
				left: $img-wrap-w+$check-w + $lt-bar-width;
275
				text-align: left;
276
				top:30px;
277
				width:$h4-w;
278
				span {
279
					display: inline;
280
				}
281
			}
282
			.info {
283
				float: left;
284
				width: $info-w;
285
				font-size: emCalc(12px);
286
			}
287
			.actions {
288
				float: left;
289
				height:$list-icon-height;
290
				line-height: $list-icon-height;
291
				position: relative;
292
				top:-4px;
293
				margin:0 10px;
294
				a {
295
					&:first-child {
296
						margin-right:5px;
297
					}
298
				}
299
			}
300
			&.add-new {
301
				&:hover {
302
					background: $link-color;
303
				}
304
				.check {
305
					visibility: hidden;
306
				}
307
				h4 {
308
					height:auto;
309
					line-height: $bar-height;
310
					margin:0;
311
				}
312
				.img-wrap {
313
					.symbol {
314
						font-size:24px;
315
					}
316
				}
317
			}
318
			&.building {
319
				.img-wrap {
320
					.incomplete {
321
						width:$list-icon-height;
322
						margin:0 auto;
323
					}
324
					.complete {
325
						top:-$list-icon-height;
326
						margin:0 auto;
327
					}
328
				}
329
			}
330
		}
331
	}
332
}
333

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

    
367

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

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

    
393
.running {
394
	@include stateColor($vm-active-color);
395
}
396
.off {
397
	@include stateColor($vm-off-color);
398
}
399
.error {
400
	@include stateColor($vm-error-color);
401
}
402
.shutting {
403
	@include stateColor($vm-shutting-color);
404
}
405
.starting {
406
	@include stateColor($vm-starting-color);
407
}
408
.rebooting {
409
	@include stateColor($vm-rebooting-color);
410
}
411

    
412
.building {
413
	@include stateColor($vm-active-color);
414
}
415

    
416
.building {
417
	.img-wrap {
418
		.snf-pc-full {
419
			display: block;
420
			overflow: hidden;
421
		}
422
		.incomplete {
423
			color: $vm-building-color;
424
			width:60px;
425
		}
426
		.complete {
427
			width: 0%;
428
			position: relative;
429
			top: -60px;
430
		}
431
	}
432
}