Skip to content

Commit

Permalink
Fix modal close trigger (bokub#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
bokub authored Oct 18, 2022
1 parent b2152c0 commit 3e9c9c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ <h1 class="my-0"><span>{</span> NoPaste <span>}</span></h1>
</div>
</div>
</footer>
<div id="description-modal" class="modal">
<div tabindex="-1" data-micromodal-close class="modal-overlay">
<div role="dialog" class="modal-content shadow-bottom p-3 m-3" data-micromodal-close>
<div id="description-modal" data-micromodal-close class="modal">
<div tabindex="-1" class="modal-overlay">
<div role="dialog" class="modal-content shadow-bottom p-3 m-3">
<h2 class="mt-0">What is NoPaste?</h2>

<span class="pink">NoPaste</span> is an open-source website similar to Pastebin where you can store any piece of code,
Expand Down Expand Up @@ -152,9 +152,9 @@ <h3>Because of this design:</h3>
</div>
</div>
</div>
<div id="error-modal" class="modal">
<div tabindex="-1" data-micromodal-close class="modal-overlay">
<div role="dialog" class="modal-content shadow-bottom p-3 m-3" data-micromodal-close>
<div id="error-modal" class="modal" data-micromodal-close>
<div tabindex="-1" class="modal-overlay">
<div role="dialog" class="modal-content shadow-bottom p-3 m-3">
NoPaste cannot decompress the URL<br /><br />
It's possible that you clicked on an invalid link<br /><br />
Sorry about that
Expand Down
2 changes: 2 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ h1 {
max-height: 100vh;
overflow-y: auto;
box-sizing: border-box;
cursor: initial;
}
.modal-content .additional-info {
opacity: 0.75;
Expand All @@ -118,6 +119,7 @@ h1 {
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}

/* Form elements */
Expand Down

0 comments on commit 3e9c9c2

Please sign in to comment.