diff options
author | Shaun McCance <shaunm@gnome.org> | 2017-03-17 10:02:18 -0400 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2017-03-17 10:02:18 -0400 |
commit | a5df3334c77d202639d5f37ea1c61391fefbdb1c (patch) | |
tree | ce65e82f71af5a9bca1147f3b22a63a361ad546c | |
parent | 2b00c226b2d923cb6cc1a7491ad6eea907ae94b4 (diff) | |
download | yelp-xsl-a5df3334c77d202639d5f37ea1c61391fefbdb1c.tar.gz |
Get consistent font sizing for monospace text
-rw-r--r-- | xslt/common/html.xsl | 12 | ||||
-rw-r--r-- | xslt/docbook/html/db2html-css.xsl | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/xslt/common/html.xsl b/xslt/common/html.xsl index 7fd5e4a4..7301169a 100644 --- a/xslt/common/html.xsl +++ b/xslt/common/html.xsl @@ -1533,7 +1533,7 @@ tr.shade td.shade { span.app { font-style: italic; } span.cmd { - font-family: monospace; + font-family: monospace,monospace; font-size: 0.83em; background-color: </xsl:text> <xsl:value-of select="$color.bg.gray"/><xsl:text>; padding: 0 0.2em 0 0.2em; @@ -1541,7 +1541,7 @@ span.cmd { span.cmd span.cmd { background-color: none; padding: 0; } pre span.cmd { background-color: none; padding: 0; } span.code { - font-family: monospace; + font-family: monospace,monospace; font-size: 0.83em; border-bottom: solid 1px </xsl:text><xsl:value-of select="$color.bg.dark"/><xsl:text>; } span.code span.code { border: none; } @@ -1554,10 +1554,10 @@ span.em-bold { pre span.error { color: </xsl:text><xsl:value-of select="$color.fg.red"/><xsl:text>; } -span.file { font-family: monospace; } +span.file { font-family: monospace,monospace; font-size: 0.83em; } span.gui, span.guiseq { color: </xsl:text> <xsl:value-of select="$color.fg.dark"/><xsl:text>; } -span.input { font-family: monospace; } +span.input { font-family: monospace,monospace; font-size: 0.83em; } pre span.input { font-weight: bold; color: </xsl:text><xsl:value-of select="$color.fg.dark"/><xsl:text>; @@ -1597,14 +1597,14 @@ span.keyseq { <xsl:value-of select="$color.fg.dark"/><xsl:text>; white-space: nowrap } -span.output { font-family: monospace; } +span.output { font-family: monospace,monospace; font-size: 0.83em; } pre span.output { color: </xsl:text><xsl:value-of select="$color.fg"/><xsl:text>; } pre span.prompt { color: </xsl:text><xsl:value-of select="$color.fg.dark"/><xsl:text>; } -span.sys { font-family: monospace; } +span.sys { font-family: monospace,monospace; font-size: 0.83em; } span.var { font-style: italic; } .ui-tile-img .media-controls { display: none; } diff --git a/xslt/docbook/html/db2html-css.xsl b/xslt/docbook/html/db2html-css.xsl index 5351334e..5354a1c6 100644 --- a/xslt/docbook/html/db2html-css.xsl +++ b/xslt/docbook/html/db2html-css.xsl @@ -132,7 +132,7 @@ div.simplelist td:first-child { } span.accel { text-decoration: underline; } -span.email { font-family: monospace; } +span.email { font-family: monospace,monospace; font-size: 0.83em; } span.firstterm { font-style: italic; } span.foreignphrase { font-style: italic; } @@ -149,7 +149,7 @@ span.lineannotation { font-style: italic; } span.medialabel { font-style: italic; } .methodparam span.parameter { font-style: italic; } span.paramdef span.parameter { font-style: italic; } -span.prompt { font-family: monospace; } +span.prompt { font-family: monospace,monospace; font-size: 0.83em; } span.wordasword { font-style: italic; } <!-- FIXME below --> |