diff --git a/src/resources/formats/html/_quarto-rules.scss b/src/resources/formats/html/_quarto-rules.scss index 0c86d213e8d..dcf5e53397d 100644 --- a/src/resources/formats/html/_quarto-rules.scss +++ b/src/resources/formats/html/_quarto-rules.scss @@ -587,9 +587,12 @@ div.ansi-escaped-output { --quarto-text-muted: #{$text-muted}; --quarto-border-color: #{$table-border-color}; --quarto-border-width: #{$border-width}; - --quarto-border-radius: #{$border-radius}; + @if not variable-exists(enable-rounded) or $enable-rounded == true { + --quarto-border-radius: #{$border-radius}; + } } + /* rules to support GT table styling */ table.gt_table { color: var(--quarto-body-color); diff --git a/src/resources/formats/html/bootstrap/_bootstrap-rules.scss b/src/resources/formats/html/bootstrap/_bootstrap-rules.scss index b1332b5d71d..a4676bee06b 100644 --- a/src/resources/formats/html/bootstrap/_bootstrap-rules.scss +++ b/src/resources/formats/html/bootstrap/_bootstrap-rules.scss @@ -835,7 +835,9 @@ div.sourceCode { @if $code-block-bg { background-color: $code-block-bg-color; border: 1px solid $code-block-bg-color; - border-radius: $border-radius; + @if $enable-rounded { + border-radius: $border-radius; + } } @else { background-color: $body-bg !important; border: none;