zenweb 2.18.1 → 3.0.0.b1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. data.tar.gz.sig +0 -0
  2. data/.autotest +18 -0
  3. data/.gemtest +0 -0
  4. data/History.txt +6 -0
  5. data/Manifest.txt +52 -50
  6. data/README.txt +27 -22
  7. data/Rakefile +8 -9
  8. data/example-site/.isolate.rb +8 -0
  9. data/example-site/Rakefile +32 -0
  10. data/example-site/_config.yml +3 -0
  11. data/example-site/_includes/analytics.html.erb +11 -0
  12. data/example-site/_includes/header.html.erb +3 -0
  13. data/example-site/_includes/page_list_item.html +5 -0
  14. data/example-site/_includes/post_list_item.html +5 -0
  15. data/example-site/_layouts/post.erb +13 -0
  16. data/example-site/_layouts/project.erb +39 -0
  17. data/example-site/_layouts/site.erb +62 -0
  18. data/example-site/about/index.html.md +8 -0
  19. data/example-site/atom.xml.erb +43 -0
  20. data/example-site/blog/2012-01-02-page1.html.md +5 -0
  21. data/example-site/blog/2012-01-03-page2.html.md +5 -0
  22. data/example-site/blog/2012-01-04-page3.html.md +5 -0
  23. data/example-site/blog/_config.yml +1 -0
  24. data/example-site/blog/index.html.erb +19 -0
  25. data/example-site/config.ru +33 -0
  26. data/example-site/css/colors.css.less +71 -0
  27. data/example-site/css/styles.css +223 -0
  28. data/example-site/css/syntax.css +171 -0
  29. data/example-site/img/bg.png +0 -0
  30. data/example-site/index.html.erb +27 -0
  31. data/example-site/js/jquery.js +154 -0
  32. data/example-site/js/site.js +37 -0
  33. data/example-site/pages/index.html.erb +17 -0
  34. data/example-site/pages/nonblogpage.html.md +8 -0
  35. data/example-site/projects/index.html.erb +18 -0
  36. data/example-site/projects/zenweb.html.erb +9 -0
  37. data/example-site/sitemap.xml.erb +24 -0
  38. data/lib/zenweb.rb +12 -0
  39. data/lib/zenweb/config.rb +126 -0
  40. data/lib/zenweb/extensions.rb +51 -0
  41. data/lib/zenweb/page.rb +409 -0
  42. data/lib/zenweb/plugins/disqus.rb +18 -0
  43. data/lib/zenweb/plugins/erb.rb +43 -0
  44. data/lib/zenweb/plugins/google.rb +20 -0
  45. data/lib/zenweb/plugins/less.rb +10 -0
  46. data/lib/zenweb/plugins/markdown.rb +121 -0
  47. data/lib/zenweb/site.rb +237 -0
  48. data/lib/zenweb/tasks.rake +165 -0
  49. data/test/helper.rb +53 -0
  50. data/test/test_zenweb_config.rb +90 -0
  51. data/test/test_zenweb_extensions.rb +33 -0
  52. data/test/test_zenweb_page.rb +381 -0
  53. data/test/test_zenweb_plugins_disqus.rb +41 -0
  54. data/test/test_zenweb_plugins_erb.rb +60 -0
  55. data/test/test_zenweb_plugins_google.rb +38 -0
  56. data/test/test_zenweb_plugins_less.rb +33 -0
  57. data/test/test_zenweb_plugins_markdown.rb +227 -0
  58. data/test/test_zenweb_site.rb +294 -0
  59. metadata +230 -86
  60. metadata.gz.sig +0 -0
  61. data/bin/zenweb +0 -27
  62. data/bin/zenwebpage +0 -66
  63. data/bin/zenwebsite +0 -39
  64. data/design/REQUIREMENTS.txt +0 -52
  65. data/design/ZENWEB_2.txt +0 -69
  66. data/design/heirarchy.png +0 -0
  67. data/design/heirarchy.tgif +0 -311
  68. data/docs/Customizing +0 -76
  69. data/docs/FAQ +0 -12
  70. data/docs/Features +0 -128
  71. data/docs/Presentation +0 -88
  72. data/docs/QuickStart +0 -32
  73. data/docs/Renderers +0 -85
  74. data/docs/SiteMap +0 -13
  75. data/docs/YourOwnWebsite +0 -32
  76. data/docs/index +0 -14
  77. data/docs/metadata.txt +0 -10
  78. data/lib/ZenWeb.rb +0 -850
  79. data/lib/ZenWeb/CalendarRenderer.rb +0 -162
  80. data/lib/ZenWeb/CompactRenderer.rb +0 -45
  81. data/lib/ZenWeb/CompositeRenderer.rb +0 -63
  82. data/lib/ZenWeb/FileAttachmentRenderer.rb +0 -57
  83. data/lib/ZenWeb/FooterRenderer.rb +0 -38
  84. data/lib/ZenWeb/GenericRenderer.rb +0 -143
  85. data/lib/ZenWeb/HeaderRenderer.rb +0 -52
  86. data/lib/ZenWeb/HtmlRenderer.rb +0 -81
  87. data/lib/ZenWeb/HtmlTableRenderer.rb +0 -94
  88. data/lib/ZenWeb/HtmlTemplateRenderer.rb +0 -173
  89. data/lib/ZenWeb/MetadataRenderer.rb +0 -83
  90. data/lib/ZenWeb/RelativeRenderer.rb +0 -97
  91. data/lib/ZenWeb/RubyCodeRenderer.rb +0 -56
  92. data/lib/ZenWeb/SitemapRenderer.rb +0 -56
  93. data/lib/ZenWeb/StandardRenderer.rb +0 -40
  94. data/lib/ZenWeb/StupidRenderer.rb +0 -91
  95. data/lib/ZenWeb/SubpageRenderer.rb +0 -45
  96. data/lib/ZenWeb/TextToHtmlRenderer.rb +0 -219
  97. data/lib/ZenWeb/TocRenderer.rb +0 -60
  98. data/lib/ZenWeb/XXXRenderer.rb +0 -32
  99. data/test/SiteMap +0 -14
  100. data/test/Something +0 -4
  101. data/test/include.txt +0 -3
  102. data/test/index +0 -8
  103. data/test/metadata.txt +0 -10
  104. data/test/ryand/SiteMap +0 -10
  105. data/test/ryand/blah +0 -4
  106. data/test/ryand/blah-blah +0 -4
  107. data/test/ryand/index +0 -52
  108. data/test/ryand/metadata.txt +0 -2
  109. data/test/ryand/stuff/index +0 -4
  110. data/test/test_zenweb.rb +0 -1619
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: About example.com
3
+ layout: site
4
+ ...
5
+
6
+ # About Me
7
+
8
+ Blah blah blah
@@ -0,0 +1,43 @@
1
+ ---
2
+ title: example.com
3
+ domain: http://example.com
4
+ author: John Doe
5
+ email: john.doe@example.com
6
+ feed_url: http://example.com/atom.xml
7
+ rss_length: 15
8
+ layout: nil
9
+ ...
10
+ <?xml version="1.0" encoding="utf-8"?>
11
+ <feed xmlns="http://www.w3.org/2005/Atom">
12
+
13
+ {%
14
+ posts = site.pages_by_date.first(rss_length)
15
+ %}
16
+
17
+ <id>{{ domain }}/</id>
18
+ <title>{{ title }}</title>
19
+ <updated>{{ posts.first.date.iso8601 }}</updated>
20
+
21
+ <author>
22
+ <name>{{ author }}</name>
23
+ <email>{{ email }}</email>
24
+ </author>
25
+
26
+ <link href="{{ feed_url }}" rel="self"/>
27
+ <link href="{{ domain }}/"/>
28
+
29
+ <rights> © {{ author }} - {{ email }} </rights>
30
+
31
+ {% for post in posts %}
32
+ <entry>
33
+ <id>{{ domain }}{{ post.url }}</id>
34
+ <title>{{ h post.title }}</title>
35
+ <updated>{{ post.date.iso8601 }}</updated>
36
+
37
+ <link rel="alternate" href="{{ domain }}{{ post.url }}"/>
38
+
39
+ <published>{{ post.date.iso8601 }}</published>
40
+ <content type="html">{{ h post.subrender }}</content>
41
+ </entry>
42
+ {% end %}
43
+ </feed>
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: Example Page 1
3
+ ...
4
+
5
+ Not really much here to see.
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: Example Page 2
3
+ ...
4
+
5
+ This is my Résumé.
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: Example Page 3
3
+ ...
4
+
5
+ Not really much here to see.
@@ -0,0 +1 @@
1
+ layout: post
@@ -0,0 +1,19 @@
1
+ ---
2
+ title: example.com
3
+ layout: site
4
+ ...
5
+
6
+ <h1 class="section top">Post Archive</h1>
7
+
8
+ {% for page in site.categories.blog %}
9
+ <div class="post">
10
+ <h1 class="title">
11
+ <a href="{{ page.url }}">{{ page.title }}</a>
12
+ </h1>
13
+ <h3 class="date">{{ page.date.datetime }}</h3>
14
+
15
+ {% if page["excerpt"] %} <p>{{ markdown page.excerpt }}</p> {% end %}
16
+
17
+ <a class="readmore" href="{{ page.url }}">read more &raquo;</a>
18
+ </div>
19
+ {% end %}
@@ -0,0 +1,33 @@
1
+ require 'rubygems'
2
+ require './.isolate.rb'
3
+ require 'rack'
4
+
5
+ # The project root directory
6
+ $root = ::File.dirname(__FILE__)
7
+
8
+ # Common Rack Middleware
9
+ use Rack::ShowStatus # Nice looking 404s and other messages
10
+ use Rack::ShowExceptions # Nice looking errors
11
+
12
+ #
13
+ # From Rack::DirectoryIndex:
14
+ # https://github.com/craigmarksmith/rack-directory-index/
15
+ #
16
+ module Rack
17
+ class DirectoryIndex
18
+ def initialize(app)
19
+ @app = app
20
+ end
21
+ def call(env)
22
+ index_path = ::File.join($root, 'public', Rack::Request.new(env).path.split('/'), 'index.html')
23
+ if ::File.exists?(index_path)
24
+ return [200, {"Content-Type" => "text/html"}, [::File.read(index_path)]]
25
+ else
26
+ @app.call(env)
27
+ end
28
+ end
29
+ end
30
+ end
31
+
32
+ use Rack::DirectoryIndex
33
+ run Rack::Directory.new $root
@@ -0,0 +1,71 @@
1
+ @background: #eee;
2
+ @links: #0a0;
3
+ @headers: #888;
4
+ @accent_lines: #caa;
5
+ @divider_lines: #aaa;
6
+
7
+ body {
8
+ background-color: @background;
9
+ }
10
+
11
+ div#container {
12
+ background: @background + #333;
13
+ }
14
+
15
+ a {
16
+ color: @links;
17
+ }
18
+
19
+ h1.section {
20
+ border-bottom-color: @divider_lines;
21
+ }
22
+
23
+ h1.title a {
24
+ color: black;
25
+ }
26
+
27
+ h1.title a:hover {
28
+ text-decoration: none;
29
+ }
30
+
31
+ h3.date {
32
+ color: @headers;
33
+ }
34
+
35
+ pre, code {
36
+ outline-color: @divider_lines;
37
+ background: @background;
38
+ }
39
+
40
+ #header h1 a {
41
+ color: #000;
42
+ }
43
+
44
+ #header h1 a:hover {
45
+ color: #000;
46
+ }
47
+
48
+ #header a {
49
+ color: @headers;
50
+ }
51
+
52
+ #header a:hover {
53
+ color: @links;
54
+ }
55
+
56
+ #header ul li {
57
+ border-left-color: @accent_lines;
58
+ }
59
+
60
+ div.post h2 {
61
+ border-bottom-color: @divider_lines;
62
+ }
63
+
64
+ div#footer {
65
+ color: @headers;
66
+ border-top-color: @accent_lines;
67
+ }
68
+
69
+ div#copyright {
70
+ color: @background - #222;
71
+ }
@@ -0,0 +1,223 @@
1
+ /* @override http://localhost:4000/css/styles.css */
2
+
3
+ @import url(/css/colors.css);
4
+
5
+ /* @group Basics */
6
+ * {
7
+ margin: 0;
8
+ padding: 0;
9
+ }
10
+
11
+ body {
12
+ background-image: url(/img/bg.png);
13
+ background-repeat: repeat-x;
14
+ font-family: 'Helvetica Neue', Helvetica, sans-serif;
15
+ font-size: 15px;
16
+ max-width: 960px;
17
+ margin: 0 auto;
18
+ }
19
+
20
+ pre, code {
21
+ font-family: Monaco, Courier, monospace;
22
+ }
23
+
24
+ div#container {
25
+ padding: 2em;
26
+ margin-bottom: 2em;
27
+ }
28
+
29
+ td { padding: 1em; }
30
+
31
+ a {
32
+ text-decoration: none;
33
+ }
34
+
35
+ a:hover {
36
+ text-decoration: underline;
37
+ }
38
+
39
+ h1, h2, h3 {
40
+ font-weight: 300;
41
+ }
42
+
43
+ ul {
44
+ // list-style: none;
45
+ }
46
+ /* @end */
47
+
48
+
49
+ /* @group header */
50
+ #header {
51
+ position: relative;
52
+
53
+ margin-top: 12px;
54
+ margin-bottom: 1em;
55
+ }
56
+
57
+ #header h1 {
58
+ font-size: 2.5em;
59
+ }
60
+
61
+ #header h1 a:hover {
62
+ text-decoration: none;
63
+ }
64
+
65
+ #header ul {
66
+ position: absolute;
67
+ right: 0;
68
+ bottom: 20px;
69
+ padding-top: 0.5em;
70
+ }
71
+
72
+ #header ul li {
73
+ display: inline;
74
+ }
75
+
76
+ #header ul li {
77
+ display: inline;
78
+ border-left-style: solid;
79
+ border-left-width: 2px;
80
+ padding: 0 8px;
81
+ }
82
+
83
+ #header ul li:first-child {
84
+ border-left: none;
85
+ padding-left: 0;
86
+ }
87
+
88
+ #header ul li:last-child {
89
+ padding-right: 0;
90
+ }
91
+ /* @end */
92
+
93
+
94
+ /* @group footer */
95
+ div#footer {
96
+ border-top-style: solid;
97
+ border-top-width: 1px;
98
+ padding-top: 0.5em;
99
+ line-height: 1.2em;
100
+ }
101
+
102
+ div#contact, div#presence {
103
+ width: 50%;
104
+ float: left;
105
+ }
106
+
107
+ div#presence {
108
+ text-align: right;
109
+ }
110
+
111
+ div#copyright {
112
+ margin-top: 5em;
113
+ margin-bottom: 2em;
114
+ text-align: center;
115
+ }
116
+ /* @end */
117
+
118
+
119
+ /* @group posts */
120
+ h1.section {
121
+ border-bottom-width: 1px;
122
+ border-bottom-style: solid;
123
+ margin-top: 1em;
124
+ margin-bottom: 0.5em;
125
+ }
126
+
127
+ h1.top {
128
+ margin-top: 0;
129
+ }
130
+
131
+ h1.title {
132
+ font-size: 2.5em;
133
+ }
134
+
135
+ h3.date {
136
+ font-size: 1.1em;
137
+ }
138
+
139
+ a.readmore {
140
+ display: block;
141
+ text-align: right;
142
+ }
143
+
144
+ p {
145
+ margin-top: 1em;
146
+ margin-bottom: 1em;
147
+ text-align: justify;
148
+ }
149
+
150
+ p, ul {
151
+ line-height: 1.5em;
152
+ }
153
+
154
+ div.post h2 {
155
+ border-bottom-width: 1px;
156
+ border-bottom-style: solid;
157
+ margin-top: 0.7em;
158
+ }
159
+ /* @end */
160
+
161
+
162
+ /* @group code snippets */
163
+ pre, code {
164
+ outline-width: 1px;
165
+ outline-style: solid;
166
+ }
167
+
168
+ pre {
169
+ padding: 1em;
170
+ overflow: auto;
171
+ margin-top: 1.5em;
172
+ margin-bottom: 1.5em;
173
+ }
174
+
175
+ code {
176
+ padding: 0 3px 1px 3px;
177
+ /* don't break code across lines */
178
+ white-space: nowrap;
179
+ }
180
+
181
+ /* syntax highlight blocks */
182
+ pre code {
183
+ padding: 0;
184
+ outline: 0;
185
+ white-space: pre;
186
+ }
187
+ /* @end */
188
+
189
+
190
+ /* @group activity list */
191
+ ul.activity li {
192
+ position: relative;
193
+ }
194
+
195
+ ul.activity li h2 {
196
+ font-size: 1.1em;
197
+ margin-bottom: 0.2em;
198
+ }
199
+
200
+ ul.activity li h3.date {
201
+ position: absolute;
202
+ right: 0;
203
+ top: 0;
204
+ }
205
+
206
+ ul.activity li p {
207
+ margin-top: 0;
208
+ margin-right: 7em;
209
+ }
210
+
211
+ ul#recent_posts li {
212
+ margin-top: 1em;
213
+ }
214
+
215
+ ul#recent_activity li a {
216
+ font-family: monospace;
217
+ }
218
+
219
+ ul#recent_activity li p {
220
+ margin-top: 0;
221
+ margin-bottom: 0;
222
+ }
223
+ /* @end */
@@ -0,0 +1,171 @@
1
+ .highlight { background: #ffffff; }
2
+ .highlight .c { color: #999988; font-style: italic } /* Comment */
3
+ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
4
+ .highlight .k { font-weight: bold } /* Keyword */
5
+ .highlight .o { font-weight: bold } /* Operator */
6
+ .highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
7
+ .highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
8
+ .highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
9
+ .highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
10
+ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
11
+ .highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
12
+ .highlight .ge { font-style: italic } /* Generic.Emph */
13
+ .highlight .gr { color: #aa0000 } /* Generic.Error */
14
+ .highlight .gh { color: #999999 } /* Generic.Heading */
15
+ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
16
+ .highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
17
+ .highlight .go { color: #888888 } /* Generic.Output */
18
+ .highlight .gp { color: #555555 } /* Generic.Prompt */
19
+ .highlight .gs { font-weight: bold } /* Generic.Strong */
20
+ .highlight .gu { color: #aaaaaa } /* Generic.Subheading */
21
+ .highlight .gt { color: #aa0000 } /* Generic.Traceback */
22
+ .highlight .kc { font-weight: bold } /* Keyword.Constant */
23
+ .highlight .kd { font-weight: bold } /* Keyword.Declaration */
24
+ .highlight .kp { font-weight: bold } /* Keyword.Pseudo */
25
+ .highlight .kr { font-weight: bold } /* Keyword.Reserved */
26
+ .highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
27
+ .highlight .m { color: #009999 } /* Literal.Number */
28
+ .highlight .s { color: #d14 } /* Literal.String */
29
+ .highlight .na { color: #008080 } /* Name.Attribute */
30
+ .highlight .nb { color: #0086B3 } /* Name.Builtin */
31
+ .highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
32
+ .highlight .no { color: #008080 } /* Name.Constant */
33
+ .highlight .ni { color: #800080 } /* Name.Entity */
34
+ .highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
35
+ .highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
36
+ .highlight .nn { color: #555555 } /* Name.Namespace */
37
+ .highlight .nt { color: #000080 } /* Name.Tag */
38
+ .highlight .nv { color: #008080 } /* Name.Variable */
39
+ .highlight .ow { font-weight: bold } /* Operator.Word */
40
+ .highlight .w { color: #bbbbbb } /* Text.Whitespace */
41
+ .highlight .mf { color: #009999 } /* Literal.Number.Float */
42
+ .highlight .mh { color: #009999 } /* Literal.Number.Hex */
43
+ .highlight .mi { color: #009999 } /* Literal.Number.Integer */
44
+ .highlight .mo { color: #009999 } /* Literal.Number.Oct */
45
+ .highlight .sb { color: #d14 } /* Literal.String.Backtick */
46
+ .highlight .sc { color: #d14 } /* Literal.String.Char */
47
+ .highlight .sd { color: #d14 } /* Literal.String.Doc */
48
+ .highlight .s2 { color: #d14 } /* Literal.String.Double */
49
+ .highlight .se { color: #d14 } /* Literal.String.Escape */
50
+ .highlight .sh { color: #d14 } /* Literal.String.Heredoc */
51
+ .highlight .si { color: #d14 } /* Literal.String.Interpol */
52
+ .highlight .sx { color: #d14 } /* Literal.String.Other */
53
+ .highlight .sr { color: #009926 } /* Literal.String.Regex */
54
+ .highlight .s1 { color: #d14 } /* Literal.String.Single */
55
+ .highlight .ss { color: #990073 } /* Literal.String.Symbol */
56
+ .highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
57
+ .highlight .vc { color: #008080 } /* Name.Variable.Class */
58
+ .highlight .vg { color: #008080 } /* Name.Variable.Global */
59
+ .highlight .vi { color: #008080 } /* Name.Variable.Instance */
60
+ .highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
61
+
62
+
63
+ .CodeRay {
64
+ background-color: hsl(0,0%,95%);
65
+ border: 1px solid silver;
66
+ color: black;
67
+ }
68
+ .CodeRay pre {
69
+ margin: 0px;
70
+ }
71
+
72
+ span.CodeRay { white-space: pre; border: 0px; padding: 2px; }
73
+
74
+ table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px; }
75
+ table.CodeRay td { padding: 2px 4px; vertical-align: top; }
76
+
77
+ .CodeRay .line-numbers {
78
+ background-color: hsl(180,65%,90%);
79
+ color: gray;
80
+ text-align: right;
81
+ -webkit-user-select: none;
82
+ -moz-user-select: none;
83
+ user-select: none;
84
+ }
85
+
86
+ .CodeRay .line-numbers a {
87
+ background-color: hsl(180,65%,90%) !important;
88
+ color: gray !important;
89
+ text-decoration: none !important;
90
+ }
91
+
92
+ .CodeRay .line-numbers a:target { color: blue !important; }
93
+ .CodeRay .line-numbers .highlighted { color: red !important; }
94
+ .CodeRay .line-numbers .highlighted a { color: red !important; }
95
+
96
+ .CodeRay span.line-numbers { padding: 0px 4px; }
97
+ .CodeRay .line { display: block; float: left; width: 100%; }
98
+ .CodeRay .code { width: 100%; }
99
+
100
+ .CodeRay .debug { color: white !important; background: blue !important; }
101
+
102
+ .CodeRay .annotation { color:#007 }
103
+ .CodeRay .attribute-name { color:#b48 }
104
+ .CodeRay .attribute-value { color:#700 }
105
+ .CodeRay .binary { color:#509 }
106
+ .CodeRay .char .content { color:#D20 }
107
+ .CodeRay .char .delimiter { color:#710 }
108
+ .CodeRay .char { color:#D20 }
109
+ .CodeRay .class { color:#B06; font-weight:bold }
110
+ .CodeRay .class-variable { color:#369 }
111
+ .CodeRay .color { color:#0A0 }
112
+ .CodeRay .comment { color:#777 }
113
+ .CodeRay .comment .char { color:#444 }
114
+ .CodeRay .comment .delimiter { color:#444 }
115
+ .CodeRay .complex { color:#A08 }
116
+ .CodeRay .constant { color:#036; font-weight:bold }
117
+ .CodeRay .decorator { color:#B0B }
118
+ .CodeRay .definition { color:#099; font-weight:bold }
119
+ .CodeRay .delimiter { color:black }
120
+ .CodeRay .directive { color:#088; font-weight:bold }
121
+ .CodeRay .doc { color:#970 }
122
+ .CodeRay .doc-string { color:#D42; font-weight:bold }
123
+ .CodeRay .doctype { color:#34b }
124
+ .CodeRay .entity { color:#800; font-weight:bold }
125
+ .CodeRay .error { color:#F00; background-color:#FAA }
126
+ .CodeRay .escape { color:#666 }
127
+ .CodeRay .exception { color:#C00; font-weight:bold }
128
+ .CodeRay .float { color:#60E }
129
+ .CodeRay .function { color:#06B; font-weight:bold }
130
+ .CodeRay .global-variable { color:#d70 }
131
+ .CodeRay .hex { color:#02b }
132
+ .CodeRay .imaginary { color:#f00 }
133
+ .CodeRay .include { color:#B44; font-weight:bold }
134
+ .CodeRay .inline { background-color: hsla(0,0%,0%,0.07); color: black }
135
+ .CodeRay .inline-delimiter { font-weight: bold; color: #666 }
136
+ .CodeRay .instance-variable { color:#33B }
137
+ .CodeRay .integer { color:#00D }
138
+ .CodeRay .key .char { color: #60f }
139
+ .CodeRay .key .delimiter { color: #404 }
140
+ .CodeRay .key { color: #606 }
141
+ .CodeRay .keyword { color:#080; font-weight:bold }
142
+ .CodeRay .label { color:#970; font-weight:bold }
143
+ .CodeRay .local-variable { color:#963 }
144
+ .CodeRay .namespace { color:#707; font-weight:bold }
145
+ .CodeRay .octal { color:#40E }
146
+ .CodeRay .operator { }
147
+ .CodeRay .predefined { color:#369; font-weight:bold }
148
+ .CodeRay .predefined-constant { color:#069 }
149
+ .CodeRay .predefined-type { color:#0a5; font-weight:bold }
150
+ .CodeRay .preprocessor { color:#579 }
151
+ .CodeRay .pseudo-class { color:#00C; font-weight:bold }
152
+ .CodeRay .regexp .content { color:#808 }
153
+ .CodeRay .regexp .delimiter { color:#404 }
154
+ .CodeRay .regexp .modifier { color:#C2C }
155
+ .CodeRay .regexp { background-color:hsla(300,100%,50%,0.06); }
156
+ .CodeRay .reserved { color:#080; font-weight:bold }
157
+ .CodeRay .shell .content { color:#2B2 }
158
+ .CodeRay .shell .delimiter { color:#161 }
159
+ .CodeRay .shell { background-color:hsla(120,100%,50%,0.06); }
160
+ .CodeRay .string .char { color: #b0b }
161
+ .CodeRay .string .content { color: #D20 }
162
+ .CodeRay .string .delimiter { color: #710 }
163
+ .CodeRay .string .modifier { color: #E40 }
164
+ .CodeRay .string { background-color:hsla(0,100%,50%,0.05); }
165
+ .CodeRay .symbol .content { color:#A60 }
166
+ .CodeRay .symbol .delimiter { color:#630 }
167
+ .CodeRay .symbol { color:#A60 }
168
+ .CodeRay .tag { color:#070 }
169
+ .CodeRay .type { color:#339; font-weight:bold }
170
+ .CodeRay .value { color: #088; }
171
+ .CodeRay .variable { color:#037 }