Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update navbar template from upstream #8

Merged
merged 3 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Authors@R:
person("Hugo", "Gruson", , "[email protected]", role = c("aut", "cre", "cph"),
comment = c(ORCID = "0000-0002-4094-1476"))
Description: What the package does (one paragraph).
Imports:
pkgdown (>= 2.0.8.9000)
Remotes:
r-lib/pkgdown
License: MIT
Config/testthat/edition: 3
Encoding: UTF-8
Expand Down
4 changes: 4 additions & 0 deletions inst/pkgdown/extra.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
color: #000;
}

.navbar-dark input[type="search"]::placeholder {
color: #555;
}

.version-number {
color: #888 !important;
}
Expand Down
8 changes: 2 additions & 6 deletions inst/pkgdown/templates/navbar.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{{#navbar}}
<nav class="navbar fixed-top navbar-{{{type}}} navbar-expand-lg bg-{{{bg}}}">
<nav class="navbar fixed-top navbar-{{{type}}} navbar-expand-lg bg-{{{bg}}}" data-bs-theme="{{{type}}}">
<div class="container">
{{#includes}}{{{before_title}}}{{/includes}}
<a href="https://epiverse-trace.github.io/"><img src="{{#site}}{{root}}{{/site}}logo_white.svg" id="logo" alt="Epiverse-TRACE"></a>
<a class="navbar-brand me-2" href="{{#site}}{{root}}{{/site}}index.html">{{#site}}{{title}}{{/site}}</a>

<small class="nav-text {{#development}}text-{{version_label}}{{/development}} me-auto version-number" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{#development}}{{version_tooltip}}{{/development}}">{{#package}}{{version}}{{/package}}</small>
<small class="nav-text {{#development}}text-{{version_label}}{{/development}} me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{#development}}{{version_tooltip}}{{/development}}">{{#package}}{{version}}{{/package}}</small>

{{#includes}}{{{before_navbar}}}{{/includes}}
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="{{#translate}}{{toggle_nav}}{{/translate}}">
Expand All @@ -19,10 +19,6 @@
</ul>
{{/left}}

<form class="form-inline my-2 my-lg-0" role="search">
<input type="search" class="form-control me-sm-2" aria-label="{{#translate}}{{toggle_nav}}{{/translate}}" name="search-input" data-search-index="{{#site}}{{root}}{{/site}}search.json" id="search-input" placeholder="{{#translate}}{{search_for}}{{/translate}}" autocomplete="off">
</form>

{{#right}}
<ul class="navbar-nav">
{{{.}}}
Expand Down
Loading