Skip to content

Commit

Permalink
add lightswitch to pkgdown
Browse files Browse the repository at this point in the history
removed the bs theme because it didn't work well with the lightswitch
also adjusted version color to support both light and dark mode
  • Loading branch information
mrcaseb committed Aug 22, 2024
1 parent 9e2e308 commit 9d8e15e
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ navbar:
bg: dark
structure:
left: [home, intro, reference, news, articles]
right: [discord, github, more]
right: [lightswitch, discord, github, more]
components:
discord:
icon: "fab fa-discord fa-lg"
href: https://discord.com/invite/5Er2FBnnQa
aria-label: Discord
reference:
text: "Functions"
href: reference/index.html
Expand Down Expand Up @@ -48,8 +49,7 @@ navbar:

template:
bootstrap: 5
bootswatch: cosmo
# theme: arrow-light
light-switch: true
bslib:
font_scale: 1.2
base_font: {google: "IBM Plex Sans"}
Expand Down
23 changes: 22 additions & 1 deletion pkgdown/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,26 @@ h4.author,h4.date {
}

.me-auto {
color: yellow !important;
color: #009E8D !important;
}

/*
from gt custom css
draws lines between function names on reference page
*/

dt {
text-decoration: underline;
text-decoration-style: solid;
text-underline-offset: 4px;
font-family: monospace;
border-top-style: dotted;
border-top-width: 1px;
border-top-color: gray;
margin-bottom: 5px;
padding-top: 5px;
}

.active .nav-link {
color: #F85714 !important;
}
Binary file modified pkgdown/favicon/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9d8e15e

Please sign in to comment.