Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / app.scss @ 2d47196d

History | View | Annotate | Download (9.5 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
.clearfix:before,
48
.clearfix:after									{ content:" "; display:block; height:0; visibility:hidden; } /* http://www.yuiblog.com/blog/2010/09/27/clearfix-reloaded-overflowhidden-demystified/ */
49
.clearfix:after									{ clear:both; }
50
// Set margin and padding to zero 
51
@mixin marginPaddingZero() {
52
	margin: 0;
53
	padding: 0;
54
}
55
 
56

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

    
68
}
69

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

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

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

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

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

    
122
}
123

    
124

    
125
.row-full {
126
	width:$row-top-width;
127
}
128

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

    
139
.main {
140
	padding:20px 40px;
141
}
142

    
143

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

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

    
212
}
213

    
214

    
215
// info styling
216

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

    
232
.info.warning {
233
	background:$warning-color;
234
	color:$black;
235
}
236

    
237
.info.success {
238
	background:$success-color;
239
	color:$white;
240
}
241

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

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

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

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

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

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

    
359
.border-bottom-style1 {
360
	padding-bottom:20px;
361
	margin-bottom:20px;
362
	border-bottom:2px dashed $primary-color;
363
}
364

    
365
.overlay {
366
	background:$secondary-color;
367
	a {
368
		color:$white;
369
		&:hover {
370
			text-decoration: underline;
371
		}
372
	}
373
	.lt-sidebar {
374
		border-right:1px solid $white;
375
		ul {
376
			li {
377
				list-style:none outside none;
378
				a {
379
					span { float:right; display:none;}
380
					&:hover,
381
					&.current {
382

    
383
						text-decoration: none;
384
						span { 
385
							display:inline;
386
						}
387
					}
388
				}
389
			}
390
		}
391
	}
392
	.lt-sidebar, 
393
	.main {
394
		padding:100px $header-padding-horizontal;
395
	}
396
}
397

    
398
.create-vm {
399
	.select-os {
400
		li {
401
			width:23%;
402
			padding:20px;
403
			list-style:none outside none;
404
			display: inline-block;
405
			float: left;
406
			height: 220px;
407
			margin:0 10px 10px 0;
408
			&:hover,
409
			&.selected {
410
				background:$white;
411
				h2, p, a {
412
					color:$secondary-color;
413
				}
414
			}
415
			.os {
416
				@include sprite('../images/os-unknown.png', 30px, 30px);
417
				background-size:100%;
418
				margin-bottom:2em;
419
				&.windows { background-image:url('../images/os-windows.png'); }
420
				&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
421
				&.fedora { background-image:url('../images/os-fedora.png'); }
422
			}
423
			h2 {
424
				font-size:emCalc(16px);
425
				font-weight:normal;
426
				color:$white;
427
			}
428
			.details {
429
				font-weight:bold;
430
				font-size:emCalc(14px);
431
			}
432
		}
433
	}
434
}
435

    
436
.navigation {
437
	a 	{
438
		display: inline-block;
439
		padding:10px 20px;
440
		background:$white;
441
		text-align: center;
442
		color:$secondary-color;
443
		border:1px solid $secondary-color;
444
		&:hover {
445
			border-color:$white;
446
			background:transparent;
447
			color:$white;
448
			text-decoration:none;
449
		}
450
		&.rt {
451
			float:right;
452
		}
453
	}
454
}