Skip to content

Commit

Permalink
build: fix styling after theme update
Browse files Browse the repository at this point in the history
  • Loading branch information
TymekDev committed May 8, 2024
1 parent d1ee335 commit 6d9ac99
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pkgdown/build.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ build_version_factory <- function(repo, versions, url, destination) {
# NOTE: providing an absolute path to build_site won't work: https://github.com/r-lib/pkgdown/issues/2172
withr::with_dir(build_dir, {
pkgdown::build_site_github_pages(
override = list(url = sub("/$", "", url_join(url, version$href))),
override = list(
url = sub("/$", "", url_join(url, version$href)),
navbar = list(type = "light")
),
dest_dir = fs::path_join(c(destination, version$href))
)
})
Expand Down
7 changes: 6 additions & 1 deletion pkgdown/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,14 @@ button.btn.btn-primary.btn-copy-ex {
}

& > a {
background-color: hsl(240, 42.7%, 38.6%);
background-color: hsl(239.3, 40.2%, 55.3%);
color: rgba(255, 255, 255, 0.8);
padding: 0.25rem 1rem;
border-radius: 1rem;

&:hover {
color: white;
}
}
}

Expand Down

0 comments on commit 6d9ac99

Please sign in to comment.