Skip to content

Commit 318b6ef

Browse files
committed
Fix issues on pre rendering r-lib/pkgdown#2970
1 parent e1ff863 commit 318b6ef

3 files changed

Lines changed: 75 additions & 7 deletions

File tree

inst/pkgdown/assets/BS5/gitdevr.css

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,23 @@ code {
295295
}
296296

297297
@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;
298+
@media (max-width: 575.98px) {
299+
/* See https://github.com/r-lib/pkgdown/pull/2970 */
300+
301+
div > pre {
302+
border-radius: 0;
303+
}
304+
305+
:not(li, blockquote) > div > pre {
306+
margin-left: calc(var(--bs-gutter-x) * -0.5);
307+
margin-right: calc(var(--bs-gutter-x) * -0.5);
308+
padding-left: 1rem;
309+
padding-right: 1rem;
310+
}
311+
312+
:not(li, blockquote) > div > .btn-copy-ex {
313+
right: calc(var(--bs-gutter-x) * -0.5 + 5px);
314+
}
304315
}
305316
}
306317

0 commit comments

Comments
 (0)