Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / _overlays.scss @ 77115d00

History | View | Annotate | Download (17.4 kB)

1
/*
2

    
3
Overlays (Todo: clean up)
4

    
5
*/
6
// body.with-overlay {
7
//     background:$secondary-color;
8
// }
9

    
10
.reveal-modal {
11
    h3 {
12
        font-size:1em;
13
    }
14
    a {
15
        color: $secondary-color;
16
        &:hover {
17
            text-decoration: underline;
18
        }
19
        &.close-reveal-modal:hover {
20
            text-decoration: none;
21
            color:$secondary-color;
22
        }
23
    }   
24
}
25

    
26

    
27
// custom modal with opaque overlay
28
.reveal-custom {
29
    position: absolute;
30
    top:100px;
31
    left:25%;
32
    z-index:99;
33
    background:yellow;
34
    width:50%;
35
    display:none;
36
}
37

    
38

    
39
.overlay-wrapper {
40
	position: relative;
41
	.overlay-area {
42
		display:none;
43
		position:absolute;
44
		left:0;
45
		right:0;
46
		top:-$bar-height;
47
		width:100%;
48
		height:100%;
49
		background:$overlay-color;
50
		z-index:20;
51
	}
52
	.close {
53
		position: absolute;
54
		right:$header-padding-horizontal;
55
		top:50px;
56
		font-size:30px;
57
		color:$primary-color;
58
		&:hover, &:focus {
59
			color:white;
60
		}
61
	}
62
	.row {
63
		.close {
64
			position:static;
65
			float:right;
66
		}
67
	}
68
	.overlay-div {
69
		display: none;
70
		z-index:100;
71
		position: relative;
72
		background:#fff;
73
		top:20%; 
74
		left:25%; 
75
		width:50%;
76
		padding:25px;
77
		.buttons {
78
			a {
79
				margin-right:20px;
80
			}
81
		}
82
		&.upload-widget {
83
			background:transparent;
84
			padding:45px 0;
85
			width:80%;
86
			left:10%;
87
			border:1px solid white;
88
		}
89
		&.wizard {
90
			background:$overlay-color;
91
			padding:0 ;
92
			width:100%;
93
			top:0;
94
			left:0;
95
		}
96
	}
97
}
98

    
99

    
100
.overlay {
101
    background:$secondary-color;
102
    position: relative;
103
    // z-index:10;
104
    .lt-sidebar {
105
        border-right:1px solid #fff;
106
        color:#fff;
107
        ul {
108
            li {
109
                list-style:none outside none;
110
               
111
                a {
112
                    display: block;
113
                    color:#fff;
114
                    span { float:right; display:none;}
115
                    &:hover,
116
                    &.current {
117
                        text-decoration: none;
118
                        span {
119
                            display:inline;
120
                        }
121
                    }
122
                }
123

    
124
            }
125
        }
126

    
127
    }
128
    .lt-sidebar,
129
    .main {
130
        padding:100px $header-padding-horizontal;
131
        position:relative;
132
    }
133
    .navigation {
134
        .rt {
135
            float:right;
136
        }
137
    }
138
    .close {
139
        position: absolute;
140
        right:$header-padding-horizontal;
141
        top:50px;
142
        @include sprite('../images/info-close.png', 31px, 30px);
143
    }
144
    .close_char {
145
        background: none;
146
        text-indent: 0;
147
        font-size: 1.8em; /* for the the character e (for d we can put 2em) */
148
        color: white;
149
    }
150
}
151

    
152
.wizard {
153
	position: relative;
154
	top:0;
155
	color:white;
156
	.top {
157
		background:$overlay-color-top;
158
		height:$bar-height+$bar-submenu-height;
159
		position:fixed;
160
		left:0;
161
		top:$header-height;
162
		width:100%;
163
		z-index:40;
164
		.row {
165
		}
166
		.numbers {
167
			.row {
168
				max-width: 100%;
169
				padding:0 $header-padding-horizontal
170

    
171
			}
172
			height:$bar-height;
173
			line-height:$bar-height; 
174
			background:$overlay-darker-color;
175
		}
176
		.sub-menu {
177
			display: none;
178
			&[data-step="1"] {
179
				display: block;
180
			}
181
			ul {
182
				margin:0;
183
				padding:0;
184
				list-style: none outside none;
185
				font-size:emCalc(12px);
186
				li {
187
					display: inline;
188
					margin-right:10px;
189
					line-height: $bar-submenu-height;
190
					list-style: none outside none;
191
					a {
192
						color:$black;
193
						&:hover, &:focus, &.current {
194
							color:white;
195
						}
196
						&.current {
197
							text-decoration: underline;
198
						}
199
					}
200
				}
201
			}
202
		}
203
		.nums {
204
			text-align: right;
205
			list-style:none outside none;
206
			margin:0;
207
			height: $bar-height;
208
			line-height: $bar-height;
209
			font-size:emCalc(9px);
210
			padding-right:120px;
211
			color:$secondary-color;
212
			li {
213
				list-style:none outside none;
214
				display: inline;
215
				p {
216
					display: none;
217
					position: relative;
218
					top: 1px;
219
					font-size:12px;
220
					margin-left:12px;
221
					strong {
222
						margin-right:5px;
223
					}
224
				}
225
				em {
226
					display: inline-block;
227
					border-radius:50%;
228
					border:1px solid $secondary-color;
229
					width:20px;
230
					height:20px;
231
					line-height: 18px;
232
					margin:0 3px;
233
					text-align: center;
234
					font-style: normal;
235
				}
236
				a {
237
					color:$secondary-color;
238
					display: block;
239
					&:hover {
240
						cursor: default;
241
					}
242
				}
243
				&.current{
244
					float: left;
245
					p {
246
						display: inline-block;
247
					}
248
					em {
249
						font-size:12px;
250
						width:30px;
251
						height:30px;
252
						line-height: 27px;
253
						border-color:$secondary-color;
254
						* {
255
							color:$secondary-color;
256
						}
257
					}
258
				}
259
			}
260
		}
261
	}
262
	.middle {
263
		padding-top:$bar-height+$bar-submenu-height;
264
		.step {
265
			padding:50px 0 50px;
266
			position:relative;
267
			width:$row-width;
268
			overflow:hidden;
269
			overflow-y: scroll;
270
			&.step-2 {
271
				padding-top:30px;
272
				.dropdown {
273
					margin-bottom:40px;
274
				}
275
			}
276
			.os {
277
				li {
278
					list-style: none outside none;
279
					font-size:emCalc(12px);
280
					@extend .clearfix;
281
					padding:15px 0;
282
					&:hover,
283
					&.hover {
284
						background:$overlay-darker-color;
285
					}
286
					&.current {
287
						background:white;
288
						color:$overlay-color;
289
						.name-col {
290
							color:$overlay-color;
291
						}
292
						.btn-col {
293
							a {
294
								border-color:$overlay-color;
295
								color:$overlay-color;
296
								&.current {
297
									color:white;
298
									background:$overlay-color;
299
								}
300
							}
301
						}
302
					}
303
					.img-col {
304
						float:left;
305
						width:50px;
306
						line-height: $btn-height;
307
					}
308
					.name-col {
309
						float: left;
310
						color: $wizard-base-font-color;
311
						width:71%;
312
						padding-right:10px;
313
						line-height: $btn-height;
314
					}
315
					.size-col {
316
						float:left;
317
						width:10%;
318
						line-height: $btn-height;
319
					}
320
					.btn-col {
321
						float:right;
322
						width:10%;
323
						margin-left:10px;
324
						a {
325
							@extend .btn5;
326

    
327
								font-size:1em;
328
							&.current {
329
								color:$overlay-color;
330
							}
331
						}
332
					}
333
					.details {
334
						display: none;
335
						background:darken(white,10%);
336
						padding:22px 0;
337
						margin:20px 6px -9px;
338
						color: $body-font-color;
339
						h3 {
340
							font-size: 1em;
341
							font-weight: normal;
342
							margin-bottom:1em;
343
							padding-left:50px;
344
						}
345
						dl {
346
							margin:0;
347
							padding-left:50px;
348
							@extend .clearfix;
349
							dt {
350
								width: 20%;
351
								float:left;
352
								color:$black;
353
								font-weight:normal;
354
							}
355
							dd {
356
								color:#485057;
357
								margin:0 0 5px;
358
							}
359
						}
360
					}
361
				}
362
			}
363
			.flavor {
364
				list-style: none outside none;
365
				li {
366
					list-style:none outside none;
367
					margin-bottom:2.5em;
368
					.title {
369
						@extend .clearfix;
370
						margin-bottom:emCalc(5px);
371
						color:white;
372
						vertical-align: top;
373
						.icon {
374
							display: block;
375
							width:5%;
376
							font-size:emCalc(40px);
377
							float: left;
378
						}
379
						h2 {
380
							font-size:emCalc(14px);
381
							span {
382
								font-weight:normal;
383
							}
384
							float:left;
385
							width: 19%;
386
							color:white;
387
							margin-right:4%;
388
							padding-left:emCalc(10px);
389
							&:hover {
390
								& + p {
391
									visibility: visible;
392
								}
393
							}
394
						}
395
						p {
396
							visibility: hidden;
397
							float:left;
398
							width:70%;
399
							color:$black;
400
							font-size:emCalc(9px);
401
						}
402
					}
403
					.options-bar {
404
						@extend .clearfix;
405
						.bar {
406
							width:24%;
407
							float: left;
408
							margin-right:4%;
409
							height: 20px;
410
							position: relative;
411
							top:10px;
412
							.wrap {
413
								border:1px solid white;
414
								padding:1px;
415
								height: 100%;
416
								&.disabled-progress-bar {
417
									border-color: #3a4046;
418
									.container{
419
										.total {
420
											background-color: #3a4046;
421
										}
422
									}
423
								}
424
								.container {
425
									height: 100%;
426
									.total {
427
										background:$primary-color;
428
										height: 100%;
429
										float:left;
430
										position: relative;
431
										.current {
432
											background:white;
433
											height: 100%;
434
											float:left;
435
										}
436
										span {
437
											position:absolute;
438
											right:10px;
439
											color:$black;
440
											font-size: emCalc(9px);
441
										}
442
										&.low {
443
											span {
444
												right:-30px;
445
												color:white;
446
											}
447
										}
448
									}
449
								}
450

    
451
							}
452
						}
453
						.options {
454
							overflow:hidden;
455
							list-style: none outside none;
456
							li {
457
								list-style: none outside none;
458
								display: inline-block;
459
								margin-right: 10px;
460
								margin-bottom:0;
461
								a {
462
									@extend .btn5;
463
									min-width: 60px;
464
									&.current {
465
										color:$overlay-color;
466
									}
467
								}
468
							}
469
						}
470
					}
471
				}
472
			}
473
			.summary {
474
				.row {
475
					padding-top:1em;
476
					margin-top:1em;
477
					border-top:1px solid white;
478
					&:first-child {
479
						border-top:0 none;
480
					}
481
				}
482
				h2 {
483
					font-size:1em;
484
					color:white;
485
				}
486
				dl {
487
					margin-bottom:0;
488
					span {
489
						margin-right:10px;
490
						font-size:20px;
491
					}
492
					dt {
493
						display: inline-block;
494
						width: 45%;
495
						vertical-align: top;
496
					}
497
					dd {
498
						display: inline-block;
499
						width:45%;
500
					}
501
				}
502
			}
503
			.advanced-conf-step {
504
				color: $wizard-base-font-color;
505
				h2 {
506
					color: $wizard-base-font-color;
507
					font-size: 1em;
508
					margin:0 auto 1em;
509
				}
510
				p {
511
					font-size: $wizard-paragraph-font-size;
512
				}
513
                .snf-checkbox-checked, .snf-checkbox-unchecked {
514
                    color: $wizard-base-font-color;
515
                }   
516
                .expand-btn {
517
                    margin: 50px 0 30px;
518
                    a {
519
                        color:$wizard-base-font-color;
520
                    }
521

    
522
                   
523
                }
524
                .adv-main {
525
                    padding: 10px 0 30px;
526
                    width:$row-small;
527
                    .vm-name {
528
                        h2 {
529
                            color:white;
530
                            font-size:1em;
531
                            margin-bottom:0.5em;
532
                        }
533
                    }
534
                }
535
                .btn5 {
536
                    &:hover {
537
                        color:white;
538
                }
539
                    &.current, &.current:hover {
540
                        color:$overlay-color;
541
                    }
542
                }
543
                .advanced-conf-options {
544
                    display: none;
545
                    .area {
546
                        padding:30px 0;
547
                        .row {
548
                            width:$row-small;
549
                            padding-left:0;
550
                        }
551
                        ul {
552
                            li {
553
                                position: relative;
554
                                list-style:none outside none;
555
                                margin-bottom:7px;
556
                                &.checkbox {
557
                                    &:hover {
558
                                        cursor: pointer;
559
                                    }
560
                                }
561
                                h3 {
562
                                    width: $conf-area-h-width;
563
                                    color:white;
564
                                    font-size:1em;
565
                                    font-weight: normal;
566
                                    margin:0 20px 0 0;
567
                                    display: inline-block;
568
                                    //&.net-name { width: 9.063em }
569
                                }
570
                            }
571
                        }
572
                    }
573
                    .ssh-keys-area {
574
                        background-color: $ssh-opt-area-color;
575
                    }
576
                    .networks-area {
577
                        background-color: $net-opt-area-color;
578
                        li {
579
                            .net-icons {
580
                                padding-right:20px;
581
                                // position:absolute;
582
                                // left:-200px;
583
                                // top:-12px;
584
                                display: inline-block;
585
                                width:145px;
586
                                text-align: right;
587
                                font-size:30px;
588
                                margin-bottom: 0;
589
                                span {
590
                                    margin-left:6px;
591
                                    &.snf-modem {
592
                                        position: relative;
593
                                        top:-6px;
594
                                    }
595
                                }
596
                            }
597
                   
598
                           
599
                           
600
                            &.more {
601
                                // display: none;
602
                                background:$net-more-opt-area-color;
603
                                margin-bottom:1em;
604
                                padding:30px 0;
605
                                color:$net-opt-area-color;
606
                                h3 {
607
                                    color:$net-opt-area-color;
608
                                    padding-left: 145px;
609
                                }
610
                                .btn5 {
611
                                    margin-top:1em;
612
                                    border-color:$net-opt-area-color;
613
                                    color:$net-opt-area-color;
614
                                }
615
                                .checkbox {
616
                                    a {
617
                                        span {
618
                                            color: $net-opt-area-color;
619
                                        }
620
                                    }
621
                                }
622
                            }
623
                        }
624

    
625
                    }
626
                    .tags-area {
627
                        background-color: $tag-opt-area-color;
628
                        .snf-color-picker {
629
                            display: none;
630
                        }
631
                        #picker {
632
                            position: relative;
633
                            width: 207px;
634
                            margin: 30px 5px;
635
                            display: inline-block;
636
                        }
637
                        .form-item {
638
                            //display:inline-block;
639
                            // position: relative;
640
                            // bottom: 20px;
641
                       
642
                        }
643
                        .btns {
644
                            // position: relative;
645
                            // bottom: -45px;
646
                            // margin-bottom: 45px;
647
                            margin-top: 77px;
648
                            margin-bottom: 30px;
649
                        }
650
                        .btn5 {
651
                            margin-right:20px;
652
                        }
653
                    }
654
                }
655
            }
656
        }
657
    }
658
    .bottom {
659
        position: fixed;
660
        left:0;
661
        right:0;
662
        bottom:0;
663
        border-top:1px solid $overlay-color-top;
664
        background:$overlay-color;
665
        .row {
666
            height: $bar-height;
667
            line-height: $bar-height;
668
        }
669
        .nav {
670
            height: $bar-height;
671
            line-height: $bar-height;
672
            color:white;
673
            display: inline-block;
674
            position: relative;
675
            font-size: emCalc(12px);
676
            top:($bar-height - 30px)/2;
677
            width: 100px;
678
            &:hover {
679
                @include transition(background, 0ms, ease-out);
680
            }
681
            span {
682
                display: inline-block;
683
                height: 30px;
684
                line-height:30px;
685
                float: left;
686
                &:hover {
687
                    @include transition(background, 0ms, linear);
688
                }
689
            }
690
            &:focus {
691
                color:green;
692
            }
693
        }
694
        .prev {
695
            float:left;
696
            height:30px;
697
            padding-left:18px;
698
            background:url('../images/nav-edge-lt.png') no-repeat left top;
699
            span {
700
                padding-right:10px;
701
                background:url('../images/nav-lt.png') no-repeat right top;
702
            }
703
            &:hover,
704
            &.active {
705
                background-position:left bottom;
706
                span {
707
                    background-position:right bottom;
708
                }
709
            }
710
        }
711
        .next {
712
            float:right;
713
            height:30px;
714
            padding-right:18px;
715
            background:url('../images/nav-edge-rt.png') no-repeat right top;
716
            span {
717
                padding-left:10px;
718
                background:url('../images/nav-rt.png') no-repeat left top;
719
                float: right;
720
            }
721
            &:hover,
722
            &.active {
723
                background-position:right bottom;
724
                span {
725
                    background-position:left bottom;
726
                    float:right;
727
                }
728
            }
729
        }
730
    }
731
}
732

    
733

    
734
.wizard-content {
735
    overflow: hidden;
736
    width:100%;
737
    .vm-wizard-carousel {
738
        position:relative;
739
        left:0;
740
        .step {
741
            float:left;
742
        }
743
    }
744
}
745

    
746
/* Responive ------------------------------------------------ */
747
@media only screen and (max-width: $small-mobile) {
748
}
749

    
750
@media only screen and (max-width: $small-screen) {
751
    .wizard {
752
        .top {
753
            position: static;
754
        }
755
        .middle {
756
            padding-top:0;
757
        }
758
    }
759
    .overlay-wrapper {
760
        .overlay-area {
761
            top:0;
762
        }
763
    }
764
}