Skip to content

Instantly share code, notes, and snippets.

@clintonn
Created April 21, 2017 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clintonn/231c7331fbc396af3410bb991cc40076 to your computer and use it in GitHub Desktop.
Save clintonn/231c7331fbc396af3410bb991cc40076 to your computer and use it in GitHub Desktop.
.modal-background {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background-color: rgba(0,0,0,0.7)
}
.x-container {
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
background: #DDD;
border-radius: 50%;
width: 25px;
height: 25px;
}
.x-container:hover {
background: black;
}
.x-svg {
width: 15px;
}
.close-x {
stroke: black;
fill: transparent;
stroke-linecap: round;
stroke-width: 4;
}
.close-modal {
display: inline-block;
padding: .75em;
}
.close-modal * {
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.modal__cta {
margin: 0;
font: 1.3em/1 ars_maquette_probold,sans-serif;
}
.center {
text-align: center;
}
.modal {
background-color: #eee;
width: 70vw;
height: 60vh;
text-align: right;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment