Skip to content

Commit 7493dbb

Browse files
committed
docs(pytest-plugin[css]): fix card text bleed from Furo theme overrides
why: Furo sets text-indent: -35px (hanging indent for wrapped signatures) and margin: 0 -4px (negative side margins) on dt elements. Both cause fixture card content to bleed outside the card border on the left side. what: - Reset text-indent: 0 and margin: 0 on dl.py.fixture > dt - Add padding-left: 1rem for consistent left spacing - Use !important on dd margin-left: 0 to override Furo's 32px default
1 parent f548714 commit 7493dbb

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/_static/css/custom.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,18 @@ dl.py.fixture {
469469
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
470470
}
471471

472+
/* Reset Furo's hanging-indent and negative-margin on dt so content
473+
* stays within the card border. Furo sets text-indent: -35px and
474+
* margin: 0 -4px for wrapped signatures — both break our flex card. */
475+
dl.py.fixture > dt {
476+
text-indent: 0;
477+
margin: 0;
478+
padding-left: 1rem;
479+
}
480+
472481
dl.py.fixture > dd {
473482
padding: 0.75rem 1rem;
474-
margin-left: 0;
483+
margin-left: 0 !important; /* override Furo's dd { margin-left: 32px } */
475484
}
476485

477486
/* Metadata fields: compact grid that keeps dt/dd pairs together */

0 commit comments

Comments
 (0)