Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (22 kB)

1
/*
2

    
3
Overlays (Todo: clean up)
4

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

    
13

    
14
.overlay-wrapper {
15
	position: relative;
16
	left:0;
17
	top:0;
18
	.welcome {
19
		display:none;
20
		}
21
		&.no-vm {
22
			background:url(../images/draw-welcome.png) no-repeat center 50px $secondary-color;
23
			.welcome {
24
				display:none;
25
				color:#fff;
26
				text-align:center;
27
				position: relative;
28
				top:-15px;
29
				left:75px;
30
				display:block;
31
			}
32
		}
33

    
34
	.overlay-area-reveal {
35
		.reveal-modal {
36
			padding:65px 140px 40px;
37
		    h3 {
38
		        font-size:1em;
39
		    }
40
		    p {
41
				color: white;
42
				text-align: center;
43
				&.message-forimg {
44
					margin-top:132px;
45
					margin-bottom: 35px; // 20px from background icon
46
				}
47
				&.buttons {
48
					a:first-child {
49
						margin-right:25px;
50
					}
51
				}
52
			}
53
			&#start-confirm {
54
				background: $secondary-color url('../images/shutdown.png') no-repeat center 50px;	//55px from top
55
		    }
56
		    &#reboot-confirm {
57
				background: #ff7049 url('../images/restart.png') no-repeat center 50px;
58
				.btn4 {
59
				background-color: #ff7049;
60
				border-color: white;
61
				&:hover {
62
						color: #ff7049;
63
						background-color: white;
64
						border-color: #ff7049;
65
					}
66
				}
67
			}
68
			&#shutdown-confirm {
69
			background: #ff7049 url('../images/shutdown.png') no-repeat center 50px;	//55px from top
70
				.btn4 {
71
					background-color: #ff7049;
72
					border-color: white;
73
					&:hover {
74
						color: #ff7049;
75
						background-color: white;
76
						border-color: #ff7049;
77
					}
78
				}
79
			}
80
			&#destroy-vm-confirm {
81
			background: #d7145a url('../images/destroy-vm.png') no-repeat center 46px;	//55px from top
82
				.btn4 {
83
					background-color: #d7145a;
84
					border-color: white;
85
					&:hover {
86
						color: #d7145a;
87
						background-color: white;
88
						border-color: #d7145a;
89
					}
90
				}
91
			}
92
			&#destroy-network-confirm {
93
				background: #d7145a url('../images/destroy-network-1.png') no-repeat center 50px;	//55px from top
94
				.btn4 {
95
					background-color: #d7145a;
96
					border-color: white;
97
					&:hover {
98
						color: #d7145a;
99
						background-color: white;
100
						border-color: #d7145a;
101
					}
102
				}
103
			}
104
			&#destroy-disk-confirm {
105
				background: #d7145a url('../images/destroy-disk.png') no-repeat center 50px;	//55px from top
106
				.btn4 {
107
					background-color: #d7145a;
108
					border-color: white;
109
					&:hover {
110
						color: #d7145a;
111
						background-color: white;
112
						border-color: #d7145a;
113
					}
114
				}
115

    
116
			}
117
			&#vm-connect {
118
				p {
119
					text-align:left;
120
					color: black;
121
					&.info {
122
						font-style: italic;
123
						font-size: 0.8125em;
124
						color: #9e9ea1;
125
					}
126
					&.ssh {
127
						text-align: center;
128
						span {
129
							display: inline;
130
						}
131
					}
132
				}
133
			}
134

    
135
		}
136
	}
137

    
138
	.overlay-area-custom {
139
		display:none;
140
		position:absolute;
141
		left:0;
142
		right:0;
143
		top:-$bar-height;
144
		width:100%;
145
		height:100%;
146
		background:$overlay-bg-color;
147
		z-index:20;
148
		.overlay-div {
149
			display: none;
150
			z-index:50;
151
			position: relative;
152
			background:#fff;
153
			top:20%;
154
			left:25%;
155
			width:50%;
156
			padding:25px;
157
			.buttons {
158
				a {
159
					margin-right:20px;
160
				}
161
			}
162
			.close {
163
				float:right;
164
				font-size:30px;
165
			}
166
			&.upload-widget {
167
				background:transparent;
168
				padding:45px 0;
169
				width:80%;
170
				left:10%;
171
				border:1px solid white;
172
			}
173
			&.wizard {
174
				background:$overlay-bg-color;
175
				padding:0 ;
176
				width:100%;
177
				top:0;
178
				left:0;
179
				position: relative;
180
				color:white;
181
				.top {
182
					background:$overlay-color-top;
183
					height:$bar-menu-height + $bar-submenu-height;
184
					position:fixed;
185
					left:0;
186
					right:0;
187
					bottom:auto;
188
					top:$header-height;
189
					width:100%;
190
					z-index:40;
191
					.numbers {
192
						.row {
193
							max-width: 100%;
194
							padding:0 $header-padding-horizontal;
195
							.close {
196
								color:$primary-color;
197
								&:hover, &:focus {
198
									color:white;
199
								}
200
							}
201
						}
202
						height: $bar-menu-height;
203
						line-height: 50px;
204
						background:$overlay-darker-color;
205
					}
206
					.menus {
207
						height: $bar-submenu-height;
208
						.sub-menu {
209
							display: none;
210
							&[data-step="1"] {
211
								display: block;
212
							}
213
							ul {
214
								margin:0;
215
								padding:0;
216
								list-style: none outside none;
217
								font-size:emCalc(12px);
218
								li {
219
									display: inline;
220
									margin-right:10px;
221
									line-height: $bar-submenu-height;
222
									list-style: none outside none;
223
									a {
224
										color:$body-font-color;
225
										&:hover, &:focus, &.current {
226
											color:white;
227
										}
228
										&.current {
229
											text-decoration: underline;
230
										}
231
										&.disabled {
232
											color: $inactive-color;
233
											cursor: default;
234

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

    
379
											font-size:1em;
380
										&.current {
381
											color:$overlay-bg-color;
382
										}
383
									}
384
								}
385
								.details {
386
									display: none;
387
									background:darken(white,10%);
388
									padding:22px 0;
389
									margin:20px 6px -9px;
390
									color: $body-font-color;
391
									h3 {
392
										font-size: 1em;
393
										font-weight: normal;
394
										margin-bottom:1em;
395
										padding-left:50px;
396
									}
397
									dl {
398
										margin:0;
399
										padding-left:50px;
400
										@extend .clearfix;
401
										dt {
402
											width: 20%;
403
											float:left;
404
											font-weight:normal;
405
										}
406
										dd {
407
											margin:0 0 5px;
408
										}
409
									}
410
								}
411
							}
412
						}
413
						.flavor {
414
							list-style: none outside none;
415
							li {
416
								list-style:none outside none;
417
								margin-bottom:30px;
418
								.title {
419
									@extend .clearfix;
420
									height:40px;
421
									overflow:hidden;
422
									margin-bottom:emCalc(8px);
423
									color:white;
424
									vertical-align: top;
425
									.icon {
426
										display: block;
427
										width:60px;
428
										font-size:38px;
429
										float: left;
430
									}
431
									h2 {
432
										font-size:emCalc(14px);
433
										span {
434
											font-weight:normal;
435
										}
436
										float:left;
437
										width: 140px;
438
										color:white;
439
										margin-right:60px;
440
										padding-left:emCalc(10px);
441
										em {
442
											display: block;
443
											margin-top:4px;
444
											font-size:11px;
445
											font-style:normal;
446
											font-weight:normal;
447
											white-space: nowrap;
448
										}
449
									}
450
									p {
451
										visibility: hidden;
452
										overflow:hidden;
453
										min-height:40px;
454
										font-size:11px;
455
									}
456
								}
457
								.options-bar {
458
									@extend .clearfix;
459
									.bar {
460
										width:200px;
461
										float:left;
462
										margin-right:60px;
463
										height: 20px;
464
										position: relative;
465
										top:10px;
466
										.wrap {
467
											border:1px solid white;
468
											padding:1px;
469
											height: 100%;
470
											&.disabled-progress-bar {
471
												border-color: $disabled-resource-color;
472
												.container{
473
													.total {
474
														background-color: $disabled-resource-color;
475
													}
476
												}
477
											}
478
											.container {
479
												height: 100%;
480
												.total {
481
													background:$primary-color;
482
													height: 100%;
483
													float:left;
484
													position: relative;
485
													.current {
486
														background:white;
487
														height: 100%;
488
														float:left;
489
													}
490
													span {
491
														position:absolute;
492
														right:10px;
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-bg-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
			                .adv-main {
607
			                    .vm-name {
608
			                        h2 {
609
			                            color:white;
610
			                            font-size:1em;
611
			                            margin-bottom:0.5em;
612
			                        }
613
			                    }
614
			                }
615
			                .btn5 {
616
			                    &:hover {
617
			                        color:white;
618
			                }
619
			                    &.current, &.current:hover {
620
			                        color:$overlay-bg-color;
621
			                    }
622
			                }
623
			                .advanced-conf-options {
624
			                    display: none;
625
			                    .check {
626
									font-size: 20px;
627
			                    }
628
			                    .area {
629
			                        padding:$step-adv-padding 0;
630
			                        .row {
631
				                        p{
632
											max-width:340px;
633
											margin-bottom: 20px;
634
				                        }
635
			                        }
636
			                        ul {
637
			                            li {
638
			                                position: relative;
639
			                                list-style:none outside none;
640
			                                margin-bottom:7px;
641
			                                &.checkbox {
642
			                                    &:hover {
643
			                                        cursor: pointer;
644
			                                    }
645
			                                }
646
			                                h3 {
647
			                                    width: $conf-area-h-width;
648
			                                    color:white;
649
			                                    font-size:1em;
650
			                                    font-weight: normal;
651
			                                    margin:0 28px 0 0;
652
			                                    display: inline-block;
653
			                                    //&.net-name { width: 9.063em }
654
			                                }
655
			                            }
656
			                        }
657
			                    }
658
			                    .ssh-keys-area {
659
			                        background-color: $ssh-opt-area-color;
660
			                        .btn5 {
661
										margin-top: 3px;
662
			                        }
663

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

    
733
			                    }
734
			                    .tags-area {
735
			                        background-color: $tag-opt-area-color;
736
			                        .snf-color-picker {
737
			                            display: none;
738
			                        }
739
			                        #picker {
740
			                            position: relative;
741
			                            width: 207px;
742
			                            margin: 30px 5px;
743
			                            display: inline-block;
744
			                        }
745
			                        .btns {
746
			                            margin-top: 77px;
747
			                            margin-bottom: 30px;
748
			                        }
749
			                        .btn5 {
750
			                            margin-right:20px;
751
			                        }
752
			                        .tag-demo {
753
										left:10px;
754
			                        }
755
			                        h3 {
756
			                            width: $conf-area-h-width;
757
			                            color:white;
758
			                            font-size:1em;
759
			                            font-weight: normal;
760
			                            margin:0 28px 0 0;
761
			                            display: inline-block;
762
			                            //&.net-name { width: 9.063em }
763
			                           }
764
			                        .list-header {
765
										position: relative;
766
										left: -14px;
767
										h3 {
768
											margin-right: 35px;
769
										}
770
									}
771
			                    }
772
			                }
773
			            }
774
			        }
775
			    }
776
			    .bottom {
777
			        position: fixed;
778
			        left:0;
779
			        right:0;
780
			        bottom:0;
781
			        border-top:1px solid $overlay-color-top;
782
			        background:$overlay-bg-color;
783
			        .row {
784
			            height: $bar-submenu-height;
785
			            line-height: $bar-submenu-height;
786
			        }
787
			        .nav {
788
			            height: $bar-submenu-height;
789
			            line-height: $bar-submenu-height;
790
			            color:white;
791
			            display: inline-block;
792
			            position: relative;
793
			            font-size: emCalc(12px);
794
			            top:($bar-submenu-height - 30px)/2;
795
			            width: 100px;
796
			            &:hover,
797
			            &:focus {
798
			                @include transition(background, 0ms, ease-out);
799
			            }
800
			            span {
801
			                display: inline-block;
802
			                height: 30px;
803
			                line-height:30px;
804
			                float: left;
805
			                &:hover,
806
			                &:focus {
807
			                    @include transition(background, 0ms, linear);
808
			                }
809
			            }
810
			        }
811
			        .prev {
812
			            float:left;
813
			            height:30px;
814
			            padding-left:18px;
815
			            background:url('../images/nav-edge-lt.png') no-repeat left top;
816
			            span {
817
			                padding-right:10px;
818
			                background:url('../images/nav-lt.png') no-repeat right top;
819
			            }
820
			            &:hover,
821
			            &.active,
822
			            &:focus {
823
			                background-position:left bottom;
824
			                span {
825
			                    background-position:right bottom;
826
			                }
827
			            }
828
			        }
829
			        .next {
830
			            float:right;
831
			            height:30px;
832
			            padding-right:18px;
833
			            background:url('../images/nav-edge-rt.png') no-repeat right top;
834
			            span {
835
			                padding-left:10px;
836
			                background:url('../images/nav-rt.png') no-repeat left top;
837
			                float: right;
838
			            }
839
			            &:hover,
840
			            &.active,
841
			            &:focus {
842
			                background-position:right bottom;
843
			                span {
844
			                    background-position:left bottom;
845
			                    float:right;
846
			                }
847
			            }
848
			        }
849
			    }
850
		} // end of .wizard
851
	} // end of .overlay-div
852
}
853

    
854
}
855

    
856

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

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