-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds dark mode to entire dashboard (#467)
* Adds New Dark Mode Assets * Moves triangle for dropdown to a reasonable position * Majority .eex dark implementation * Fixes Logo Positioning * Adds theme flag to user schema, uses it * Uses correct variables for theme applicator script * Minor missed theme changes/fallbacks * Individual Component Support + Theme Context * Sources Tab Support This was a pain to test D: * Partial Stats Sections Support * More of stats modules supported * Modal +table support * Improves some Flatpickr in light theme, supports dark theme * Fixes missed settings tab colors * Finishes Devices module support * Fixes bar graph colors * Better colorizes maps module * Undoes colorized bars (they looked bad, on second thought) * Fixes loading indicator * Finishes conversions module * Adds changelog entry The PR number could be wrong, will double check * Fixes missed header color * Fixes naming of migration and removes static alter * Does migration correctly As I said, my Elixir is pretty weak heh * Adds support for spike notifications setting * Improves contrast and visibility for email settings * Resolves @ukutaht's comments on #467 * Fixes missing dark style * Found one more missed dark element (shared links) * Formatting fixes
- Loading branch information
1 parent
a50fd55
commit 425975e
Showing
81 changed files
with
884 additions
and
562 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
/* Because Flatpickr offers zero support for dynamic theming on its own (outside of third-party plugins) */ | ||
.dark .flatpickr-calendar { | ||
background-color: #1f2937; | ||
} | ||
|
||
.dark .flatpickr-weekday { | ||
color: #f3f4f6; | ||
} | ||
|
||
.dark .flatpickr-prev-month { | ||
fill: #f3f4f6 !important; | ||
} | ||
|
||
.dark .flatpickr-next-month { | ||
fill: #f3f4f6 !important; | ||
} | ||
|
||
.dark .flatpickr-monthDropdown-months { | ||
color: #f3f4f6 !important; | ||
} | ||
|
||
.dark .numInputWrapper { | ||
color: #f3f4f6; | ||
} | ||
|
||
.dark .flatpickr-day.prevMonthDay { | ||
color: #94a3af; | ||
} | ||
|
||
.dark .flatpickr-day { | ||
color: #E5E7EB; | ||
} | ||
|
||
.dark .flatpickr-day.prevMonthDay { | ||
color: #9CA3AF; | ||
} | ||
|
||
.dark .flatpickr-day.nextMonthDay { | ||
color: #9CA3AF; | ||
} | ||
|
||
.dark .flatpickr-day:hover { | ||
background-color: #374151; | ||
} | ||
|
||
.dark :not(.startRange):not(.endRange).flatpickr-day.nextMonthDay:hover { | ||
background-color: #374151; | ||
} | ||
|
||
.dark :not(.startRange):not(.endRange).flatpickr-day.prevMonthDay:hover { | ||
background-color: #374151; | ||
} | ||
|
||
.dark .flatpickr-next-month { | ||
fill: #f3f4f6; | ||
} | ||
|
||
.dark .flatpickr-day.flatpickr-disabled { | ||
color: #4B5563; | ||
} | ||
|
||
.dark .flatpickr-day.flatpickr-disabled:hover { | ||
color: #4B5563; | ||
} | ||
|
||
.dark .flatpickr-day.today { | ||
background-color: rgba(167, 243, 208, 0.5); | ||
} | ||
|
||
.dark .flatpickr-day.today { | ||
border-color: #34D399; | ||
} | ||
|
||
.dark .flatpickr-day.inRange { | ||
background-color: #374151; | ||
box-shadow: -5px 0 0 #374151,5px 0 0 #374151; | ||
border-color: #374151; | ||
} | ||
|
||
.dark .flatpickr-day.prevMonthDay.inRange { | ||
background-color: #374151; | ||
box-shadow: -5px 0 0 #374151,5px 0 0 #374151; | ||
border-color: #374151; | ||
} | ||
|
||
.dark .flatpickr-day.nextMonthDay.inRange { | ||
background-color: #374151; | ||
box-shadow: -5px 0 0 #374151,5px 0 0 #374151; | ||
border-color: #374151; | ||
} | ||
|
||
.flatpickr-day.startRange { | ||
background: #6574cd !important; | ||
border-color: #6574cd !important; | ||
} | ||
|
||
.flatpickr-day.endRange { | ||
background: #6574cd !important; | ||
border-color: #6574cd !important; | ||
} | ||
|
||
.dark .flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)), .flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)), .flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) { | ||
-webkit-box-shadow: -10px 0 0 #4556c3 !important; | ||
box-shadow: -10px 0 0 #4556c3 !important; | ||
} | ||
|
||
.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)), .flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)), .flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) { | ||
-webkit-box-shadow: -10px 0 0 #4556c3 !important; | ||
box-shadow: -10px 0 0 #4556c3 !important; | ||
} |
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
Oops, something went wrong.