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