Created
August 11, 2023 18:25
-
-
Save GreenFlag31/8fef9d37576aa38ebbedccf0ea847705 to your computer and use it in GitHub Desktop.
Modal component CSS
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-overlay { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
background-color: rgba(0, 0, 0, 0.4); | |
z-index: 1; | |
} | |
.modal { | |
position: fixed; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
transform-origin: left; | |
border: rgb(227, 227, 227) 1px solid; | |
background-color: white; | |
border-radius: 0.3rem; | |
overflow: auto; | |
z-index: 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment