Skip to content

Commit 4fc657c

Browse files
author
Meghan Jones
authored
Fix parameters section with sphinx_rtd_theme 5.x.x (#1197)
* Update custom css for parameters section * Add grey box around parameters in docs
1 parent 9c6a0f6 commit 4fc657c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

doc/_static/style.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,32 @@ p {
8989
max-width: 1000px;
9090
}
9191

92+
/* Format parameters section similar to sphinx_rtd_theme v4.x.x (not a grid) */
93+
html.writer-html5 .rst-content dl.field-list {
94+
display: initial;
95+
}
96+
97+
/* Add a grey box around parameters similar to sphinx_rtd_theme v4.x.x) */
98+
.rst-content dl:not(.docutils) dl dt {
99+
margin-bottom: 4px;
100+
border: none;
101+
border-left: solid 3px #ccc;
102+
background: #f0f0f0;
103+
color: #555;
104+
}
105+
106+
.rst-content dl:not(.docutils) dt {
107+
display: table;
108+
margin: 6px 0;
109+
font-size: 90%;
110+
line-height: normal;
111+
background: #e7f2fa;
112+
color: #2980B9;
113+
border-top: solid 3px #6ab0de;
114+
padding: 6px;
115+
position: relative;
116+
}
117+
92118
/* Remove the padding from the Parameters table */
93119
.rst-content table.field-list .field-name {
94120
padding-left: 0px;

0 commit comments

Comments
 (0)