Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dark Mode #33

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -354,4 +354,7 @@ healthchecksdb
MigrationBackup/

# Ionide (cross platform F# VS Code tools) working folder
.ionide/
.ionide/

# JetBrains
.idea/
4 changes: 2 additions & 2 deletions src/PlanningPoker.Client/Shared/NavMenu.razor
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<nav class="navbar navbar-light bg-light">
<nav class="navbar navbar-light">
<a class="navbar-brand" href="/"><img src="/icon.png" alt="Just Planning Poker Icon" class="navbar-icon"/>Just Planning Poker</a>
</nav>
</nav>
69 changes: 67 additions & 2 deletions src/PlanningPoker.Client/wwwroot/css/site.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,69 @@
/* LOADING */
/* DARK MODE PALETTE */
:root {
--dark-background-color: #222831;
--dark-text-color: #76ABAE;
--dark-background-color-alternative: #31363F;
--dark-background-color-second-alternative: #EEEEEE
}

@media (prefers-color-scheme: dark) {
body {
background-color: var(--dark-background-color);
color: var(--dark-text-color);
}

.card {
background-color: var(--dark-background-color);
}

.form-control {
background-color: var(--dark-background-color) !important;
color: var(--dark-text-color);

&:focus {
color: var(--dark-text-color);
}
}

.custom-select {
background: var(--dark-background-color) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center;
background-size: 8px 10px;
color: var(--dark-text-color);
}

.btn {
&.poker_card {
background-color: var(--dark-background-color);
color: var(--dark-text-color);
border: 1px solid var(--dark-text-color);

&.btn-success {
background-color: #1E7E34;
color: white;
}
}

&.clear {
background-color: var(--dark-background-color-second-alternative);
color: black;

&:disabled {
color: var(--dark-text-color);
}
}
}

.table-success > td {
background-color: var(--dark-background-color-alternative);
}

.notifications > .notification {
background: var(--dark-background-color);
border: 1px solid var(--dark-text-color);
}
}

/* LOADING */

.loading {
position: absolute;
Expand Down Expand Up @@ -199,4 +264,4 @@ img.navbar-icon {
margin-right: 6px;
}

/* END NOTIFICATIONS */
/* END NOTIFICATIONS */
Loading