aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorslice <[email protected]>2020-12-19 00:58:40 -0800
committerGitHub <[email protected]>2020-12-19 03:58:40 -0500
commit58dc230072eb5de15ca70dbe955be7d3c9a7e618 (patch)
tree42ffac161aa25cb09ee41fed807dbdab3648b9eb /docs
parent[tasks] Add missing attributetable to tasks (diff)
downloaddiscord.py-58dc230072eb5de15ca70dbe955be7d3c9a7e618.tar.xz
discord.py-58dc230072eb5de15ca70dbe955be7d3c9a7e618.zip
[matrix] Fix inconsistent monospace fonts
Internal references use a much simpler font stack that's different compared to what's used for most <pre> and <code> elements on the page, so let's make it more consistent by introducing a monospace font variable that's used everywhere we want one.
Diffstat (limited to 'docs')
-rw-r--r--docs/_static/style.css5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/_static/style.css b/docs/_static/style.css
index f0bf4f14..d2a397f2 100644
--- a/docs/_static/style.css
+++ b/docs/_static/style.css
@@ -19,6 +19,7 @@ Historically however, thanks to:
/* CSS variables would go here */
:root {
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
+ --monospace-font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
/* palette goes here */
--white: #ffffff;
@@ -855,7 +856,7 @@ dl.field-list {
/* internal references are forced to bold for some reason */
a.reference.internal > strong {
font-weight: unset;
- font-family: monospace;
+ font-family: var(--monospace-font-family);
}
/* exception hierarchy */
@@ -950,7 +951,7 @@ pre {
}
pre, code {
- font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
+ font-family: var(--monospace-font-family);
font-size: 0.9em;
overflow-wrap: break-word;
}