diff options
author | mkanat%bugzilla.org <> | 2008-02-09 05:18:59 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-02-09 05:18:59 +0000 |
commit | 02c618aacd7f1b4683b73e93fa063d4db9e02fcd (patch) | |
tree | 14bdc1d7b4395f686e2e3602a2e3a13d70fbf519 /skins/standard/global.css | |
parent | fad558c794527a2c0bd32b378917be0fc27e453f (diff) | |
download | bugs-02c618aacd7f1b4683b73e93fa063d4db9e02fcd.tar bugs-02c618aacd7f1b4683b73e93fa063d4db9e02fcd.tar.gz bugs-02c618aacd7f1b4683b73e93fa063d4db9e02fcd.tar.bz2 bugs-02c618aacd7f1b4683b73e93fa063d4db9e02fcd.tar.xz bugs-02c618aacd7f1b4683b73e93fa063d4db9e02fcd.zip |
Bug 388723: Make the browser wrap comments on display in addition to the normal wrapping, to support CJK languages that have no spaces.
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=himorin, r=glob
Diffstat (limited to 'skins/standard/global.css')
-rw-r--r-- | skins/standard/global.css | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/skins/standard/global.css b/skins/standard/global.css index edf542510..423e398b4 100644 --- a/skins/standard/global.css +++ b/skins/standard/global.css @@ -243,6 +243,22 @@ div#docslinks { margin-bottom: 2em; } +/* The rules for these classes make international text wrap correctly, + even for languages like Japanese that have no spaces. */ +.bz_comment_text, .uneditable_textarea { + font-family: monospace; + /* Note that these must all be on separate lines or they stop + working in Konqueror. */ + white-space: pre-wrap; /* CSS 3 & 2.1 */ + white-space: -moz-pre-wrap; /* Gecko */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ +} + +.bz_comment_text { + width: 50em; +} + .bz_first_comment { } @@ -257,6 +273,8 @@ div#docslinks { span.quote { color: #65379c; + /* Make quoted text not wrap. */ + white-space: pre; } table#flags th, @@ -318,8 +336,7 @@ dl dl > dt { /* For bug fields */ .uneditable_textarea { - white-space: pre; - font-family: monospace; + width: 30em; } div.user_match { |