Login
Dashboard
Saved Stitches
Stitch Catalog
Demo
All
E-Commerce
All
(4)
Collections
(3)
Featured Products
(0)
Hero
(0)
Pop Up Modals
(0)
Promotional CTA
(1)
Store Products
(0)
Buttons
All
(1)
Non Standard
(0)
Squared
(1)
Navigation
All
(2)
+ Dropdown
(1)
+ Top Bar
(0)
Standard
(1)
Top Bar + Dropdown
(0)
Hero Section
All
(6)
Centered
(2)
Grid
(0)
Landing + Services
(3)
Left Aligned
(0)
Right Aligned
(1)
Services
All
(16)
3 Card
(4)
4 Card
(4)
5 Card
(1)
6 Card
(2)
8 Card
(1)
Combo
(2)
Side By Side
(2)
Content Flair
All
(3)
Button Boxes
(1)
Content Groups
(1)
Lists
(1)
Quotes
(0)
Stats
(0)
Toppers
(0)
Side By Side
All
(28)
Non Standard
(1)
Reverse
(8)
Reverse Pair
(5)
Reverse Triplet
(3)
Standard
(11)
Gallery
All
(7)
4 Images
(1)
5 Images
(1)
6 Images
(1)
8 Images
(2)
Full Width
(0)
Mosaic
(0)
Multi Gallery
(1)
Simple
(1)
Meet Our Team
All
(5)
2 Card
(0)
3 Card
(1)
4 Card
(2)
5 Card
(1)
6 Card
(0)
7 Card
(0)
8 Card
(1)
Combo
(0)
Steps
All
(4)
3 Steps
(2)
4 Steps
(2)
5 Steps
(0)
Stats
All
(5)
3 Stats
(0)
4 Stats
(3)
Combos
(1)
Timeline
(1)
Pricing
All
(7)
2 Card
(0)
3 Card
(3)
Menu's
(2)
w/ Toggles
(2)
FAQ
All
(4)
Multi FAQ's
(0)
Side By Side
(2)
Standard
(2)
Why Choose Us
All
(11)
3 Card
(1)
4 Card
(1)
6 Card
(0)
Side By Side
(9)
Quotes
All
(0)
Single Quotes
(0)
MISC
All
(4)
Careers
(0)
Content
(0)
Locations
(1)
Logos
(1)
Maps
(0)
Popups
(0)
Tables
(1)
Video
(1)
Reviews
All
(14)
2 Card
(4)
3 Card
(3)
4 Card
(0)
8 Card
(0)
Full Width
(0)
Single Review
(7)
Forms & Contact
All
(7)
Contact Forms
(7)
Contact Info
(0)
Subscribe
(0)
Events
All
(3)
3 Card
(1)
4 Card
(0)
Side By Side
(2)
Blog
All
(3)
Recent Posts
(3)
Call To Action
All
(4)
Combos
(1)
Contained
(0)
Full Width
(2)
Subscribe Forms
(1)
Footer
All
(6)
2 Column
(0)
3 Column
(1)
4 Column
(2)
5 Column
(1)
Combo
(0)
Simple
(2)
Dark Mode
All
(1)
Standard
(1)
Interior Pages
All
(3)
About Page
(0)
Contact Page
(0)
Content Page
(1)
FAQ Page
(1)
Menus
(0)
Page Banners
(1)
Standard
HTML
JS
CSS
Core Styles
Choose your preferred CSS
CSS
LESS
SCSS
CSS Dark
LESS Dark
SCSS Dark
Choose your preferred Core Styles CSS
CSS
LESS
SCSS
-
Dark Mode
+
Dark Mode
Copy
to Clipboard
<!-- ============================================ --> <!-- FAQ --> <!-- ============================================ --> <section id="faq-1741"> <div class="cs-container"> <div class="cs-content"> <span class="cs-topper">Frequently Asked Questions</span> <h2 class="cs-title">A Healthy Mind in a Healthy Body</h2> <a class="cs-button-solid"> Ask Another Questions </a> </div> <div class="cs-flex-group"> <ul class="cs-faq-group"> <!-- Active class added as default --> <li class="cs-faq-item active"> <button class="cs-button"> <span class="cs-button-text"> How do I place an order? </span> </button> <p class="cs-item-text"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What payment methods do you accept? </span> </button> <p class="cs-item-text"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I track my order? </span> </button> <p class="cs-item-text"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> What is your return policy? </span> </button> <p class="cs-item-text"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> Do you offer international shipping? </span> </button> <p class="cs-item-text"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> <li class="cs-faq-item"> <button class="cs-button"> <span class="cs-button-text"> How can I contact customer support? </span> </button> <p class="cs-item-text"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sit convallis nunc neque, bibendum pulvinar vitae commodo velit. Proin diam tortor sed malesuada nunc, habitant. Dignissim ipsum porta enim, magna urna, quam. </p> </li> </ul> </div> </div> <div class="cs-gallery"> <!--Picture 1--> <picture class="cs-picture"> <source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/gym-faq-1.png"> <source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/gym-faq-1.png"> <img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/gym-faq-1.png" alt="gallery" width="272" height="320"> </picture> <!--Picture 2--> <picture class="cs-picture"> <source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/gym-faq-2.png"> <source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/gym-faq-2.png"> <img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/gym-faq-2.png" alt="gallery" width="272" height="320"> </picture> <!--Picture 3--> <picture class="cs-picture"> <source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/gym-faq-3.png"> <source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/gym-faq-3.png"> <img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/gym-faq-3.png" alt="gallery" width="272" height="320"> </picture> <!--Picture 4--> <picture class="cs-picture"> <source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/gym-faq-4.png"> <source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/gym-faq-4.png"> <img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/gym-faq-4.png" alt="gallery" width="272" height="320"> </picture> <!--Picture 5--> <picture class="cs-picture"> <source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/gym-faq-5.png"> <source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/gym-faq-5.png"> <img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/gym-faq-5.png" alt="gallery" width="272" height="320"> </picture> </div> </section>
const faqItems = Array.from(document.querySelectorAll('.cs-faq-item')); for (const item of faqItems) { const onClick = () => { item.classList.toggle('active'); }; item.addEventListener('click', onClick); }
/*-- -------------------------- --> <--- FAQ --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #faq-1741 { padding: var(--sectionPadding); position: relative; } #faq-1741 .cs-container { width: 100%; /* changes to 1280px at desktop */ max-width: 36.5rem; margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 6vw, 4rem); } #faq-1741 .cs-content { /* set text align to left if content needs to be left aligned */ text-align: center; width: 100%; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: center; } #faq-1741 .cs-title { max-width: 15ch; margin: 0 0 2rem; } #faq-1741 .cs-button-solid { font-size: 1rem; font-weight: 700; /* 46px - 56px */ line-height: clamp(2.875rem, 5.5vw, 3.5rem); text-align: center; text-decoration: none; min-width: 9.375rem; margin: 0; /* prevents padding from adding to the width */ box-sizing: border-box; padding: 0 1.5rem; background-color: var(--primary); color: #fff; display: inline-block; position: relative; z-index: 1; } #faq-1741 .cs-button-solid:before { content: ""; width: 0%; height: 100%; background: #000; opacity: 1; border-radius: 0.25rem; position: absolute; top: 0; left: 0; z-index: -1; transition: width 0.3s; } #faq-1741 .cs-button-solid:hover:before { width: 100%; } #faq-1741 .cs-faq-group { width: 100%; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.75rem; } #faq-1741 .cs-faq-item { list-style: none; width: 100%; /* clips all corners of the button that overlap the rounded border */ overflow: hidden; transition: border-bottom 0.3s; } #faq-1741 .cs-faq-item.active .cs-button { background-color: var(--primary); color: var(--bodyTextColorWhite); } #faq-1741 .cs-faq-item.active .cs-button:before { background-color: var(--bodyTextColorWhite); transform: rotate(315deg); } #faq-1741 .cs-faq-item.active .cs-button:after { background-color: var(--bodyTextColorWhite); transform: rotate(-315deg); } #faq-1741 .cs-faq-item.active .cs-item-text { height: auto; /* 16px - 24px */ padding: 1rem clamp(1rem, 2vw, 1.5rem); opacity: 1; border: 1px solid #e8e8e8; } #faq-1741 .cs-button { /* 16px - 20px */ font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: bold; line-height: 1.2em; text-align: left; width: 100%; padding: 1rem; padding-left: 3.25rem; background-color: transparent; color: var(--headerColor); border: 1px solid #e8e8e8; display: block; position: relative; transition: background-color 0.3s, color 0.3s; } #faq-1741 .cs-button:hover { cursor: pointer; } #faq-1741 .cs-button:before { /* left line */ content: ""; width: 0.5rem; height: 0.125rem; background-color: var(--headerColor); opacity: 1; display: block; position: absolute; top: 45%; left: 1.125rem; transform: rotate(45deg); transition: transform 0.5s; /* animate the transform from the left side of the x axis, and the center of the y */ transform-origin: left center; } #faq-1741 .cs-button:after { /* right line */ content: ""; width: 0.5rem; height: 0.125rem; background-color: var(--headerColor); opacity: 1; display: block; position: absolute; top: 45%; left: 1.3125rem; transform: rotate(-45deg); transition: transform 0.5s; /* animate the transform from the right side of the x axis, and the center of the y */ transform-origin: right center; } #faq-1741 .cs-item-text { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); line-height: 1.5em; height: 0; margin: 0; /* clips the text so it doesn't show up */ overflow: hidden; color: var(--bodyTextColor); opacity: 0; transition: opacity 0.3s, padding-bottom 0.3s; } #faq-1741 .cs-gallery { width: 100%; /* changes to 1720 at tablet */ max-width: 36.5rem; margin: clamp(3rem, 6vw, 4rem) auto 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); /* 16px - 20px */ gap: clamp(1rem, 1.5vw, 1.25rem); } #faq-1741 .cs-picture { /* 210px - 400px */ min-height: clamp(13.125rem, 27vw, 25rem); display: block; grid-column: span 5; grid-row: span 1; position: relative; } #faq-1741 .cs-picture img { width: 100%; height: 100%; /* makes it act like a background image */ object-fit: cover; position: absolute; top: 0; left: 0; } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #faq-1741 .cs-gallery { max-width: 107.5rem; } #faq-1741 .cs-picture { grid-column: span 1; } } /* Desktop - 1024px */ @media only screen and (min-width: 64rem) { #faq-1741 .cs-container { max-width: 80rem; flex-direction: row; justify-content: space-between; align-items: stretch; } #faq-1741 .cs-content { text-align: left; width: 40%; align-items: flex-start; /* prevents flexbox from squishing it */ flex: none; } #faq-1741 .cs-gallery { grid-template-columns: repeat(5, 1fr); } #faq-1741 .cs-picture { grid-column: span 1; } #faq-1741 .cs-picture:nth-of-type(4), #faq-1741 .cs-picture:nth-of-type(5) { grid-column: span 1; } }
/*-- -------------------------- --> <--- FAQ --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #faq-1741 { padding: var(--sectionPadding); position: relative; } #faq-1741 .cs-container { width: 100%; /* changes to 1280px at desktop */ max-width: 36.5rem; margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 6vw, 4rem); } #faq-1741 .cs-content { /* set text align to left if content needs to be left aligned */ text-align: center; width: 100%; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: center; } #faq-1741 .cs-title { max-width: 15ch; margin: 0 0 2rem; } #faq-1741 .cs-button-solid { font-size: 1rem; font-weight: 700; /* 46px - 56px */ line-height: clamp(2.875rem, 5.5vw, 3.5rem); text-align: center; text-decoration: none; min-width: 9.375rem; margin: 0; /* prevents padding from adding to the width */ box-sizing: border-box; padding: 0 1.5rem; background-color: var(--primary); color: #fff; display: inline-block; position: relative; z-index: 1; } #faq-1741 .cs-button-solid:before { content: ""; width: 0%; height: 100%; background: #000; opacity: 1; border-radius: 0.25rem; position: absolute; top: 0; left: 0; z-index: -1; transition: width 0.3s; } #faq-1741 .cs-button-solid:hover:before { width: 100%; } #faq-1741 .cs-faq-group { width: 100%; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.75rem; } #faq-1741 .cs-faq-item { list-style: none; width: 100%; /* clips all corners of the button that overlap the rounded border */ overflow: hidden; transition: border-bottom 0.3s; } #faq-1741 .cs-faq-item.active .cs-button { background-color: var(--primary); color: var(--bodyTextColorWhite); } #faq-1741 .cs-faq-item.active .cs-button:before { background-color: var(--bodyTextColorWhite); transform: rotate(315deg); } #faq-1741 .cs-faq-item.active .cs-button:after { background-color: var(--bodyTextColorWhite); transform: rotate(-315deg); } #faq-1741 .cs-faq-item.active .cs-item-text { height: auto; /* 16px - 24px */ padding: 1rem clamp(1rem, 2vw, 1.5rem); opacity: 1; border: 1px solid #e8e8e8; } #faq-1741 .cs-button { /* 16px - 20px */ font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: bold; line-height: 1.2em; text-align: left; width: 100%; padding: 1rem; padding-left: 3.25rem; background-color: transparent; color: var(--headerColor); border: 1px solid #e8e8e8; display: block; position: relative; transition: background-color 0.3s, color 0.3s; } #faq-1741 .cs-button:hover { cursor: pointer; } #faq-1741 .cs-button:before { /* left line */ content: ""; width: 0.5rem; height: 0.125rem; background-color: var(--headerColor); opacity: 1; display: block; position: absolute; top: 45%; left: 1.125rem; transform: rotate(45deg); transition: transform 0.5s; /* animate the transform from the left side of the x axis, and the center of the y */ transform-origin: left center; } #faq-1741 .cs-button:after { /* right line */ content: ""; width: 0.5rem; height: 0.125rem; background-color: var(--headerColor); opacity: 1; display: block; position: absolute; top: 45%; left: 1.3125rem; transform: rotate(-45deg); transition: transform 0.5s; /* animate the transform from the right side of the x axis, and the center of the y */ transform-origin: right center; } #faq-1741 .cs-item-text { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); line-height: 1.5em; height: 0; margin: 0; /* clips the text so it doesn't show up */ overflow: hidden; color: var(--bodyTextColor); opacity: 0; transition: opacity 0.3s, padding-bottom 0.3s; } #faq-1741 .cs-gallery { width: 100%; /* changes to 1720 at tablet */ max-width: 36.5rem; margin: clamp(3rem, 6vw, 4rem) auto 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); /* 16px - 20px */ gap: clamp(1rem, 1.5vw, 1.25rem); } #faq-1741 .cs-picture { /* 210px - 400px */ min-height: clamp(13.125rem, 27vw, 25rem); display: block; grid-column: span 5; grid-row: span 1; position: relative; } #faq-1741 .cs-picture img { width: 100%; height: 100%; /* makes it act like a background image */ object-fit: cover; position: absolute; top: 0; left: 0; } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #faq-1741 .cs-gallery { max-width: 107.5rem; } #faq-1741 .cs-picture { grid-column: span 1; } } /* Desktop - 1024px */ @media only screen and (min-width: 64rem) { #faq-1741 .cs-container { max-width: 80rem; flex-direction: row; justify-content: space-between; align-items: stretch; } #faq-1741 .cs-content { text-align: left; width: 40%; align-items: flex-start; /* prevents flexbox from squishing it */ flex: none; } #faq-1741 .cs-gallery { grid-template-columns: repeat(5, 1fr); } #faq-1741 .cs-picture { grid-column: span 1; } #faq-1741 .cs-picture:nth-of-type(4), #faq-1741 .cs-picture:nth-of-type(5) { grid-column: span 1; } } /* Dark Mode */ @media only screen and (min-width: 0rem) { body.dark-mode #faq-1741 .cs-title, body.dark-mode #faq-1741 .cs-item-text { color: var(--bodyTextColorWhite); } body.dark-mode #faq-1741 .cs-faq-item.active .cs-button { background-color: var(--primary); color: var(--bodyTextColorWhite); } body.dark-mode #faq-1741 .cs-faq-item.active .cs-button:before, body.dark-mode #faq-1741 .cs-faq-item.active .cs-button:after { background-color: var(--bodyTextColorWhite); } body.dark-mode #faq-1741 .cs-faq-item.active .cs-item-text { /* 20px - 24px */ padding-top: clamp(1.25rem, 1.3vw, 1.5rem); border-color: var(--accent); } body.dark-mode #faq-1741 .cs-button { color: var(--bodyTextColorWhite); border-color: var(--accent); } body.dark-mode #faq-1741 .cs-button:before, body.dark-mode #faq-1741 .cs-button:after { background-color: var(--bodyTextColorWhite); } }
/*-- -------------------------- --> <--- FAQ --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #faq-1741 { padding: var(--sectionPadding); position: relative; .cs-container { width: 100%; /* changes to 1280px at desktop */ max-width: (584/16rem); margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 6vw, 4rem); } .cs-content { /* set text align to left if content needs to be left aligned */ text-align: center; width: 100%; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: center; } .cs-title { max-width: 15ch; margin: 0 0 (32/16rem); } .cs-button-solid { font-size: (16/16rem); font-weight: 700; /* 46px - 56px */ line-height: clamp(2.875rem, 5.5vw, 3.5rem); text-align: center; text-decoration: none; min-width: (150/16rem); margin: 0; /* prevents padding from adding to the width */ box-sizing: border-box; padding: 0 (24/16rem); background-color: var(--primary); color: #fff; display: inline-block; position: relative; z-index: 1; &:before { content: ""; width: 0%; height: 100%; background: #000; opacity: 1; border-radius: (4/16rem); position: absolute; top: 0; left: 0; z-index: -1; transition: width 0.3s; } &:hover { &:before { width: 100%; } } } .cs-faq-group { width: 100%; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: (12/16rem); } .cs-faq-item { list-style: none; width: 100%; /* clips all corners of the button that overlap the rounded border */ overflow: hidden; transition: border-bottom 0.3s; &.active { .cs-button { background-color: var(--primary); color: var(--bodyTextColorWhite); &:before { background-color: var(--bodyTextColorWhite); transform: rotate(315deg); } &:after { background-color: var(--bodyTextColorWhite); transform: rotate(-315deg); } } .cs-item-text { height: auto; /* 16px - 24px */ padding: (16/16rem) clamp(1rem, 2vw, 1.5rem); opacity: 1; border: 1px solid #e8e8e8; } } } .cs-button { /* 16px - 20px */ font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: bold; line-height: 1.2em; text-align: left; width: 100%; padding: (16/16rem); padding-left: (52/16rem); background-color: transparent; color: var(--headerColor); border: 1px solid #e8e8e8; display: block; position: relative; transition: background-color 0.3s, color 0.3s; &:hover { cursor: pointer; } &:before { /* left line */ content: ""; width: (8/16rem); height: (2/16rem); background-color: var(--headerColor); opacity: 1; display: block; position: absolute; top: 45%; left: (18/16rem); transform: rotate(45deg); transition: transform 0.5s; /* animate the transform from the left side of the x axis, and the center of the y */ transform-origin: left center; } &:after { /* right line */ content: ""; width: (8/16rem); height: (2/16rem); background-color: var(--headerColor); opacity: 1; display: block; position: absolute; top: 45%; left: (21/16rem); transform: rotate(-45deg); transition: transform 0.5s; /* animate the transform from the right side of the x axis, and the center of the y */ transform-origin: right center; } } .cs-item-text { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); line-height: 1.5em; height: 0; margin: 0; /* clips the text so it doesn't show up */ overflow: hidden; color: var(--bodyTextColor); opacity: 0; transition: opacity 0.3s, padding-bottom 0.3s; } .cs-gallery { width: 100%; /* changes to 1720 at tablet */ max-width: (584/16rem); margin: clamp(3rem, 6vw, 4rem) auto 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); /* 16px - 20px */ gap: clamp(1rem, 1.5vw, 1.25rem); } .cs-picture { /* 210px - 400px */ min-height: clamp(13.125rem, 27vw, 25rem); display: block; grid-column: span 5; grid-row: span 1; position: relative; img { width: 100%; height: 100%; /* makes it act like a background image */ object-fit: cover; position: absolute; top: 0; left: 0; } } } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #faq-1741 { .cs-gallery { max-width: (1720/16rem); } .cs-picture { grid-column: span 1; } } } /* Desktop - 1024px */ @media only screen and (min-width: 64rem) { #faq-1741 { .cs-container { max-width: (1280/16rem); flex-direction: row; justify-content: space-between; align-items: stretch; } .cs-content { text-align: left; width: 40%; align-items: flex-start; /* prevents flexbox from squishing it */ flex: none; } .cs-gallery { grid-template-columns: repeat(5, 1fr); } .cs-picture { grid-column: span 1; &:nth-of-type(4), &:nth-of-type(5) { grid-column: span 1; } } } }
/*-- -------------------------- --> <--- FAQ --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #faq-1741 { padding: var(--sectionPadding); position: relative; .cs-container { width: 100%; /* changes to 1280px at desktop */ max-width: (584/16rem); margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 6vw, 4rem); } .cs-content { /* set text align to left if content needs to be left aligned */ text-align: center; width: 100%; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: center; } .cs-title { max-width: 15ch; margin: 0 0 (32/16rem); } .cs-button-solid { font-size: (16/16rem); font-weight: 700; /* 46px - 56px */ line-height: clamp(2.875rem, 5.5vw, 3.5rem); text-align: center; text-decoration: none; min-width: (150/16rem); margin: 0; /* prevents padding from adding to the width */ box-sizing: border-box; padding: 0 (24/16rem); background-color: var(--primary); color: #fff; display: inline-block; position: relative; z-index: 1; &:before { content: ""; width: 0%; height: 100%; background: #000; opacity: 1; border-radius: (4/16rem); position: absolute; top: 0; left: 0; z-index: -1; transition: width 0.3s; } &:hover { &:before { width: 100%; } } } .cs-faq-group { width: 100%; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: (12/16rem); } .cs-faq-item { list-style: none; width: 100%; /* clips all corners of the button that overlap the rounded border */ overflow: hidden; transition: border-bottom 0.3s; &.active { .cs-button { background-color: var(--primary); color: var(--bodyTextColorWhite); &:before { background-color: var(--bodyTextColorWhite); transform: rotate(315deg); } &:after { background-color: var(--bodyTextColorWhite); transform: rotate(-315deg); } } .cs-item-text { height: auto; /* 16px - 24px */ padding: (16/16rem) clamp(1rem, 2vw, 1.5rem); opacity: 1; border: 1px solid #e8e8e8; } } } .cs-button { /* 16px - 20px */ font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: bold; line-height: 1.2em; text-align: left; width: 100%; padding: (16/16rem); padding-left: (52/16rem); background-color: transparent; color: var(--headerColor); border: 1px solid #e8e8e8; display: block; position: relative; transition: background-color 0.3s, color 0.3s; &:hover { cursor: pointer; } &:before { /* left line */ content: ""; width: (8/16rem); height: (2/16rem); background-color: var(--headerColor); opacity: 1; display: block; position: absolute; top: 45%; left: (18/16rem); transform: rotate(45deg); transition: transform 0.5s; /* animate the transform from the left side of the x axis, and the center of the y */ transform-origin: left center; } &:after { /* right line */ content: ""; width: (8/16rem); height: (2/16rem); background-color: var(--headerColor); opacity: 1; display: block; position: absolute; top: 45%; left: (21/16rem); transform: rotate(-45deg); transition: transform 0.5s; /* animate the transform from the right side of the x axis, and the center of the y */ transform-origin: right center; } } .cs-item-text { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); line-height: 1.5em; height: 0; margin: 0; /* clips the text so it doesn't show up */ overflow: hidden; color: var(--bodyTextColor); opacity: 0; transition: opacity 0.3s, padding-bottom 0.3s; } .cs-gallery { width: 100%; /* changes to 1720 at tablet */ max-width: (584/16rem); margin: clamp(3rem, 6vw, 4rem) auto 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); /* 16px - 20px */ gap: clamp(1rem, 1.5vw, 1.25rem); } .cs-picture { /* 210px - 400px */ min-height: clamp(13.125rem, 27vw, 25rem); display: block; grid-column: span 5; grid-row: span 1; position: relative; img { width: 100%; height: 100%; /* makes it act like a background image */ object-fit: cover; position: absolute; top: 0; left: 0; } } } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #faq-1741 { .cs-gallery { max-width: (1720/16rem); } .cs-picture { grid-column: span 1; } } } /* Desktop - 1024px */ @media only screen and (min-width: 64rem) { #faq-1741 { .cs-container { max-width: (1280/16rem); flex-direction: row; justify-content: space-between; align-items: stretch; } .cs-content { text-align: left; width: 40%; align-items: flex-start; /* prevents flexbox from squishing it */ flex: none; } .cs-gallery { grid-template-columns: repeat(5, 1fr); } .cs-picture { grid-column: span 1; &:nth-of-type(4), &:nth-of-type(5) { grid-column: span 1; } } } } /* Dark Mode */ @media only screen and (min-width: 0rem) { body.dark-mode { #faq-1741 { .cs-title, .cs-item-text { color: var(--bodyTextColorWhite); } .cs-faq-item { &.active { .cs-button { background-color: var(--primary); color: var(--bodyTextColorWhite); &:before, &:after { background-color: var(--bodyTextColorWhite); } } .cs-item-text { /* 20px - 24px */ padding-top: clamp(1.25rem, 1.3vw, 1.5rem); border-color: var(--accent); } } } .cs-button { color: var(--bodyTextColorWhite); border-color: var(--accent); &:before, &:after { background-color: var(--bodyTextColorWhite); } } } } }
/*-- -------------------------- --> <--- FAQ --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #faq-1741 { padding: var(--sectionPadding); position: relative; .cs-container { width: 100%; /* changes to 1280px at desktop */ max-width: calc(584/16 * 1rem); margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 6vw, 4rem); } .cs-content { /* set text align to left if content needs to be left aligned */ text-align: center; width: 100%; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: center; } .cs-title { max-width: 15ch; margin: 0 0 calc(32/16 * 1rem); } .cs-button-solid { font-size: calc(16/16 * 1rem); font-weight: 700; /* 46px - 56px */ line-height: clamp(2.875rem, 5.5vw, 3.5rem); text-align: center; text-decoration: none; min-width: calc(150/16 * 1rem); margin: 0; /* prevents padding from adding to the width */ box-sizing: border-box; padding: 0 calc(24/16 * 1rem); background-color: var(--primary); color: #fff; display: inline-block; position: relative; z-index: 1; &:before { content: ""; width: 0%; height: 100%; background: #000; opacity: 1; border-radius: calc(4/16 * 1rem); position: absolute; top: 0; left: 0; z-index: -1; transition: width 0.3s; } &:hover { &:before { width: 100%; } } } .cs-faq-group { width: 100%; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: calc(12/16 * 1rem); } .cs-faq-item { list-style: none; width: 100%; /* clips all corners of the button that overlap the rounded border */ overflow: hidden; transition: border-bottom 0.3s; &.active { .cs-button { background-color: var(--primary); color: var(--bodyTextColorWhite); &:before { background-color: var(--bodyTextColorWhite); transform: rotate(315deg); } &:after { background-color: var(--bodyTextColorWhite); transform: rotate(-315deg); } } .cs-item-text { height: auto; /* 16px - 24px */ padding: calc(16/16 * 1rem) clamp(1rem, 2vw, 1.5rem); opacity: 1; border: 1px solid #e8e8e8; } } } .cs-button { /* 16px - 20px */ font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: bold; line-height: 1.2em; text-align: left; width: 100%; padding: calc(16/16 * 1rem); padding-left: calc(52/16 * 1rem); background-color: transparent; color: var(--headerColor); border: 1px solid #e8e8e8; display: block; position: relative; transition: background-color 0.3s, color 0.3s; &:hover { cursor: pointer; } &:before { /* left line */ content: ""; width: calc(8/16 * 1rem); height: calc(2/16 * 1rem); background-color: var(--headerColor); opacity: 1; display: block; position: absolute; top: 45%; left: calc(18/16 * 1rem); transform: rotate(45deg); transition: transform 0.5s; /* animate the transform from the left side of the x axis, and the center of the y */ transform-origin: left center; } &:after { /* right line */ content: ""; width: calc(8/16 * 1rem); height: calc(2/16 * 1rem); background-color: var(--headerColor); opacity: 1; display: block; position: absolute; top: 45%; left: calc(21/16 * 1rem); transform: rotate(-45deg); transition: transform 0.5s; /* animate the transform from the right side of the x axis, and the center of the y */ transform-origin: right center; } } .cs-item-text { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); line-height: 1.5em; height: 0; margin: 0; /* clips the text so it doesn't show up */ overflow: hidden; color: var(--bodyTextColor); opacity: 0; transition: opacity 0.3s, padding-bottom 0.3s; } .cs-gallery { width: 100%; /* changes to 1720 at tablet */ max-width: calc(584/16 * 1rem); margin: clamp(3rem, 6vw, 4rem) auto 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); /* 16px - 20px */ gap: clamp(1rem, 1.5vw, 1.25rem); } .cs-picture { /* 210px - 400px */ min-height: clamp(13.125rem, 27vw, 25rem); display: block; grid-column: span 5; grid-row: span 1; position: relative; img { width: 100%; height: 100%; /* makes it act like a background image */ object-fit: cover; position: absolute; top: 0; left: 0; } } } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #faq-1741 { .cs-gallery { max-width: calc(1720/16 * 1rem); } .cs-picture { grid-column: span 1; } } } /* Desktop - 1024px */ @media only screen and (min-width: 64rem) { #faq-1741 { .cs-container { max-width: calc(1280/16 * 1rem); flex-direction: row; justify-content: space-between; align-items: stretch; } .cs-content { text-align: left; width: 40%; align-items: flex-start; /* prevents flexbox from squishing it */ flex: none; } .cs-gallery { grid-template-columns: repeat(5, 1fr); } .cs-picture { grid-column: span 1; &:nth-of-type(4), &:nth-of-type(5) { grid-column: span 1; } } } }
/*-- -------------------------- --> <--- FAQ --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #faq-1741 { padding: var(--sectionPadding); position: relative; .cs-container { width: 100%; /* changes to 1280px at desktop */ max-width: calc(584/16 * 1rem); margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 6vw, 4rem); } .cs-content { /* set text align to left if content needs to be left aligned */ text-align: center; width: 100%; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: center; } .cs-title { max-width: 15ch; margin: 0 0 calc(32/16 * 1rem); } .cs-button-solid { font-size: calc(16/16 * 1rem); font-weight: 700; /* 46px - 56px */ line-height: clamp(2.875rem, 5.5vw, 3.5rem); text-align: center; text-decoration: none; min-width: calc(150/16 * 1rem); margin: 0; /* prevents padding from adding to the width */ box-sizing: border-box; padding: 0 calc(24/16 * 1rem); background-color: var(--primary); color: #fff; display: inline-block; position: relative; z-index: 1; &:before { content: ""; width: 0%; height: 100%; background: #000; opacity: 1; border-radius: calc(4/16 * 1rem); position: absolute; top: 0; left: 0; z-index: -1; transition: width 0.3s; } &:hover { &:before { width: 100%; } } } .cs-faq-group { width: 100%; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: calc(12/16 * 1rem); } .cs-faq-item { list-style: none; width: 100%; /* clips all corners of the button that overlap the rounded border */ overflow: hidden; transition: border-bottom 0.3s; &.active { .cs-button { background-color: var(--primary); color: var(--bodyTextColorWhite); &:before { background-color: var(--bodyTextColorWhite); transform: rotate(315deg); } &:after { background-color: var(--bodyTextColorWhite); transform: rotate(-315deg); } } .cs-item-text { height: auto; /* 16px - 24px */ padding: calc(16/16 * 1rem) clamp(1rem, 2vw, 1.5rem); opacity: 1; border: 1px solid #e8e8e8; } } } .cs-button { /* 16px - 20px */ font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: bold; line-height: 1.2em; text-align: left; width: 100%; padding: calc(16/16 * 1rem); padding-left: calc(52/16 * 1rem); background-color: transparent; color: var(--headerColor); border: 1px solid #e8e8e8; display: block; position: relative; transition: background-color 0.3s, color 0.3s; &:hover { cursor: pointer; } &:before { /* left line */ content: ""; width: calc(8/16 * 1rem); height: calc(2/16 * 1rem); background-color: var(--headerColor); opacity: 1; display: block; position: absolute; top: 45%; left: calc(18/16 * 1rem); transform: rotate(45deg); transition: transform 0.5s; /* animate the transform from the left side of the x axis, and the center of the y */ transform-origin: left center; } &:after { /* right line */ content: ""; width: calc(8/16 * 1rem); height: calc(2/16 * 1rem); background-color: var(--headerColor); opacity: 1; display: block; position: absolute; top: 45%; left: calc(21/16 * 1rem); transform: rotate(-45deg); transition: transform 0.5s; /* animate the transform from the right side of the x axis, and the center of the y */ transform-origin: right center; } } .cs-item-text { /* 14px - 16px */ font-size: clamp(0.875rem, 1.5vw, 1rem); line-height: 1.5em; height: 0; margin: 0; /* clips the text so it doesn't show up */ overflow: hidden; color: var(--bodyTextColor); opacity: 0; transition: opacity 0.3s, padding-bottom 0.3s; } .cs-gallery { width: 100%; /* changes to 1720 at tablet */ max-width: calc(584/16 * 1rem); margin: clamp(3rem, 6vw, 4rem) auto 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); /* 16px - 20px */ gap: clamp(1rem, 1.5vw, 1.25rem); } .cs-picture { /* 210px - 400px */ min-height: clamp(13.125rem, 27vw, 25rem); display: block; grid-column: span 5; grid-row: span 1; position: relative; img { width: 100%; height: 100%; /* makes it act like a background image */ object-fit: cover; position: absolute; top: 0; left: 0; } } } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #faq-1741 { .cs-gallery { max-width: calc(1720/16 * 1rem); } .cs-picture { grid-column: span 1; } } } /* Desktop - 1024px */ @media only screen and (min-width: 64rem) { #faq-1741 { .cs-container { max-width: calc(1280/16 * 1rem); flex-direction: row; justify-content: space-between; align-items: stretch; } .cs-content { text-align: left; width: 40%; align-items: flex-start; /* prevents flexbox from squishing it */ flex: none; } .cs-gallery { grid-template-columns: repeat(5, 1fr); } .cs-picture { grid-column: span 1; &:nth-of-type(4), &:nth-of-type(5) { grid-column: span 1; } } } } /* Dark Mode */ @media only screen and (min-width: 0rem) { body.dark-mode { #faq-1741 { .cs-title, .cs-item-text { color: var(--bodyTextColorWhite); } .cs-faq-item { &.active { .cs-button { background-color: var(--primary); color: var(--bodyTextColorWhite); &:before, &:after { background-color: var(--bodyTextColorWhite); } } .cs-item-text { /* 20px - 24px */ padding-top: clamp(1.25rem, 1.3vw, 1.5rem); border-color: var(--accent); } } } .cs-button { color: var(--bodyTextColorWhite); border-color: var(--accent); &:before, &:after { background-color: var(--bodyTextColorWhite); } } } } }
:root { /* Add these styles to your global stylesheet, which is used across all site pages. You only need to do this once. All elements in the library derive their variables and base styles from this central sheet, simplifying site-wide edits. For instance, if you want to modify how your h2's appear across the site, you just update it once in the global styles, and the changes apply everywhere. */ --primary: #ff6a3e; --primaryLight: #ffba43; --secondary: #ffba43; --secondaryLight: #ffba43; --headerColor: #1a1a1a; --bodyTextColor: #4e4b66; --bodyTextColorWhite: #fafbfc; /* 13px - 16px */ --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem); /* 31px - 49px */ --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem); --bodyFontSize: 1rem; /* 60px - 100px top and bottom */ --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem; } body { margin: 0; padding: 0; } *, *:before, *:after { /* prevents padding from affecting height and width */ box-sizing: border-box; } .cs-topper { font-size: var(--topperFontSize); line-height: 1.2em; text-transform: uppercase; text-align: inherit; letter-spacing: .1em; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; display: block; } .cs-title { font-size: var(--headerFontSize); font-weight: 900; line-height: 1.2em; text-align: inherit; max-width: 43.75rem; margin: 0 0 1rem 0; color: var(--headerColor); position: relative; } .cs-text { font-size: var(--bodyFontSize); line-height: 1.5em; text-align: inherit; width: 100%; max-width: 40.625rem; margin: 0; color: var(--bodyTextColor); }
:root { /* Add these styles to your global stylesheet, which is used across all site pages. You only need to do this once. All elements in the library derive their variables and base styles from this central sheet, simplifying site-wide edits. For instance, if you want to modify how your h2's appear across the site, you just update it once in the global styles, and the changes apply everywhere. */ --primary: #ff6a3e; --primaryLight: #ffba43; --secondary: #ffba43; --secondaryLight: #ffba43; --headerColor: #1a1a1a; --bodyTextColor: #4e4b66; --bodyTextColorWhite: #fafbfc; /* 13px - 16px */ --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem); /* 31px - 49px */ --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem); --bodyFontSize: 1rem; /* 60px - 100px top and bottom */ --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem; } body { margin: 0; padding: 0; } *, *:before, *:after { /* prevents padding from affecting height and width */ box-sizing: border-box; } .cs-topper { font-size: var(--topperFontSize); line-height: 1.2em; text-transform: uppercase; text-align: inherit; letter-spacing: .1em; font-weight: 700; color: var(--primary); margin-bottom: (4/16rem); display: block; } .cs-title { font-size: var(--headerFontSize); font-weight: 900; line-height: 1.2em; text-align: inherit; max-width: (700/16rem); margin: 0 0 (16/16rem) 0; color: var(--headerColor); position: relative; } .cs-text { font-size: var(--bodyFontSize); line-height: 1.5em; text-align: inherit; width: 100%; max-width: (650/16rem); margin: 0; color: var(--bodyTextColor); }
:root { /* Add these styles to your global stylesheet, which is used across all site pages. You only need to do this once. All elements in the library derive their variables and base styles from this central sheet, simplifying site-wide edits. For instance, if you want to modify how your h2's appear across the site, you just update it once in the global styles, and the changes apply everywhere. */ --primary: #ff6a3e; --primaryLight: #ffba43; --secondary: #ffba43; --secondaryLight: #ffba43; --headerColor: #1a1a1a; --bodyTextColor: #4e4b66; --bodyTextColorWhite: #fafbfc; /* 13px - 16px */ --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem); /* 31px - 49px */ --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem); --bodyFontSize: 1rem; /* 60px - 100px top and bottom */ --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem; } body { margin: 0; padding: 0; } *, *:before, *:after { /* prevents padding from affecting height and width */ box-sizing: border-box; } .cs-topper { font-size: var(--topperFontSize); line-height: 1.2em; text-transform: uppercase; text-align: inherit; letter-spacing: .1em; font-weight: 700; color: var(--primary); margin-bottom: calc(4 / 16 * 1rem); display: block; } .cs-title { font-size: var(--headerFontSize); font-weight: 900; line-height: 1.2em; text-align: inherit; max-width: calc(700 / 16 * 1rem); margin: 0 0 calc(16 / 16 * 1rem) 0; color: var(--headerColor); position: relative; } .cs-text { font-size: var(--bodyFontSize); line-height: 1.5em; text-align: inherit; width: 100%; max-width: calc(650 / 16 * 1rem); margin: 0; color: var(--bodyTextColor); }
Lorem Ipsum
Undo