[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.
This commit is contained in:
parent
9013e1d1a2
commit
58dc230072
5
docs/_static/style.css
vendored
5
docs/_static/style.css
vendored
@ -19,6 +19,7 @@ Historically however, thanks to:
|
|||||||
/* CSS variables would go here */
|
/* CSS variables would go here */
|
||||||
:root {
|
:root {
|
||||||
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
--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 */
|
/* palette goes here */
|
||||||
--white: #ffffff;
|
--white: #ffffff;
|
||||||
@ -855,7 +856,7 @@ dl.field-list {
|
|||||||
/* internal references are forced to bold for some reason */
|
/* internal references are forced to bold for some reason */
|
||||||
a.reference.internal > strong {
|
a.reference.internal > strong {
|
||||||
font-weight: unset;
|
font-weight: unset;
|
||||||
font-family: monospace;
|
font-family: var(--monospace-font-family);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* exception hierarchy */
|
/* exception hierarchy */
|
||||||
@ -950,7 +951,7 @@ pre {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pre, code {
|
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;
|
font-size: 0.9em;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user