Skip to content

Commit 4a0dc69

Browse files
committed
_ext(style[css-field-labels]): demote field labels to normal-weight uppercase without colon
why: Bold field labels ("Depends on:", "Used by:") competed visually with fixture names and section headings. The colon is redundant in a grid layout where spatial alignment already signals key-value pairs. what: - Set font-weight: normal on fixture field-list dt elements - Add text-transform: uppercase with 0.85em font-size and slight letter-spacing for a metadata-label treatment - Hide the Sphinx-injected .colon span via display: none
1 parent b3cf148 commit 4a0dc69

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/_ext/sphinx_pytest_fixtures/_static/css/sphinx_pytest_fixtures.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,14 @@ dl.py.fixture > dd > dl.field-list {
355355
padding-top: 0.5rem;
356356
margin-top: 0.5rem;
357357
}
358-
dl.py.fixture > dd > dl.field-list > dt { grid-column: 1; }
358+
dl.py.fixture > dd > dl.field-list > dt {
359+
grid-column: 1;
360+
font-weight: normal;
361+
text-transform: uppercase;
362+
font-size: 0.85em;
363+
letter-spacing: 0.025em;
364+
}
365+
dl.py.fixture > dd > dl.field-list > dt .colon { display: none; }
359366
dl.py.fixture > dd > dl.field-list > dd { grid-column: 2; margin-left: 0; }
360367

361368
/* Mobile: metadata fields stack to single column */

0 commit comments

Comments
 (0)