Last active
January 13, 2020 14:10
-
-
Save infinitypaul/87736bd7c4824c84250c33e47e022a3d to your computer and use it in GitHub Desktop.
React Reusable Modal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.Modal { | |
position: fixed; | |
z-index: 500; | |
background-color: white; | |
width: 70%; | |
border: 1px solid #ccc; | |
box-shadow: 1px 1px 1px black; | |
padding: 16px; | |
left: 15%; | |
top: 30%; | |
box-sizing: border-box; | |
transition: all 0.3s ease-out; | |
} | |
@media (min-width: 600px) { | |
.Modal { | |
width: 500px; | |
left: calc(50% - 250px); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment