1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | < div class = "container" > < div class = "row" > < div class = "col-md-12" > < div class = "modal-box" > <!-- Button trigger modal --> < button type = "button" class = "btn btn-primary btn-lg show-modal" data-toggle = "modal" data-target = "#myModal" > view modal </ button > <!-- Modal --> < div class = "modal fade" id = "myModal" tabindex = "-1" role = "dialog" aria-labelledby = "myModalLabel" > < div class = "modal-dialog" role = "document" > < div class = "modal-content clearfix" > < button type = "button" class = "close" data-dismiss = "modal" aria-label = "Close" >< span aria-hidden = "true" >×</ span ></ button > < div class = "modal-content clearfix" > < button type = "button" class = "close" data-dismiss = "modal" aria-label = "Close" >< span aria-hidden = "true" >×</ span ></ button > < div class = "modal-body" > < button class = "cancel" data-dismiss = "modal" >close</ button > < h3 class = "title" >Receive Newsletter</ h3 > < input type = "text" class = "form-control" placeholder = "Your Email Address" > < button class = "btn" >Submit</ button > </ div > </ div > </ div > </ div > </ div > </ div > </ div > </ div > </ div > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | .modal-box{ font-family : 'Poppins' , sans-serif ; } .modal-box .show-modal{ color : #fff ; background-color : #424FFA ; font-size : 16px ; font-weight : 500 ; text-transform : uppercase ; padding : 12px 18px ; margin : 50px auto 0 ; border : none ; outline : none ; border-radius: 20px ; display : block ; transition: all 0.3 s ease 0 s; } .modal-box .show-modal:hover, .modal-box .show-modal:focus{ color : #fff ; outline : none ; box-shadow: 0 5px 5px rgba( 0 , 0 , 0 , 0.3 ); } .modal-backdrop.in{ background-color : #999 ; opacity: 0.7 ; } .modal-box .modal-dialog{ width : 500px ; margin : 70px auto 0 ; } .modal.fade .modal-dialog{ transform: translateY( -100px ); } .modal.in .modal-dialog{ transform: translateY( 0 ); } .modal-box .modal-dialog .modal-content{ background : transparent ; text-align : center ; border-radius: 0 ; border : none ; box-shadow: none ; position : relative ; z-index : 1 ; } .modal-box .modal-dialog .modal- content :before, .modal-box .modal-dialog .modal- content :after{ content : '' ; background-color : #424FFA ; height : 100% ; width : 90% ; margin : auto ; position : absolute ; left : 0 ; right : 0 ; top : 0 ; z-index : -1 ; clip-path: polygon( 50% 0% , 100% 30% , 100% 100% , 0 100% , 0 30% ); } .modal-box .modal-dialog .modal- content :after{ background-color : #fff ; width : 100% ; height : 80% ; top : auto ; bottom : 10px ; clip-path: polygon( 0 0 , 50% 10% , 100% 0 , 100% 100% , 50% 90% , 0 100% ); } .modal-box .modal-dialog .modal-content .modal-body{ padding : 40px 20px 50px !important ; } .modal-box .modal-dialog .modal-content .modal-body .cancel{ color : rgba( 255 , 255 , 255 , 0.7 ); background-color : transparent ; font-size : 16px ; font-weight : 500 ; text-transform : uppercase ; padding : 0 ; margin : 0 0 70px ; border : none ; transition: all 0.3 s ease 0 s; } .modal-box .modal-dialog .modal-content .modal-body .cancel:hover{ color : #fff ; } .modal-box .modal-dialog .modal-content .modal-body .title{ color : #424FFA ; font-size : 33px ; line-height : 33px ; font-weight : 600 ; text-transform : uppercase ; letter-spacing : 2px ; margin : 0 0 25px ; } .modal-box .modal-dialog .modal-content .modal-body .form-control{ color : #424FFA ; font-size : 16px ; font-weight : 500 ; text-align : center ; width : 300px ; height : 45px ; margin : 0 auto 30px ; border : 2px solid #424FFA ; border-radius: 30px ; transition: all 0.3 s ease 0 s; } .modal-box .modal-dialog .modal-content .modal-body .form-control:focus{ box-shadow: 0 3px 0 0 #1926b7 ; } .modal-box .modal-dialog .modal-content .modal-body .form-control::placeholder{ color : rgba( 66 , 79 , 250 , 0.8 ); } .modal-box .modal-dialog .modal-content .modal-body .btn{ color : #fff ; background : #424FFA ; font-size : 20px ; font-weight : 400 ; text-transform : uppercase ; padding : 5px 30px ; margin : 0 auto 10px ; border-radius: 25px ; border : none ; display : block ; transition: all 0.3 s; } .modal-box .modal-dialog .modal-content .modal-body .btn:hover{ text-shadow : 3px 3px 3px rgba( 0 , 0 , 0 , . 9 ); box-shadow: 0 3px 0 0 #1926b7 ; } @media only screen and ( max-width : 576px ){ .modal-dialog{ width : 95% !important ; } } |
1 2 | <script src= "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity= "sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin= "anonymous" ></script> |