Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/bundler/rack-2.2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
kmartens27 authored Feb 13, 2025
2 parents 785af9d + fdf0b5e commit e152b8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions content/_layouts/frame.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,10 @@
$body.on("keydown", function(){
$body.removeClass("no-outline");
})
const updateTheme = () => {
const dark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
document.documentElement.dataset.theme = dark ? "dark" : "";
}
updateTheme();
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', updateTheme);
})
7 changes: 3 additions & 4 deletions content/css/jenkins.css
Original file line number Diff line number Diff line change
Expand Up @@ -1546,8 +1546,7 @@ ion-icon.report {
max-height: 128px;
}

/* Algolia searchbox "No results" text */
.DocSearch-NoResults p.DocSearch-Title {
color: rgba(0, 0, 0, 0.528);
[data-theme="dark"] .DocSearch-NoResults p.DocSearch-Title {
color: rgba(255, 255, 255, 0.634);
font-weight: bold;
}
}

0 comments on commit e152b8a

Please sign in to comment.