Skip to content

Commit 8b0f500

Browse files
committed
docs: improve RtD CSS for object signatures
1 parent 08d7a46 commit 8b0f500

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/source/_static/api-font.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* Use a mono font for every part of a signature (preference settings, API endpoint, etc.) */
2+
.sig:not(.sig-inline) {
3+
font-family: SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, Courier, monospace;
4+
}
5+
6+
/* Make the RtD theme respect whitespaces */
7+
.property {
8+
display: inline !important;
9+
padding-right: 0 !important;
10+
}
11+
12+
.sig-prename {
13+
font-weight: normal;
14+
}

docs/source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@
123123
# so a file named "default.css" will overwrite the builtin "default.css".
124124
html_static_path = ['_static']
125125

126+
html_css_files = [
127+
'api-font.css',
128+
]
129+
126130
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
127131
# using the given strftime format.
128132
#html_last_updated_fmt = '%b %d, %Y'

0 commit comments

Comments
 (0)