Skip to content

Commit

Permalink
Merge pull request #300 from jmairboeck/dark-mode
Browse files Browse the repository at this point in the history
buildmaster frontend: add dark mode CSS
  • Loading branch information
kallisti5 authored Oct 15, 2024
2 parents b8812e1 + af16828 commit 787e604
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
48 changes: 48 additions & 0 deletions buildmaster/frontend/www/assets/css/buildmaster.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:root {
color-scheme: dark light;
}

body {
background-color: white;
font-family: sans-serif;
Expand Down Expand Up @@ -160,3 +164,47 @@ a, a:visited {
.compact .buildNumbersContainer {
flex-grow: 1;
}

@media(prefers-color-scheme: dark) {
body, #topLink, .inlineLogViewer {
background-color: #222;
}

body, a, a:visited {
color: #ddd;
}

.requiredPackages, #completeBuilds .resultingPackages {
background-color: #003300;
}

.missingPackages, #scheduledBuilds .resultingPackages,
#blockedBuilds .resultingPackages {
background-color: #444400;
}

#failedBuilds .resultingPackages, #lostBuilds .resultingPackages,
#skippedBuilds .resultingPackages {
background-color: #990000;
}

#blockedBuilds {
background-color: #222211;
}

#completeBuilds, #activeBuilders {
background-color: #002f00;
}

#activeBuilds, #reconnectingBuilders {
background-color: #222233;
}

#failedBuilds, #skippedBuilds, #lostBuilders {
background-color: #221111;
}

#lostBuilds {
background-color: #221000;
}
}
11 changes: 11 additions & 0 deletions buildmaster/frontend/www/assets/css/logviewer.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:root {
color-scheme: dark light;
}

body {
font-family: monospace;
}
Expand Down Expand Up @@ -93,3 +97,10 @@ body {
.bg-white, .fg-white.reverse {
background-color: white;
}

@media(prefers-color-scheme: dark) {
body {
color: #ddd;
background-color: #222;
}
}

0 comments on commit 787e604

Please sign in to comment.