Website projects ignore `$border-color` and `$border-radius` defaults because of an invalid `scss:variables` boundary in `quarto-listing.scss`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 74/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- sass
- 領域
- build-system
調査の方向性
src/core/sass.tsの201~202行付近を読み、src/resources/projects/website/listing/quarto-listing.scssの4行目および80~98行目付近を調べてください。レイヤーパーサーが境界scss:variablesをどのように処理するかを確認し、次に提供されたウェブサイトの再現例をレンダリングして、そのCSSを単独出力のCSSと比較してください。ウェブサイトがテーマのデフォルト値$border-colorと$border-radiusを反映すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
In a website project, a theme that sets $border-color or $border-radius with !default in scss:defaults has no effect.
The same theme works in a standalone document.
Colours and radii that a theme sets for borders, form controls and cards are replaced by Quarto's own values.
quarto-listing.scss starts the functions layer with a valid boundary.
A later line is /*-- scss:variables --*/, followed by variables such as $border-color: $gray-300 !default; and $border-radius: 0.25rem !default;.
The layer parser only accepts uses, functions, rules, defaults and mixins, so variables is read as a comment.
Those variables therefore stay in the functions layer.
Functions are written before all defaults, so they are set first, and the !default of a theme or user layer that comes later is ignored.
With QUARTO_SAVE_SCSS set, the saved file shows the order.
$border-color: $gray-300 !default; is at line 620, inside the 'functions' section from Quarto (lines 490 to 1036).
The theme's $border-color: #ff0000 !default; is at line 1042, under Defaults from user-defined SCSS.
#13960 reports the same kind of bad delimiter for title-block.scss, where the variables are all null !default and nothing breaks.
This file is different, because its variables shadow real theme variables.
Steps to reproduce
custom.scss:
/*-- scss:defaults --*/
$border-color: #ff0000 !default;
$border-radius: 1rem !default;
_quarto.yml of a website project:
project:
type: website
website:
title: t
format:
html:
theme: [default, custom.scss]
index.qmd is any page with a title.
For comparison, render a standalone document with the same theme: [default, custom.scss].
quarto render
grep -o -- '--bs-border-color:[^;]*' _site/site_libs/bootstrap/bootstrap-*.min.css
grep -o -- '\.form-control{[^}]*}' _site/site_libs/bootstrap/bootstrap-*.min.css | grep -o 'border-radius:[^;]*'
Actual behavior
| Output | --bs-border-color |
.form-control border-radius |
|---|---|---|
| website project | #dee2e6 |
.25rem |
| standalone document | #ff0000 |
1rem |
Rendered in a website project, the form control and the button keep Quarto's .25rem radius and the grey border:
The same theme in a standalone document:
Expected behavior
The !default values of the theme apply in a website project, as they do in a standalone document.
Your environment
- IDE: none, terminal only
- OS: macOS (Darwin 27.0.0, Apple Silicon)
Quarto check output
Quarto 99.9.9
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.10.0: OK
Dart Sass version 1.101.0: OK
Deno version 2.7.14: OK
Typst version 0.15.1: OK
[✓] Checking Quarto installation......OK
Version: 99.9.9
commit: 69592e5c1718d3e1b2f3d11e757d32e23a16af67
- 主要言語
- JavaScript
- スター
- 6.1k
- フォーク
- 471
- 平均マージ
- 17時間 35分
- マージ済み PR(30日)
- 107
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
quarto-dev/quarto-cli のほかの issue
-
accessibility bug html websites
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
quarto-dev/quarto-cli#15187 ·
メンテナーはふだん 1 日以内に返信
-
enhancement themes websites
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
quarto-dev/quarto-cli#15179 ·
メンテナーはふだん 1 日以内に返信
-
about-page bug layout websites
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
quarto-dev/quarto-cli#15178 ·
メンテナーはふだん 1 日以内に返信
-
a11y: prev/next page links and title breadcrumbs use `$text-muted` and fail contrast on dark themesオープンaccessibility bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
quarto-dev/quarto-cli#15175 ·
メンテナーはふだん 1 日以内に返信
-
accessibility bug code-blocks
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
quarto-dev/quarto-cli#15174 ·
メンテナーはふだん 1 日以内に返信
quarto-dev/quarto-cli の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
oskarrough/dodgethis#115 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: REST API URL starting with "http" but no scheme (e.g. httpbin.org/get) is not given an http:// prefix対応中かも @ItsDeadlyProgrammer が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
appsmithorg/appsmith#42471 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
external-plugin requires-submitter-fixes
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
github/awesome-copilot#5396 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
chenasraf/nextcloud-forum#348 ·
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
melodic-software/claude-code-plugins#9619 ·
メンテナーはふだん 1 日以内に返信