You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
brand`_brand.yml`bugSomething isn't workinghtmlIssues with HTML and related web technology (html/css/scss/js)regressionFunctionality that used to work but now is broken.
brand`_brand.yml`bugSomething isn't workinghtmlIssues with HTML and related web technology (html/css/scss/js)regressionFunctionality that used to work but now is broken.
Activity
[-]`monofont` no longer works[/-][+]`monofont` no longer works since 1.6[/+][-]`monofont` no longer works since 1.6[/-][+]`monofont` no longer works since 1.6.27[/+]mcanouil commentedon Jun 4, 2025
It seems the faulty commit is: 6a1bdba (it does not compile without 4702f46 but the variables are not related to the issue)
cderv commentedon Jun 5, 2025
monofontis supposed to be passed tofont-family-codeSCSS variablequarto-cli/src/format/html/format-html-scss.ts
Line 470 in a172c18
Though I see we have in https://quarto.org/docs/output-formats/html-themes.html#fonts
font-family-monospaceand both seems to be a bit different
quarto-cli/src/resources/formats/html/bootstrap/dist/scss/_variables.scss
Lines 612 to 618 in a172c18
The
font-family-codeis used only is few placesquarto-cli/src/resources/formats/html/bootstrap/_bootstrap-rules.scss
Lines 1936 to 1938 in a172c18
quarto-cli/src/resources/formats/html/bootstrap/dist/scss/_reboot.scss
Lines 286 to 294 in a172c18
quarto-cli/src/resources/formats/html/bootstrap/_bootstrap-rules.scss
Lines 2000 to 2009 in a172c18
What the PR
introduced is new rules that will take higher specificity in CSS
quarto-cli/src/resources/formats/html/bootstrap/_bootstrap-rules.scss
Lines 2163 to 2165 in 4c44c81
quarto-cli/src/resources/formats/html/bootstrap/_bootstrap-rules.scss
Lines 2163 to 2165 in 4c44c81
Those variables were introduced in the PR #11028
quarto-cli/src/resources/formats/html/bootstrap/_bootstrap-variables.scss
Lines 264 to 265 in 4c44c81
And they are using
$font-family-monospacenot$font-family-codeInteresting thing to note is that on revealjs side,
monofontis allocated tofont-family-monospace, so no problemquarto-cli/src/format/reveal/format-reveal-theme.ts
Line 272 in 4c44c81
So on HTML,
$font-family-codeand$font-family-baseare specificquarto-cli/src/format/html/format-html-scss.ts
Lines 481 to 482 in 4c44c81
Should
font-family-codebe used for themonospace-inlineandmonospace-block?Or should they be removed in favor of
font-family-monospaceonly?Or maybe this is more adaptation.
font-family-monospaceandfont-family-codeare both defined in Bootstrap directly, and why we have both in Quartohttps://github.com/rstudio/bslib/blob/7cf80506c6beb9d7e5f2f146d2c9c935bbaf1635/inst/lib/bs5/scss/_variables.scss#L612-L618
So it seems they have different meanings, but I have a hard time seeing the exact difference
In bootstrap
font-family-codeis used for different object likepreandcodehttps://github.com/rstudio/bslib/blob/7cf80506c6beb9d7e5f2f146d2c9c935bbaf1635/inst/lib/bs5/scss/_reboot.scss#L286-L294
and we do same in quarto
quarto-cli/src/resources/formats/html/bootstrap/dist/scss/_reboot.scss
Lines 286 to 294 in 4c44c81
but we also try to 'redo' the
_reboot.scssin a different wayquarto-cli/src/resources/formats/html/bootstrap/_bootstrap-rules.scss
Lines 2161 to 2187 in 4c44c81
And this is where
monofont, beingfont-family-code, is lost.So after all this is a brand related discussion too
cscheid commentedon Aug 27, 2025
As a simple workaround, one could use
brandin immediate mode:We still want to fix it, but the regression urgency is lessened now that I know of the workaround.