File: custom-css.md

package info (click to toggle)
sphinx-book-theme 1.1.4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,104 kB
  • sloc: python: 1,302; javascript: 170; makefile: 56; sh: 8
file content (19 lines) | stat: -rw-r--r-- 551 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Add your own CSS rules

To customize the look of your site further, you can customize your CSS stylesheets,
as described in the [ReadTheDocs Docs](https://docs.readthedocs.io/en/stable/guides/adding-custom-css.html).

First, create a CSS file and place it in `_static/custom.css`.
An example CSS file to change the color of the top-level headers might look like this.

```css
h1 {
    color: #003B71 !important;
}
```

You also need these two lines in your `conf.py` file
```python
html_static_path = ["_static"]
html_css_files = ["custom.css"]
```