Skip to content

Commit 9a9dcab

Browse files
committed
Update pydoctheme.css
1 parent 64a25de commit 9a9dcab

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

python_docs_theme/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ def setup(app: Sphinx) -> ExtensionMetadata:
4848
"version": __version__,
4949
"parallel_read_safe": True,
5050
"parallel_write_safe": True,
51-
}
51+
}

python_docs_theme/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,4 @@ <h3>{{ _('Navigation') }}</h3>
169169

170170
{% trans sphinx_version=sphinx_version|e %}Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
171171
</div>
172-
{% endblock %}
172+
{% endblock %}

python_docs_theme/static/pydoctheme.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ form.inline-search input[type='submit'] {
141141

142142
div.document {
143143
display: flex;
144-
flex-direction: row;
145144
/* Don't let long code literals extend beyond the right side of the screen */
146145
overflow-wrap: break-word;
147146
}
@@ -228,8 +227,7 @@ div.sphinxsidebar input[type='text'] {
228227
align-items: center;
229228
width: 12px;
230229
min-width: 12px;
231-
border-start-end-radius: 5px;
232-
border-end-end-radius: 5px;
230+
border-radius: 0 5px 5px 0;
233231
border-left: none;
234232
}
235233

@@ -238,6 +236,7 @@ div.sphinxsidebar input[type='text'] {
238236
}
239237

240238
div.body {
239+
padding: 0;
241240
padding-inline-start: 1.2em;
242241
}
243242

@@ -268,6 +267,11 @@ div.body hr {
268267
height: 1px;
269268
}
270269

270+
dl > dt span ~ em,
271+
.sig {
272+
font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
273+
}
274+
271275
pre,
272276
code,
273277
div.highlight,
@@ -459,9 +463,9 @@ table.footnote td {
459463

460464
div.footer {
461465
line-height: 150%;
462-
text-align: end; /* was: text-align: right */
466+
text-align: end;
463467
width: auto;
464-
margin-inline-end: 10px; /* was: margin-right */
468+
margin-inline-end: 10px;
465469
}
466470

467471
div.footer a {

0 commit comments

Comments
 (0)