Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (12.4 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
	}
216
	.actions {
217
		text-align:center;
218
		height:45px;
219
		line-height:45px;
220
		position:relative;
221
		margin:2*$header-padding-vertical 0 $header-padding-vertical;
222
		.main-actions {
223
			position:relative;
224
			top:95px;
225
		}
226
		ul {
227
			margin:0;
228
			li {
229
				list-style: none outside none;
230
				display: inline-block;
231
				margin:0 5px;
232
				a {
233
					display: block;
234
					color:lighten($primary-color,30%);
235
					width:100%;
236
					padding:8px 20px;
237
					border:1px solid transparent;
238
					&.active {
239
						color:$primary-color;
240
						&:hover {
241
							border:1px solid $secondary-color;
242
							cursor: pointer;
243
						}
244
					}
245
					&:hover {
246
						cursor:default;
247
					}
248

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

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

    
286
}
287

    
288

    
289
// info styling
290

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

    
303

    
304
.info.error {
305
	background:$error-color;
306
	color:$white;
307
}
308

    
309

    
310
.info.alert {
311
	background:$alert-color;
312
	color:$white;
313
}
314

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

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

    
325
.items-list {
326
	padding:25px 0;
327
	li {
328
		text-align:center;
329
		padding:20px;
330
		.visible-info {
331
			span {
332
				display: block;
333
			}
334
		}
335
	}
336
}
337

    
338
.vms {
339
	.items-list {
340
		li {
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:2px dashed $primary-color;
349
					&:hover {
350
						border-color:$secondary-color;
351
						color:$secondary-color;
352
					}
353
				}			
354
			}
355
			.img {
356
				@include sprite('../images/vm-on.png', 56px, 58px);
357
				margin-bottom: 20px;
358
				position: relative;
359
				&.stopped {
360
					background-image:url('../images/vm-stopped.png');
361
				}
362
				.os {
363
					@include sprite('../images/os-unknown.png', 22px, 22px);
364
					position: absolute;
365
					top:8px;
366
					left:18px;
367
					&.windows { background-image:url('../images/os-windows.png'); }
368
					&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
369
					&.fedora { background-image:url('../images/os-fedora.png'); }
370
				}
371
			
372
			}
373
			
374
			.container {
375
				border:1px solid transparent;
376
				margin: 0 20px;
377
				padding:20px 0;
378
				position: relative;
379
				.options {
380
					width:100%;
381
					height:100%;
382
					background:$white;
383

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

    
422
			}
423

    
424
		}
425
	}
426
}
427

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

    
446
.vm {
447
	.img {
448
				@include sprite('../images/vm-on.png', 56px, 58px);
449
				margin-bottom: 20px;
450
				position: relative;
451
				&.stopped {
452
					background-image:url('../images/vm-stopped.png');
453
				}
454
				.os {
455
					@include sprite('../images/os-unknown.png', 22px, 22px);
456
					position: absolute;
457
					top:8px;
458
					left:18px;
459
					&.windows { background-image:url('../images/os-windows.png'); }
460
					&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
461
					&.fedora { background-image:url('../images/os-fedora.png'); }
462
				}
463
			}
464
}
465

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

    
496
				}
497
			}
498
		}
499
		
500
	}
501
	.info {
502
		dl {
503
			margin:0;
504
			dt {
505
				display: inline-block;
506
				width:25%;
507
				float:left;
508
			}
509
		}
510
	}
511
	.close {
512
		position: absolute;
513
		right:$header-padding-horizontal;
514
		top:50px;
515
		@include sprite('../images/info-close-grey.png', 31px, 30px);
516
	}
517
}
518

    
519
.border-bottom-style1 {
520
	padding-bottom:20px;
521
	margin-bottom:20px;
522
	border-bottom:2px dashed $primary-color;
523
}
524

    
525
.overlay {
526
	background:$secondary-color;
527
	.lt-sidebar {
528
		border-right:1px solid $white;
529
		ul {
530
			li {
531
				list-style:none outside none;
532
				a {
533
					color:$white;
534
					span { float:right; display:none;}
535
					&:hover,
536
					&.current {
537

    
538
						text-decoration: none;
539
						span { 
540
							display:inline;
541
						}
542
					}
543
				}
544

    
545
			}
546
		}
547

    
548
	}
549
	.lt-sidebar, 
550
	.main {
551
		padding:100px $header-padding-horizontal;
552
		position:relative;
553
	}
554
	.navigation {
555
		.rt {
556
			float:right;
557
		}
558
	}
559
	.close {
560
		position: absolute;
561
		right:$header-padding-horizontal;
562
		top:50px;
563
		@include sprite('../images/info-close.png', 31px, 30px);
564
	}
565
}
566

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

    
632
#vm-connect {
633
	.info {
634
		font-style:italic;
635
		font-size:emCalc(13px);
636
		color: lighten($primary-color,5%);
637
	}
638
	.ssh {
639
		text-align: center;
640
		span {
641
			padding: 10px 30px;
642
			background:$secondary-color;
643
			color:$white;
644
		}
645
	}
646
	a:hover { color: $secondary-color;}
647
}
648

    
649