Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (13.2 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:43px 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

    
331
.items-list {
332
	padding:25px 0;
333
	li {
334
		text-align:center;
335
		padding:20px;
336
		.add-new {
337
			a {
338
				margin:0 20px;
339
				display: block;
340
				font-weight: bold;
341
				height:190px;
342
				padding:65px 30px 15px;
343
				border:2px dashed $primary-color;
344
				&:hover {
345
					border-color:$secondary-color;
346
					color:$secondary-color;
347
				}
348
			}			
349
		}
350
		.img-wrap {
351
			height: 78px;
352
		}
353
		.img {
354
			margin-bottom: 20px;
355
			position: relative;
356
			height:58px;
357
		}
358
		.container {
359
			&.set-bg {	background:lighten($primary-color,38%); }
360
			&.set-border {	border-color:$secondary-color; }
361
			border:1px solid transparent;
362
			margin: 0 20px;
363
			padding:25px 0;
364
			position: relative;
365
			.options {
366
				width:100%;
367
				text-align:center;	
368
				position: absolute;
369
				top:-3px;
370
				left:0;
371
				display: none;
372
				z-index: 1;
373
				.wrap {
374
					height:100%;
375
					padding:25px 25px 0;
376
					text-align: left;
377
					a {
378
						font-size:emCalc(27px);
379
						display: inline-block;
380
						color:$primary-color;
381
						line-height: 1em;
382
						margin-bottom:10px;
383

    
384
						font-weight: bold;
385
						&:hover {
386
							color: $secondary-color;
387
						}
388
					}
389
				}
390
			}
391
		}
392
		.check {
393
			position:absolute;
394
			right:10px;
395
			top:5px;
396

    
397
			color:lighten($primary-color,35%);
398
			font-weight: bold;
399
			font-size:emCalc(27px);
400
			cursor: pointer;
401
			z-index: 10;
402
			span { position:relative; z-index:10;}
403
			&.active {
404
				color:$secondary-color;
405
			}
406
		}
407
		.visible-info {
408
			margin: 0 25px;
409
			position:relative;
410
			color:$primary-color;
411
			overflow: hidden;
412
			span {
413
				&.title {
414
					white-space: nowrap;
415
				}
416
				display: block;
417
				position: relative;
418
				em {
419
					font-style:normal;
420
					position: relative;
421
				}
422
			}
423
		}
424

    
425
	}
426
}
427

    
428

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

    
448
	}
449

    
450
	.jspDrag {
451
		background-color:$primary-color;
452
	}
453
	.jspVerticalBar {
454
		width:10px;
455
		right:4px;
456
	}
457
	.jspTrack {
458
		background:$white;
459
		border-left:1px solid $primary-color;
460
		border-right:1px solid $primary-color;
461
	}
462

    
463

    
464
}
465

    
466
.vms .items-list {
467
	.img {
468
			@include sprite('../images/vm-on.png', 56px, 58px);
469
			 
470
			&.stopped {
471
				background-image:url('../images/vm-stopped.png');
472
			}
473
			.os {
474
				@include sprite('../images/os-unknown.png', 22px, 22px);
475
				position: absolute;
476
				top:8px;
477
				left:18px;
478
				&.windows { background-image:url('../images/os-windows.png'); }
479
				&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
480
				&.fedora { background-image:url('../images/os-fedora.png'); }
481
			}
482
		
483
		}
484
}
485

    
486

    
487
.vm {
488
	.top {
489
		.img {
490
			@include sprite('../images/vm-on.png', 112px, 116px);
491
		}
492
		&.stopped {
493
			background-image:url('../images/vm-stopped.png');
494
		}
495
		.os {
496
			@include sprite('../images/os-unknown.png', 22px, 22px);
497
			position: absolute;
498
			background-size:100%;
499
			width:44px;
500
			height:44px;
501
			left:36px;
502
			top:16px;
503
			&.windows { background-image:url('../images/os-windows.png'); }
504
			&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
505
			&.fedora { background-image:url('../images/os-fedora.png'); }
506
		}
507
	}
508
}
509

    
510
.details {
511
	position:relative;
512
		
513
	.top {
514
		padding:100px $header-padding-horizontal;
515
		text-align: center;
516
		.img {
517
			background-size:100%;
518
			margin-bottom: 20px;
519
			position: relative;
520
		}
521
		.actions {
522
			ul {
523
				padding:1em;
524
				text-align:center;
525
				li {
526
					list-style: none outside none;
527
					display: inline-block;
528
					margin:0 10px;
529
					min-width: 112px;
530
					a {
531
						@extend .btn1;
532
					}
533

    
534
				}
535
			}
536
		}
537
		
538
	}
539
	.info {
540
		dl {
541
			margin:0;
542
			dt {
543
				display: inline-block;
544
				width:25%;
545
				float:left;
546
			}
547
		}
548
	}
549
	.close {
550
		position: absolute;
551
		right:$header-padding-horizontal;
552
		top:50px;
553
		@include sprite('../images/info-close-grey.png', 31px, 30px);
554
	}
555
}
556

    
557

    
558

    
559

    
560

    
561
.border-bottom-style1 {
562
	padding-bottom:20px;
563
	margin-bottom:20px;
564
	border-bottom:1px dashed $primary-color;
565
}
566

    
567
.overlay {
568
	background:$secondary-color;
569
	position: relative;
570
	z-index:1;
571
	.lt-sidebar {
572
		border-right:1px solid $white;
573
		ul {
574
			li {
575
				list-style:none outside none;
576
				a {
577
					color:$white;
578
					span { float:right; display:none;}
579
					&:hover,
580
					&.current {
581

    
582
						text-decoration: none;
583
						span { 
584
							display:inline;
585
						}
586
					}
587
				}
588

    
589
			}
590
		}
591

    
592
	}
593
	.lt-sidebar, 
594
	.main {
595
		padding:100px $header-padding-horizontal;
596
		position:relative;
597
	}
598
	.navigation {
599
		.rt {
600
			float:right;
601
		}
602
	}
603
	.close {
604
		position: absolute;
605
		right:$header-padding-horizontal;
606
		top:50px;
607
		@include sprite('../images/info-close.png', 31px, 30px);
608
	}
609
}
610

    
611
.create-vm {
612
	.select-os {
613
		li {
614
			width:23%;
615
			padding:20px;
616
			list-style:none outside none;
617
			display: inline-block;
618
			float: left;
619
			height: 200px;
620
			margin:0 10px 10px 0;
621
			&:hover,
622
			&.selected {
623
				background:$white;
624
				h2, p, a {
625
					color:$secondary-color;
626
				}
627
			}
628
			a {
629
				color:$white;
630
			}
631
			.os {
632
				@include sprite('../images/os-unknown.png', 30px, 30px);
633
				background-size:100%;
634
				margin-bottom:2em;
635
				&.windows { background-image:url('../images/os-windows.png'); }
636
				&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
637
				&.fedora { background-image:url('../images/os-fedora.png'); }
638
			}
639
			h2 {
640
				font-size:emCalc(16px);
641
				font-weight:normal;
642
				color:$white;
643
			}
644
			.details {
645
				font-weight:bold;
646
				font-size:emCalc(14px);
647
			}
648
		}
649
	}
650
	.select-flavor {
651
		dl {
652
			color:$white;
653
			font-size:emCalc(20px);
654
			margin-bottom:10px;
655
			dd {
656
				width:23%;
657
				display: inline-block;
658
			}
659
			dt {
660
				width:70%;
661
				display: inline-block;
662
				font-weight: normal;
663
				span {
664
					@extend .btn3;
665
					min-width: 90px;
666
					margin:0 10px;
667
					&:first-child {
668
						margin-left:0;
669
					}
670
				}
671
			}
672
		}
673
	}
674
}
675

    
676
#vm-connect {
677
	.info {
678
		font-style:italic;
679
		font-size:emCalc(13px);
680
		color: lighten($primary-color,5%);
681
	}
682
	.ssh {
683
		text-align: center;
684
		span {
685
			padding: 10px 30px;
686
			background:$secondary-color;
687
			color:$white;
688
		}
689
	}
690
	a:hover { color: $secondary-color;}
691
}
692

    
693
.editable {
694
	text-align:center;
695
	input, em {
696
		width:70%;
697
		padding:5px 10px;
698
		height: auto;
699
		display: block;
700
		margin:0 auto;
701
		font-size: inherit;
702
	}
703
	input {
704
		display: none;
705
	}
706
	em {
707
 		overflow: hidden;
708
		white-space: nowrap;
709
		font-style:normal;
710
		
711
	}
712
}