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