From 9d8e15efe5ff5aa7761629494d4cd046d3ccf2a7 Mon Sep 17 00:00:00 2001 From: Sebastian Carl Date: Thu, 22 Aug 2024 12:26:10 +0200 Subject: [PATCH] add lightswitch to pkgdown removed the bs theme because it didn't work well with the lightswitch also adjusted version color to support both light and dark mode --- pkgdown/_pkgdown.yml | 6 ++--- pkgdown/extra.css | 23 ++++++++++++++++++- pkgdown/favicon/apple-touch-icon-120x120.png | Bin 12401 -> 12401 bytes pkgdown/favicon/apple-touch-icon-152x152.png | Bin 17254 -> 17254 bytes pkgdown/favicon/apple-touch-icon-180x180.png | Bin 21297 -> 21297 bytes pkgdown/favicon/apple-touch-icon-60x60.png | Bin 4972 -> 4972 bytes pkgdown/favicon/apple-touch-icon-76x76.png | Bin 6733 -> 6733 bytes pkgdown/favicon/apple-touch-icon.png | Bin 21297 -> 21297 bytes pkgdown/favicon/favicon-16x16.png | Bin 1250 -> 1250 bytes pkgdown/favicon/favicon-32x32.png | Bin 2271 -> 2271 bytes 10 files changed, 25 insertions(+), 4 deletions(-) diff --git a/pkgdown/_pkgdown.yml b/pkgdown/_pkgdown.yml index 39569a6..51e00e9 100644 --- a/pkgdown/_pkgdown.yml +++ b/pkgdown/_pkgdown.yml @@ -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 @@ -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"} diff --git a/pkgdown/extra.css b/pkgdown/extra.css index 2db97b1..71340e6 100644 --- a/pkgdown/extra.css +++ b/pkgdown/extra.css @@ -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; } diff --git a/pkgdown/favicon/apple-touch-icon-120x120.png b/pkgdown/favicon/apple-touch-icon-120x120.png index ea0af53f6ec1046c53c9d2c9d31ac7e35766272a..0460ea3104e811124c1c178e234e5852d4b7f844 100644 GIT binary patch delta 83 zcmeyE@G)UR1=kA>F-`?NQ>P^TjZLQdQYN|v7P>}8AqJLK#zs~qX4(b@Rt5&&C2k#` Sd{JKWkx$7P#4cVb`EwlzD#gcc**+N5md3 delta 103 zcmaFX#`vs_aY6;xQ%+f7QO4>wY@8dLw4A&Rbqy?ajVwb9Ev<|Utqcsc4GgRd432*` oR%T#eP%UwdC`m~yNwvz&PsvQHWH2%?!meT4y6*XtzdPjv06aV%>;M1& diff --git a/pkgdown/favicon/apple-touch-icon-180x180.png b/pkgdown/favicon/apple-touch-icon-180x180.png index 164db1ee91a18b4b0cb36abbb0ab03392a672dc6..4ae8f18100f53fac79e489bd2bc1a37c45c51c2a 100644 GIT binary patch delta 85 zcmdnEjB(>K#t9W%FF3?F6%5Y%#`|n+`Wh%@qHAEGYh)B+U}K#t9W%PdR0UMVTHw4d1-6>1&{rp{{|Yu90Pkp{13Pp_PG=wt<0_fx$Ov V&3%(628rX4Zg-o=H2F|aJ^;cX8fO3i diff --git a/pkgdown/favicon/apple-touch-icon-60x60.png b/pkgdown/favicon/apple-touch-icon-60x60.png index 56f730d3d0467eb0a9bdcce18cf3e347428da7b1..9513340cdc4b6ea60148abcc56834f51b49d7677 100644 GIT binary patch delta 101 zcmaE(_C{?&1=kA>F-`@Y+dj<98=DM-yiIfsEOd>GLJTaejE$^JOtcLQtPBhi+E2e@ lU|>)!ag8WRNi0dV%FR#7OsixtGBCofLGV^_(B!{D`2g^_9e4l$ delta 101 zcmaE(_C{?&1=mwfSz!@Nudn^rHZ~auc^m2)Sn3*Ch8S8}85vlanrj;vSQ!{FGbTGT lFfgc=xJHzuB$lLF<>sekrd2W+85m*LP!x0f|Kz_y`2Y@a9uEKj diff --git a/pkgdown/favicon/apple-touch-icon-76x76.png b/pkgdown/favicon/apple-touch-icon-76x76.png index 3abd0cb380192d1cc8324a7d6d4d75a484fb2ce0..d45e02af60385df19867a2bc3543ed589be8464f 100644 GIT binary patch delta 83 zcmX?Wa@J%*1=kA>F-`^DHQvTkH#P}MN}1>ySm+uVg&0^`85>!dm}(msSQ!```*0v? T@>)r89Map@Ry>=0Pck0>CX5-l delta 83 zcmX?Wa@J%*1=mwfSz!^Y%YW|WY-|#glrq#cu+%lO3^BB{GBU6-wa_*&ure_C>M6Wx T@>)r89MUZ!tHmbYlgtMIVfq;I diff --git a/pkgdown/favicon/apple-touch-icon.png b/pkgdown/favicon/apple-touch-icon.png index 2e16ccda4ed315a851366d894c5fc2db7a50ee31..24f45cc4cfd77ca79277a58624b23374d0e69b27 100644 GIT binary patch delta 85 zcmdnEjB(>K#t9W%FF3?F6%2QH<=@)a^fge*MAyJV*T^Wuz|zXt$jZc0+rYrez<@De VmEPouLE<>13wVVlO+FNq4*-cm84Lgb delta 85 zcmdnEjB(>K#t9W%PdR0UMOnDpKDBLZ`Wh%@sB2)UYh)Q>XlZ3+Xk}ocZD3$!U@-Nx VOv~hnLE<>1pG;d~G5JtXJ^+*u8lwOJ diff --git a/pkgdown/favicon/favicon-16x16.png b/pkgdown/favicon/favicon-16x16.png index 0087b2eaae1bbe3ea29bf604db24c27b58a90fdf..971fb8b843c24947623fbe295d9c0fe4aded4d3d 100644 GIT binary patch delta 103 zcmaFF`G|AFJ0`9d9Acabru)@bAKv_f$$-(@MAyJV*T^Wuz|zXt$ja1M+rYrez#y~h o>punt2GtVRh?11Vl2ohQ{FKbJN(LhXBkUR^uKPMoE@sIG0IQZB*8l(j delta 103 zcmaFF`G|AFJ0`BDoU+2AoTcV{)|-DY88CVq>Ka(;8d-)IT3Q(yS{Ybs8yHv_7<`eb nbzxv&P%UwdC`m~yNwvz&PsvQHWH2%?!mgp!@#v4q#Vq*%9~>RZ diff --git a/pkgdown/favicon/favicon-32x32.png b/pkgdown/favicon/favicon-32x32.png index 99b11d871f943e91247c6c74fba80009e3dd18be..2e16c58c2b0b8f4d2061b97a47b845fa81e8cd17 100644 GIT binary patch delta 83 zcmcaFcwcZr1=kA>F-`?DHN9Vz8=DrhOPS~zSm+uVg&0^`85>!dnrIssSQ!|s(LG%- S*`7ljhxFZo;xm&AIPw7y2N*X1 delta 83 zcmcaFcwcZr1=mwfSz%GGH+J_MH#RM1mon5fu+%lO3^BB{GBUI>G|)CMure@Mt7pME S*`7ljhxDD|hOLteIPw7&92d#}