diff options
author | murphy <murphy@rubychan.de> | 2010-09-22 00:11:31 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-09-22 00:11:31 +0000 |
commit | c1ec72d1ea5a4f150802fa3b8b42f850d0479882 (patch) | |
tree | ff0a4982031681609b655e646bdccf1081d5ee1b /lib/coderay/styles | |
parent | c78deee04bbacbf5d4d692c196ff65f6e3a4caca (diff) | |
download | coderay-c1ec72d1ea5a4f150802fa3b8b42f850d0479882.tar.gz |
Fix invalid HTML markup for line tokens (use span + CSS instead of div).
Diffstat (limited to 'lib/coderay/styles')
-rw-r--r-- | lib/coderay/styles/alpha.rb | 1 | ||||
-rw-r--r-- | lib/coderay/styles/cycnus.rb | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/coderay/styles/alpha.rb b/lib/coderay/styles/alpha.rb index a57b0c4..d7b9da0 100644 --- a/lib/coderay/styles/alpha.rb +++ b/lib/coderay/styles/alpha.rb @@ -41,6 +41,7 @@ table.CodeRay td { padding: 2px 4px; vertical-align: top; } .CodeRay .line_numbers a:target, .CodeRay .no a:target { color: blue !important; } .CodeRay .line_numbers .highlighted, .CodeRay .no .highlighted { color: red; } .CodeRay .no { padding: 0px 4px; } +.CodeRay .line { display: block; float: left; width: 100%; } .CodeRay .code { width: 100%; } .CodeRay .code pre { overflow: auto; } MAIN diff --git a/lib/coderay/styles/cycnus.rb b/lib/coderay/styles/cycnus.rb index 7427662..1c5b604 100644 --- a/lib/coderay/styles/cycnus.rb +++ b/lib/coderay/styles/cycnus.rb @@ -32,12 +32,13 @@ table.CodeRay td { padding: 2px 4px; vertical-align: top; } } .CodeRay .line_numbers .highlighted, .CodeRay .no .highlighted { color: red; } .CodeRay .no { padding: 0px 4px; } +.CodeRay .line { display: block; float: left; width: 100%; } .CodeRay .code { width: 100%; } .CodeRay .code pre { overflow: auto; } MAIN TOKEN_COLORS = <<-'TOKENS' -.debug { color:white ! important; background:blue ! important; } +.debug { color: white !important; background: blue !important; } .an { color:#007 } .at { color:#f08 } |