Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (17.3 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
					}
307
					.name-col {
308
						float: left;
309
						color: $wizard-base-font-color;
310
						width:71%;
311
						padding-right:10px;
312
					}
313
					.size-col {
314
						float:left;
315
						width:10%;
316
					}
317
					.btn-col {
318
						float:right;
319
						width:10%;
320
						margin-left:10px;
321
						a {
322
							@extend .btn5;
323

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

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

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

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

    
730

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

    
743
/* Responive ------------------------------------------------ */
744
@media only screen and (max-width: $small-mobile) {
745
}
746

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