Skip to content

Commit f74baef

Browse files
author
Zhuoming Chen
committed
comments and docs
1 parent 8605d0d commit f74baef

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

docs/_static/custom.css

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,15 @@ dl.py.class > dt.sig {
151151
border-radius: 0.55rem;
152152
background: linear-gradient(135deg, #ffffff 0%, #fff2f8 100%);
153153
border: 1px solid var(--vtx-pink-soft);
154-
border-left: 4px solid transparent;
155-
border-image: var(--vtx-grad) 1;
156-
border-image-slice: 1;
154+
border-left: 4px solid var(--vtx-pink);
157155
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. */
158+
box-sizing: border-box;
159+
max-width: 100%;
160+
white-space: normal;
161+
overflow-wrap: anywhere;
162+
word-break: break-word;
158163
}
159164
dl.py.class > dt.sig .sig-name { font-weight: 700; font-size: 1em; color: var(--vtx-pink-deep); }
160165
dl.py.class > dt.sig .sig-prename { opacity: 0.7; }
@@ -166,6 +171,11 @@ dl.py.property > dt.sig {
166171
border-radius: 0.4rem;
167172
border-left: 3px solid var(--vtx-pink-soft);
168173
background: #fff7fb;
174+
box-sizing: border-box;
175+
max-width: 100%;
176+
white-space: normal;
177+
overflow-wrap: anywhere;
178+
word-break: break-word;
169179
}
170180
dl.py.method > dt.sig .sig-name { font-weight: 600; }
171181

0 commit comments

Comments
 (0)