Skip to content

Commit

Permalink
fix alignment of announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 committed Aug 15, 2020
1 parent d3e48d8 commit 6fffe84
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions components/Announcement.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,13 @@ function Toast() {
color: #fff;
border: 1px solid #fff;
border-radius: 2px;
margin-top: calc(var(--x4) * -1);
margin-top: -4.6rem;
animation-name: slide;
animation-duration: 600ms;
max-width: 100vw;
margin-left: auto;
margin-right: auto;
/* fix this to only set max width when necessary (mobile) */
max-width: 63vw;
}
.toast-content {
Expand Down Expand Up @@ -93,6 +94,12 @@ function Toast() {
p {
margin: 0;
}
@media (max-width: 840px) {
.toast {
display: none;
}
}
`}
</style>
</div>
Expand Down

0 comments on commit 6fffe84

Please sign in to comment.