quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
4k stars 328 forks source link

`monobackgroundcolor` ignored by document title and section title #6781

Open zenggyu opened 1 year ago

zenggyu commented 1 year ago

Bug description

As the title suggests, monobackgroundcolor seems to be ignored by by document title and section title.

Steps to reproduce

---
title: "Document title with `code`"
format:
  html:
    monobackgroundcolor: "transparent"
---

# Section title with `code`

Some text with `code`

Expected behavior

monobackgroundcolor should affect document title and section title as well.

Actual behavior

monobackgroundcolor does not affect document title or section title. Example below:

图片

Your environment

Quarto check output

quarto check

[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.3.361
      Path: /opt/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.12
      Path: /usr/bin/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
      Version: 4.3.0
      Path: /usr/lib/R
      LibPaths:
        - /home/nick/R/x86_64-pc-linux-gnu-library/4.3
        - /usr/local/lib/R/site-library
        - /usr/lib/R/site-library
        - /usr/lib/R/library
      knitr: 1.43
      rmarkdown: 2.22

[✓] Checking Knitr engine render......OK
mcanouil commented 1 year ago

I am not completely sure it is a bug, maybe an omission.

https://github.com/quarto-dev/quarto-cli/blob/f87976c6dc9b0d0ea125ac58ad08860d63dae8ad/src/resources/formats/html/bootstrap/_bootstrap-rules.scss#L909-L937

mcanouil commented 1 year ago

I made a PR to extend monobackgroundcolor to HTML headers.