From be606498d4965fd496b2c5a046bdf9f3be8cc835 Mon Sep 17 00:00:00 2001 From: lethosor Date: Sat, 17 Jun 2017 19:57:32 -0400 Subject: [PATCH] Disable automatic hyphenation in docs This was producing undesirable results, such as hyphenating every line in some paragraphs, in the middle of short words like "repeat", etc. --- docs/styles/dfhack.css | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/styles/dfhack.css b/docs/styles/dfhack.css index 67f75b3b1..d12348c31 100644 --- a/docs/styles/dfhack.css +++ b/docs/styles/dfhack.css @@ -1,10 +1,10 @@ /* make sure to sync this with the base theme's css filename */ @import url("alabaster.css"); -.kbd { /* Keybinding CSS from the DF wiki; applies to :kbd:`` directives. * Use this directive for all keypresses, to make them look like keys. */ +.kbd { border: 1px solid #aaa; border-radius: 0.2em; -webkit-border-radius: 0.2em; @@ -28,13 +28,21 @@ src: url("cp437.ttf"); } -.guilabel { /* In-game text CSS from the DF wiki; applies to :guilabel:`` directives. * Use this for any text from an in-game announcement or menu. */ +.guilabel { color: #CBC7C0; font-family: cp437, 'fixedsys', monospace; background: #000000; font-size: 0.95em; padding: 0.05em 0.4em; } + +/* Override hyphenation from Sphinx's basic.css (excessive) */ +div.body p, div.body dd, div.body li, div.body blockquote { + -moz-hyphens: manual; + -ms-hyphens: manual; + -webkit-hyphens: manual; + hyphens: manual; +}