Skip to content

Commit 6607546

Browse files
committed
Remove !important from custom proof font-weight CSS
The '!important' flag was removed from the dynamically generated CSS for proof number and title font weights. This change allows for easier CSS overrides and better integration with existing styles.
1 parent f638c7f commit 6607546

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sphinx_proof/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ def copy_asset_files(app: Sphinx, exc: Union[bool, Exception]):
8787
if app.config.proof_number_weight:
8888
css_content = css_content.replace(
8989
"div.proof > p.admonition-title > span.caption-number {\n font-weight: var(--pst-admonition-font-weight-heading);\n}", # noqa: E501
90-
f"div.proof > p.admonition-title > span.caption-number {{\n font-weight: {app.config.proof_number_weight} !important;\n}}", # noqa: E501
90+
f"div.proof > p.admonition-title > span.caption-number {{\n font-weight: {app.config.proof_number_weight};\n}}", # noqa: E501
9191
)
9292
if app.config.proof_title_weight:
9393
css_content = css_content.replace(
9494
"div.proof > p.admonition-title {\n font-weight: var(--pst-admonition-font-weight-heading);\n}", # noqa: E501
95-
f"div.proof > p.admonition-title {{\n font-weight: {app.config.proof_title_weight} !important;\n}}", # noqa: E501
95+
f"div.proof > p.admonition-title {{\n font-weight: {app.config.proof_title_weight};\n}}", # noqa: E501
9696
)
9797
out_path = Path(app.outdir).joinpath("_static", os.path.basename(path))
9898
with open(out_path, "w", encoding="utf-8") as f:

0 commit comments

Comments
 (0)