Skip to content

Commit

Permalink
Increase size of modal on smaller screens
Browse files Browse the repository at this point in the history
  • Loading branch information
norbye committed Feb 7, 2023
1 parent 3df6eb1 commit 1bd7ae2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
10 changes: 7 additions & 3 deletions app/components/Modal/Modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ html[data-theme='dark'] .backdrop {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 425px;
width: 100%;
max-height: calc(100vh - 300px);
width: 475px;
max-width: 100%;
max-height: calc(100vh - 100px);
padding: 35px;
background: var(--color-white);
outline: none;
Expand All @@ -30,6 +30,10 @@ html[data-theme='dark'] .backdrop {
box-shadow: 0 2px 8px 2px rgba(104, 112, 118, 7%),
0 2px 4px -1px rgba(104, 112, 118, 4%);
border-radius: 1rem;

@media (--tall-viewport) {
max-height: calc(100vh - 300px);
}
}

.closeButton {
Expand Down
6 changes: 5 additions & 1 deletion app/components/UserAttendance/AttendanceModal.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
.modal {
height: calc(100vh - 400px);
height: calc(100vh - 100px - 70px);

@media (--tall-viewport) {
max-height: calc(100vh - 300px - 70px);
}
}

.search {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/photos/components/GalleryPictureModal.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.content {
padding: 0;
max-width: 1100px;
width: 1100px;
max-height: calc(100vh - 100px);

@media (max-width: 800px) {
Expand Down
1 change: 1 addition & 0 deletions app/styles/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@custom-media --medium-viewport (max-width: 45em);
@custom-media --mobile-device (max-width: 992px);
@custom-media --lego-max-width (max-width: 1100px);
@custom-media --tall-viewport (min-height: 900px);

:root {
--lego-background-color: #f8f9fa;
Expand Down

0 comments on commit 1bd7ae2

Please sign in to comment.