Skip to content

Commit

Permalink
Fix mobile modal
Browse files Browse the repository at this point in the history
  • Loading branch information
MinThaMie committed Nov 10, 2023
1 parent 6e1f697 commit 3e1b709
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions app/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ nav > a.active {
text-decoration-thickness: 2px;
}

.mobile-menu-wrapper {
z-index: 0;
position: relative;
}

/* stylelint-disable-next-line selector-class-pattern */
.mobile-menu__toggle {
margin-bottom: 20px;
Expand Down
7 changes: 7 additions & 0 deletions app/styles/bingo.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ body.bingo {
border-radius: 12px;
text-align: center;
padding: 64px;
margin: 20px;
}

.illustration {
Expand Down Expand Up @@ -96,3 +97,9 @@ body.bingo {
.button-secondary:hover {
background-color: var(--secondary-hover-color);
}

@media (width <= 665px) {
.contribute-modal {
width: calc(100vw - 40px);
}
}
3 changes: 1 addition & 2 deletions app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{{page-title "DEI Bingo"}}

<EpmModalContainer />

{{#if (media 'isDesktop')}}
<div class="navbar">
<img src="logo.svg" alt="4 abstract people">
Expand Down Expand Up @@ -38,3 +36,4 @@
</MobileMenuWrapper>
{{/if}}

<EpmModalContainer />

0 comments on commit 3e1b709

Please sign in to comment.