Skip to content

Commit 3e6b5ad

Browse files
committed
Refactor code using more bslib vars
1 parent bd4cf6f commit 3e6b5ad

5 files changed

Lines changed: 163 additions & 123 deletions

File tree

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"SystemRequirements": null
122122
},
123123
"keywords": ["pkgdown", "pkgdown-template", "r", "r-package"],
124-
"fileSize": "218.554KB",
124+
"fileSize": "218.989KB",
125125
"readme": "https://github.com/dieghernan/gitdevr/blob/main/README.md",
126126
"contIntegration": "https://github.com/dieghernan/gitdevr/actions/workflows/check-simple.yaml",
127127
"developmentStatus": "https://lifecycle.r-lib.org/articles/stages.html#experimental"

data-raw/compress_css.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ library(sass)
33

44
lns <- readLines("inst/pkgdown/assets/BS5/gitdevr.css")
55

6+
# writeLines(lns, "inst/pkgdown/assets/BS5/gitdevr.min.css")
7+
68
sass(
79
lns,
810
"inst/pkgdown/assets/BS5/gitdevr.min.css",
911
cache = NULL,
1012
options = sass_options(output_style = "compressed")
1113
)
14+
15+
message("OK, compressed")

inst/pkgdown/_pkgdown.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,51 @@ template:
6161
defaults:
6262
bootstrap:
6363
defaults:
64+
base_font: >
65+
"Inter, Roboto, system-ui, -apple-system, 'Helvetica Neue', Arial"
66+
heading_font: >
67+
"'Inter Tight', Roboto, system-ui, -apple-system, 'Helvetica
68+
Neue', Arial"
69+
code_font: "'Fira Code', 'Courier New', monospace"
6470
navbar-light-bg: "#22272e"
6571
navbar-light-color: "#ffffff"
6672
navbar-light-toggler-border-color: "#22272e"
73+
navbar-light-toggler-icon-bg: >
74+
url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'
75+
viewBox='0 0 30 30'><path stroke='rgba(255, 255, 255, 1)'
76+
stroke-linecap='round' stroke-miterlimit='10' stroke-width='2'
77+
d='M4 7h22M4 15h22M4 23h22'/></svg>")
6778
navbar-light-brand-color: "#ffffff"
6879
navbar-light-brand-hover-color: "#ffffff"
6980
navbar-light-hover-color: "#6a788a"
7081
navbar-light-active-color: "#d3d4d5"
7182
navbar-dark-bg: "#24292f"
7283
navbar-dark-color: "#ffffff"
7384
navbar-dark-brand-color: "#ffffff"
85+
navbar-dark-toggler-icon-bg: >
86+
url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'
87+
viewBox='0 0 30 30'><path stroke='rgba(255, 255, 255, 1)'
88+
stroke-linecap='round' stroke-miterlimit='10' stroke-width='2'
89+
d='M4 7h22M4 15h22M4 23h22'/></svg>")
7490
navbar-dark-brand-hover-color: "#ffffff"
7591
navbar-dark-toggler-border-color: "#24292f"
76-
navbar-dark-hover-color: "#8b949e"
92+
navbar-dark-hover-color: "#6a788a"
7793
navbar-dark-active-color: "#d3d4d5"
7894
input-placeholder-color: "#6a788a"
95+
nav-link-color: "#6c757d"
96+
nav-link-font-weight: 800
7997
link-decoration: none
80-
pkgdown-footer-bg: "#24292f"
98+
pkgdown-footer-bg: "#0d1117"
8199
pkgdown-footer-color: "#8b949e"
100+
dropdown-bg: "22272e"
101+
dropdown-border-color: "#6c757d80"
102+
dropdown-divider-bg: "#6c757d80"
103+
dropdown-dark-bg: "24292f"
104+
dropdown-dark-border-color: "#6c757d80"
105+
dropdown-dark-divider-bg: "#6c757d80"
106+
nav-pills-link-active-bg: "#24292f"
107+
nav-pills-link-active-color: "#ffffff"
108+
nav-link-hover-color: "#6a788a"
82109

83110
figures:
84111
dpi: 300

0 commit comments

Comments
 (0)