Skip to content

Commit

Permalink
buildmaster frontend: add dark mode CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Poslovski authored and jmairboeck committed Oct 14, 2024
1 parent b8812e1 commit 0bf643a
Showing 1 changed file with 48 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;
}
}

0 comments on commit 0bf643a

Please sign in to comment.