Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / v2_app.scss @ f8f24db6

History | View | Annotate | Download (10.8 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
// border grey, on hover pink
87
.btn1 {
88
	border:1px solid $primary-color;
89
	color:$primary-color;
90
	display:inline-block;
91
	padding:10px 20px;
92
	line-height:1em;
93
	text-align:center;
94
	&:hover,
95
	&.current {
96
		border-color:$secondary-color;
97
		background:$secondary-color;
98
		color:$white;
99
	}
100
	&.current {
101
		cursor:default;
102
	}
103
}
104

    
105
// white background, on hover transparent
106
.btn2 {
107
	@extend .btn1;
108
	color:$secondary-color;
109
	background:$white;
110
	border-color:$secondary-color;
111
	&:hover, 
112
	&.current {
113
		background:transparent;
114
		border-color:$white;
115
	}
116
}
117

    
118
// reverse btn2
119
.btn3 {
120
	@extend .btn1;
121
	color:$white; 
122
	border-color:$white;
123
	&:hover, 
124
	&.current {
125
		color:$secondary-color;
126
		background:$white;
127
		border-color:$white;
128
	}
129
}
130

    
131

    
132
// reverse btn2
133
.btn4 {
134
	@extend .btn1;
135
	color:$white; 
136
	border-color:$white;
137
	background:$success-color;
138
	&:hover, 
139
	&.current {
140
		border-color:$white;
141
		background:darken($success-color,15%);
142

    
143
	}
144
}
145

    
146
a:hover {
147
	@include transition(background, 300ms, ease-out);
148
}
149

    
150
.dummy-navigation {
151
	position: fixed;
152
	right:0;
153
	top:100px;
154
	padding:20px;
155
	background:#cc0;
156
	z-index:100;
157
	line-height:160%;
158
	a {
159
		color:$black;
160
		&:hover { color:$white }
161
		&.open { color:$white;}
162
		&.close {
163
			float:right;
164
			font-weight:bold;
165
			font-size:20px;
166
		}
167
	}
168
}
169

    
170
.ours {
171
	padding:8px 15px;
172
	color:$white;
173
	font-size:20px;
174
	font-weight:bold;
175
	background:#cc0;
176
	display:none;
177
	position: absolute;
178
	&.questions { background:orange;}
179
	&.problems { background:red;}
180
	&.suggestions { background:#3EC9FF;}
181

    
182
}
183

    
184

    
185
.row-full {
186
	width:$row-top-width;
187
	margin:0 auto;
188
}
189

    
190
.lt-sidebar {
191
	width:250px;
192
	float:left;
193
	
194
	&+.main {
195
		overflow:hidden;
196
	}
197
}
198

    
199
.main {
200
	padding:20px 40px;
201
}
202

    
203
body.with-overlay {
204
	background:$secondary-color;
205
}
206

    
207
.header {
208
	position:relative;
209
	padding:$header-padding-vertical $header-padding-horizontal;
210
	border-bottom:1px solid $primary-color;
211
	background:$white;
212
	.logo {
213
		text-align: center;
214
	}
215
	.actions {
216
		text-align:center;
217
		ul {
218
			margin:$header-padding-vertical 0 0;
219
			li {
220
				list-style: none outside none;
221
				display: inline-block;
222
				margin:0 5px;
223
				a {
224
					display: block;
225
					width:100%;
226
					padding:8px 20px;
227
					border:1px solid transparent;
228
					&:hover {
229
						border:1px solid $secondary-color;
230
					}
231
				}
232
			}
233
		}
234
	}
235
	.new-btn {
236
		position: absolute;
237
		left:$header-padding-horizontal;
238
		bottom:$header-padding-vertical;
239
		a {
240
			@extend .btn4;
241
			span {
242
				font-size:emCalc(20px);
243
			}
244
		}
245
	}
246
}
247
.login {
248
	position:absolute;
249
	right:$header-padding-horizontal;
250
	top:$header-padding-vertical;
251
}
252

    
253
.top-nav {
254
	position:absolute;
255
	left:$header-padding-horizontal;
256
	top:$header-padding-vertical;
257
	ul {
258
		@include marginPaddingZero();
259
		li {
260
			display: inline-block;
261
			margin-right:15px;
262
			a {
263
				padding-bottom:5px;
264
			}
265
		}
266
	}
267

    
268
}
269

    
270

    
271
// info styling
272

    
273
.top-info {
274
	padding:50px 100px;
275
	position: relative;
276
	.close {
277
		position: absolute;
278
		right:$header-padding-horizontal;
279
		top:50px;
280
		@include sprite('../images/info-close.png', 31px, 30px);
281
	}
282
}
283
.info.alert {
284
	background:$secondary-color;
285
	color:$white;
286
}
287

    
288
.info.warning {
289
	background:$warning-color;
290
	color:$black;
291
}
292

    
293
.info.success {
294
	background:$success-color;
295
	color:$white;
296
}
297

    
298
.items-list {
299
	padding:50px 0;
300
	li {
301
		text-align:center;
302
		padding:20px;
303
		.visible-info {
304
			span {
305
				display: block;
306
			}
307
		}
308
	}
309
}
310

    
311
.vms {
312
	.items-list {
313
		li {
314
			.more {
315
				float:right;
316
			}
317
			.more-info {
318
				position:relative;
319
				.content {
320
					position:absolute;
321
					top:0;
322
					right:0;
323
					border:2px solid #ccc;
324
				}
325
			}
326
			.img {
327
				@include sprite('../images/vm-on.png', 56px, 58px);
328
				margin-bottom: 20px;
329
				position: relative;
330
				&.stopped {
331
					background-image:url('../images/vm-stopped.png');
332
				}
333
				.os {
334
					@include sprite('../images/os-unknown.png', 22px, 22px);
335
					position: absolute;
336
					top:8px;
337
					left:18px;
338
					&.windows { background-image:url('../images/os-windows.png'); }
339
					&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
340
					&.fedora { background-image:url('../images/os-fedora.png'); }
341
				}
342
			}
343
		}
344
	}
345
}
346

    
347
.lt-sidebar.vms {
348
	overflow:scroll;
349
	height:300px;
350
	font-size:emCalc(12px);
351
	.items-list {
352
		padding:0;
353
	}
354
	.items-list li .img, 
355
	.items-list li .os {
356
		background-size:80%;
357
	}
358
	li:hover,
359
	li.current {
360
		background:lighten($primary-color,30%);
361
		cursor: pointer;
362
	}
363
}
364

    
365
.vm {
366
	.img {
367
				@include sprite('../images/vm-on.png', 56px, 58px);
368
				margin-bottom: 20px;
369
				position: relative;
370
				&.stopped {
371
					background-image:url('../images/vm-stopped.png');
372
				}
373
				.os {
374
					@include sprite('../images/os-unknown.png', 22px, 22px);
375
					position: absolute;
376
					top:8px;
377
					left:18px;
378
					&.windows { background-image:url('../images/os-windows.png'); }
379
					&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
380
					&.fedora { background-image:url('../images/os-fedora.png'); }
381
				}
382
			}
383
}
384

    
385
.details {
386
	position:relative;
387
		
388
	.top {
389
		padding:100px $header-padding-horizontal;
390
		text-align: center;
391
		.img {
392
			@include sprite('../images/vm-on.png', 112px, 116px);
393
			background-size:100%;
394
		}
395
		.os {
396
			background-size:100%;
397
			width:44px;
398
			height:44px;
399
			left:36px;
400
			top:16px;
401
		}
402
		.actions {
403
			ul {
404
				padding:1em;
405
				text-align:center;
406
				li {
407
					list-style: none outside none;
408
					display: inline-block;
409
					margin:0 10px;
410
					min-width: 112px;
411
					a {
412
						@extend .btn1;
413
					}
414

    
415
				}
416
			}
417
		}
418
		
419
	}
420
	.info {
421
		dl {
422
			margin:0;
423
			dt {
424
				display: inline-block;
425
				width:25%;
426
				float:left;
427
			}
428
		}
429
	}
430
	.close {
431
		position: absolute;
432
		right:$header-padding-horizontal;
433
		top:50px;
434
		@include sprite('../images/info-close-grey.png', 31px, 30px);
435
	}
436
}
437

    
438
.border-bottom-style1 {
439
	padding-bottom:20px;
440
	margin-bottom:20px;
441
	border-bottom:2px dashed $primary-color;
442
}
443

    
444
.overlay {
445
	background:$secondary-color;
446
	.lt-sidebar {
447
		border-right:1px solid $white;
448
		ul {
449
			li {
450
				list-style:none outside none;
451
				a {
452
					color:$white;
453
					span { float:right; display:none;}
454
					&:hover,
455
					&.current {
456

    
457
						text-decoration: none;
458
						span { 
459
							display:inline;
460
						}
461
					}
462
				}
463

    
464
			}
465
		}
466

    
467
	}
468
	.lt-sidebar, 
469
	.main {
470
		padding:100px $header-padding-horizontal;
471
		position:relative;
472
	}
473
	.navigation {
474
		.rt {
475
			float:right;
476
		}
477
	}
478
	.close {
479
		position: absolute;
480
		right:$header-padding-horizontal;
481
		top:50px;
482
		@include sprite('../images/info-close.png', 31px, 30px);
483
	}
484
}
485

    
486
.create-vm {
487
	.select-os {
488
		li {
489
			width:23%;
490
			padding:20px;
491
			list-style:none outside none;
492
			display: inline-block;
493
			float: left;
494
			height: 200px;
495
			margin:0 10px 10px 0;
496
			&:hover,
497
			&.selected {
498
				background:$white;
499
				h2, p, a {
500
					color:$secondary-color;
501
				}
502
			}
503
			a {
504
				color:$white;
505
			}
506
			.os {
507
				@include sprite('../images/os-unknown.png', 30px, 30px);
508
				background-size:100%;
509
				margin-bottom:2em;
510
				&.windows { background-image:url('../images/os-windows.png'); }
511
				&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
512
				&.fedora { background-image:url('../images/os-fedora.png'); }
513
			}
514
			h2 {
515
				font-size:emCalc(16px);
516
				font-weight:normal;
517
				color:$white;
518
			}
519
			.details {
520
				font-weight:bold;
521
				font-size:emCalc(14px);
522
			}
523
		}
524
	}
525
	.select-flavor {
526
		dl {
527
			color:$white;
528
			font-size:emCalc(20px);
529
			margin-bottom:10px;
530
			dd {
531
				width:23%;
532
				display: inline-block;
533
			}
534
			dt {
535
				width:70%;
536
				display: inline-block;
537
				font-weight: normal;
538
				span {
539
					@extend .btn3;
540
					min-width: 90px;
541
					margin:0 10px;
542
					&:first-child {
543
						margin-left:0;
544
					}
545
				}
546
			}
547
		}
548
	}
549
}