Created
August 5, 2019 14:19
-
-
Save hamedbaatour/d0840108a2ba595d2df350fdaff4ae47 to your computer and use it in GitHub Desktop.
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
.error-wrapper { | |
position: fixed; | |
left: 50%; | |
bottom: 0; | |
transform: translate(-50%, 5rem); | |
width: 70%; | |
background-color: crimson; | |
color: white; | |
height: 4rem; | |
border-radius: 0.25rem 0.25rem 0 0; | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
padding: 0.5rem 3rem; | |
transition: transform 1s ease-in-out; | |
z-index: 9999999999; | |
} | |
.error-wrapper-active { | |
transform: translate(-50%, 0); | |
} | |
.error-message { | |
font-size: 1.25rem; | |
letter-spacing: 0.1rem; | |
text-transform: capitalize; | |
line-height: 1.25rem; | |
display: block; | |
text-overflow: ellipsis; | |
overflow: hidden; | |
white-space: nowrap; | |
width: 80%; | |
} | |
.error-btn { | |
outline: none; | |
border: none; | |
padding: 1rem 1.5rem; | |
background-color: rgba(255, 255, 255, 0.3); | |
font-size: 1rem; | |
font-weight: bold; | |
color: white; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment