-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from thiagofqs/implementacao-sass
refactor: conversão de CSS para SASS
- Loading branch information
Showing
8 changed files
with
329 additions
and
111 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const body = document.body; | ||
const darkModeToggle = document.querySelector("#dark-mode-toggle"); | ||
const headerSubtitle = document.querySelector(".header__subtitle"); | ||
const moonIcon = document.querySelector(".ph-moon"); | ||
const sunIcon = document.querySelector(".ph-sun"); | ||
|
||
darkModeToggle.addEventListener("click", () => { | ||
body.classList.toggle("body-dark-mode"); | ||
headerSubtitle.classList.toggle("text-dark-mode"); | ||
|
||
if (body.classList.contains("body-dark-mode")) { | ||
moonIcon.style.display = "none"; | ||
sunIcon.style.display = "inline"; | ||
} else { | ||
sunIcon.style.display = "none"; | ||
moonIcon.style.display = "inline"; | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
$light-green: #5e9188 | ||
$dark-green: #3e5954 | ||
$dark-blue: #253342 | ||
$black: #232226 | ||
$white: #ffffff | ||
$purple-500: #6e6197 | ||
$gray-500: #9698a0 | ||
$gray-300: #cccccc | ||
$gray-100: #f2f2f2 | ||
|
||
// Light Mode | ||
$light-background-color: #ffffff | ||
$light-text-color: #333333 | ||
|
||
// Dark Mode | ||
$dark-background-color: #333333 | ||
$dark-text-color: #ffffff |
Oops, something went wrong.