Skip to content

Commit ea1c6f9

Browse files
committed
Consistent pre codes
1 parent 23112ab commit ea1c6f9

File tree

4 files changed

+14
-455
lines changed

4 files changed

+14
-455
lines changed

data-raw/compress_css.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ sass(
99
cache = NULL,
1010
options = sass_options(output_style = "compressed")
1111
)
12+
13+
message("OK, compressed")

inst/brand_yml/_brand.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,4 @@ defaults:
8686
dropdown-dark-divider-bg: rgba(255, 255, 255, .1)
8787
blockquote-border-color: transparent
8888
code-color: "#e83e8c"
89+
code-color-dark: "#e83e8c"

inst/pkgdown/assets/BS5/rogtemplate.css

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,6 @@ footer .pkgdown-footer-left {
199199
border-color: var(--bs-warning);
200200
}
201201

202-
@media (max-width: 575.98px) {
203-
.btn-copy-ex {
204-
right: 5px;
205-
}
206-
}
207-
208202
.pkg {
209203
font-weight: bold;
210204
}
@@ -226,6 +220,16 @@ code {
226220
background-color: var(--body-bg) !important;
227221
}
228222

223+
@media (max-width: 575.98px) {
224+
div > pre {
225+
margin-left: calc(var(--bs-gutter-x) * -0.5);
226+
margin-right: calc(var(--bs-gutter-x) * -0.5);
227+
border-radius: 0;
228+
padding-left: 1rem;
229+
padding-right: 1rem;
230+
}
231+
}
232+
229233
/* Highlighter based in tango for dark theme */
230234
pre {
231235
border: none;

0 commit comments

Comments
 (0)