Skip to content

Commit c1686c8

Browse files
authored
Merge pull request #11106 from quarto-dev/feat/sass-follow-bootstrap-enable-radius
feat(html): `--quarto-border-radius` follows Bootstrap's `$enable-rounded`
2 parents a2a22e5 + 1bc5c5d commit c1686c8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,9 +587,12 @@ div.ansi-escaped-output {
587587
--quarto-text-muted: #{$text-muted};
588588
--quarto-border-color: #{$table-border-color};
589589
--quarto-border-width: #{$border-width};
590-
--quarto-border-radius: #{$border-radius};
590+
@if not variable-exists(enable-rounded) or $enable-rounded == true {
591+
--quarto-border-radius: #{$border-radius};
592+
}
591593
}
592594

595+
593596
/* rules to support GT table styling */
594597
table.gt_table {
595598
color: var(--quarto-body-color);

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,9 @@ div.sourceCode {
835835
@if $code-block-bg {
836836
background-color: $code-block-bg-color;
837837
border: 1px solid $code-block-bg-color;
838-
border-radius: $border-radius;
838+
@if $enable-rounded {
839+
border-radius: $border-radius;
840+
}
839841
} @else {
840842
background-color: $body-bg !important;
841843
border: none;

0 commit comments

Comments
 (0)