Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / app.scss @ 98714f8a

History | View | Annotate | Download (7.7 kB)

1
// Global Foundation Settings
2
@import "settings";
3

    
4
// Comment out this import if you are customizing you imports below
5
@import "foundation";
6

    
7
// Import specific parts of Foundation by commenting the import "foundation"
8
// and uncommenting what you want below. You must uncomment the following if customizing
9

    
10
// @import "foundation/foundation-global"; // *always required
11
// @import "foundation/components/global"; // *always required
12
// @import "foundation/components/grid";
13
// @import "foundation/components/visibility";
14
// @import "foundation/components/block-grid";
15
// @import "foundation/components/type";
16
// @import "foundation/components/buttons";
17
// @import "foundation/components/forms"; // *requires components/buttons
18
// @import "foundation/components/custom-forms"; // *requires components/buttons, components/forms
19
// @import "foundation/components/button-groups"; // *requires components/buttons
20
// @import "foundation/components/dropdown-buttons"; // *requires components/buttons
21
// @import "foundation/components/split-buttons"; // *requires components/buttons
22
// @import "foundation/components/flex-video";
23
// @import "foundation/components/section";
24
// @import "foundation/components/top-bar";  // *requires components/grid
25
// @import "foundation/components/orbit";
26
// @import "foundation/components/reveal";
27
// @import "foundation/components/joyride";
28
// @import "foundation/components/clearing";
29
// @import "foundation/components/alert-boxes";
30
// @import "foundation/components/breadcrumbs";
31
// @import "foundation/components/keystrokes";
32
// @import "foundation/components/labels";
33
// @import "foundation/components/inline-lists";
34
// @import "foundation/components/pagination";
35
// @import "foundation/components/panels";
36
// @import "foundation/components/pricing-tables";
37
// @import "foundation/components/progress-bars";
38
// @import "foundation/components/side-nav";
39
// @import "foundation/components/sub-nav";
40
// @import "foundation/components/switch";
41
// @import "foundation/components/magellan";
42
// @import "foundation/components/tables";
43
// @import "foundation/components/thumbs";
44
// @import "foundation/components/tooltips";
45
// @import "foundation/components/dropdown";
46

    
47

    
48
// Set margin and padding to zero 
49
@mixin marginPaddingZero() {
50
	margin: 0;
51
	padding: 0;
52
}
53
 
54

    
55
// Establishes the prequisits for sprite with background-image.
56
// Background-position for normal and hover states need to 
57
// be declared separetely
58
@mixin sprite($image, $width, $height){
59
	background:url($image) no-repeat center center;
60
	width: $width;
61
	height:$height;
62
	display: inline-block;
63
	text-indent: -2000px;
64
	overflow: hidden;
65

    
66
}
67

    
68
// Transition for css properties
69
@mixin transition($transition-property, $transition-time, $method) {
70
	-webkit-transition: $transition-property $transition-time $method;
71
	-moz-transition: $transition-property $transition-time $method;
72
	-ms-transition: $transition-property $transition-time $method;
73
	-o-transition: $transition-property $transition-time $method;
74
	transition: $transition-property $transition-time $method;
75
}
76

    
77
// Box-shadow property. For no box-shadow use box-shadow(none)
78
@mixin box-shadow($shadows...) {
79
  -moz-box-shadow: $shadows;
80
  -webkit-box-shadow: $shadows;
81
  box-shadow: $shadows;
82
}
83

    
84
a:hover {
85
@include transition(background, 300ms, ease-out);
86
}
87

    
88
.dummy-navigation {
89
	position: fixed;
90
	right:0;
91
	top:100px;
92
	padding:20px;
93
	background:#cc0;
94
	z-index:100;
95
	line-height:160%;
96
	a {
97
		color:$black;
98
		&:hover { color:$white }
99
		&.open { color:$white;}
100
		&.close {
101
			float:right;
102
			font-weight:bold;
103
			font-size:20px;
104
		}
105
	}
106
}
107

    
108
.ours {
109
	padding:8px 15px;
110
	color:$white;
111
	font-size:20px;
112
	font-weight:bold;
113
	background:#cc0;
114
	display:none;
115
	position: absolute;
116
	&.questions { background:orange;}
117
	&.problems { background:red;}
118
	&.suggestions { background:#3EC9FF;}
119

    
120
}
121

    
122

    
123
.row-full {
124
	width:$row-top-width;
125
}
126

    
127
.lt-sidebar {
128
	max-width:200px;
129
	float:left;
130
	overflow:scroll;
131
	height:300px;
132
	&+.main {
133
		overflow:hidden;
134
	}
135
}
136

    
137
.main {
138
	padding:20px 40px;
139
}
140

    
141

    
142
.header {
143
	position:relative;
144
	padding:$header-padding-vertical $header-padding-horizontal;
145
	border-bottom:1px solid $primary-color;
146
	.logo {
147
		text-align: center;
148
	}
149
	.actions {
150
		text-align:center;
151
		ul {
152
			margin:$header-padding-vertical 0 0;
153
			li {
154
				list-style: none outside none;
155
				display: inline-block;
156
				margin:0 5px;
157
				a {
158
					display: block;
159
					width:100%;
160
					padding:8px 20px;
161
					border:1px solid transparent;
162
					&:hover {
163
						border:1px solid $secondary-color;
164
					}
165
				}
166
			}
167
		}
168
	}
169
	.new-btn {
170
		position: absolute;
171
		left:$header-padding-horizontal;
172
		bottom:$header-padding-vertical;
173
		a {
174
			display: inline-block;
175
			padding:10px 20px;
176
			border:1px solid $primary-color;
177
			span {
178
				font-size:emCalc(20px);
179
			}
180
			&:hover {
181
				border-color:$secondary-color;
182
				background:$secondary-color;
183
				color:$white;
184
			}
185
		}
186
	}
187
}
188
.login {
189
	position:absolute;
190
	right:$header-padding-horizontal;
191
	top:$header-padding-vertical;
192
}
193

    
194
.top-nav {
195
	position:absolute;
196
	left:$header-padding-horizontal;
197
	top:$header-padding-vertical;
198
	ul {
199
		@include marginPaddingZero();
200
		li {
201
			display: inline-block;
202
			margin-right:15px;
203
			a {
204
				padding-bottom:5px;
205
			}
206
		}
207
	}
208

    
209
}
210

    
211

    
212
// info styling
213

    
214
.top-info {
215
	padding:50px 100px;
216
	position: relative;
217
	.close {
218
		position: absolute;
219
		right:$header-padding-horizontal;
220
		top:50px;
221
		@include sprite('../images/info-close.png', 31px, 30px);
222
	}
223
}
224
.info.alert {
225
	background:$secondary-color;
226
	color:$white;
227
}
228

    
229
.info.warning {
230
	background:$warning-color;
231
	color:$black;
232
}
233

    
234
.info.success {
235
	background:$success-color;
236
	color:$white;
237
}
238

    
239
.items-list {
240
	padding:50px 0;
241
	li {
242
		text-align:center;
243
		padding:20px;
244
		.visible-info {
245
			span {
246
				display: block;
247
			}
248
		}
249
	}
250
}
251

    
252
.vms {
253
	.items-list {
254
		li {
255
			.img {
256
				@include sprite('../images/vm-on.png', 56px, 58px);
257
				margin-bottom: 20px;
258
				position: relative;
259
				&.stopped {
260
					background-image:url('../images/vm-stopped.png');
261
				}
262
				.os {
263
					@include sprite('../images/os-unknown.png', 22px, 22px);
264
					position: absolute;
265
					top:8px;
266
					left:18px;
267
					&.windows { background-image:url('../images/os-windows.png'); }
268
					&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
269
					&.fedora { background-image:url('../images/os-fedora.png'); }
270
				}
271
			}
272
		}
273
	}
274
}
275

    
276
.lt-sidebar.vms {
277
	font-size:emCalc(12px);
278
	.items-list li .img, 
279
	.items-list li .os {
280
		background-size:80%;
281
	}
282
}
283

    
284
.vm {
285
	.img {
286
				@include sprite('../images/vm-on.png', 56px, 58px);
287
				margin-bottom: 20px;
288
				position: relative;
289
				&.stopped {
290
					background-image:url('../images/vm-stopped.png');
291
				}
292
				.os {
293
					@include sprite('../images/os-unknown.png', 22px, 22px);
294
					position: absolute;
295
					top:8px;
296
					left:18px;
297
					&.windows { background-image:url('../images/os-windows.png'); }
298
					&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
299
					&.fedora { background-image:url('../images/os-fedora.png'); }
300
				}
301
			}
302
}
303

    
304
.details {
305
	.top {
306
		text-align: center;
307
		.img {
308
			@include sprite('../images/vm-on.png', 112px, 116px);
309
			background-size:100%;
310
		}
311
		.os {
312
			background-size:100%;
313
			width:44px;
314
			height:44px;
315
			left:36px;
316
			top:16px;
317
		}
318
		.actions {
319
			ul {
320
				padding:1em;
321
				text-align:center;
322
				li {
323
					list-style: none outside none;
324
					display: inline-block;
325
					margin:0 10px;
326
					min-width: 112px;
327
					a {
328
						display: block;
329
						padding:5px 20px;
330
						text-align:center;
331
						border:1px solid $primary-color;
332
						&:hover {
333
							border-color:$secondary-color;
334
							background:$secondary-color;
335
							color:$white;
336
						}
337
					}
338

    
339
				}
340
			}
341
		}
342
		
343
	}
344
	.info {
345
		dl {
346
			margin:0;
347
			dt {
348
				display: inline-block;
349
				width:25%;
350
				float:left;
351
			}
352
		}
353
	}
354
}
355

    
356
.border-bottom-style1 {
357
	padding-bottom:20px;
358
	margin-bottom:20px;
359
	border-bottom:2px dashed $primary-color;
360
}