Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (2.3 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-full,
50
		.snf-network-full, .snf-font {
51
			color:$color;
52
		}
53
	}
54
	.status {
55
		color: $color;
56
	}
57
}
58

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

    
115
.building {
116
	@include stateColor($vm-active-color);
117
}
118

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

    
137
#vm-connect {
138
	.info {
139
		font-style:italic;
140
		font-size:emCalc(13px);
141
		color: lighten($primary-color,5%);
142
	}
143
	.ssh {
144
		text-align: center;
145
		span {
146
			padding: 10px 30px;
147
			background:$secondary-color;
148
			color:#fff;
149
		}
150
	}
151
}
152

    
153

    
154

    
155