doc: fix missing numbered-step icon

Sphinx version 5 generates <section> instead of <div> for
section headings.  This throws off the custom CSS style for numbered
steps so the number icon wasn't showing up.  Tweak the custom CSS to
look for both <section> and <div> with class=numbered-step
to handle Sphinx 4 and 5-generated content.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
This commit is contained in:
David B. Kinder 2023-01-19 16:56:34 -08:00 committed by David Kinder
parent 672f55b37c
commit f8f1d22645
1 changed files with 2 additions and 1 deletions

View File

@ -291,7 +291,8 @@ body {
counter-reset: step-count;
}
div.numbered-step h2::before {
div.numbered-step h2::before,
section.numbered-step h2::before {
counter-increment: step-count;
content: counter(step-count);
background: #cccccc;