root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / _items-list.scss @ 86b0e0b9
History | View | Annotate | Download (8.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, .storage-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 |
height: $list-icon-height; |
175 |
line-height: $list-icon-height; |
176 |
&.select { |
177 |
text-transform: capitalize; |
178 |
span { |
179 |
font-size: 16px; |
180 |
margin-right: 5px; |
181 |
position: relative; |
182 |
top: 2px; |
183 |
} |
184 |
em { |
185 |
display: none; |
186 |
font-style: normal; |
187 |
} |
188 |
&:hover { |
189 |
color: $link-color-hover; |
190 |
cursor: pointer; |
191 |
} |
192 |
&.selected { |
193 |
text-transform: lowercase; |
194 |
em { |
195 |
text-transform: capitalize; |
196 |
} |
197 |
} |
198 |
} |
199 |
} |
200 |
&.lt-actions { |
201 |
li { |
202 |
a { |
203 |
color:$inactive-color; |
204 |
&:hover { |
205 |
color:$inactive-color; |
206 |
cursor:default; |
207 |
} |
208 |
&.active { |
209 |
color:$link-color; |
210 |
&:hover { |
211 |
color:$link-color-hover; |
212 |
cursor: pointer; |
213 |
} |
214 |
} |
215 |
span { |
216 |
margin-right: 6px; |
217 |
width: 14px; |
218 |
display: inline-block; |
219 |
&.snf-folder-move-outline { |
220 |
font-size: 1.5em; |
221 |
position: relative; |
222 |
// top: -2px; |
223 |
} |
224 |
} |
225 |
} |
226 |
} |
227 |
} |
228 |
&.more { |
229 |
li { |
230 |
a { |
231 |
span { |
232 |
font-size: 1.5em; |
233 |
margin-right: 2px; |
234 |
} |
235 |
} |
236 |
} |
237 |
} |
238 |
} |
239 |
} |
240 |
.items-list { |
241 |
overflow:hidden; |
242 |
& >li { |
243 |
&.selected { |
244 |
background-color: $gray-4; |
245 |
} |
246 |
@extend .clearfix; |
247 |
height:auto; |
248 |
width:100%; |
249 |
padding:15px 15px 15px $lt-bar-width; |
250 |
background-image: none; |
251 |
&:hover{ |
252 |
background-color: $gray-4; |
253 |
} |
254 |
.check { |
255 |
width:$check-w; |
256 |
height: $list-icon-height; |
257 |
line-height: $list-icon-height; |
258 |
text-align: center; |
259 |
float:left; |
260 |
padding-left: 20px; |
261 |
&:hover { |
262 |
cursor: pointer; |
263 |
color:$link-color-hover; |
264 |
} |
265 |
} |
266 |
.img-wrap { |
267 |
width:$img-wrap-w; |
268 |
float:left; |
269 |
text-align: center; |
270 |
height: $list-icon-height; |
271 |
.os { |
272 |
@include sprite('../images/os-unknown.png', 14px, 14px); |
273 |
background-size:100%; |
274 |
position: absolute; |
275 |
display: block; |
276 |
text-align: center; |
277 |
// line-height:18px; |
278 |
left:50%; |
279 |
margin-left: -7px; |
280 |
top: 6px; |
281 |
} |
282 |
.snf-font { |
283 |
font-size: $list-icon-height; |
284 |
line-height: 120%; |
285 |
} |
286 |
} |
287 |
h4 { |
288 |
width:$h4-w; |
289 |
overflow: hidden; |
290 |
float:left; |
291 |
text-align: left; |
292 |
padding-right: 20px; |
293 |
height: $list-icon-height; |
294 |
line-height: $list-icon-height; |
295 |
margin: 0; |
296 |
color: inherit; |
297 |
padding-right: 20px; |
298 |
} |
299 |
.tags { |
300 |
float:left; |
301 |
width:$tags-w; |
302 |
height:$list-icon-height; |
303 |
line-height: $list-icon-height; |
304 |
a { |
305 |
vertical-align: middle; |
306 |
} |
307 |
} |
308 |
.size, .remove { |
309 |
float:left; |
310 |
width:$tags-w; |
311 |
height:$list-icon-height; |
312 |
line-height: $list-icon-height; |
313 |
font-size: emCalc(12px); |
314 |
text-align: left; |
315 |
padding-left: 20px; |
316 |
} |
317 |
.status { |
318 |
position: absolute; |
319 |
left: $img-wrap-w+$check-w + $lt-bar-width; |
320 |
text-align: left; |
321 |
top:36px; |
322 |
font-size: 11px; |
323 |
line-height: 110%; |
324 |
width:$vm-h4-w; |
325 |
span { |
326 |
display: inline; |
327 |
} |
328 |
} |
329 |
.info, .progress-col { |
330 |
float: left; |
331 |
width: $info-w; |
332 |
padding-right: 20px; |
333 |
height:$list-icon-height; |
334 |
line-height: $list-icon-height; |
335 |
font-size: emCalc(12px); |
336 |
} |
337 |
.actions { |
338 |
float: left; |
339 |
height:$list-icon-height; |
340 |
line-height: $list-icon-height; |
341 |
position: relative; |
342 |
padding:0 10px; |
343 |
top: 2px; |
344 |
a { |
345 |
&:first-child { |
346 |
margin-right:5px; |
347 |
} |
348 |
} |
349 |
} |
350 |
.actions-col, .remove { |
351 |
visibility: hidden; |
352 |
height:$list-icon-height; |
353 |
line-height: $list-icon-height; |
354 |
text-align: left; |
355 |
width: $actions-w; |
356 |
float: left; |
357 |
a { |
358 |
margin-right: 10px; |
359 |
} |
360 |
} |
361 |
&.add-new { |
362 |
&:hover { |
363 |
background: $link-color; |
364 |
} |
365 |
.check { |
366 |
visibility: hidden; |
367 |
} |
368 |
h4 { |
369 |
margin:0; |
370 |
} |
371 |
.img-wrap { |
372 |
.symbol { |
373 |
font-size:24px; |
374 |
} |
375 |
} |
376 |
} |
377 |
&.building { |
378 |
.img-wrap { |
379 |
.incomplete { |
380 |
width:$list-icon-height; |
381 |
margin:0 auto; |
382 |
} |
383 |
.complete { |
384 |
top:-$list-icon-height; |
385 |
margin:0 auto; |
386 |
} |
387 |
} |
388 |
} |
389 |
} |
390 |
} |
391 |
} |
392 |
|
393 |
// disable hover effect for the .containers li |
394 |
.containers { |
395 |
.storage { |
396 |
.items-list { |
397 |
&>li:hover { |
398 |
background-color: inherit; |
399 |
} |
400 |
} |
401 |
} |
402 |
} |
403 |
|
404 |
// select-all for pithos view (alignment) |
405 |
.storage { |
406 |
.lt-bar { |
407 |
.lt-actions { |
408 |
.select { |
409 |
margin-right: 4px; |
410 |
} |
411 |
} |
412 |
} |
413 |
} |
414 |
|
415 |
.lt-bar { |
416 |
.items-list { |
417 |
.check, .actions, .info { |
418 |
display: none; |
419 |
} |
420 |
&> li { |
421 |
background: url(../images/dashed_atom-x.png) repeat-x center bottom; |
422 |
padding: 40px; |
423 |
height: auto; |
424 |
&:hover { |
425 |
background-color: $light-bg; |
426 |
} |
427 |
&.add-new { |
428 |
background-color: $link-color-hover; |
429 |
&:hover { |
430 |
background-color: $link-color; |
431 |
} |
432 |
} |
433 |
} |
434 |
.container { |
435 |
height:160px; |
436 |
position: relative; |
437 |
line-height:120%; |
438 |
.tags { |
439 |
width: 100%; |
440 |
min-height: 12px; |
441 |
position: absolute; |
442 |
bottom: 12px; |
443 |
} |
444 |
} |
445 |
} |
446 |
} |
447 |
|
448 |
|
449 |
/* img-wrap div ( colors & styles ) */ |
450 |
|
451 |
.img-wrap { |
452 |
width: 60px; |
453 |
position: relative; |
454 |
// overflow: hidden; |
455 |
display: inline-block; |
456 |
line-height: 100%; |
457 |
.os { |
458 |
@include sprite('../images/os-unknown.png', 22px, 22px); |
459 |
position: absolute; |
460 |
top: 8px; |
461 |
left:50%; |
462 |
margin-left:-11px; |
463 |
&.windows { background-image:url('../images/os-windows.png'); } |
464 |
&.kubuntu { background-image:url('../images/os-kubuntu.png'); } |
465 |
&.fedora { background-image:url('../images/os-fedora.png'); } |
466 |
&.symbol { |
467 |
position: relative; |
468 |
top: -50px; |
469 |
left: 0; |
470 |
margin-left: 0; |
471 |
width: auto; |
472 |
height: auto; |
473 |
// top: 10px; |
474 |
} |
475 |
} |
476 |
} |
477 |
|
478 |
.running { |
479 |
@include stateColor($vm-active-color); |
480 |
} |
481 |
.off { |
482 |
@include stateColor($vm-off-color); |
483 |
} |
484 |
.error { |
485 |
@include stateColor($vm-error-color); |
486 |
} |
487 |
.shutting { |
488 |
@include stateColor($vm-shutting-color); |
489 |
} |
490 |
.starting { |
491 |
@include stateColor($vm-starting-color); |
492 |
} |
493 |
.rebooting { |
494 |
@include stateColor($vm-rebooting-color); |
495 |
} |
496 |
|
497 |
.building { |
498 |
@include stateColor($vm-active-color); |
499 |
} |
500 |
|
501 |
.building { |
502 |
.img-wrap { |
503 |
.snf-pc-full { |
504 |
display: block; |
505 |
// overflow: hidden; |
506 |
} |
507 |
.incomplete { |
508 |
color: $vm-building-color; |
509 |
width:60px; |
510 |
} |
511 |
.complete { |
512 |
width: 0%; |
513 |
position: absolute; |
514 |
top: 0; |
515 |
overflow: hidden; |
516 |
} |
517 |
} |
518 |
} |