Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / _machines.scss @ 8e94f2a9

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 .logs, .status .state {
54
		color: $color;
55
	}
56
}
57

    
58
.vms .items-list {
59
	.img-wrap {
60
		width: 60px;
61
		span {
62
			&:hover {
63
				cursor: pointer;
64
			}
65
		}
66
		.snf-PC_fill {
67
			font-size: 60px;
68
			color: $vm-active-color;
69
		}
70
		.os {
71
			@include sprite('../images/os-unknown.png', 22px, 22px);
72
			position: absolute;
73
			top:8px;
74
			left:19px;
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
	.off {
94
		@include stateColor($vm-off-color);
95
	}
96
	.error {
97
		@include stateColor($vm-error-color);
98
	}
99
	.shutting {
100
		@include stateColor($vm-shutting-color);
101
	}
102
	.starting {
103
		@include stateColor($vm-starting-color);
104
	}
105
	.rebooting {
106
		@include stateColor($vm-rebooting-color);
107
	}
108
	.building {
109
		.img-wrap {
110
			.snf-PC_fill {
111
				display: block;
112
				overflow: hidden;
113
			}
114
			.incomplete {
115
				color: $vm-building-color;
116
				width:60px;
117
			}
118
			.complete {
119
				width: 0%;
120
				position: relative;
121
				top: -60px;
122
			}
123
		}
124
	}
125
}
126

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

    
156

    
157
#vm-connect {
158
	.info {
159
		font-style:italic;
160
		font-size:emCalc(13px);
161
		color: lighten($primary-color,5%);
162
	}
163
	.ssh {
164
		text-align: center;
165
		span {
166
			padding: 10px 30px;
167
			background:$secondary-color;
168
			color:#fff;
169
		}
170
	}
171
}
172

    
173

    
174

    
175