summaryrefslogtreecommitdiff
path: root/lib/rdoc/generators/template/html/html.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/generators/template/html/html.rb')
-rw-r--r--lib/rdoc/generators/template/html/html.rb13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/rdoc/generators/template/html/html.rb b/lib/rdoc/generators/template/html/html.rb
index 41f9f4b271..e0a8880004 100644
--- a/lib/rdoc/generators/template/html/html.rb
+++ b/lib/rdoc/generators/template/html/html.rb
@@ -187,7 +187,9 @@ div.method-source-code {
div.method-source-code pre { color: #ffdead; overflow: hidden; }
/* --- Ruby keyword styles --------------------- */
-/* (requires a hacked html_generator.rb to add more class-types) */
+
+.standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
+
.ruby-constant { color: #7fffd4; background: transparent; }
.ruby-keyword { color: #00ffff; background: transparent; }
.ruby-ivar { color: #eedd82; background: transparent; }
@@ -561,18 +563,13 @@ BODY = HEADER + %{
#####################################################################
SRC_PAGE = XHTML_PREAMBLE + %{
-<!--
-
- %title%
-
- -->
<html>
<head>
<title>%title%</title>
<meta http-equiv="Content-Type" content="text/html; charset=%charset%" />
- <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
+ <link rel="stylesheet" href="%style_url%" type="text/css" media="screen" />
</head>
-<body>
+<body class="standalone-code">
<pre>%code%</pre>
</body>
</html>