File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,14 +147,18 @@ article.content,
147147/* ---- 7. Class / method signature cards ---------------------------------- */
148148dl .py .class > dt .sig {
149149 font-size : 0.9em ;
150- padding : 0.45rem 0.7rem ;
150+ /* Hanging indent for wrapped lines, kept *inside* the card: the first
151+ line's negative text-indent (the ``class`` keyword) is fully absorbed
152+ by the matching left padding, so nothing spills past the left border.
153+ This overrides furo's ``padding-left:3em; text-indent:-2.5em`` whose
154+ geometry assumed furo's own padding, not our card padding. */
155+ padding : 0.45rem 0.7rem 0.45rem 2.6rem ;
156+ text-indent : -1.9rem ;
151157 border-radius : 0.55rem ;
152158 background : linear-gradient (135deg , # ffffff 0% , # fff2f8 100% );
153159 border : 1px solid var (--vtx-pink-soft );
154160 border-left : 4px solid var (--vtx-pink );
155161 box-shadow : var (--vtx-shadow );
156- /* Long dotted paths + arg lists must wrap inside the card, never spill
157- out of it. ``box-sizing`` keeps the padding/border within the width. */
158162 box-sizing : border-box;
159163 max-width : 100% ;
160164 white-space : normal;
You can’t perform that action at this time.
0 commit comments