Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (20.1 kB)

1
/*
2

    
3
Overlays (Todo: clean up)
4

    
5
*/
6
body.with-overlay {
7
	background:$overlay-color;
8
	.main {
9
		opacity:0;
10
	}
11
}
12

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

    
29

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

    
41

    
42
.overlay-wrapper {
43
	position: relative;
44
	left:0;
45
	top:0;
46
	.overlay-area {
47
		display:none;
48
		position:absolute;
49
		left:0;
50
		right:0;
51
		top:-$bar-height;
52
		width:100%;
53
		height:100%;
54
		background:$overlay-color;
55
		z-index:20;
56
	}
57
	.close {
58
		position: absolute;
59
		right:$header-padding-horizontal;
60
		top:50px;
61
		font-size:30px;
62
		color:$primary-color;
63
		&:hover, &:focus {
64
			color:white;
65
		}
66
	}
67
	.row {
68
		.close {
69
			position:static;
70
			float:right;
71
		}
72
	}
73
	.overlay-div {
74
		display: none;
75
		z-index:50;
76
		position: relative;
77
		background:#fff;
78
		top:20%; 
79
		left:25%; 
80
		width:50%;
81
		padding:25px;
82
		.buttons {
83
			a {
84
				margin-right:20px;
85
			}
86
		}
87
		&.upload-widget {
88
			background:transparent;
89
			padding:45px 0;
90
			width:80%;
91
			left:10%;
92
			border:1px solid white;
93
		}
94
		&.wizard {
95
			background:$overlay-color;
96
			padding:0 ;
97
			width:100%;
98
			top:0;
99
			left:0;
100
		}
101
	}
102
	.welcome { 
103
		display:none;
104
	}
105
	&.no-vm {
106
		background:url(../images/draw-welcome.png) no-repeat center 50px $secondary-color;
107
		.welcome {
108
			display:none;
109
			color:#fff;
110
			text-align:center;
111
			position: relative;
112
			top:-15px;
113
			left:75px;
114
			display:block;
115
		}
116
	}
117
}
118

    
119

    
120
.overlay {
121
    background:$secondary-color;
122
    position: relative;
123
    // z-index:10;
124
    .lt-sidebar {
125
        border-right:1px solid #fff;
126
        color:#fff;
127
        ul {
128
            li {
129
                list-style:none outside none;
130
               
131
                a {
132
                    display: block;
133
                    color:#fff;
134
                    span { float:right; display:none;}
135
                    &:hover,
136
                    &.current {
137
                        text-decoration: none;
138
                        span {
139
                            display:inline;
140
                        }
141
                    }
142
                }
143

    
144
            }
145
        }
146

    
147
    }
148
    .lt-sidebar,
149
    .main {
150
        padding:100px $header-padding-horizontal;
151
        position:relative;
152
    }
153
    .navigation {
154
        .rt {
155
            float:right;
156
        }
157
    }
158
    .close {
159
        position: absolute;
160
        right:$header-padding-horizontal;
161
        top:50px;
162
        @include sprite('../images/info-close.png', 31px, 30px);
163
    }
164
    .close_char {
165
        background: none;
166
        text-indent: 0;
167
        font-size: 1.8em; /* for the the character e (for d we can put 2em) */
168
        color: white;
169
    }
170
}
171

    
172
.wizard {
173
	position: relative;
174
	top:0;
175
	color:white;
176
	.top {
177
		background:$overlay-color-top;
178
		height:$bar-menu-height + $bar-submenu-height;
179
		position:fixed;
180
		left:0;
181
		right:0;
182
		bottom:auto;
183
		top:$header-height;
184
		width:100%;
185
		z-index:40;
186
		.numbers {
187
			.row {
188
				max-width: 100%;
189
				padding:0 $header-padding-horizontal;
190
			}
191
			height: $bar-menu-height;
192
			line-height: 50px;
193
			background:$overlay-darker-color;
194
		}
195
		.menus {
196
			height: $bar-submenu-height;
197
			.sub-menu {
198
				display: none;
199
				&[data-step="1"] {
200
					display: block;
201
				}
202
				ul {
203
					margin:0;
204
					padding:0;
205
					list-style: none outside none;
206
					font-size:emCalc(12px);
207
					li {
208
						display: inline;
209
						margin-right:10px;
210
						line-height: $bar-submenu-height;
211
						list-style: none outside none;
212
						a {
213
							color:$black;
214
							&:hover, &:focus, &.current {
215
								color:white;
216
							}
217
							&.current {
218
								text-decoration: underline;
219
							}
220
							&.disabled {
221
								color: $disabled-flavor-color;
222
								cursor: default;
223

    
224
							}
225
						}
226
					}
227
				}
228
			}
229
		}
230
		.nums {
231
			text-align: right;
232
			list-style:none outside none;
233
			margin:0;
234
			height: 50px;
235
			line-height: 50px;
236
			font-size:emCalc(9px);
237
			padding-right:120px;
238
			color:$secondary-color;
239
			li {
240
				list-style:none outside none;
241
				display: inline;
242
				p {
243
					display: none;
244
					position: relative;
245
					top: 1px;
246
					font-size:12px;
247
					margin-left:12px;
248
					strong {
249
						margin-right:5px;
250
					}
251
				}
252
				em {
253
					display: inline-block;
254
					border-radius:50%;
255
					border:1px solid $secondary-color;
256
					width:20px;
257
					height:20px;
258
					line-height: 18px;
259
					margin:0 3px;
260
					text-align: center;
261
					font-style: normal;
262
				}
263
				a {
264
					color:$secondary-color;
265
					display: block;
266
					&:hover {
267
						cursor: default;
268
					}
269
				}
270
				&.current{
271
					float: left;
272
					p {
273
						display: inline-block;
274
					}
275
					em {
276
						font-size:12px;
277
						width:30px;
278
						height:30px;
279
						line-height: 27px;
280
						border-color:$secondary-color;
281
						* {
282
							color:$secondary-color;
283
						}
284
					}
285
				}
286
			}
287
		}
288
	}
289
	.middle {
290
		padding-top:$bar-height+$bar-submenu-height;
291
		.steps {
292
			position:relative;
293
			width:100%;
294
		}
295
		.step {
296
			position: absolute;
297
			top:0;
298
			width:100%;
299
			display:none;
300
			&.current {
301
				display: block;
302
			}
303
			padding:50px 0 50px;
304
			&.step-2 {
305
				// padding-top:30px;
306
				.dropdown {
307
					margin-bottom:40px;
308
				}
309
			}
310
			&.step-3 {
311
				// padding-top: 45px;
312
			}
313
			.os {
314
				li {
315
					display: none;
316
					list-style: none outside none;
317
					font-size:emCalc(12px);
318
					@extend .clearfix;
319
					padding:15px 0;
320
					&:hover,
321
					&.hover {
322
						background:$overlay-darker-color;
323
					}
324
					&.current {
325
						background:white;
326
						color:$overlay-color;
327
						.name-col {
328
							color:$overlay-color;
329
						}
330
						.btn-col {
331
							a {
332
								border-color:$overlay-color;
333
								color:$overlay-color;
334
								&.current {
335
									color:white;
336
									background:$overlay-color;
337
								}
338
							}
339
						}
340
					}
341
					&.system-images {
342
						display: list-item;
343
					}
344
					.img-col {
345
						float:left;
346
						width:50px;
347
						line-height: $btn-height;
348
					}
349
					.name-col {
350
						float: left;
351
						color: $wizard-base-font-color;
352
						width:71%;
353
						padding-right:10px;
354
						line-height: $btn-height;
355
					}
356
					.size-col {
357
						float:left;
358
						width:10%;
359
						line-height: $btn-height;
360
					}
361
					.btn-col {
362
						float:right;
363
						width:10%;
364
						margin-left:10px;
365
						a {
366
							@extend .btn5;
367

    
368
								font-size:1em;
369
							&.current {
370
								color:$overlay-color;
371
							}
372
						}
373
					}
374
					.details {
375
						display: none;
376
						background:darken(white,10%);
377
						padding:22px 0;
378
						margin:20px 6px -9px;
379
						color: $body-font-color;
380
						h3 {
381
							font-size: 1em;
382
							font-weight: normal;
383
							margin-bottom:1em;
384
							padding-left:50px;
385
						}
386
						dl {
387
							margin:0;
388
							padding-left:50px;
389
							@extend .clearfix;
390
							dt {
391
								width: 20%;
392
								float:left;
393
								color:$black;
394
								font-weight:normal;
395
							}
396
							dd {
397
								color:#485057;
398
								margin:0 0 5px;
399
							}
400
						}
401
					}
402
				}
403
			}
404
			.flavor {
405
				list-style: none outside none;
406
				li {
407
					list-style:none outside none;
408
					margin-bottom:30px;
409
					.title {
410
						@extend .clearfix;
411
						height:40px;
412
						overflow:hidden;
413
						margin-bottom:emCalc(8px);
414
						color:white;
415
						vertical-align: top;
416
						.icon {
417
							display: block;
418
							width:60px;
419
							font-size:emCalc(40px);
420
							float: left;
421
						}
422
						h2 {
423
							font-size:emCalc(14px);
424
							span {
425
								font-weight:normal;
426
							}
427
							float:left;
428
							width: 140px;
429
							color:white;
430
							margin-right:60px;
431
							padding-left:emCalc(10px);
432
							&:hover {
433
								em {
434
									opacity:1;
435
								}
436
							}
437
							em {
438
								display: block;
439
								margin-top:4px;
440
								font-size:11px;
441
								color:$black;
442
								font-style:normal;
443
								font-weight:normal;
444
								opacity:0.6;
445
								white-space: nowrap;
446
							}
447
						}
448
						p {
449
							visibility: hidden;
450
							overflow:hidden;
451
							min-height:40px;
452
							color:$black;
453
							font-size:11px;
454
						}
455
					}
456
					.options-bar {
457
						@extend .clearfix;
458
						.bar {
459
							width:200px;
460
							float:left;
461
							margin-right:60px;
462
							height: 20px;
463
							position: relative;
464
							top:10px;
465
							.wrap {
466
								border:1px solid white;
467
								padding:1px;
468
								height: 100%;
469
								&.disabled-progress-bar {
470
									border-color: $disabled-resource-color;
471
									.container{
472
										.total {
473
											background-color: $disabled-resource-color;
474
										}
475
									}
476
								}
477
								.container {
478
									height: 100%;
479
									.total {
480
										background:$primary-color;
481
										height: 100%;
482
										float:left;
483
										position: relative;
484
										.current {
485
											background:white;
486
											height: 100%;
487
											float:left;
488
										}
489
										span {
490
											position:absolute;
491
											right:10px;
492
											color:$black;
493
											font-size: emCalc(9px);
494
											top:2px;
495
										}
496
										&.low {
497
											span {
498
												right:-30px;
499
												color:white;
500
											}
501
										}
502
									}
503
								}
504

    
505
							}
506
						}
507
						.options {
508
							overflow:hidden;
509
							list-style: none outside none;
510
							li {
511
								list-style: none outside none;
512
								display: inline-block;
513
								margin-right: 10px;
514
								margin-bottom:0;
515
								a {
516
									@extend .btn5;
517
									min-width: 60px;
518
									&.current {
519
										color:$overlay-color;
520
									}
521
									&.disabled {
522
										border-color: $disabled-resource-color;
523
										color: $disabled-resource-color;
524
										&:hover, &:active {
525
											cursor: default;
526
											border-width: 1px;
527
											line-height: 28px;
528

    
529
										}
530
									}
531
								}
532
							}
533
						}
534
					}
535
				}
536
			}
537
			.summary {
538
				padding-bottom:40px;
539
				.row {
540
					.wrap {
541
						max-width: $row-small;
542
						border-top:1px solid white;
543
						// padding-top:2em;
544
						// margin-top:1em;
545
					}
546
					&:first-child {
547
						.wrap {
548
							border-top:0 none;
549
							margin-top:0;
550
						}
551
						dl {
552
							dt {
553
								font-weight: bold;
554
							}
555
						}
556
					}
557
				}
558
				h2 {
559
					font-size:1em;
560
					color:white;
561
					margin-bottom:1em;
562
				}
563
				dl {
564
					margin-bottom:0;
565
					span {
566
						width:40px;
567
						display: inline-block;
568
						font-size:20px;
569
					}
570
					dt {
571
						display: inline-block;
572
						width: 42%;
573
						vertical-align: top;
574
						font-weight:600;
575
					}
576
					dd {
577
						display: inline-block;
578
						width:45%;
579
						margin-bottom:1em;
580
					}
581
				}
582
			}
583
			.advanced-conf-step {
584
				color: $wizard-base-font-color;
585
				h2 {
586
					color: $wizard-base-font-color;
587
					font-size: 1em;
588
					margin-bottom: 10px;
589
					line-height: 1;
590
				}
591
				p {
592
					font-size: $wizard-paragraph-font-size;
593
				}
594
                .snf-checkbox-checked, .snf-checkbox-unchecked {
595
                    color: $wizard-base-font-color;
596
                }   
597
                .expand-btn {
598
                    margin: 50px 0 $step-adv-padding;
599
                    a {
600
                        color:$wizard-base-font-color;
601
                        span {
602
                        	padding-left:24px;
603
                        }
604
                      }
605

    
606
                   
607
                }
608
                .adv-main {
609
                    // padding: 10px 0 30px;
610
                    // width:$row-small;
611
                    .vm-name {
612
                        h2 {
613
                            color:white;
614
                            font-size:1em;
615
                            margin-bottom:0.5em;
616
                        }
617

    
618
                    }
619
                }
620
                .btn5 {
621
                    &:hover {
622
                        color:white;
623
                }
624
                    &.current, &.current:hover {
625
                        color:$overlay-color;
626
                    }
627
                }
628
                .advanced-conf-options {
629
                    display: none;
630
                    .check {
631
                    	font-size: 20px;
632
                    }
633
                    .area {
634
                        padding:$step-adv-padding 0;
635
                        .row {
636
	                        p{
637
								max-width:340px;
638
	                        	margin-bottom: 20px;
639
	                        }
640
                        }
641
                        ul {
642
                            li {
643
                                position: relative;
644
                                list-style:none outside none;
645
                                margin-bottom:7px;
646
                                &.checkbox {
647
                                    &:hover {
648
                                        cursor: pointer;
649
                                    }
650
                                }
651
                                h3 {
652
                                    width: $conf-area-h-width;
653
                                    color:white;
654
                                    font-size:1em;
655
                                    font-weight: normal;
656
                                    margin:0 28px 0 0;
657
                                    display: inline-block;
658
                                    //&.net-name { width: 9.063em }
659
                                }
660
                            }
661
                        }
662
                    }
663
                    .ssh-keys-area {
664
                        background-color: $ssh-opt-area-color;
665
                        .btn5 {
666
                        	margin-top: 3px;
667
                        }
668

    
669
                    }
670
                    .networks-area {
671
                        background-color: $net-opt-area-color;
672
                        ul {
673
                        	position: relative;
674
							margin-bottom:0;
675
                        }
676
                        li {
677
                            .net-icons {
678
                                padding-right:30px;
679
                                display: inline-block;
680
                                width:145px;
681
                                text-align: right;
682
                                font-size:30px;
683
                                margin-bottom: 0;
684
                                position: relative;
685
                                span {
686
 									position: relative;
687
                                    &.snf-modem {
688
                                        top:-1px;
689
                                    }
690
                                    &.snf-www {
691
                                        top:6px;
692
                                    }
693
                                    &.snf-network_full {
694
                                        top:5px;
695
                                    }
696
                                    &.temp-line {
697
										position: absolute;
698
										height:1px;
699
										width:13px;
700
										background:white;
701
										bottom:15px;
702
										&.line1 { right:56px; }
703
										&.line2 {
704
 											right:97px;
705
											width:10px;
706
 										}
707
 									}
708
 								}
709
                            }
710
                            &.more {
711
                                background:$net-more-opt-area-color;
712
                                margin:$step-adv-padding 0;
713
                                padding:$step-adv-padding 0;
714
                                color:$net-opt-area-color;
715
                                h3 {
716
                                    color:$net-opt-area-color;
717
                                    padding-left: 145px;
718
                                    &:hover {
719
 										cursor: pointer;
720
                                    }
721
                                }
722
                                .btn5 {
723
                                    margin-top:20px;
724
                                    border-color:$net-opt-area-color;
725
                                    color:$net-opt-area-color;
726
                                    margin-left:145px;
727
                                }
728
                                .with-checkbox {
729
                                    a {
730
                                        span {
731
                                            color: $net-opt-area-color;
732
                                        }
733
                                    }
734
                                }
735
                            }
736
                        }
737

    
738
                    }
739
                    .tags-area {
740
                        background-color: $tag-opt-area-color;
741
                        .snf-color-picker {
742
                            display: none;
743
                        }
744
                        #picker {
745
                            position: relative;
746
                            width: 207px;
747
                            margin: 30px 5px;
748
                            display: inline-block;
749
                        }
750
                        .btns {
751
                            margin-top: 77px;
752
                            margin-bottom: 30px;
753
                        }
754
                        .btn5 {
755
                            margin-right:20px;
756
                        }
757
                        .tag-demo {
758
							left:10px;
759
                        }
760
                      	h3 {
761
                            width: $conf-area-h-width;
762
                            color:white;
763
                            font-size:1em;
764
                            font-weight: normal;
765
                            margin:0 28px 0 0;
766
                            display: inline-block;
767
                            //&.net-name { width: 9.063em }
768
                           }
769
                        .list-header {
770
                        	position: relative;
771
                        	left: -14px;
772
                        	h3 {
773
                        		margin-right: 35px;
774
                        	}
775
                        }
776

    
777

    
778
                    }
779
                }
780
            }
781
        }
782
    }
783
    .bottom {
784
        position: fixed;
785
        left:0;
786
        right:0;
787
        bottom:0;
788
        border-top:1px solid $overlay-color-top;
789
        background:$overlay-color;
790
        .row {
791
            height: $bar-submenu-height;
792
            line-height: $bar-submenu-height;
793
        }
794
        .nav {
795
            height: $bar-submenu-height;
796
            line-height: $bar-submenu-height;
797
            color:white;
798
            display: inline-block;
799
            position: relative;
800
            font-size: emCalc(12px);
801
            top:($bar-submenu-height - 30px)/2;
802
            width: 100px;
803
            &:hover,
804
            &:focus {
805
                @include transition(background, 0ms, ease-out);
806
            }
807
            span {
808
                display: inline-block;
809
                height: 30px;
810
                line-height:30px;
811
                float: left;
812
                &:hover,
813
                &:focus {
814
                    @include transition(background, 0ms, linear);
815
                }
816
            }
817
        }
818
        .prev {
819
            float:left;
820
            height:30px;
821
            padding-left:18px;
822
            background:url('../images/nav-edge-lt.png') no-repeat left top;
823
            span {
824
                padding-right:10px;
825
                background:url('../images/nav-lt.png') no-repeat right top;
826
            }
827
            &:hover,
828
            &.active,
829
            &:focus {
830
                background-position:left bottom;
831
                span {
832
                    background-position:right bottom;
833
                }
834
            }
835
        }
836
        .next {
837
            float:right;
838
            height:30px;
839
            padding-right:18px;
840
            background:url('../images/nav-edge-rt.png') no-repeat right top;
841
            span {
842
                padding-left:10px;
843
                background:url('../images/nav-rt.png') no-repeat left top;
844
                float: right;
845
            }
846
            &:hover,
847
            &.active,
848
            &:focus {
849
                background-position:right bottom;
850
                span {
851
                    background-position:left bottom;
852
                    float:right;
853
                }
854
            }
855
        }
856
    }
857
}
858

    
859
/* Responive ------------------------------------------------ */
860
@media only screen and (max-width: $small-mobile) {
861
}
862

    
863
@media only screen and (max-width: $small-screen) {
864
    .wizard {
865
        .top {
866
            position: static;
867
        }
868
        .middle {
869
            padding-top:0;
870
        }
871
    }
872
    .overlay-wrapper {
873
        .overlay-area {
874
            top:0;
875
        }
876
    }
877
}