Skip to content

Commit

Permalink
Fix centering of error banner (#156)
Browse files Browse the repository at this point in the history
Co-authored-by: Brandon Duffany <[email protected]>
  • Loading branch information
bduffany and bduffany authored Nov 21, 2020
1 parent 0b784a2 commit deb2e3f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/errors/errors.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
z-index: 9000;

left: 50%;
transform: translateX(-50%);
margin-top: 32px;

background: #ffcdd2;
Expand All @@ -18,13 +17,13 @@
.error-banner.hidden {
pointer-events: none;
opacity: 0;
transform: translateY(-16px);
transform: translateX(-50%) translateY(-16px);
transition: 128ms ease-in;
}

.error-banner.visible {
opacity: 1;
transform: none;
transform: translateX(-50%);
transition: 128ms ease-out;
}

Expand Down

0 comments on commit deb2e3f

Please sign in to comment.