Skip to content
Discussion options

You must be logged in to vote

The most likely cause is where the strong rule sits in the file, not the CSS itself.

In a Quarto theme file, the part under /*-- scss:defaults --*/ is for variables, and it is placed before Bootstrap. Normal CSS rules belong under /*-- scss:rules --*/, which is placed after it (HTML Theming: Theme Options: "the variables section is denoted by the /*-- scss:defaults --*/ comment and the rules section (where normal CSS rules go) is denoted by the /*-- scss:rules --*/ comment").

Your strong { ... } rule is in the defaults part. Bootstrap, which comes after it, then sets this with the same specificity and wins:

// Bootstrap's _reboot.scss, as bundled with Quarto
b,
strong {
  font-weight: $fo…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by adamiturabi
Comment options

You must be logged in to vote
1 reply
@have-you-tried-restarting
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
themes Related to HTML theming or any other style related issue (like highlight-style)
3 participants