Skip to content

Commit e1ff863

Browse files
committed
Consistent pre codes
1 parent 2a8a287 commit e1ff863

3 files changed

Lines changed: 14 additions & 747 deletions

File tree

inst/brand_yml/_brand.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ defaults:
7474
Arial"
7575
code_font: "'Fira Code', 'Courier New', monospace"
7676
code-color: "#e83e8c"
77+
code-color-dark: "#e75ca2"
7778
navbar-light-bg: "#22272e"
7879
navbar-light-color: "#ffffff"
7980
navbar-light-toggler-border-color: "#22272e"
@@ -102,10 +103,10 @@ defaults:
102103
link-decoration: none
103104
pkgdown-footer-bg: "#0d1117"
104105
pkgdown-footer-color: "#8b949e"
105-
dropdown-bg: "22272e"
106+
dropdown-bg: "#22272e"
106107
dropdown-border-color: "#6c757d80"
107108
dropdown-divider-bg: "#6c757d80"
108-
dropdown-dark-bg: "24292f"
109+
dropdown-dark-bg: "#24292f"
109110
dropdown-dark-border-color: "#6c757d80"
110111
dropdown-dark-divider-bg: "#6c757d80"
111112
nav-pills-link-active-bg: "#24292f"

inst/pkgdown/assets/BS5/gitdevr.css

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,6 @@ img.logo {
249249
display: none;
250250
}
251251

252-
@media (max-width: 575.98px) {
253-
.btn-copy-ex {
254-
right: 5px;
255-
}
256-
}
257-
258252
.template-home img.logo {
259253
display: inline;
260254
}
@@ -300,6 +294,16 @@ code {
300294
background-color: var(--body-bg) !important;
301295
}
302296

297+
@media (max-width: 575.98px) {
298+
div > pre {
299+
margin-left: calc(var(--bs-gutter-x) * -0.5);
300+
margin-right: calc(var(--bs-gutter-x) * -0.5);
301+
border-radius: 0;
302+
padding-left: 1rem;
303+
padding-right: 1rem;
304+
}
305+
}
306+
303307
/* --- Inherited args --- */
304308
.template-reference-topic dt {
305309
font-weight: 800;

0 commit comments

Comments
 (0)