Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (22.5 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

    
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
			a {
54
		        &.close-reveal-modal:hover {
55
		            text-decoration: none;
56
					color: $black;
57
		        }
58
		    }
59
		    &#start-confirm {
60
				background: $secondary-color url('../images/shutdown.png') no-repeat center 50px;	//55px from top
61
		    }
62
		    &#reboot-confirm {
63
				background: #ff7049 url('../images/restart.png') no-repeat center 50px;
64
				.btn4 {
65
				background-color: #ff7049;
66
				border-color: white;
67
				&:hover {
68
						color: #ff7049;
69
						background-color: white;
70
						border-color: #ff7049;
71
					}
72
				}
73
			}
74
			&#shutdown-confirm {
75
			background: #ff7049 url('../images/shutdown.png') no-repeat center 50px;	//55px from top
76
				.btn4 {
77
					background-color: #ff7049;
78
					border-color: white;
79
					&:hover {
80
						color: #ff7049;
81
						background-color: white;
82
						border-color: #ff7049;
83
					}
84
				}
85
			}
86
			&#destroy-vm-confirm {
87
			background: #d7145a url('../images/destroy-vm.png') no-repeat center 46px;	//55px from top
88
				.btn4 {
89
					background-color: #d7145a;
90
					border-color: white;
91
					&:hover {
92
						color: #d7145a;
93
						background-color: white;
94
						border-color: #d7145a;
95
					}
96
				}
97
			}
98
			&#destroy-network-confirm {
99
				background: #d7145a url('../images/destroy-network-1.png') no-repeat center 50px;	//55px from top
100
				.btn4 {
101
					background-color: #d7145a;
102
					border-color: white;
103
					&:hover {
104
						color: #d7145a;
105
						background-color: white;
106
						border-color: #d7145a;
107
					}
108
				}
109
			}
110
			&#destroy-disk-confirm {
111
				background: #d7145a url('../images/destroy-disk.png') no-repeat center 50px;	//55px from top
112
				.btn4 {
113
					background-color: #d7145a;
114
					border-color: white;
115
					&:hover {
116
						color: #d7145a;
117
						background-color: white;
118
						border-color: #d7145a;
119
					}
120
				}
121

    
122
			}
123
			&#vm-connect {
124
				p {
125
					text-align:left;
126
					color: black;
127
					&.info {
128
						font-style: italic;
129
						font-size: 0.8125em;
130
						color: #9e9ea1;
131
					}
132
					&.ssh {
133
						text-align: center;
134
						span {
135
							display: inline;
136
						}
137
					}
138
				}
139
				a.close-reveal-modal {
140
					color:$secondary-color;
141
					&:hover {
142
						color:$black;
143
					}
144
				}
145
			}
146

    
147
		}
148
	}
149

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

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

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

    
528
										}
529
									}
530
									.options {
531
										overflow:hidden;
532
										list-style: none outside none;
533
										li {
534
											list-style: none outside none;
535
											display: inline-block;
536
											margin-right: 10px;
537
											margin-bottom:0;
538
											a {
539
												@extend .btn5;
540
												min-width: 60px;
541
												&.current {
542
													color:$overlay-color;
543
												}
544
												&.disabled {
545
													border-color: $disabled-resource-color;
546
													color: $disabled-resource-color;
547
													&:hover, &:active {
548
														cursor: default;
549
														border-width: 1px;
550
														line-height: 28px;
551

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

    
687
			                    }
688
			                    .networks-area {
689
			                        background-color: $net-opt-area-color;
690
			                        ul {
691
										position: relative;
692
										margin-bottom:0;
693
			                        }
694
			                        li {
695
			                            .net-icons {
696
			                                padding-right:30px;
697
			                                display: inline-block;
698
			                                width:145px;
699
			                                text-align: right;
700
			                                font-size:30px;
701
			                                margin-bottom: 0;
702
			                                position: relative;
703
			                                span {
704
												position: relative;
705
												&.snf-modem {
706
													top:-1px;
707
			                                    }
708
			                                    &.snf-www {
709
			                                        top:6px;
710
			                                    }
711
			                                    &.snf-network_full {
712
			                                        top:5px;
713
			                                    }
714
			                                    &.temp-line {
715
													position: absolute;
716
													height:1px;
717
													width:13px;
718
													background:white;
719
													bottom:15px;
720
													&.line1 { right:56px; }
721
													&.line2 {
722
														right:97px;
723
														width:10px;
724
													}
725
												}
726
											}
727
										}
728
			                            &.more {
729
			                                background:$net-more-opt-area-color;
730
			                                margin:$step-adv-padding 0;
731
			                                padding:$step-adv-padding 0;
732
			                                color:$net-opt-area-color;
733
			                                h3 {
734
			                                    color:$net-opt-area-color;
735
			                                    padding-left: 145px;
736
			                                    &:hover {
737
													cursor: pointer;
738
			                                    }
739
			                                }
740
			                                .btn5 {
741
			                                    margin-top:20px;
742
			                                    border-color:$net-opt-area-color;
743
			                                    color:$net-opt-area-color;
744
			                                    margin-left:145px;
745
			                                }
746
			                                .with-checkbox {
747
			                                    a {
748
			                                        span {
749
			                                            color: $net-opt-area-color;
750
			                                        }
751
			                                    }
752
			                                }
753
			                            }
754
			                        }
755

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

    
877
}
878

    
879

    
880
/* Responive ------------------------------------------------ */
881
@media only screen and (max-width: $small-mobile) {
882
}
883

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