guzzle / guzzle_sphinx_theme

Sphinx theme used by Guzzle
MIT License
169 stars 60 forks source link

math has colors #36

Closed sbonaretti closed 4 years ago

sbonaretti commented 6 years ago

Hi, When using :math:, chars get green. What should I overwrite in css to have black chars? Thanks a lot!

screen shot 2018-07-11 at 11 08 28 am
dhnza commented 4 years ago

For anyone still looking for an answer, one solution is to add a CSS file to Sphinx's static files that overrides Guzzle's styling for math elements.

I added a file _static/css/guzzle_override.css containing

/**
 * These class styles override the Guzzle defaults, which use #009999 (a light
 * teal) for math elements. 
 */
.m { color: #333333 } /* Literal.Number */
.mf { color: #333333 } /* Literal.Number.Float */
.mh { color: #333333 } /* Literal.Number.Hex */
.mi { color: #333333 } /* Literal.Number.Integer */                                                                                                                                                                                                                                                                    
.mo { color: #333333 } /* Literal.Number.Oct */
.mn { color: #333333 } /* Literal.Number.Number */
.mrow { color: #333333 } /* Literal.Number.Row */

You need to add this file to your CSS sources by adding the following to your conf.py

html_css_files = ['css/guzzle_override.css']
sbonaretti commented 4 years ago

It works! Thanks! :)