Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (6 kB)

1
/* List view for VMs, networks  */
2
.entities {
3
	position:relative;
4
}
5

    
6
.grid-view {
7
	.lt-bar {
8
		display: none;
9
	}
10
	.items-list {
11
		@include block-grid(2, 0, true);
12
		padding-left:1px;
13
		@media #{$small} {
14
			@include block-grid(4, 0, true);
15
			padding-left:1px;
16
		};
17
		background:url(../images/dashed_atom.png) repeat-y left center;
18

    
19
		&>li {
20
			height:215px;
21
			.check, .info, .actions {
22
				display: none;
23
			}
24
			.img-wrap {
25
				margin-bottom: 6px;
26
				height:60px;
27
			}
28
			.container {
29
				height:160px;
30
				margin: 40px 20px 20px;
31
				position: relative;
32
				line-height:120%;
33
				.tags {
34
					width: 100%;
35
					min-height: 12px;
36
					position: absolute;
37
					bottom: 12px;
38
				}
39
			}
40
		}
41
	}
42
}
43
.items-list {
44
	&>li {
45
		text-align:center;
46
		padding:20px;
47
		position: relative;
48
		list-style:none;
49
		background:url(../images/dashed-bg-corner.png) no-repeat right bottom;
50
		height: 215px;
51
		.img-wrap {
52
			position: relative;
53
			display: inline-block;
54
			overflow: hidden;
55
		}
56
		.status {
57
			font-size: emCalc(12px);
58
			line-height:140%;
59
			span {
60
				display: block;
61
			}
62
		}
63
		.more {
64
			$col-height: 200px;
65
			display: none;
66
			background: #fff;
67
			left:-10px;
68
			top: -10px;
69
			z-index:101;
70
			position: absolute;
71
			@include clearfix;
72
			@include box-shadow(0 0 10px #ccc);
73
			.col {
74
				width: 50%;
75
				float: left;
76
				font-size: emCalc(14px);
77
				height: $col-height;
78
				ul {
79
					margin: 0;
80
					padding: 0;
81
					list-style: none outside none;
82
					li {
83
						padding: 0;
84
						text-align: left;
85
						padding: 5px 5px 5px 30px;
86
						a {
87
							display: block;
88
							width:100%;
89
						}
90
					}
91
				}
92
				&.lt {
93
					ul {
94
						padding-top:10px;
95
					}
96
				}
97
				&.rt {
98
					ul {
99
						li {
100
							height: $col-height/2;
101
							padding:0 30px 0 0 ;
102
							text-align: right;
103
							a {
104
								height: 100%;
105
								line-height: $col-height/2;
106
								span {
107
									margin-right: 8px;
108
									position: relative;
109
									top: 1px;
110
								}
111
							}
112
						}
113
					}
114
				}
115
			}
116
			.name {
117
				background:url(../images/dashed_atom-x.png) repeat-x center top;
118
				padding: 10px;
119
				font-size: emCalc(10px);
120
			}
121
		}
122
		h4 {
123
			font-size: emCalc(12px);
124
			overflow: hidden;
125
			margin-bottom: 4px;
126
			height: 32px;
127
			font-weight: normal;
128
		}
129
		&.add-new {
130
			background-color: $link-color-hover;
131
			@include transition(background-color, 300ms, linear);
132
			.container {
133
				.img-wrap {
134
					span:first-child {
135
					color: white;
136
					}
137
					.symbol {
138
						background-image: none;
139
						color: $link-color-hover;
140
						font-size: 30px;
141
						text-indent: 0;
142
					}
143
				}
144
				h4 {
145
					color: white;
146
				}
147
			}
148
			&:hover {
149
				background-color: $link-color;
150
				@include transition(background-color, 300ms, linear);
151
				cursor: pointer;
152
				.container {
153
					.img-wrap {
154
						.symbol {
155
							color: $link-color;
156
						}
157
					}
158
				}
159
			}
160
		}
161
	}
162
}
163

    
164
.list-view {
165
	.btn5 {
166
		display: none;
167
	}
168
	.lt-bar {
169
		@include ltbar;
170
		ul {
171
			list-style: none outside none;
172
			font-size:emCalc(12px);
173
			li  {
174
				list-style: none outside none;
175
				padding:12px 0 ;
176
				&.select {
177
					span {
178
						font-size: 16px;
179
						margin-right: 5px;
180
						position: relative;
181
						top: 2px;
182
					}
183
					em {
184
						display: none;
185
						font-style: normal;
186
					}
187
					&:hover {
188
						color: $link-color-hover;
189
						cursor: pointer;
190
					}
191
				}
192
				a {
193
					color:$inactive-color;
194
					&:hover {
195
						color:$inactive-color;
196
						cursor:default;
197
					}
198
					&.active {
199
						color:$link-color;
200
						&:hover {
201
							color:$link-color-hover;
202
							cursor: pointer;
203
						}
204
					}
205
				}
206
			}
207
		}
208
	}
209
	.items-list {
210
		$check-w : 60px;
211
		$img-wrap-w : 70px;
212
		$h4-w :40%;
213
		$tags-w :8%;
214
		$info-w: 25%;
215
		overflow:hidden;
216
		& >li {
217
			@extend .clearfix;
218
			height:auto;
219
			width:100%;
220
			padding:15px 15px 15px $lt-bar-width;
221
			background-image: none;
222
			&:hover{
223
				background-color:lighten($primary-color,30%);
224
			}
225
			.check {
226
				width:$check-w;
227
				height: $list-vm-height;
228
				line-height: $list-vm-height;
229
				text-align: center;
230
				float:left;
231
				&:hover {
232
					cursor: pointer;
233
					color:$link-color-hover;
234
				}
235
			}
236
			.img-wrap {
237
				width:$img-wrap-w;
238
				float:left;
239
				text-align: center;
240
				height: $list-vm-height;
241
				.os {
242
					@include sprite('../images/os-unknown.png', 16px, 16px);
243
					background-size:100%;
244
					position: absolute;
245
					display: block;
246
					text-align: center;
247
					line-height:18px;
248
					left:50%;
249
					margin-left:-8px;
250
					top:3px;
251
				}
252
				.snf-pc-full {
253
					font-size: $list-vm-height;
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-vm-height;
267
				line-height: $list-vm-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-vm-height;
290
				line-height: $list-vm-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-vm-height;
322
						margin:0 auto;
323
					}
324
					.complete {
325
						top:-$list-vm-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
		}
347
		.container {
348
				height:160px;
349
				position: relative;
350
				line-height:120%;
351
				.tags {
352
					width: 100%;
353
					min-height: 12px;
354
					position: absolute;
355
					bottom: 12px;
356
				}
357
			}
358
	}
359
}