Skip to content

Commit 51253d8

Browse files
committed
Allow anchors to word-break anywhere
Anchors with very long unbreakable links cause pages to be horizontally scrollable on mobile. Fix this by allowing anchors to break anywhere.
1 parent e347e59 commit 51253d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sphinx/themes/basic/static/basic.css.jinja

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ a:visited {
230230
color: #551A8B;
231231
}
232232

233+
a {
234+
word-break: break-all;
235+
}
236+
233237
h1:hover > a.headerlink,
234238
h2:hover > a.headerlink,
235239
h3:hover > a.headerlink,

0 commit comments

Comments
 (0)