Skip to content

Commit

Permalink
FAQs hover addition PR( #168 )
Browse files Browse the repository at this point in the history
Added the feature of see faq answer on hover
  • Loading branch information
4darsh-Dev authored Jul 29, 2024
2 parents 11f266a + e9fa456 commit 6d89b5e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion django-web-app/static/css/faqs.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
letter-spacing: 0.7px;
line-height: 24px;
}

.faq:hover{
box-shadow: 0 0 25px gray;

}
.faq-question {
padding: 0.5rem;
display: flex;
Expand All @@ -54,10 +59,23 @@

.faq-answer {
border-radius: 10px;
padding: 0px 1.5rem;
max-height: 0;
display: none;
overflow: hidden;
transition: max-height 0.3s ease-in-out;
transition: all 1s ease-in-out;
}

.faq:hover .faq-answer{
padding: 1.5rem;
max-height: 200px;
}

.faq:hover .faq-button{
transform: rotate(0deg);
}


.faq-ques-text {
text-align: center;
}
Expand Down

0 comments on commit 6d89b5e

Please sign in to comment.