rbelow / blueprintcss

Automatically exported from code.google.com/p/blueprintcss
1 stars 0 forks source link

<code> should be a monospaced font and should show text preformatted same as <pre> #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
<code> html text hould be shown in a mono-spaced font.

It should show the text pre-formatted the same as it is shown with pre
(respecting spaces, tabs, and newlines).

It currently wraps all lines of pre-formatted text into a single wrapping line.

I have added a test for this to the typography section of tests.html so it
can be viewed.

Tested in Firefox.

Original issue reported on code.google.com by glenn.re...@gmail.com on 7 Sep 2007 at 7:54

GoogleCodeExporter commented 8 years ago
Fixed.  code and pre now display the same.  This is consistent as they both 
serve
essentially the same purpose.

The following diff shows changes that were made:

macbook-pro:~/src/svk/blueprintcss glenn$ svk diff
=== blueprint/trunk/blueprint/lib/typography.css
==================================================================
--- blueprint/trunk/blueprint/lib/typography.css        (revision 2111)
+++ blueprint/trunk/blueprint/lib/typography.css        (local)
@@ -72,8 +72,8 @@
 blockquote  { margin: 1.5em; color: #666; font-style: italic; }
 strong      { font-weight:bold; }
 em          { font-style: italic; }
-pre         { margin-bottom: 1.3em; margin:1.5em; }
-code,tt     { font:1em 'andale mono', 'monotype.com', 'lucida console', 
monospace; } 
+pre,code    { margin:1.5em; white-space:pre; }
+pre,code,tt { font:1em 'andale mono', 'monotype.com', 'lucida console', 
monospace;
line-height:1.5; } 
 tt          { display:block; margin:1.5em 0; line-height:1.5; }

SVN rev 199

Original comment by glenn.re...@gmail.com on 8 Sep 2007 at 10:04