Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (13 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
			margin: 0 25px;
337
			position:relative;
338
			color:$primary-color;
339
			span {
340
				display: block;
341
				position: relative;
342
				em {
343
					font-style:normal;
344
					position: relative;
345
				}
346
			}
347
		}
348
	}
349
}
350

    
351
.vms {
352
	.items-list {
353
		li {
354
			.add-new {
355
				a {
356
					margin:0 20px;
357
					display: block;
358
					font-weight: bold;
359
					height:190px;
360
					padding:65px 30px 15px;
361
					border:2px dashed $primary-color;
362
					&:hover {
363
						border-color:$secondary-color;
364
						color:$secondary-color;
365
					}
366
				}			
367
			}
368
			.img {
369
				@include sprite('../images/vm-on.png', 56px, 58px);
370
				margin-bottom: 20px;
371
				position: relative;
372
				&.stopped {
373
					background-image:url('../images/vm-stopped.png');
374
				}
375
				.os {
376
					@include sprite('../images/os-unknown.png', 22px, 22px);
377
					position: absolute;
378
					top:8px;
379
					left:18px;
380
					&.windows { background-image:url('../images/os-windows.png'); }
381
					&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
382
					&.fedora { background-image:url('../images/os-fedora.png'); }
383
				}
384
			
385
			}
386
		
387
			.container {
388
				&.set-bg {	background:lighten($primary-color,30%); }
389
				&.set-border {	border-color:$secondary-color; }
390
				border:1px solid transparent;
391
				margin: 0 20px;
392
				padding:25px 0;
393
				position: relative;
394
				.options {
395
					width:100%;
396
					text-align:center;	
397
					position: absolute;
398
					top:-3px;
399
					left:0;
400
					display: none;
401
					z-index: 1;
402
					.wrap {
403
						height:100%;
404
						padding:25px;
405
						text-align: left;
406
						a {
407
							font-size:emCalc(27px);
408
							display: block;
409
							color:$primary-color;
410
							line-height: 1em;
411
							margin-bottom:10px;
412

    
413
							font-weight: bold;
414
							&:hover {
415
								color: $secondary-color;
416
							}
417
						}
418
					}
419
				}
420
			}
421
			.check {
422
				position:absolute;
423
				right:10px;
424
				top:5px;
425
				display: none;
426
				color:$secondary-color;
427
				font-weight: bold;
428
				font-size:emCalc(27px);
429
				cursor: pointer;
430
				z-index: 10;
431
				span { position:relative; z-index:10;}
432
			}
433

    
434
		}
435
	}
436
}
437

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

    
456
	}
457

    
458
}
459

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

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

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

    
533
.border-bottom-style1 {
534
	padding-bottom:20px;
535
	margin-bottom:20px;
536
	border-bottom:1px dashed $primary-color;
537
}
538

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

    
554
						text-decoration: none;
555
						span { 
556
							display:inline;
557
						}
558
					}
559
				}
560

    
561
			}
562
		}
563

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

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

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

    
665
.editable {
666
	text-align:center;
667
	input, em {
668
		width:70%;
669
		padding:5px 10px;
670
		height: auto;
671
		display: block;
672
		margin:0 auto;
673
		font-size: inherit;
674
	}
675
	input {
676
		display: none;
677
	}
678
	em {
679
 		overflow: hidden;
680
		white-space: nowrap;
681
		font-style:normal;
682
		
683
	}
684
}
685

    
686