diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-04-10 19:20:59 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-04-11 00:42:07 +0900 |
| commit | 1d1c813b0199276002aca1dd96dfd7af550057b4 (patch) | |
| tree | eaa3d9e1b1021aba64065ac0295e911219ebcea6 /sphinx/themes/epub | |
| parent | deb603f3c5986966bed42f812be191e989483f35 (diff) | |
| download | sphinx-git-1d1c813b0199276002aca1dd96dfd7af550057b4.tar.gz | |
Fix #9051: html theme: The style for figure are not applied
Since docutils-0.17, figure directive starts to output `<figure>` tag.
To support it, this modifies CSS.
Diffstat (limited to 'sphinx/themes/epub')
| -rw-r--r-- | sphinx/themes/epub/static/epub.css_t | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sphinx/themes/epub/static/epub.css_t b/sphinx/themes/epub/static/epub.css_t index 46bbb93b3..9c9ca8565 100644 --- a/sphinx/themes/epub/static/epub.css_t +++ b/sphinx/themes/epub/static/epub.css_t @@ -325,11 +325,13 @@ table.citation td { /* -- figures --------------------------------------------------------------- */ -div.figure p.caption span.caption-number { +div.figure p.caption span.caption-number, +figcaption span.caption-number { font-style: italic; } -div.figure p.caption span.caption-text { +div.figure p.caption span.caption-text, +figcaption span.caption-text { } /* -- field list styles ----------------------------------------------------- */ |
