Skip to content

Commit

Permalink
refactor(simple modals): use new modal system
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Mar 22, 2024
1 parent 234642a commit 7f427a9
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 407 deletions.
6 changes: 3 additions & 3 deletions frontend/src/html/popups.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
</div>
</dialog>

<div id="simplePopupWrapper" class="popupWrapper hidden">
<div id="simplePopup" popupId=""></div>
</div>
<dialog id="simpleModal" class="modalWrapper hidden">
<form class="modal"></form>
</dialog>

<dialog id="cookiesModal" class="modalWrapper hidden">
<div class="extensionMessage">
Expand Down
19 changes: 8 additions & 11 deletions frontend/src/styles/popups.scss
Original file line number Diff line number Diff line change
Expand Up @@ -448,23 +448,15 @@
}
}

#simplePopupWrapper {
#simplePopup {
background: var(--bg-color);
border-radius: var(--roundness);
padding: 2rem;
width: 400px;
#simpleModal {
.modal {
max-width: 500px;

form {
display: grid;
gap: 1rem;
}

.title {
font-size: 1.5rem;
color: var(--sub-color);
}

.inputs {
display: grid;
gap: 1rem;
Expand All @@ -475,6 +467,11 @@
color: var(--text-color);
}
}
& [data-popup-id="viewApeKey"] {
textarea:disabled {
opacity: 1;
}
}
}

#mobileTestConfigModal {
Expand Down
4 changes: 0 additions & 4 deletions frontend/src/styles/z_media-queries.scss
Original file line number Diff line number Diff line change
Expand Up @@ -777,10 +777,6 @@
grid-template-columns: 1fr;
}

#simplePopupWrapper #simplePopup {
width: 90vw;
}

.pageSettings {
.section[data-config-name="customBackgroundFilter"] .groups .group {
grid-template-columns: auto 1fr;
Expand Down
Loading

0 comments on commit 7f427a9

Please sign in to comment.