Statistics
| Branch: | Tag: | Revision:

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

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
	.off {
81
		@include stateColor($vm-off-color);
82
	}
83
	.error {
84
		@include stateColor($vm-error-color);
85
	}
86
	.shutting {
87
		@include stateColor($vm-shutting-color);
88
	}
89
	.starting {
90
		@include stateColor($vm-starting-color);
91
	}
92
	.rebooting {
93
		@include stateColor($vm-rebooting-color);
94
		// temp
95
		.btn5.temp {
96
			color: #5c8fe1;
97
			border-color: #5c8fe1;
98
			padding: 0 4px;
99
			position: absolute;
100
			right: 0;
101
		}
102
	}
103
	.building {
104
		// temp 
105
		.btn5.temp {
106
			color:blue;
107
			padding: 0 4px;
108
			position: absolute;
109
			right: 0;
110
		}
111
		.img-wrap {
112
			.snf-PC_fill {
113
				display: block;
114
				overflow: hidden;
115
			}
116
			.incomplete {
117
				color: $vm-building-color;
118
				width:60px;
119
			}
120
			.complete {
121
				width: 0%;
122
				position: relative;
123
				top: -60px;
124
			}
125
		}
126
	}
127
}
128

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

    
158

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

    
175

    
176

    
177