<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="page"><a class="btn" href="javascript:void(0)" id="trigger">
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,600);
@import url("https://fonts.googleapis.com/css?family=Roboto:400,300,600");
:root {
font-size: 16px;
}
* {
box-sizing: border-box;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
font-family: "Roboto";
}
.page {
min-height: 100vh;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.elemental__modal {
position: absolute !important;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -43%);
transform: translate(-50%, -43%);
position: relative;
background: #fff;
border-radius: 4px;
z-index: 2000;
pointer-events: none;
opacity: 0;
-webkit-transition: 200ms ease;
transition: 200ms ease;
width: auto;
}
@media (max-width: 600px) {
.elemental__modal {
width: 90vw;
}
}
.elemental__modal .modal__inner {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
width: 100%;
}
.elemental__modal .modal__inner-top {
text-align: center;
padding: 3rem 3rem 1rem;
width: 100%;
}
.elemental__modal .modal__inner-top img {
height: 5rem;
width: 5rem;
border-radius: 50%;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}
.elemental__modal .modal__inner-top h3 {
font-weight: 100;
}
.elemental__modal .modal__inner-bottom {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
width: 100%;
padding-bottom: 1rem;
}
.elemental__modal .modal__inner-bottom a {
text-align: center;
padding: 1rem;
background: #f5f5f5;
text-decoration: none;
border-top: 1px solid #ddd;
color: #7b7de5;
font-weight: 500;
font-family: "Roboto";
}
.elemental__modal .modal__inner-bottom a:last-of-type {
border-bottom: 1px solid #ddd;
}
.elemental__modal .modal__inner-bottom a:hover, .elemental__modal .modal__inner-bottom a:focus {
background: #7b7de5;
color: #fff;
}
.close {
position: absolute;
top: 1rem;
right: 1rem;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
cursor: pointer;
}
.close:hover i, .close:focus i {
color: #555;
}
.close i {
color: #888;
}
.close span {
font-size: .75rem;
color: #ccc;
}
.overlay {
position: fixed;
left: 0;
top: 0;
height: 100vh;
width: 100%;
z-index: -1;
opacity: 0;
background: rgba(0, 0, 0, 0.65);
-webkit-transition: 300ms ease;
transition: 300ms ease;
}
.overlay.active {
opacity: 1;
z-index: 1000;
}
.elemental__modal.active {
opacity: 1;
z-index: 2000;
pointer-events: auto;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
-webkit-transition: 400ms ease;
transition: 400ms ease;
}
.btn {
text-decoration: none;
color: #7b7de5;
font-size: 1.25rem;
border: 1px solid #ddd;
border-radius: 5px;
padding: .75rem 2rem;
line-height: 1.25rem;
}
.btn:hover {
background: #7b7de5;
color: #fff;
border-color: #7b7de5;
}