Skip to content

Commit

Permalink
opt in bootstrap 5 (#9)
Browse files Browse the repository at this point in the history
* add extra.css for pkgdown

* add _pkgdown.yml

---------

Co-authored-by: Kevin Rue <[email protected]>
  • Loading branch information
kevinrue and kevinrue authored Oct 18, 2024
1 parent ae21fca commit a9aaa73
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
^\.github$
^\.gitignore$
^\.Rproj\.user$
^_pkgdown\.yml$
^codecov\.yml$
^Dockerfile$
^docs$
^iSEEhex\.Rproj$
^pkgdown$
^README\.Rmd$
^renv$
^renv\.lock$
^MyBioconductorPackage\.Rproj$
^\.Rproj\.user$
^dev$
^README\.Rmd$
^\.github$
^codecov\.yml$
^iSEEhex\.Rproj$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ inst/doc
renv
renv.lock
.Rprofile
docs/
3 changes: 3 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
url: https://isee.github.io/iSEEhex/
template:
bootstrap: 5
97 changes: 97 additions & 0 deletions pkgdown/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/*
Developed and maintained by Kevin Rue-Albrecht (@kevinrue)
*/

/*
#0092ac blue
#00758a darker blue (active menu)
#c4d931 green (on blue)
#87b13f green (on white)
*/

.headroom {
background-color: #0092ac;
}

.navbar-default .navbar-link {
color: #ffffff;
}

.navbar-default .navbar-link:hover {
color: #c4d931;
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
color: #c4d931;
background-color: #00758a;
}

.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>.open>a:focus {
color: #c4d931;
background-color: #00758a;
}

.dropdown-menu>.active>a,
.dropdown-menu>.active>a:hover,
.dropdown-menu>.active>a:focus {
color: #c4d931;
background-color: #00758a;
}

.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus {
color: #c4d931;
}

.dropdown-menu>li>a:hover {
color: #87b13f;
background-color: #ffffff;
}

.navbar-default .navbar-nav>li>a {
color: #ffffff;
}

h1 {
color: #87b13f;
}

h2 {
color: #1a81c2;
}

h3 {
color: #1a81c2;
font-weight: bold;
}

.btn-copy-ex {
color: #ffffff;
background-color: #0092ac;
border-color: #0092ac;
}

.btn-copy-ex:hover {
color: #ffffff;
background-color: #00758a;
border-color: #00758a;
}

.btn-copy-ex:active:focus {
color: #c4d931;
background-color: #00758a;
border-color: #0092ac;
}

p>.fa,
p>.fas {
color: #0092ac;
}

img {
width: auto;
}

0 comments on commit a9aaa73

Please sign in to comment.