Sphinx Search yellow highlight creates extra white space

40 views
Skip to first unread message

NickJ

unread,
Jan 12, 2017, 6:10:33 PM1/12/17
to sphinx-users
Hello,

Currently whenever I perform a search the yellow highlight creates extra white space. For example when I search "Change", It would find the word "Changes" but make it look like this " Click Save My Changes. "
I would like for it to highlight but don't create the white space between the "e" and the "s".
Is there a current solution to fix this?


Komiya Takeshi

unread,
Jan 13, 2017, 11:04:08 AM1/13/17
to sphinx-users
Hi,

I believe it is caused by stylesheets.
What theme do you use? Alabaster (sphinx's default)? rtd_theme?

Anyway, sphinx uses .highlighted class to the highlighted words.
So please replace or update your stylesheet to erase paddings or margins.

Some articles would let you know how to add custom stylesheet on sphinx.
For example:

Thanks,
Takeshi KOMIYA

2017年1月13日金曜日 8時10分33秒 UTC+9 NickJ:

NickJ

unread,
Jan 14, 2017, 12:37:15 AM1/14/17
to sphinx-users
   Otherwise I would be interested in learning how to turn it off.

NickJ

unread,
Jan 18, 2017, 9:10:32 AM1/18/17
to sphinx-users
Thanks for the help that fixed my issue.

NickJ
Reply all
Reply to author
Forward
0 new messages