From 28cb5686479733cafb9c07970c79c45513c4f6d0 Mon Sep 17 00:00:00 2001 From: Emma Harper Smith Date: Thu, 19 Jun 2025 20:17:33 -0400 Subject: [PATCH] Add signature styles --- python_docs_theme/static/pydoctheme.css | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index 4873116..4d45efe 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -771,3 +771,45 @@ div.versionremoved .versionmodified { display: none; } } + + +/* Function name styling */ +.sig-name.descname { + color: #bbb; + font-weight: 600; + padding-top: 2px; +} + +/* Parentheses styling */ +.sig-paren { + color: #999999; + font-weight: 500; +} + +/* Parameter name styling */ +.sig-param > .pre:first-child { + color: #e58eeb; + font-weight: 500; +} + +/* Type annotation styling */ +.sig-param .property { + color: #82aaff; +} + +/* Return type arrow */ +.sig > .pre { + color: #999999; + font-weight: 600; + margin: 0 6px; +} + +/* Return type styling */ +.sig > .property { + color: #82aaff; +} + +/* Colon styling in type annotations */ +.sig-param { + color: #999999; +}