root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / _machines.scss @ 1fda8642
History | View | Annotate | Download (2.8 kB)
1 |
/* Machines (VMs) related styles */ |
---|---|
2 |
|
3 |
.grid-view .build-progress { |
4 |
animation: |
5 |
progress_animation 5s infinite, |
6 |
pulse 1s infinite; |
7 |
-webkit-animation: |
8 |
progress_animation 5s infinite, |
9 |
pulse 1s infinite; |
10 |
} |
11 |
|
12 |
.reboot-progress { |
13 |
animation: |
14 |
reboot_pulse 1s infinite; |
15 |
-webkit-animation: |
16 |
reboot_pulse 1s infinite; |
17 |
} |
18 |
|
19 |
@include keyframes( progress_animation) { |
20 |
from { |
21 |
width: 0% |
22 |
} |
23 |
to { |
24 |
width: 100% |
25 |
} |
26 |
} |
27 |
|
28 |
@include keyframes( pulse) { |
29 |
from { |
30 |
color: $vm-active-color |
31 |
} |
32 |
to { |
33 |
color: darken($vm-active-color,10%) |
34 |
} |
35 |
} |
36 |
|
37 |
|
38 |
@include keyframes( reboot_pulse) { |
39 |
from { |
40 |
color: $vm-rebooting-color |
41 |
} |
42 |
to { |
43 |
color: darken($vm-rebooting-color,10%) |
44 |
} |
45 |
} |
46 |
|
47 |
@mixin stateColor($color) { |
48 |
.img-wrap { |
49 |
.snf-PC_fill, |
50 |
.snf-network_full { |
51 |
color:$color; |
52 |
} |
53 |
} |
54 |
.status { |
55 |
color: $color; |
56 |
} |
57 |
} |
58 |
|
59 |
.img-wrap { |
60 |
width: 60px; |
61 |
span { |
62 |
&:hover { |
63 |
cursor: pointer; |
64 |
} |
65 |
} |
66 |
.snf-PC_fill, |
67 |
.snf-network_full { |
68 |
font-size: 60px; |
69 |
color: $vm-active-color; |
70 |
} |
71 |
.os { |
72 |
@include sprite('../images/os-unknown.png', 22px, 22px); |
73 |
position: absolute; |
74 |
top:8px; |
75 |
left:50%; |
76 |
margin-left:-11px; |
77 |
&.windows { background-image:url('../images/os-windows.png'); } |
78 |
&.kubuntu { background-image:url('../images/os-kubuntu.png'); } |
79 |
&.fedora { background-image:url('../images/os-fedora.png'); } |
80 |
} |
81 |
} |
82 |
// temp |
83 |
.btn5.temp { |
84 |
color:blue; |
85 |
padding: 0 4px; |
86 |
position: absolute; |
87 |
right: 0; |
88 |
} |
89 |
// li for btns used to demonstrate general animations |
90 |
.temp-for-btns { |
91 |
.btn5.temp { |
92 |
position: static; |
93 |
} |
94 |
} |
95 |
.running { |
96 |
@include stateColor($vm-active-color); |
97 |
} |
98 |
.off { |
99 |
@include stateColor($vm-off-color); |
100 |
} |
101 |
.error { |
102 |
@include stateColor($vm-error-color); |
103 |
} |
104 |
.shutting { |
105 |
@include stateColor($vm-shutting-color); |
106 |
} |
107 |
.starting { |
108 |
@include stateColor($vm-starting-color); |
109 |
} |
110 |
.rebooting { |
111 |
@include stateColor($vm-rebooting-color); |
112 |
} |
113 |
|
114 |
.building { |
115 |
@include stateColor($vm-active-color); |
116 |
} |
117 |
|
118 |
.building { |
119 |
.img-wrap { |
120 |
.snf-PC_fill { |
121 |
display: block; |
122 |
overflow: hidden; |
123 |
} |
124 |
.incomplete { |
125 |
color: $vm-building-color; |
126 |
width:60px; |
127 |
} |
128 |
.complete { |
129 |
width: 0%; |
130 |
position: relative; |
131 |
top: -60px; |
132 |
} |
133 |
} |
134 |
} |
135 |
|
136 |
.vm { |
137 |
.top { |
138 |
.img-wrap { |
139 |
display: inline-block; |
140 |
height: 112px; |
141 |
.snf-PC_fill { |
142 |
font-size: 112px; |
143 |
color: $vm-active-color; |
144 |
} |
145 |
&.off { |
146 |
.snf-PC_fill { |
147 |
color: $vm-off-color; |
148 |
} |
149 |
} |
150 |
} |
151 |
.os { |
152 |
@include sprite('../images/os-unknown.png', 44px, 44px); |
153 |
position: absolute; |
154 |
background-size:100%; |
155 |
|
156 |
left:34px; |
157 |
top:11px; |
158 |
&.windows { background-image:url('../images/os-windows.png'); } |
159 |
&.kubuntu { background-image:url('../images/os-kubuntu.png'); } |
160 |
&.fedora { background-image:url('../images/os-fedora.png'); } |
161 |
} |
162 |
} |
163 |
} |
164 |
|
165 |
|
166 |
#vm-connect { |
167 |
.info { |
168 |
font-style:italic; |
169 |
font-size:emCalc(13px); |
170 |
color: lighten($primary-color,5%); |
171 |
} |
172 |
.ssh { |
173 |
text-align: center; |
174 |
span { |
175 |
padding: 10px 30px; |
176 |
background:$secondary-color; |
177 |
color:#fff; |
178 |
} |
179 |
} |
180 |
} |
181 |
|
182 |
|
183 |
|
184 |
|