Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (19.2 kB)

1
/*
2

    
3
Overlays (Todo: clean up)
4

    
5
*/
6
body.with-overlay {
7
     background:$overlay-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
		.steps {
265
			position:relative;
266
			width:100%;
267
		}
268
		.step {
269
			position: absolute;
270
			top:0;
271
			width:100%;
272
			display:none;
273
			&.current {
274
				display: block;
275
			}
276
			padding:50px 0 50px;
277
			&.step-2 {
278
				padding-top:30px;
279
				.dropdown {
280
					margin-bottom:40px;
281
				}
282
			}
283
			&.step-3 {
284
				padding-top: 45px;
285
			}
286
			.os {
287
				li {
288
					display: none;
289
					list-style: none outside none;
290
					font-size:emCalc(12px);
291
					@extend .clearfix;
292
					padding:15px 0;
293
					&:hover,
294
					&.hover {
295
						background:$overlay-darker-color;
296
					}
297
					&.current {
298
						background:white;
299
						color:$overlay-color;
300
						.name-col {
301
							color:$overlay-color;
302
						}
303
						.btn-col {
304
							a {
305
								border-color:$overlay-color;
306
								color:$overlay-color;
307
								&.current {
308
									color:white;
309
									background:$overlay-color;
310
								}
311
							}
312
						}
313
					}
314
					.img-col {
315
						float:left;
316
						width:50px;
317
						line-height: $btn-height;
318
					}
319
					.name-col {
320
						float: left;
321
						color: $wizard-base-font-color;
322
						width:71%;
323
						padding-right:10px;
324
						line-height: $btn-height;
325
					}
326
					.size-col {
327
						float:left;
328
						width:10%;
329
						line-height: $btn-height;
330
					}
331
					.btn-col {
332
						float:right;
333
						width:10%;
334
						margin-left:10px;
335
						a {
336
							@extend .btn5;
337

    
338
								font-size:1em;
339
							&.current {
340
								color:$overlay-color;
341
							}
342
						}
343
					}
344
					.details {
345
						display: none;
346
						background:darken(white,10%);
347
						padding:22px 0;
348
						margin:20px 6px -9px;
349
						color: $body-font-color;
350
						h3 {
351
							font-size: 1em;
352
							font-weight: normal;
353
							margin-bottom:1em;
354
							padding-left:50px;
355
						}
356
						dl {
357
							margin:0;
358
							padding-left:50px;
359
							@extend .clearfix;
360
							dt {
361
								width: 20%;
362
								float:left;
363
								color:$black;
364
								font-weight:normal;
365
							}
366
							dd {
367
								color:#485057;
368
								margin:0 0 5px;
369
							}
370
						}
371
					}
372
				}
373
			}
374
			.flavor {
375
				list-style: none outside none;
376
				li {
377
					list-style:none outside none;
378
					margin-bottom:30px;
379
					.title {
380
						@extend .clearfix;
381
						height:40px;
382
						overflow:hidden;
383
						margin-bottom:emCalc(8px);
384
						color:white;
385
						vertical-align: top;
386
						.icon {
387
							display: block;
388
							width:60px;
389
							font-size:emCalc(40px);
390
							float: left;
391
						}
392
						h2 {
393
							font-size:emCalc(14px);
394
							span {
395
								font-weight:normal;
396
							}
397
							float:left;
398
							width: 140px;
399
							color:white;
400
							margin-right:60px;
401
							padding-left:emCalc(10px);
402
							&:hover {
403
								em {
404
									opacity:1;
405
								}
406
							}
407
							em {
408
								display: block;
409
								margin-top:4px;
410
								font-size:11px;
411
								color:$black;
412
								font-style:normal;
413
								font-weight:normal;
414
								opacity:0.6;
415
								white-space: nowrap;
416
							}
417
						}
418
						p {
419
							visibility: hidden;
420
							overflow:hidden;
421
							min-height:40px;
422
							color:$black;
423
							font-size:11px;
424
						}
425
					}
426
					.options-bar {
427
						@extend .clearfix;
428
						.bar {
429
							width:200px;
430
							float:left;
431
							margin-right:60px;
432
							height: 20px;
433
							position: relative;
434
							top:10px;
435
							.wrap {
436
								border:1px solid white;
437
								padding:1px;
438
								height: 100%;
439
								&.disabled-progress-bar {
440
									border-color: #3a4046;
441
									.container{
442
										.total {
443
											background-color: #3a4046;
444
										}
445
									}
446
								}
447
								.container {
448
									height: 100%;
449
									.total {
450
										background:$primary-color;
451
										height: 100%;
452
										float:left;
453
										position: relative;
454
										.current {
455
											background:white;
456
											height: 100%;
457
											float:left;
458
										}
459
										span {
460
											position:absolute;
461
											right:10px;
462
											color:$black;
463
											font-size: emCalc(9px);
464
											top:2px;
465
										}
466
										&.low {
467
											span {
468
												right:-30px;
469
												color:white;
470
											}
471
										}
472
									}
473
								}
474

    
475
							}
476
						}
477
						.options {
478
							overflow:hidden;
479
							list-style: none outside none;
480
							li {
481
								list-style: none outside none;
482
								display: inline-block;
483
								margin-right: 10px;
484
								margin-bottom:0;
485
								a {
486
									@extend .btn5;
487
									min-width: 60px;
488
									&.current {
489
										color:$overlay-color;
490
									}
491
								}
492
							}
493
						}
494
					}
495
				}
496
			}
497
			.summary {
498
				padding-bottom:40px;
499
				.row {
500
					.wrap {
501
						max-width: $row-small;
502
						border-top:1px solid white;
503
						padding-top:2em;
504
						margin-top:1em;
505
					}
506
					&:first-child {
507
						.wrap {
508
							border-top:0 none;
509
							margin-top:0;
510
						}
511
						dl {
512
							dt {
513
								font-weight: bold;
514
							}
515
						}
516
					}
517
				}
518
				h2 {
519
					font-size:1em;
520
					color:white;
521
				}
522
				dl {
523
					margin-bottom:0;
524
					span {
525
						width:40px;
526
						display: inline-block;
527
						font-size:20px;
528
					}
529
					dt {
530
						display: inline-block;
531
						width: 42%;
532
						vertical-align: top;
533
						font-weight:600;
534
					}
535
					dd {
536
						display: inline-block;
537
						width:45%;
538
						margin-bottom:1em;
539
					}
540
				}
541
			}
542
			.advanced-conf-step {
543
				color: $wizard-base-font-color;
544
				h2 {
545
					color: $wizard-base-font-color;
546
					font-size: 1em;
547
					margin-bottom: 10px;
548
				}
549
				p {
550
					font-size: $wizard-paragraph-font-size;
551
				}
552
                .snf-checkbox-checked, .snf-checkbox-unchecked {
553
                    color: $wizard-base-font-color;
554
                }   
555
                .expand-btn {
556
                    margin: 50px 0 $step-adv-padding;
557
                    a {
558
                        color:$wizard-base-font-color;
559
                        span {
560
                        	padding-left:24px;
561
                        }
562
                      }
563

    
564
                   
565
                }
566
                .adv-main {
567
                    // padding: 10px 0 30px;
568
                    // width:$row-small;
569
                    .vm-name {
570
                        h2 {
571
                            color:white;
572
                            font-size:1em;
573
                            margin-bottom:0.5em;
574
                        }
575

    
576
                    }
577
                }
578
                .btn5 {
579
                    &:hover {
580
                        color:white;
581
                }
582
                    &.current, &.current:hover {
583
                        color:$overlay-color;
584
                    }
585
                }
586
                .advanced-conf-options {
587
                    display: none;
588
                    .check {
589
                    	font-size: 20px;
590
                    }
591
                    .area {
592
                        padding:$step-adv-padding 0;
593
                        .row {
594
	                        p{
595
								max-width:340px;
596
	                        	margin-bottom: 20px;
597
	                        }
598
                        }
599
                        ul {
600
                            li {
601
                                position: relative;
602
                                list-style:none outside none;
603
                                margin-bottom:7px;
604
                                &.checkbox {
605
                                    &:hover {
606
                                        cursor: pointer;
607
                                    }
608
                                }
609
                                h3 {
610
                                    width: $conf-area-h-width;
611
                                    color:white;
612
                                    font-size:1em;
613
                                    font-weight: normal;
614
                                    margin:0 28px 0 0;
615
                                    display: inline-block;
616
                                    //&.net-name { width: 9.063em }
617
                                }
618
                            }
619
                        }
620
                    }
621
                    .ssh-keys-area {
622
                        background-color: $ssh-opt-area-color;
623
                        .btn5 {
624
                        	margin-top: 3px;
625
                        }
626

    
627
                    }
628
                    .networks-area {
629
                        background-color: $net-opt-area-color;
630
                        ul {
631
                        	position: relative;
632
							margin-bottom:0;
633
                        }
634
                        li {
635
                            .net-icons {
636
                                padding-right:30px;
637
                                display: inline-block;
638
                                width:145px;
639
                                text-align: right;
640
                                font-size:30px;
641
                                margin-bottom: 0;
642
                                position: relative;
643
                                span {
644
 									position: relative;
645
                                    &.snf-modem {
646
                                        top:-1px;
647
                                    }
648
                                    &.snf-www {
649
                                        top:6px;
650
                                    }
651
                                    &.snf-network_full {
652
                                        top:5px;
653
                                    }
654
                                    &.temp-line {
655
										position: absolute;
656
										height:1px;
657
										width:13px;
658
										background:white;
659
										bottom:15px;
660
										&.line1 { right:56px; }
661
										&.line2 {
662
 											right:97px;
663
											width:10px;
664
 										}
665
 									}
666
 								}
667
                            }
668
                            &.more {
669
                                background:$net-more-opt-area-color;
670
                                margin:$step-adv-padding 0;
671
                                padding:$step-adv-padding 0;
672
                                color:$net-opt-area-color;
673
                                h3 {
674
                                    color:$net-opt-area-color;
675
                                    padding-left: 145px;
676
                                    &:hover {
677
 										cursor: pointer;
678
                                    }
679
                                }
680
                                .btn5 {
681
                                    margin-top:20px;
682
                                    border-color:$net-opt-area-color;
683
                                    color:$net-opt-area-color;
684
                                    margin-left:145px;
685
                                }
686
                                .checkbox {
687
                                    a {
688
                                        span {
689
                                            color: $net-opt-area-color;
690
                                        }
691
                                    }
692
                                }
693
                            }
694
                        }
695

    
696
                    }
697
                    .tags-area {
698
                        background-color: $tag-opt-area-color;
699
                        .snf-color-picker {
700
                            display: none;
701
                        }
702
                        #picker {
703
                            position: relative;
704
                            width: 207px;
705
                            margin: 30px 5px;
706
                            display: inline-block;
707
                        }
708
                        .btns {
709
                            margin-top: 77px;
710
                            margin-bottom: 30px;
711
                        }
712
                        .btn5 {
713
                            margin-right:20px;
714
                        }
715
                        .tag-demo {
716
							left:10px;
717
                        }
718
                      	h3 {
719
                            width: $conf-area-h-width;
720
                            color:white;
721
                            font-size:1em;
722
                            font-weight: normal;
723
                            margin:0 28px 0 0;
724
                            display: inline-block;
725
                            //&.net-name { width: 9.063em }
726
                           }
727
                        .list-header {
728
                        	position: relative;
729
                        	left: -14px;
730
                        	h3 {
731
                        		margin-right: 35px;
732
                        	}
733
                        }
734

    
735

    
736
                    }
737
                }
738
            }
739
        }
740
    }
741
    .bottom {
742
        position: fixed;
743
        left:0;
744
        right:0;
745
        bottom:0;
746
        border-top:1px solid $overlay-color-top;
747
        background:$overlay-color;
748
        .row {
749
            height: $bar-height;
750
            line-height: $bar-height;
751
        }
752
        .nav {
753
            height: $bar-height;
754
            line-height: $bar-height;
755
            color:white;
756
            display: inline-block;
757
            position: relative;
758
            font-size: emCalc(12px);
759
            top:($bar-height - 30px)/2;
760
            width: 100px;
761
            &:hover,
762
            &:focus {
763
                @include transition(background, 0ms, ease-out);
764
            }
765
            span {
766
                display: inline-block;
767
                height: 30px;
768
                line-height:30px;
769
                float: left;
770
                &:hover,
771
                &:focus {
772
                    @include transition(background, 0ms, linear);
773
                }
774
            }
775
        }
776
        .prev {
777
            float:left;
778
            height:30px;
779
            padding-left:18px;
780
            background:url('../images/nav-edge-lt.png') no-repeat left top;
781
            span {
782
                padding-right:10px;
783
                background:url('../images/nav-lt.png') no-repeat right top;
784
            }
785
            &:hover,
786
            &.active,
787
            &:focus {
788
                background-position:left bottom;
789
                span {
790
                    background-position:right bottom;
791
                }
792
            }
793
        }
794
        .next {
795
            float:right;
796
            height:30px;
797
            padding-right:18px;
798
            background:url('../images/nav-edge-rt.png') no-repeat right top;
799
            span {
800
                padding-left:10px;
801
                background:url('../images/nav-rt.png') no-repeat left top;
802
                float: right;
803
            }
804
            &:hover,
805
            &.active,
806
            &:focus {
807
                background-position:right bottom;
808
                span {
809
                    background-position:left bottom;
810
                    float:right;
811
                }
812
            }
813
        }
814
    }
815
}
816

    
817
/* Responive ------------------------------------------------ */
818
@media only screen and (max-width: $small-mobile) {
819
}
820

    
821
@media only screen and (max-width: $small-screen) {
822
    .wizard {
823
        .top {
824
            position: static;
825
        }
826
        .middle {
827
            padding-top:0;
828
        }
829
    }
830
    .overlay-wrapper {
831
        .overlay-area {
832
            top:0;
833
        }
834
    }
835
}