Skip to content

Commit

Permalink
Merge pull request #1429 from nishant0708/dark-icons
Browse files Browse the repository at this point in the history
🐞 [BUG] - Dark mode icon visiblity issue And Hover Issue #1395
  • Loading branch information
jfmartinz authored Jun 26, 2024
2 parents 2a8573a + 5239fb5 commit 06dc86c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 8 additions & 4 deletions new-website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@
<a class="px-4 py-2 mt-2 text-sm font-semibold bg-transparent rounded-lg dark-mode:bg-transparent dark-mode:hover:bg-gray-600 dark-mode:focus:bg-gray-600 dark-mode:focus:text-white dark-mode:hover:text-white dark-mode:text-gray-200 md:mt-0 md:ml-4 hover:text-gray-900 focus:text-gray-900 hover:bg-gray-200 focus:bg-gray-200 focus:outline-none focus:shadow-outline"
href="#faq">FAQ</a
class="flex-col flex-grow hidden pb-4 md:pb-0 md:flex md:justify-center md:flex-row">

<a class="px-4 py-2 mt-2 text-sm font-semibold bg-transparent rounded-lg dark-mode:bg-transparent dark-mode:hover:bg-gray-600 dark-mode:focus:bg-gray-600 dark-mode:focus:text-white dark-mode:hover:text-white dark-mode:text-gray-200 md:mt-0 md:ml-4 hover:text-gray-900 focus:text-gray-900 hover:bg-gray-200 focus:bg-gray-200 focus:outline-none focus:shadow-outline"
<a class="social-icon px-4 py-2 mt-2 text-sm font-semibold bg-transparent rounded-lg dark-mode:bg-transparent dark-mode:hover:bg-gray-600 dark-mode:focus:bg-gray-600 dark-mode:focus:text-white dark-mode:hover:text-white dark-mode:text-gray-200 md:mt-0 md:ml-4 hover:text-gray-900 focus:text-gray-900 hover:bg-gray-200 focus:bg-gray-200 focus:outline-none focus:shadow-outline"
href="https://discord.com/channels/1243120700626309131/1243121246217175081" target="_blank"
aria-label="Discord">
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
Expand All @@ -94,7 +93,7 @@
</svg>
</a>

<a class="px-4 py-2 mt-2 text-sm font-semibold bg-transparent rounded-lg dark-mode:bg-transparent dark-mode:hover:bg-gray-600 dark-mode:focus:bg-gray-600 dark-mode:focus:text-white dark-mode:hover:text-white dark-mode:text-gray-200 md:mt-0 md:ml-4 hover:text-gray-900 focus:text-gray-900 hover:bg-gray-200 focus:bg-gray-200 focus:outline-none focus:shadow-outline"
<a class="social-icon px-4 py-2 mt-2 text-sm font-semibold bg-transparent rounded-lg dark-mode:bg-transparent dark-mode:hover:bg-gray-600 dark-mode:focus:bg-gray-600 dark-mode:focus:text-white dark-mode:hover:text-white dark-mode:text-gray-200 md:mt-0 md:ml-4 hover:text-gray-900 focus:text-gray-900 hover:bg-gray-200 focus:bg-gray-200 focus:outline-none focus:shadow-outline"
href="https://github.com/jfmartinz/ResourceHub" target="_blank" aria-label="Github">
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path fill="black"
Expand All @@ -115,7 +114,12 @@
display: inline-block;
transition: transform 0.3s ease;
}

.dark .social-icon:hover svg path{
fill: black;
}
.dark .social-icon svg path{
fill: white;
}
.icon-link:hover {
transform: scale(1.2);
}
Expand Down
4 changes: 3 additions & 1 deletion new-website/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,9 @@ body{
color: white;
background-color: black;
}

.dark .footer-icons a svg path{
fill: white;
}
.dark .footer-description,
.dark .footer-links a,
.dark .footer-links a::before{
Expand Down

0 comments on commit 06dc86c

Please sign in to comment.