Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (22.6 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
	.overlay-area-reveal {
34
		.reveal-modal {
35
		    h3 {
36
		        font-size:1em;
37
		    }
38
		    p {
39
				color: white;
40
				text-align: center;
41
				&.message-forimg {
42
					margin-top:152px;
43
					margin-bottom: 35px; // 20px from background icon
44
				}
45
				&.buttons {
46
					a:first-child {
47
						margin-right:16px;
48
					}
49
				}
50
			}
51
			a {
52
		        &.close-reveal-modal {
53
			        color: white;
54
		            font-size: 18px;
55
		            top: 42px;
56
		            right: 42px;
57
		        }
58
		        &.close-reveal-modal:hover {
59
		            text-decoration: none;
60
		            // color:$secondary-color;
61
		        }
62
		    }
63
		    &#start-confirm {
64
				background: $secondary-color url('../images/shutdown.png') no-repeat center 50px;	//55px from top
65
		    }
66
		    &#reboot-confirm {
67
				background: #ff7049 url('../images/restart.png') no-repeat center 46px;
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
			&#shutdown-confirm {
79
			background: #ff7049 url('../images/shutdown.png') no-repeat center 50px;	//55px from top
80
				.btn4 {
81
					background-color: #ff7049;
82
					border-color: white;
83
					&:hover {
84
						color: #ff7049;
85
						background-color: white;
86
						border-color: #ff7049;
87
					}
88
				}
89
			}
90
			&#destroy-vm-confirm {
91
			background: #d7145a url('../images/destroy-vm.png') no-repeat center 46px;	//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-network-confirm {
103
				background: #d7145a url('../images/destroy-network-1.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
			&#destroy-disk-confirm {
115
				background: #d7145a url('../images/destroy-disk.png') no-repeat center 50px;	//55px from top
116
				.btn4 {
117
					background-color: #d7145a;
118
					border-color: white;
119
					&:hover {
120
						color: #d7145a;
121
						background-color: white;
122
						border-color: #d7145a;
123
					}
124
				}
125

    
126
			}
127
			&#vm-connect {
128
				p {
129
					color: black;
130
					&.info {
131
						font-style: italic;
132
						font-size: 0.8125em;
133
						color: #9e9ea1;
134
					}
135
				}
136
				a {
137
		        color: $secondary-color;
138
		        &:hover {
139
		            text-decoration: underline;
140
		        }
141
		        &.close-reveal-modal:hover {
142
		            text-decoration: none;
143
		            color:$secondary-color;
144
		        }
145
		    }
146
			}
147

    
148
		}
149
	}
150

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

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

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

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

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

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

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

    
878
}
879

    
880

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

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