Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (12.6 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
	display:none;
152
	position: fixed;
153
	right:0;
154
	top:100px;
155
	padding:20px;
156
	background:#cc0;
157
	z-index:100;
158
	line-height:160%;
159
	a {
160
		color:$black;
161
		&:hover { color:$white }
162
		&.open { color:$white;}
163
		&.close {
164
			float:right;
165
			font-weight:bold;
166
			font-size:20px;
167
		}
168
	}
169
}
170

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

    
183
}
184

    
185

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

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

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

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

    
208
.header {
209
	position:relative;
210
	padding:$header-padding-vertical $header-padding-horizontal;
211
	border-bottom:1px solid $primary-color;
212
	background:$white;
213
	.logo {
214
		text-align: center;
215
		img {
216
			max-height: 30px;			
217
		}
218
	}
219
	.actions {
220
		text-align:center;
221
		height:45px;
222
		line-height:45px;
223
		position:relative;
224
		margin:2*$header-padding-vertical 0 $header-padding-vertical;
225
		.main-actions {
226
			position:relative;
227
			top:86px;
228
			margin:0 -40px;
229
			border-bottom:1px solid lighten($primary-color,20%);
230
		}
231
		ul {
232
			margin:0;
233
			li {
234
				list-style: none outside none;
235
				display: inline-block;
236
				margin:0 5px;
237
				a {
238
					display: block;
239
					color:lighten($primary-color,30%);
240
					width:100%;
241
					padding:8px 20px;
242
					border:1px solid transparent;
243
					&.active {
244
						color:$primary-color;
245
						&:hover {
246
							border:1px solid $secondary-color;
247
							cursor: pointer;
248
						}
249
					}
250
					&:hover {
251
						cursor:default;
252
					}
253

    
254
				}
255
			}
256
		}
257
	}
258
	.new-btn {
259
		position: absolute;
260
		left:0;
261
		bottom:0;
262
		a {
263
			@extend .btn1;
264
			span {
265
				font-size:emCalc(20px);
266
			}
267
		}
268
	}
269
}
270
.login {
271
	position:absolute;
272
	right:$header-padding-horizontal;
273
	top:$header-padding-vertical;
274
}
275

    
276
.top-nav {
277
	position:absolute;
278
	left:$header-padding-horizontal;
279
	top:$header-padding-vertical;
280
	ul {
281
		@include marginPaddingZero();
282
		li {
283
			display: inline-block;
284
			margin-right:15px;
285
			a {
286
				padding-bottom:5px;
287
			}
288
		}
289
	}
290

    
291
}
292

    
293

    
294
// info styling
295

    
296
.top-info {
297
	padding:50px 100px;
298
	position: relative;
299
	display:none;
300
	.close {
301
		position: absolute;
302
		right:$header-padding-horizontal;
303
		top:50px;
304
		@include sprite('../images/info-close.png', 31px, 30px);
305
	}
306
}
307

    
308

    
309
.info.error {
310
	background:$error-color;
311
	color:$white;
312
}
313

    
314

    
315
.info.alert {
316
	background:$alert-color;
317
	color:$white;
318
}
319

    
320
.info.warning {
321
	background:$primary-color;
322
	color:$white;
323
}
324

    
325
.info.success {
326
	background:$success-color;
327
	color:$white;
328
}
329

    
330
.items-list {
331
	padding:25px 0;
332
	li {
333
		text-align:center;
334
		padding:20px;
335
		.visible-info {
336
			span {
337
				display: block;
338
			}
339
		}
340
	}
341
}
342

    
343
.vms {
344
	.items-list {
345
		li {
346
			.add-new {
347
				a {
348
					margin:0 20px;
349
					display: block;
350
					font-weight: bold;
351
					height:190px;
352
					padding:65px 30px 15px;
353
					border:2px dashed $primary-color;
354
					&:hover {
355
						border-color:$secondary-color;
356
						color:$secondary-color;
357
					}
358
				}			
359
			}
360
			.img {
361
				@include sprite('../images/vm-on.png', 56px, 58px);
362
				margin-bottom: 20px;
363
				position: relative;
364
				&.stopped {
365
					background-image:url('../images/vm-stopped.png');
366
				}
367
				.os {
368
					@include sprite('../images/os-unknown.png', 22px, 22px);
369
					position: absolute;
370
					top:8px;
371
					left:18px;
372
					&.windows { background-image:url('../images/os-windows.png'); }
373
					&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
374
					&.fedora { background-image:url('../images/os-fedora.png'); }
375
				}
376
			
377
			}
378
			
379
			.container {
380
				border:1px solid transparent;
381
				margin: 0 20px;
382
				padding:20px 0;
383
				position: relative;
384
				.options {
385
					width:100%;
386
					height:100%;
387
					background:$white;
388

    
389
					position: absolute;
390
					top:0;
391
					left:0;
392
					display: none;
393
					z-index: 1;
394
					.wrap {
395
						height:190px;
396
						padding:15px 30px;
397
						text-align: left;
398
						border:1px solid $secondary-color;
399
						a {
400
							font-size:emCalc(27px);
401
							color:$primary-color;
402
							line-height: 45px;
403
							font-weight: bold;
404
							.custom_checkbox {
405
								color:$secondary-color;
406
								position:relative;
407
								top:5px;
408
							}
409
							span {
410
								float:right;
411
							}
412
							&:hover {
413
								color: $secondary-color;
414
							}
415
						}
416
					}
417
				}
418
			}
419
			.more_checkbox {
420
				position:absolute;
421
				right:31px;
422
				top:15px;
423
				color:$secondary-color;
424
				font-weight: bold;
425
				font-size:emCalc(27px);
426
				cursor: pointer;
427
			}
428

    
429
		}
430
	}
431
}
432

    
433
.lt-sidebar.vms {
434
	overflow:scroll;
435
	height:300px;
436
	font-size:emCalc(12px);
437
	.items-list {
438
		padding:0;
439
	}
440
	.items-list li .img, 
441
	.items-list li .os {
442
		background-size:80%;
443
	}
444
	li:hover {
445
		background:lighten($primary-color,35%);
446
	}
447
	li.current {
448
		background:lighten($primary-color,30%);
449
		cursor: pointer;
450

    
451
	}
452

    
453
}
454

    
455
.vm {
456
	.img {
457
				@include sprite('../images/vm-on.png', 56px, 58px);
458
				margin-bottom: 20px;
459
				position: relative;
460
				&.stopped {
461
					background-image:url('../images/vm-stopped.png');
462
				}
463
				.os {
464
					@include sprite('../images/os-unknown.png', 22px, 22px);
465
					position: absolute;
466
					top:8px;
467
					left:18px;
468
					&.windows { background-image:url('../images/os-windows.png'); }
469
					&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
470
					&.fedora { background-image:url('../images/os-fedora.png'); }
471
				}
472
			}
473
}
474

    
475
.details {
476
	position:relative;
477
		
478
	.top {
479
		padding:100px $header-padding-horizontal;
480
		text-align: center;
481
		.img {
482
			@include sprite('../images/vm-on.png', 112px, 116px);
483
			background-size:100%;
484
		}
485
		.os {
486
			background-size:100%;
487
			width:44px;
488
			height:44px;
489
			left:36px;
490
			top:16px;
491
		}
492
		.actions {
493
			ul {
494
				padding:1em;
495
				text-align:center;
496
				li {
497
					list-style: none outside none;
498
					display: inline-block;
499
					margin:0 10px;
500
					min-width: 112px;
501
					a {
502
						@extend .btn1;
503
					}
504

    
505
				}
506
			}
507
		}
508
		
509
	}
510
	.info {
511
		dl {
512
			margin:0;
513
			dt {
514
				display: inline-block;
515
				width:25%;
516
				float:left;
517
			}
518
		}
519
	}
520
	.close {
521
		position: absolute;
522
		right:$header-padding-horizontal;
523
		top:50px;
524
		@include sprite('../images/info-close-grey.png', 31px, 30px);
525
	}
526
}
527

    
528
.border-bottom-style1 {
529
	padding-bottom:20px;
530
	margin-bottom:20px;
531
	border-bottom:1px dashed $primary-color;
532
}
533

    
534
.overlay {
535
	background:$secondary-color;
536
	position: relative;
537
	z-index:1;
538
	.lt-sidebar {
539
		border-right:1px solid $white;
540
		ul {
541
			li {
542
				list-style:none outside none;
543
				a {
544
					color:$white;
545
					span { float:right; display:none;}
546
					&:hover,
547
					&.current {
548

    
549
						text-decoration: none;
550
						span { 
551
							display:inline;
552
						}
553
					}
554
				}
555

    
556
			}
557
		}
558

    
559
	}
560
	.lt-sidebar, 
561
	.main {
562
		padding:100px $header-padding-horizontal;
563
		position:relative;
564
	}
565
	.navigation {
566
		.rt {
567
			float:right;
568
		}
569
	}
570
	.close {
571
		position: absolute;
572
		right:$header-padding-horizontal;
573
		top:50px;
574
		@include sprite('../images/info-close.png', 31px, 30px);
575
	}
576
}
577

    
578
.create-vm {
579
	.select-os {
580
		li {
581
			width:23%;
582
			padding:20px;
583
			list-style:none outside none;
584
			display: inline-block;
585
			float: left;
586
			height: 200px;
587
			margin:0 10px 10px 0;
588
			&:hover,
589
			&.selected {
590
				background:$white;
591
				h2, p, a {
592
					color:$secondary-color;
593
				}
594
			}
595
			a {
596
				color:$white;
597
			}
598
			.os {
599
				@include sprite('../images/os-unknown.png', 30px, 30px);
600
				background-size:100%;
601
				margin-bottom:2em;
602
				&.windows { background-image:url('../images/os-windows.png'); }
603
				&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
604
				&.fedora { background-image:url('../images/os-fedora.png'); }
605
			}
606
			h2 {
607
				font-size:emCalc(16px);
608
				font-weight:normal;
609
				color:$white;
610
			}
611
			.details {
612
				font-weight:bold;
613
				font-size:emCalc(14px);
614
			}
615
		}
616
	}
617
	.select-flavor {
618
		dl {
619
			color:$white;
620
			font-size:emCalc(20px);
621
			margin-bottom:10px;
622
			dd {
623
				width:23%;
624
				display: inline-block;
625
			}
626
			dt {
627
				width:70%;
628
				display: inline-block;
629
				font-weight: normal;
630
				span {
631
					@extend .btn3;
632
					min-width: 90px;
633
					margin:0 10px;
634
					&:first-child {
635
						margin-left:0;
636
					}
637
				}
638
			}
639
		}
640
	}
641
}
642

    
643
#vm-connect {
644
	.info {
645
		font-style:italic;
646
		font-size:emCalc(13px);
647
		color: lighten($primary-color,5%);
648
	}
649
	.ssh {
650
		text-align: center;
651
		span {
652
			padding: 10px 30px;
653
			background:$secondary-color;
654
			color:$white;
655
		}
656
	}
657
	a:hover { color: $secondary-color;}
658
}
659

    
660