Statistics
| Branch: | Tag: | Revision:

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

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

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

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

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

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

    
532
													}
533
												}
534
											}
535
										}
536
									}
537
								}
538
							}
539
						}
540
						.summary {
541
							padding-bottom:40px;
542
							.row {
543
								.wrap {
544
									max-width: $row-small;
545
									border-top:1px solid white;
546
									padding-top:1em;
547
									// margin-top:1em;
548
								}
549
								&:first-child {
550
									.wrap {
551
										border-top:0 none;
552
										margin-top:0;
553
									}
554
									dl {
555
										dt {
556
											font-weight: bold;
557
										}
558
									}
559
								}
560
							}
561
							h2 {
562
								font-size:1em;
563
								color:white;
564
								margin-bottom:1em;
565
							}
566
							dl {
567
								margin-bottom:0;
568
								span {
569
									width:40px;
570
									display: inline-block;
571
									font-size:20px;
572
								}
573
								dt {
574
									display: inline-block;
575
									width: 42%;
576
									vertical-align: top;
577
									font-weight:600;
578
								}
579
								dd {
580
									display: inline-block;
581
									width:45%;
582
									margin-bottom:1em;
583
								}
584
							}
585
						}
586
						.advanced-conf-step {
587
							color: $wizard-base-font-color;
588
							h2 {
589
								color: $wizard-base-font-color;
590
								font-size: 1em;
591
								margin-bottom: 10px;
592
								line-height: 1;
593
							}
594
							p {
595
								font-size: $wizard-paragraph-font-size;
596
							}
597
			                .snf-checkbox-checked, .snf-checkbox-unchecked {
598
			                    color: $wizard-base-font-color;
599
			                }
600
			                .expand-btn {
601
			                    margin: 50px 0 $step-adv-padding;
602
			                    a {
603
			                        color:$wizard-base-font-color;
604
			                        span {
605
										padding-left:24px;
606
			                        }
607
			                      }
608
			                }
609
			                .adv-main {
610
			                    .vm-name {
611
			                        h2 {
612
			                            color:white;
613
			                            font-size:1em;
614
			                            margin-bottom:0.5em;
615
			                        }
616
			                    }
617
			                }
618
			                .btn5 {
619
			                    &:hover {
620
			                        color:white;
621
			                }
622
			                    &.current, &.current:hover {
623
			                        color:$overlay-bg-color;
624
			                    }
625
			                }
626
			                .advanced-conf-options {
627
			                    display: none;
628
			                    .check {
629
									font-size: 20px;
630
			                    }
631
			                    .area {
632
			                        padding:$step-adv-padding 0;
633
			                        .row {
634
				                        p{
635
											max-width:340px;
636
											margin-bottom: 20px;
637
				                        }
638
			                        }
639
			                        ul {
640
			                            li {
641
			                                position: relative;
642
			                                list-style:none outside none;
643
			                                margin-bottom:7px;
644
			                                &.checkbox {
645
			                                    &:hover {
646
			                                        cursor: pointer;
647
			                                    }
648
			                                }
649
			                                h3 {
650
			                                    width: $conf-area-h-width;
651
			                                    color:white;
652
			                                    font-size:1em;
653
			                                    font-weight: normal;
654
			                                    margin:0 28px 0 0;
655
			                                    display: inline-block;
656
			                                    //&.net-name { width: 9.063em }
657
			                                }
658
			                            }
659
			                        }
660
			                    }
661
			                    .ssh-keys-area {
662
			                        background-color: $ssh-opt-area-color;
663
			                        .btn5 {
664
										margin-top: 3px;
665
			                        }
666

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

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

    
857
}
858

    
859
.communication-error {
860
	// display: none;
861
	background-color: $error-color;
862
	color: $wizard-base-font-color;
863
	position: fixed;
864
	bottom: -151px;
865
	left: 0px;
866
	width: 100%;
867
	padding-top: 30px;
868
	padding-bottom: 15px;
869
	z-index: 10;
870
	p {
871
		text-align: center;
872
		line-height: 2em;
873
		margin: 0 auto;
874
		max-width: 800px;
875
		&.buttons {
876
			margin-top:10px;
877
			a:not(:first-child) {
878
				margin-left: 15px;
879
			} 
880
		}
881
	}
882
}
883

    
884
/* Responive ------------------------------------------------ */
885
@media only screen and (max-width: $small-mobile) {
886
}
887

    
888
@media only screen and (max-width: $small-screen) {
889
    .wizard {
890
        .top {
891
            position: static;
892
        }
893
        .middle {
894
            padding-top:0;
895
        }
896
    }
897
    .overlay-wrapper {
898
        .overlay-area {
899
            top:0;
900
        }
901
    }
902
}