root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / _items-list.scss @ 0ef95fe4
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, .strorage-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 |
@extend .clearfix; |
216 |
height:auto; |
217 |
width:100%; |
218 |
padding:15px 15px 15px $lt-bar-width; |
219 |
background-image: none; |
220 |
&:hover{ |
221 |
background-color:lighten($primary-color,30%); |
222 |
} |
223 |
.check { |
224 |
width:$check-w; |
225 |
height: $list-icon-height; |
226 |
line-height: $list-icon-height; |
227 |
text-align: center; |
228 |
float:left; |
229 |
&:hover { |
230 |
cursor: pointer; |
231 |
color:$link-color-hover; |
232 |
} |
233 |
} |
234 |
.img-wrap { |
235 |
width:$img-wrap-w; |
236 |
float:left; |
237 |
text-align: center; |
238 |
height: $list-icon-height; |
239 |
top: -6px; |
240 |
.os { |
241 |
@include sprite('../images/os-unknown.png', 14px, 14px); |
242 |
background-size:100%; |
243 |
position: absolute; |
244 |
display: block; |
245 |
text-align: center; |
246 |
// line-height:18px; |
247 |
left:50%; |
248 |
margin-left: -7px; |
249 |
top: 6px; |
250 |
} |
251 |
.snf-font { |
252 |
font-size: $list-icon-height; |
253 |
line-height: 120%; |
254 |
} |
255 |
} |
256 |
h4 { |
257 |
width:$h4-w; |
258 |
overflow: hidden; |
259 |
float:left; |
260 |
text-align: left; |
261 |
height:20px; |
262 |
margin: 0; |
263 |
color: inherit; |
264 |
} |
265 |
.tags { |
266 |
float:left; |
267 |
width:$tags-w; |
268 |
height:$list-icon-height; |
269 |
line-height: $list-icon-height; |
270 |
a { |
271 |
vertical-align: text-top; |
272 |
} |
273 |
} |
274 |
.size, .remove { |
275 |
float:left; |
276 |
width:$tags-w; |
277 |
height:$list-icon-height; |
278 |
line-height: $list-icon-height; |
279 |
font-size: emCalc(12px); |
280 |
} |
281 |
.status { |
282 |
position: absolute; |
283 |
left: $img-wrap-w+$check-w + $lt-bar-width; |
284 |
text-align: left; |
285 |
top:30px; |
286 |
width:$h4-w; |
287 |
span { |
288 |
display: inline; |
289 |
} |
290 |
} |
291 |
.info, .progress-col { |
292 |
float: left; |
293 |
width: $info-w; |
294 |
height:$list-icon-height; |
295 |
line-height: $list-icon-height; |
296 |
font-size: emCalc(12px); |
297 |
} |
298 |
.actions { |
299 |
float: left; |
300 |
height:$list-icon-height; |
301 |
line-height: $list-icon-height; |
302 |
position: relative; |
303 |
top:-4px; |
304 |
margin:0 10px; |
305 |
a { |
306 |
&:first-child { |
307 |
margin-right:5px; |
308 |
} |
309 |
} |
310 |
} |
311 |
.actions-col, .remove { |
312 |
visibility: hidden; |
313 |
height:$list-icon-height; |
314 |
line-height: $list-icon-height; |
315 |
text-align: left; |
316 |
width: $actions-w; |
317 |
float: left; |
318 |
a { |
319 |
margin-right: 10px; |
320 |
} |
321 |
} |
322 |
&.add-new { |
323 |
&:hover { |
324 |
background: $link-color; |
325 |
} |
326 |
.check { |
327 |
visibility: hidden; |
328 |
} |
329 |
h4 { |
330 |
// height:auto; |
331 |
// line-height: $bar-height; |
332 |
margin:0; |
333 |
} |
334 |
.img-wrap { |
335 |
.symbol { |
336 |
font-size:24px; |
337 |
} |
338 |
} |
339 |
} |
340 |
&.building { |
341 |
.img-wrap { |
342 |
.incomplete { |
343 |
width:$list-icon-height; |
344 |
margin:0 auto; |
345 |
} |
346 |
.complete { |
347 |
top:-$list-icon-height; |
348 |
margin:0 auto; |
349 |
} |
350 |
} |
351 |
} |
352 |
} |
353 |
} |
354 |
} |
355 |
|
356 |
.lt-bar { |
357 |
.items-list { |
358 |
.check, .actions, .info { |
359 |
display: none; |
360 |
} |
361 |
&> li { |
362 |
background: url(../images/dashed_atom-x.png) repeat-x center bottom; |
363 |
padding: 40px; |
364 |
height: auto; |
365 |
&:hover { |
366 |
background-color: $light-bg; |
367 |
} |
368 |
&.add-new { |
369 |
background-color: $link-color-hover; |
370 |
&:hover { |
371 |
background-color: $link-color; |
372 |
} |
373 |
} |
374 |
} |
375 |
.container { |
376 |
height:160px; |
377 |
position: relative; |
378 |
line-height:120%; |
379 |
.tags { |
380 |
width: 100%; |
381 |
min-height: 12px; |
382 |
position: absolute; |
383 |
bottom: 12px; |
384 |
} |
385 |
} |
386 |
} |
387 |
} |
388 |
|
389 |
|
390 |
/* img-wrap div ( colors & styles ) */ |
391 |
|
392 |
.img-wrap { |
393 |
width: 60px; |
394 |
position: relative; |
395 |
// overflow: hidden; |
396 |
display: inline-block; |
397 |
line-height: 100%; |
398 |
span { |
399 |
&:hover { |
400 |
cursor: pointer; |
401 |
} |
402 |
} |
403 |
.os { |
404 |
@include sprite('../images/os-unknown.png', 22px, 22px); |
405 |
position: absolute; |
406 |
top: 8px; |
407 |
left:50%; |
408 |
margin-left:-11px; |
409 |
&.windows { background-image:url('../images/os-windows.png'); } |
410 |
&.kubuntu { background-image:url('../images/os-kubuntu.png'); } |
411 |
&.fedora { background-image:url('../images/os-fedora.png'); } |
412 |
&.symbol { |
413 |
position: relative; |
414 |
top: -50px; |
415 |
left: 0; |
416 |
margin-left: 0; |
417 |
width: auto; |
418 |
height: auto; |
419 |
// top: 10px; |
420 |
} |
421 |
} |
422 |
} |
423 |
|
424 |
.running { |
425 |
@include stateColor($vm-active-color); |
426 |
} |
427 |
.off { |
428 |
@include stateColor($vm-off-color); |
429 |
} |
430 |
.error { |
431 |
@include stateColor($vm-error-color); |
432 |
} |
433 |
.shutting { |
434 |
@include stateColor($vm-shutting-color); |
435 |
} |
436 |
.starting { |
437 |
@include stateColor($vm-starting-color); |
438 |
} |
439 |
.rebooting { |
440 |
@include stateColor($vm-rebooting-color); |
441 |
} |
442 |
|
443 |
.building { |
444 |
@include stateColor($vm-active-color); |
445 |
} |
446 |
|
447 |
.building { |
448 |
.img-wrap { |
449 |
.snf-pc-full { |
450 |
display: block; |
451 |
// overflow: hidden; |
452 |
} |
453 |
.incomplete { |
454 |
color: $vm-building-color; |
455 |
width:60px; |
456 |
} |
457 |
.complete { |
458 |
width: 0%; |
459 |
position: absolute; |
460 |
top: 0; |
461 |
overflow: hidden; |
462 |
} |
463 |
} |
464 |
} |