-
Notifications
You must be signed in to change notification settings - Fork 383
feat(html): --quarto-border-radius
follows Bootstrap's $enable-rounded
#11106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Do you think we can solve this by defining variables with |
Solve which part with variables? Quarto sets
but the problem is that Or maybe you mean that I replaced
If that file is only used in a Bootstrap context (seems like it is), we could also use |
Which file were you talking about ? FWIW quarto-cli/src/format/html/format-html-shared.ts Lines 177 to 181 in 2bc956a
Used in non bootstrap layer
and on bootstrap layers quarto-cli/src/format/html/format-html-scss.ts Lines 83 to 84 in 2bc956a
Se we just need to be sure we don't add anything bootstrap related. |
I was talking about |
to keep quarto vars together in devtools
@gadenbuie Sorry, I should have been clearer in my original message. I'd prefer to solve these kinds of conditional behavior without having to resort to So, instead of those $enable-rounded: true !default;
$border-radius: if($enable-rounded == true, <whatever-the-default-value>, 0) !default; The idea is that if someone overrides |
We could add The reason that you wouldn't want to set |
Ok, thanks for the additional context and expertise. I retract my concerns. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was talking about src/resources/formats/html/bootstrap/_bootstrap-rules.scss, which from its name appears to be Bootstrap-only.
@gadenbuie yes bootstrap only for this one. 👌
Updates Quarto's Sass rules to set
--quarto-border-radius
following Bootstrap's$enable-rounded
option flag, i.e. not setting Quarto's CSS var if$enable-rounded
is nottrue
.I was wanting hard edges for code blocks and noticed that
div.sourceCode
uses$border-radius
instead of--quarto-border-radius
, so I updated that rule as well.