Commit a57c0c927045528c37c05427f53199444738b7b6

Authored by Eugeny Galkovskiy
1 parent 2f083e2c

modal success styles and script

Showing 2 changed files with 19 additions and 3 deletions   Show diff stats
@@ -63,4 +63,16 @@ @@ -63,4 +63,16 @@
63 } 63 }
64 .success_ .forms_wr_ { 64 .success_ .forms_wr_ {
65 box-shadow: 0px 0px 35px rgba(0, 0, 0, 0.34); 65 box-shadow: 0px 0px 35px rgba(0, 0, 0, 0.34);
  66 +}
  67 +@media(max-width:575px){
  68 + .forms_wr_, #success-modal .forms_wr_{
  69 + width: 100%;
  70 + left: 0;
  71 + margin: 0;
  72 + border-radius: 0;
  73 + }
  74 + #success-modal {
  75 + top: 0;
  76 + margin: 0;
  77 + }
66 } 78 }
67 \ No newline at end of file 79 \ No newline at end of file
@@ -27,6 +27,10 @@ $( @@ -27,6 +27,10 @@ $(
27 $(this).css('display', 'none'); 27 $(this).css('display', 'none');
28 $('#overlay').fadeOut(400); 28 $('#overlay').fadeOut(400);
29 }); 29 });
  30 + $('.success_').animate({opacity: 0, top: '0'}, 200,function(){
  31 + $(this).css('display', 'none');
  32 + $('#overlay').fadeOut(400);
  33 + });
30 $('#success_form').animate({opacity: 0, top: '0'}, 200,function(){ 34 $('#success_form').animate({opacity: 0, top: '0'}, 200,function(){
31 $(this).css('display', 'none'); 35 $(this).css('display', 'none');
32 $(this).css({top:'50%'}); 36 $(this).css({top:'50%'});
@@ -51,9 +55,6 @@ $( @@ -51,9 +55,6 @@ $(
51 $(".success_ button").click(function(){ 55 $(".success_ button").click(function(){
52 $(".success_").removeClass("done_"); 56 $(".success_").removeClass("done_");
53 }); 57 });
54 - $(".overlay-new").click(function(){  
55 - $(".close").click();  
56 - });  
57 $("#success-modal button.btn.btn-template-primary").click(function(){ 58 $("#success-modal button.btn.btn-template-primary").click(function(){
58 $(".close").click(); 59 $(".close").click();
59 $('#success_form').animate({opacity: 0, top: '0'}, 200,function(){ 60 $('#success_form').animate({opacity: 0, top: '0'}, 200,function(){
@@ -65,5 +66,8 @@ $( @@ -65,5 +66,8 @@ $(
65 $(this).css({top:'50%'}); 66 $(this).css({top:'50%'});
66 }); 67 });
67 }); 68 });
  69 + $(".overlay-new").click(function(){
  70 + $(".close").click();
  71 + });
68 } 72 }
69 ); 73 );
70 \ No newline at end of file 74 \ No newline at end of file