forked from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 105 : Dark Mode + Theming alshedivat#118 (alshedivat#119)
* Dark Mode + Theming * Themes scss file created with default color scheme and dark color scheme. * Logic for managing dark mode toggle added. * Modified existing scss/html to work with theme toggling. * Fixed hover issues * Added enable_darkmode to configs. * Added the requested option of disabling/enabling dark mode via config files.
- Loading branch information
JD
authored
Oct 5, 2020
1 parent
c085a63
commit e30a46b
Showing
11 changed files
with
170 additions
and
38 deletions.
There are no files selected for viewing
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
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
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
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,43 @@ | ||
/******************************************************************************* | ||
* Themes | ||
******************************************************************************/ | ||
|
||
:root { | ||
--global-bg-color: #{$white-color}; | ||
--global-text-color: #{$black-color}; | ||
--global-theme-color: #{$purple-color}; | ||
--global-hover-color: #{$light-purple-color}; | ||
--global-footer-bg-color: #{$grey-color-dark}; | ||
--global-footer-text-color: #{$grey-color-light}; | ||
--global-footer-link-color: #{$white-color}; | ||
--global-icon-color: #{$grey-color-dark}; | ||
|
||
.fa-sun { | ||
display : none; | ||
} | ||
.fa-moon { | ||
padding-left: 10px; | ||
padding-top: 12px; | ||
display : block; | ||
} | ||
} | ||
|
||
html[data-theme='dark'] { | ||
--global-bg-color: #{$grey-color-dark}; | ||
--global-text-color: #{$grey-color-light}; | ||
--global-theme-color: #{$cyan-color}; | ||
--global-hover-color: #{$light-cyan-color}; | ||
--global-footer-bg-color: #{$grey-color-light}; | ||
--global-footer-text-color: #{$grey-color-dark}; | ||
--global-footer-link-color: #{$black-color}; | ||
--global-icon-color: navajowhite; | ||
|
||
.fa-sun { | ||
padding-left: 10px; | ||
padding-top: 12px; | ||
display : block; | ||
} | ||
.fa-moon { | ||
display : none; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
|
||
@import | ||
"variables", | ||
"themes", | ||
"layout", | ||
"base" | ||
; |
Oops, something went wrong.