Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (17.1 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
	max-width:$row-top-width;
188
	margin:0 auto;
189
}
190

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

    
202
.main {
203
	padding:43px 40px;
204
}
205

    
206
body.with-overlay {
207
	background:$secondary-color;
208
}
209

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

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

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

    
294
}
295

    
296

    
297
// info styling
298

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

    
312

    
313
.info.error {
314
	background:$error-color;
315
	color:$white;
316
}
317

    
318

    
319
.info.alert {
320
	background:$alert-color;
321
	color:$white;
322
}
323

    
324
.info.warning {
325
	background:$primary-color;
326
	color:$white;
327
}
328

    
329
.info.success {
330
	background:$success-color;
331
	color:$white;
332
}
333

    
334

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

    
389
						font-weight: bold;
390
						&:hover {
391
							color: $secondary-color;
392
						}
393
					}
394
				}
395
			}
396
		}
397
		.check {
398
			position:absolute;
399
			right:10px;
400
			top:5px;
401

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

    
430
	}
431
}
432

    
433

    
434
.lt-sidebar {
435
	margin-top:43px;
436
	overflow:scroll;
437
	height:300px;
438
	font-size:emCalc(12px);
439
	.items-list {
440
		padding:0;
441
	}
442
	.items-list li .img, 
443
	.items-list li .os {
444
		background-size:80%;
445
	}
446
	.items-list li .img .os {
447
		top:10px;
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
	.jspDrag {
459
		background-color:$primary-color;
460
	}
461
	.jspVerticalBar {
462
		width:10px;
463
		right:4px;
464
	}
465
	.jspTrack {
466
		background:$white;
467

    
468
		border:1px solid $primary-color;
469
		border-top:1px solid lighten($primary-color,20%);
470
	}
471

    
472

    
473
}
474

    
475
.vms .items-list {
476
	.img {
477
			@include sprite('../images/vm-on.png', 56px, 58px);
478
			 
479
			&.stopped {
480
				background-image:url('../images/vm-stopped.png');
481
			}
482
			.os {
483
				@include sprite('../images/os-unknown.png', 22px, 22px);
484
				position: absolute;
485
				top:8px;
486
				left:18px;
487
				&.windows { background-image:url('../images/os-windows.png'); }
488
				&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
489
				&.fedora { background-image:url('../images/os-fedora.png'); }
490
			}
491
		
492
		}
493
}
494

    
495

    
496
.vm {
497
	.top {
498
		.img {
499
			@include sprite('../images/vm-on.png', 112px, 116px);
500
		}
501
		&.stopped {
502
			background-image:url('../images/vm-stopped.png');
503
		}
504
		.os {
505
			@include sprite('../images/os-unknown.png', 22px, 22px);
506
			position: absolute;
507
			background-size:100%;
508
			width:44px;
509
			height:44px;
510
			left:36px;
511
			top:16px;
512
			&.windows { background-image:url('../images/os-windows.png'); }
513
			&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
514
			&.fedora { background-image:url('../images/os-fedora.png'); }
515
		}
516
	}
517
}
518

    
519
.details {
520
	position:relative;
521
		
522
	.top {
523
		padding:100px $header-padding-horizontal;
524
		text-align: center;
525
		.img {
526
			background-size:100%;
527
			margin-bottom: 20px;
528
			position: relative;
529
		}
530
		.actions {
531
			ul {
532
				padding:1em;
533
				text-align:center;
534
				li {
535
					list-style: none outside none;
536
					display: inline-block;
537
					margin:0 10px;
538
					min-width: 112px;
539
					a {
540
						@extend .btn1;
541
					}
542

    
543
				}
544
			}
545
		}
546
		
547
	}
548
	.info {
549
		dl {
550
			margin:0;
551
			dt {
552
				display: inline-block;
553
				width:25%;
554

    
555
			}
556
			dd {
557
				width:74%;
558
				display: inline-block;
559
			}
560
		}
561
	}
562
	.close {
563
		position: absolute;
564
		right:$header-padding-horizontal;
565
		top:$header-padding-horizontal+emCalc(43px);
566
		span {
567
			font-size:emCalc(32px);
568
		}	
569
		&:hover {
570
			color:$secondary-color;
571
		}
572
	}
573
}
574

    
575

    
576

    
577

    
578

    
579
.border-bottom-style1 {
580
	padding-bottom:20px;
581
	margin-bottom:20px;
582
	border-bottom:1px dashed $primary-color;
583
}
584

    
585
.overlay {
586
	background:$secondary-color;
587
	position: relative;
588
	z-index:10;
589
	.lt-sidebar {
590
		border-right:1px solid $white;
591
		ul {
592
			li {
593
				list-style:none outside none;
594
				a {
595
					color:$white;
596
					span { float:right; display:none;}
597
					&:hover,
598
					&.current {
599

    
600
						text-decoration: none;
601
						span { 
602
							display:inline;
603
						}
604
					}
605
				}
606

    
607
			}
608
		}
609

    
610
	}
611
	.lt-sidebar, 
612
	.main {
613
		padding:100px $header-padding-horizontal;
614
		position:relative;
615
	}
616
	.navigation {
617
		.rt {
618
			float:right;
619
		}
620
	}
621
	.close {
622
		position: absolute;
623
		right:$header-padding-horizontal;
624
		top:50px;
625
		@include sprite('../images/info-close.png', 31px, 30px);
626
	}
627
}
628

    
629
.create-vm {
630
	.select-os {
631
		li {
632
			width:23%;
633
			padding:20px;
634
			list-style:none outside none;
635
			display: inline-block;
636
			float: left;
637
			height: 200px;
638
			margin:0 10px 10px 0;
639
			&:hover,
640
			&.selected {
641
				background:$white;
642
				h2, p, a {
643
					color:$secondary-color;
644
				}
645
			}
646
			a {
647
				color:$white;
648
			}
649
			.os {
650
				@include sprite('../images/os-unknown.png', 30px, 30px);
651
				background-size:100%;
652
				margin-bottom:2em;
653
				&.windows { background-image:url('../images/os-windows.png'); }
654
				&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
655
				&.fedora { background-image:url('../images/os-fedora.png'); }
656
			}
657
			h2 {
658
				font-size:emCalc(16px);
659
				font-weight:normal;
660
				color:$white;
661
			}
662
			.details {
663
				font-weight:bold;
664
				font-size:emCalc(14px);
665
			}
666
		}
667
	}
668
	.select-flavor {
669
		dl {
670
			color:$white;
671
			font-size:emCalc(20px);
672
			margin-bottom:10px;
673
			dd {
674
				width:23%;
675
				display: inline-block;
676
			}
677
			dt {
678
				width:70%;
679
				display: inline-block;
680
				font-weight: normal;
681
				span {
682
					@extend .btn3;
683
					min-width: 90px;
684
					margin:0 10px;
685
					&:first-child {
686
						margin-left:0;
687
					}
688
				}
689
			}
690
		}
691
	}
692
}
693

    
694
#vm-connect {
695
	.info {
696
		font-style:italic;
697
		font-size:emCalc(13px);
698
		color: lighten($primary-color,5%);
699
	}
700
	.ssh {
701
		text-align: center;
702
		span {
703
			padding: 10px 30px;
704
			background:$secondary-color;
705
			color:$white;
706
		}
707
	}
708
}
709

    
710

    
711
.reveal-modal {
712
	h3 {
713
		font-size:1em;
714
	}
715
	a { 
716
		color: $secondary-color;
717
		&:hover {
718
			text-decoration: underline;
719
		}
720
		&.close-reveal-modal:hover {
721
			text-decoration: none;
722
			color:$secondary-color;
723
		}
724
	}	
725
}
726

    
727

    
728
// custom modal with opaque overlay
729
.reveal-custom {
730
	position: absolute;
731
	top:100px;
732
	left:25%;
733
	z-index:99;
734
	background:yellow;
735
	width:50%;
736
	display:none;
737
}
738

    
739

    
740
.details dl {
741
	.editable {
742
		position: relative;
743
		.input-txt {
744
			display: inline-block;
745
			margin-right: 6px;
746
		}
747
		.editbuttons {
748
			display: inline-block;
749
			a {
750
				margin-right: 6px;
751
				&.save, 
752
				&.cancel { 
753

    
754
				}
755
				&:hover {
756
				
757
				}
758
			
759
			}
760
		}
761
		input[type="text"] {
762
			position:relative;
763
			height: 25px;
764
			width:298px;
765
			padding:0 10px;
766
			font-size:inherit;	
767
			margin:0;	
768
			left:-11px;
769
			top:-1px;
770
		}
771

    
772
	}
773

    
774
}
775
.editable {
776
	.editbuttons {		
777
		a {
778
			color: $secondary-color;
779
			&.save, 
780
			&.cancel { display: none; }
781
			&:hover {
782
				color:$primary-color;
783
			}
784
		
785
		}
786
	}
787
	input[type="text"] {
788
		display: none;
789
	}
790
}
791

    
792
.storage {
793
	padding:45px 0;
794
	position:relative;
795
	.lt-sidebar {
796
		font-size: 1em;
797
		padding:0 20px 40px 40px;
798
		.sidenav {
799
			font-size: inherit;
800
		}
801
		ul {
802
			list-style: none outside none;
803
			li {
804
				padding:5px 0;
805
				&:hover {
806
					background: transparent;
807
					&>a {
808
						color:$secondary-color;
809
						&+span {
810
							display: inline;
811
						}
812
					}
813
				}
814
				span {
815
					float:right;
816
					color:$secondary-color;
817
					display: none;
818
				}
819

    
820
			}
821
		}
822
	}
823
	.files {
824
		margin:1em 0;
825
		padding:0;
826
		list-style: none outside none;
827
		li {
828
			list-style:none outside none;
829
			clear: left;
830
			padding:10px 20px;
831
			border:1px solid transparent;
832
			@extend .clearfix;
833
			.name-col {
834
				float:left;
835
				width:35%;
836
				padding-left:50px;
837
				&.folder { background:url(../images/icon-folder.png) no-repeat left center; }
838
				&.txt { background:url(../images/icon-txt.png) no-repeat left center; }
839
				&.pdf { background:url(../images/icon-pdf.png) no-repeat left center; }
840
			}
841
			.size-col {
842
				float:left;
843
				width:10%;
844
			}
845
			.date-col {
846
				float:left;
847
				width:20%;
848
			}
849
			.actions-col {
850
				float:left;
851
				width:30%;
852
				visibility: hidden;
853

    
854
				a {
855
					color: $secondary-color;
856
					margin-right: 10px;
857
					&:hover { color:$primary-color;}
858

    
859
				}
860
			}
861
			&:hover {
862
				border-color:$secondary-color;
863
				.actions-col { visibility:visible;}
864
			}
865
			&.titles {
866
				color:$primary-color;
867
				.name-col { padding-left:0; }
868
				&:hover {
869
					border-color:transparent;
870
				}
871
			}
872
		}
873
	}
874
	.breadcrumbs {
875
		li:first-child {
876
			font-weight:bold;
877
			a {
878
				color:$black;
879
				&:hover {
880
					color:$secondary-color;
881
				}
882
			}
883
		}
884
		a:hover {
885
			color: $secondary-color;
886
		}
887
	}
888
}
889

    
890
.progress-bar {
891
	position: fixed;
892
	bottom:0;
893
	left:0;
894
	border-top:1px solid $secondary-color;
895
	width:100%;
896
	background:#fff;
897
	padding:20px 0 20px 310px;
898
	color:$primary-color;
899
	span.counter {
900
		display: inline-block;
901
		margin-right:20px;
902
		float:left;
903
	}
904
	a:hover {
905
		color:$secondary-color;
906
	}
907
	div.progress-wrap {
908
		display:inline-block;
909
		float:left;
910
		width:40%;
911
		margin-right:60px;
912
		.progress {
913
			position: relative;
914
			top:2px;
915
		}
916
	}
917
	span.more {
918
		display: inline-block;
919
	}
920
}
921

    
922
.overlay-wrapper {
923
	position: relative;
924

    
925
	.overlay-area {
926
		display:none;
927
		position:absolute;
928
		left:0;
929
		right:0;
930
		top:0;
931
		width:100%;
932
		height:100%;
933
		background:$secondary-color;
934
		z-index:20;
935
	}
936
	.close {
937
		position: absolute;
938
		right:$header-padding-horizontal;
939
		top:50px;
940
		@include sprite('../images/info-close.png', 31px, 30px);
941
	}
942
	.overlay-div {
943
		display: none;
944
		z-index:100;
945
		position: relative;
946
	}
947
}
948

    
949
.upload-widget {
950
	padding:45px 0;
951
	width:80%;
952
	border:1px solid white;
953
	margin:50px auto;
954
	text-align:center;
955
	h2, a{
956
		color:#fff;
957
	}
958
	.btns {
959
		a {
960
			@extend .btn3;
961
			margin:0 10px;
962
		}
963
	}
964
	.breadcrumbs {
965
		*, & > *:before ,li a:first-child, a:hover, li a:first-child:hover  {
966
			color:#fff;
967
		}
968
		a:hover {
969
			text-decoration:underline;
970
		}
971

    
972
		display: inline-block;
973
	}
974
}
975

    
976
.dropzone {
977
}
978

    
979

    
980

    
981