Skip to content

Commit d986826

Browse files
committed
html - fix code-copy style (#5538)
1 parent 1251871 commit d986826

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/resources/formats/html/_quarto-rules.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,7 @@ details > summary > p:only-child {
282282
}
283283

284284
// codeCopy
285-
pre.sourceCode,
286-
code.sourceCode {
285+
div.sourceCode {
287286
position: relative;
288287
}
289288

src/resources/formats/html/bootstrap/_bootstrap-rules.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ pre.sourceCode {
877877
border: none;
878878
}
879879
font-size: $code-block-font-size;
880-
overflow: visible !important;
880+
overflow-y: auto !important;
881881
@if $code-block-bg {
882882
padding: $code-block-bg-padding;
883883
}
@@ -890,7 +890,7 @@ pre.sourceCode > code.sourceCode {
890890
}
891891

892892
div.sourceCode {
893-
overflow-y: hidden;
893+
position: relative;
894894
}
895895

896896
.callout div.sourceCode {

0 commit comments

Comments
 (0)