Hi,
Thanks for replying.
I fixed my problem.
The cause was indeed in `conf.py`
def setup(app):
app.add_stylesheet("styles.css")
To use custom css in addition to the theme css. I got it from a
stackoverflow comment
<https://stackoverflow.com/questions/23462494/how-to-add-custom-css-file-to-sphinx>
:P it works well in chrome but not firefox. It might be because of the
sphinx version though (2.4.5), I have not tried an older one.
Since using a different method (html_theme_path and using my own theme
derived from the rtd theme), this issue disappeared.
Le dimanche 1 mars 2020 16:52:58 UTC+1, Komiya Takeshi a écrit :
>
> Hi,
>
> Could you let us know a URL of the page? Or please make a minimal example.
> It is difficult to help you without reproducing the problem.
>
> Thanks,
> Takeshi KOMIYA
>
> 2020年2月27日(木) 21:41 Benoit Leybaert <[email protected] <javascript:>>:
>
>> I want to add, after searching more, that this is probably caused by a
>> custom css sheet.
>>
>> in conf.py :
>>
>> def setup(app):
>> app.add_stylesheet("styles.css")
>>
>> And I have a "styles.css" file in "_static" folder.
>> everything seems OK but firefox is apparently having trouble taking the
>> style before loading everything ?
>>
>> Le jeudi 27 février 2020 13:32:45 UTC+1, Benoit Leybaert a écrit :
>>>
>>> Hi,
>>>
>>> I have a problem with a svg logo set as the html_logo in conf.py :
>>>
>>> - In firefox, logo is taking all the page to load then resize instantly,
>>> or the text is loading without css during a split second :
>>>
>>> [image: Peek_27-02-2020_FIREFOX.gif]
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> - Yet in Chromium, it works as expected :
>>>
>>> [image: Peek_27-02-2020_CHROME.gif]
>>>
>>> I can't seem to find the root of the problem... Would this be a bug with
>>> firefox, with a certain version of sphinx, or bad configuration ?
>>>
>>>
>>> Thanks,
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sphinx-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sphinx-users/1a101a26-67f8-4b91-b0e2-da6a61f9d362%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/sphinx-users/1a101a26-67f8-4b91-b0e2-da6a61f9d362%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sphinx-users/ce7e9f28-a165-4fe6-9fa0-5a25e409b23d%40googlegroups.com.