Skip to content

Commit

Permalink
add css for selected filter
Browse files Browse the repository at this point in the history
  • Loading branch information
yashrajbharti committed Apr 28, 2024
1 parent 26f5929 commit 3b8eb23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/apply-filters.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const applyFilters = () => {
} else {
if (e.target.hasAttribute("name")) {
applyLensFilter(e.target.value);
// checkbox.checked = false;
// checkbox.checked = false; this was for the no cancel button approach
}
}
});
Expand Down
8 changes: 7 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ video.flip {
justify-content: center;
flex-direction: column;
border: 1.5px solid transparent;
background-color: black;
background-color: rgba(0, 0, 0, 0.742);
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
border-radius: 48px;
overflow: hidden;
cursor: pointer;
Expand Down Expand Up @@ -106,6 +108,10 @@ video.flip {
cursor: pointer;
}

.lenses:has(.filters #filter-toggle:checked) {
translate: 0 -50px;
}

.lenses:has(.filters #filter-toggle:not(:checked)) .cancel {
display: none;
}
Expand Down

0 comments on commit 3b8eb23

Please sign in to comment.