File tree Expand file tree Collapse file tree
Projects/Education Website Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -280,6 +280,7 @@ header {
280280/* ========================================== FAQs ========================================== */
281281
282282.faqs {
283+
283284 background : var (--color-bg1 );
284285 box-shadow : inset 0 0 3rem rgba (0 , 0 , 0 , 0.5 );
285286}
@@ -295,7 +296,7 @@ header {
295296 display : flex;
296297 align-items : center;
297298 gap : 1.4rem ;
298- height : fit-content ;
299+ height : 100 px ;
299300 background : var (--color-primary );
300301 cursor : pointer;
301302}
@@ -320,6 +321,10 @@ header {
320321}
321322
322323
324+ .faqheight {
325+ height : fit-content;
326+ }
327+
323328/* ========================================== TESTIMONIALS ========================================== */
324329
325330.testimonials__container {
Original file line number Diff line number Diff line change @@ -8,11 +8,13 @@ window.addEventListener('scroll', () => {
88
99// show/hide faq answer
1010
11+
1112const faqs = document . querySelectorAll ( ".faq" ) ;
1213
1314faqs . forEach ( faq => {
1415 faq . addEventListener ( "click" , ( ) => {
1516 faq . classList . toggle ( "open" ) ;
17+ faq . classList . toggle ( 'faqheight' )
1618
1719 // change icon
1820 const icon = faq . querySelector ( ".faq__icon i" ) ;
You can’t perform that action at this time.
0 commit comments