Skip to content

Commit

Permalink
refactor: Use class for targeting
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Nov 18, 2022
1 parent 224340c commit b07c3ff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/fibr/static/styles/main.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions cmd/fibr/static/styles/upload.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#upload-modal:target,
#upload-success:target {
.upload-modal:target,
.upload-success:target {
display: flex;
z-index: 5;
}

#upload-modal:target ~ .content,
#upload-success:target ~ .content {
.upload-modal:target ~ .content,
.upload-success:target ~ .content {
pointer-events: none;
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/fibr/templates/upload-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</script>


<div id="upload-modal" class="modal">
<div id="upload-modal" class="modal upload-modal">
<div class="modal-content">
<h2 class="flex flex-center header no-margin">
<span>Upload files</span>
Expand Down Expand Up @@ -35,7 +35,7 @@ <h2 class="flex flex-center header no-margin">
</div>
</div>

<div id="upload-success" class="modal">
<div id="upload-success" class="modal upload-success">
<div class="modal-content">
<h2 class="header success padding">Upload success ✓</h2>

Expand Down

0 comments on commit b07c3ff

Please sign in to comment.