Skip to content

Commit

Permalink
Added drop down symbol for categories
Browse files Browse the repository at this point in the history
added
  • Loading branch information
Saimanjari777 committed Jun 7, 2024
1 parent 055fa8c commit 5946d7d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
27 changes: 27 additions & 0 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,33 @@ body {
cursor: pointer;
}

.categories > li a {
text-decoration: none;
color: black;
display: inline-block;
padding-right: 20px; /* Adjust padding to make room for the icon */
position: relative;
}

.categories > li a::after {
content: '';
position: absolute;
right: 0; /* Adjust the position as needed */
top: 50%;
transform: translateY(-50%);
width: 20px;
height: 20px;
background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="2rem" height="2rem" viewBox="0 0 24 24"><path fill="currentcolor" d="m12 13.171l4.95-4.95l1.414 1.415L12 16L5.636 9.636L7.05 8.222z"/></svg>');
background-size: contain;
background-repeat: no-repeat;
transition: transform 0.3s ease; /* Smooth rotation */
pointer-events: none; /* Prevent interaction with the symbol */
}

.categories > li:hover a::after {
transform: translateY(-50%) rotate(180deg); /* Rotate the symbol */
}

.categories li a {
text-decoration: none;
}
Expand Down
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,6 @@ <h2 class="accordion-header" id="heading5">
v.src = "https://cdn.voiceflow.com/widget/bundle.mjs"; v.type = "text/javascript"; s.parentNode.insertBefore(v, s);
})(document, 'script');
</script>

<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/homeHeader.js"></script>
<script src="js/categoryjs.js"></script>
Expand Down

0 comments on commit 5946d7d

Please sign in to comment.