Skip to content

Commit

Permalink
feat: Use bslib's navbar Sass variables, if present
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Jan 28, 2025
1 parent 74fda8c commit 4316fa1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions inst/BS5/assets/pkgdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@

/* navbar =================================================================== */

$pkgdown-navbar-bg: null !default;
$pkgdown-navbar-bg-dark: null !default;
// pkgdown will follow bslib navbar variables by default
$navbar-bg: null !default;
$navbar-light-bg: if($navbar-bg, $navbar-bg, null) !default;
$navbar-dark-bg: if($navbar-bg, $navbar-bg, null) !default;

$pkgdown-navbar-bg: if($navbar-light-bg, $navbar-light-bg, null) !default;
$pkgdown-navbar-bg-dark: if($navbar-dark-bg, $navbar-dark-bg, null) !default;

// BS navbars appears to be designed with the idea that you have a coloured
// navbar that looks the same in both light and dark mode. We prefer a mildly
Expand Down

0 comments on commit 4316fa1

Please sign in to comment.