Skip to content

Commit

Permalink
properly working with dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
devxMani committed Oct 24, 2024
1 parent 6e48043 commit f4100c1
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
</div>

<header style="width: 100.8%;">
Expand Down Expand Up @@ -403,22 +404,23 @@ <h3>How can I contact support?</h3>
<style>
.faq {
padding: 40px 20px;
background-color: #f9f9f9;
background-color: #f9f9f9; /* Light mode background */
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
margin: 20px 0;
transition: background-color 0.3s, color 0.3s; /* Smooth transition */
}

.faq h2 {
text-align: center;
margin-bottom: 30px;
font-size: 2em;
color: #333;
color: #333; /* Light mode text color */
}

.faq-item {
margin: 15px 0;
border-bottom: 1px solid #ddd;
border-bottom: 1px solid #ddd; /* Light mode border */
padding: 15px 0;
}

Expand All @@ -428,7 +430,7 @@ <h3>How can I contact support?</h3>

.faq-item h3 {
cursor: pointer;
color: #007bff;
color: #007bff; /* Light mode heading color */
font-size: 1.5em;
transition: color 0.3s;
}
Expand All @@ -439,10 +441,36 @@ <h3>How can I contact support?</h3>

.faq-item p {
margin: 5px 0 0 0;
color: #555;
color: #555; /* Light mode paragraph color */
font-size: 1em;
line-height: 1.5;
}

/* Dark Mode Styles */
.dark-mode .faq {
background-color: #292b30; /* Dark mode background */
color: #f9f9f9; /* Dark mode text color */
}

.dark-mode .faq h2 {
color: #f9f9f9; /* Dark mode heading color */
}

.dark-mode .faq-item {
border-bottom: 1px solid #444; /* Dark mode border */
}

.dark-mode .faq-item h3 {
color: #66b3ff; /* Dark mode heading color */
}

.dark-mode .faq-item h3:hover {
color: #99ccff; /* Darker blue on hover in dark mode */
}

.dark-mode .faq-item p {
color: #ccc; /* Dark mode paragraph color */
}
</style>

<!-- Newsletters Section -->
Expand Down

0 comments on commit f4100c1

Please sign in to comment.