Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / _machines.scss @ 780bdcbc

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
			color:$color;
51
		}
52
	}
53
	.status {
54
		color: $color;
55
	}
56
}
57

    
58
.img-wrap {
59
	width: 60px;
60
	span {
61
		&:hover {
62
			cursor: pointer;
63
		}
64
	}
65
	.snf-PC_fill {
66
		font-size: 60px;
67
		color: $vm-active-color;
68
	}
69
	.os {
70
		@include sprite('../images/os-unknown.png', 22px, 22px);
71
		position: absolute;
72
		top:8px;
73
		left:50%;
74
		margin-left:-11px;
75
		&.windows { background-image:url('../images/os-windows.png'); }
76
		&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
77
		&.fedora { background-image:url('../images/os-fedora.png'); }
78
	}
79
}
80
// temp 
81
.btn5.temp {
82
		color:blue;
83
		padding: 0 4px;
84
		position: absolute;
85
		right: 0;
86
	}
87
// li for btns used to demonstrate general animations
88
.temp-for-btns {
89
	.btn5.temp {
90
		position: static;
91
	}
92
}
93
.running {
94
	@include stateColor($vm-active-color);
95
}
96
.off {
97
	@include stateColor($vm-off-color);
98
}
99
.error {
100
	@include stateColor($vm-error-color);
101
}
102
.shutting {
103
	@include stateColor($vm-shutting-color);
104
}
105
.starting {
106
	@include stateColor($vm-starting-color);
107
}
108
.rebooting {
109
	@include stateColor($vm-rebooting-color);
110
}
111

    
112
.building {
113
	@include stateColor($vm-active-color);
114
}
115

    
116
.building {
117
	.img-wrap {
118
		.snf-PC_fill {
119
			display: block;
120
			overflow: hidden;
121
		}
122
		.incomplete {
123
			color: $vm-building-color;
124
			width:60px;
125
		}
126
		.complete {
127
			width: 0%;
128
			position: relative;
129
			top: -60px;
130
		}
131
	}
132
}
133

    
134
.vm {
135
	.top {
136
		.img-wrap {
137
			display: inline-block;
138
			height: 112px;
139
			.snf-PC_fill {
140
				font-size: 112px;
141
				color: $vm-active-color;
142
			}
143
			&.off {
144
				.snf-PC_fill {
145
					color: $vm-off-color;
146
				}
147
			}
148
		}
149
		.os {
150
			@include sprite('../images/os-unknown.png', 44px, 44px);
151
			position: absolute;
152
			background-size:100%;
153
			
154
			left:34px;
155
			top:11px;
156
			&.windows { background-image:url('../images/os-windows.png'); }
157
			&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
158
			&.fedora { background-image:url('../images/os-fedora.png'); }
159
		}
160
	}
161
}
162

    
163

    
164
#vm-connect {
165
	.info {
166
		font-style:italic;
167
		font-size:emCalc(13px);
168
		color: lighten($primary-color,5%);
169
	}
170
	.ssh {
171
		text-align: center;
172
		span {
173
			padding: 10px 30px;
174
			background:$secondary-color;
175
			color:#fff;
176
		}
177
	}
178
}
179

    
180

    
181

    
182