yard-slipstream 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ README.rdoc
2
+ lib/**/*.rb
3
+ bin/*
4
+ features/**/*.feature
5
+ LICENSE
@@ -0,0 +1,21 @@
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## PROJECT::GENERAL
17
+ coverage
18
+ rdoc
19
+ pkg
20
+
21
+ ## PROJECT::SPECIFIC
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 Dreamcat4
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,17 @@
1
+ = yard-slipstream
2
+
3
+ Description goes here.
4
+
5
+ == Note on Patches/Pull Requests
6
+
7
+ * Fork the project.
8
+ * Make your feature addition or bug fix.
9
+ * Add tests for it. This is important so I don't break it in a
10
+ future version unintentionally.
11
+ * Commit, do not mess with rakefile, version, or history.
12
+ (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
13
+ * Send me a pull request. Bonus points for topic branches.
14
+
15
+ == Copyright
16
+
17
+ Copyright (c) 2010 Dreamcat4. See LICENSE for details.
@@ -0,0 +1,57 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "yard-slipstream"
8
+ gem.summary = %Q{Streamlined Navigation for the default yard template}
9
+ gem.description = %Q{yard-slipstream is a yard plugin for Yard-0.5.3 and higher. Slipstream gives users an option for faster page navigation in their yard documents. We just want to optimize the most frequent lookups and remove any duplicate info. Other than that its just plain straight Yard, with all the same "look and feel" as the default template.}
10
+ gem.email = "dreamcat4@gmail.com"
11
+ gem.homepage = "http://github.com/dreamcat4/yard-slipstream"
12
+ gem.authors = ["Dreamcat4"]
13
+ gem.add_development_dependency "rspec", ">= 1.2.9"
14
+ gem.add_development_dependency "yard", ">= 0"
15
+ gem.add_development_dependency "cucumber", ">= 0"
16
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
17
+ end
18
+ Jeweler::GemcutterTasks.new
19
+ rescue LoadError
20
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
21
+ end
22
+
23
+ require 'spec/rake/spectask'
24
+ Spec::Rake::SpecTask.new(:spec) do |spec|
25
+ spec.libs << 'lib' << 'spec'
26
+ spec.spec_files = FileList['spec/**/*_spec.rb']
27
+ end
28
+
29
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
30
+ spec.libs << 'lib' << 'spec'
31
+ spec.pattern = 'spec/**/*_spec.rb'
32
+ spec.rcov = true
33
+ end
34
+
35
+ task :spec => :check_dependencies
36
+
37
+ begin
38
+ require 'cucumber/rake/task'
39
+ Cucumber::Rake::Task.new(:features)
40
+
41
+ task :features => :check_dependencies
42
+ rescue LoadError
43
+ task :features do
44
+ abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
45
+ end
46
+ end
47
+
48
+ task :default => :spec
49
+
50
+ begin
51
+ require 'yard'
52
+ YARD::Rake::YardocTask.new
53
+ rescue LoadError
54
+ task :yardoc do
55
+ abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
56
+ end
57
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.0
@@ -0,0 +1,4 @@
1
+ $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
2
+ require 'yard-slipstream'
3
+
4
+ require 'spec/expectations'
@@ -0,0 +1,9 @@
1
+ Feature: something something
2
+ In order to something something
3
+ A user something something
4
+ something something something
5
+
6
+ Scenario: something something
7
+ Given inspiration
8
+ When I create a sweet new gem
9
+ Then everyone should see how awesome I am
@@ -0,0 +1,18 @@
1
+ dir = File.dirname(__FILE__)
2
+ $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)
3
+
4
+ YARD::Templates::Engine.register_template_path dir + '/../templates'
5
+
6
+ # require 'yard-slipstream/handler' if RUBY19
7
+ # require 'yard-slipstream/legacy'
8
+
9
+ # todo
10
+
11
+ # * info box in top right
12
+ # * search form in top right
13
+
14
+ # rm -rf .yardoc doc ; /Users/id/tmp/yard/bin/yardoc -t "default" -p "/Users/id/tmp/yard/templates"
15
+
16
+ # rm -rf .yardoc doc ; /Users/id/tmp/yard/bin/yardoc -t "default" -p "/Users/id/tmp/yard/templates" -e "/Users/id/tmp/yard-slipstream/lib/yard-slipstream.rb" lib/yard/templates/template.rb
17
+
18
+
@@ -0,0 +1,32 @@
1
+ # class RSpecDescribeHandler < YARD::Handlers::Ruby::Base
2
+ # handles method_call(:describe)
3
+ #
4
+ # def process
5
+ # objname = statement.parameters.first.jump(:string_content).source
6
+ # if statement.parameters[1]
7
+ # src = statement.parameters[1].jump(:string_content).source
8
+ # objname += (src[0] == "#" ? "" : "::") + src
9
+ # end
10
+ # obj = {:spec => owner ? (owner[:spec] || "") : ""}
11
+ # obj[:spec] += objname
12
+ # parse_block(statement.last.last, owner: obj)
13
+ # rescue YARD::Handlers::NamespaceMissingError
14
+ # end
15
+ # end
16
+
17
+ # class RSpecItHandler < YARD::Handlers::Ruby::Base
18
+ # handles method_call(:it)
19
+ #
20
+ # def process
21
+ # return if owner.nil?
22
+ # obj = P(owner[:spec])
23
+ # return if obj.is_a?(Proxy)
24
+ #
25
+ # (obj[:specifications] ||= []) << {
26
+ # name: statement.parameters.first.jump(:string_content).source,
27
+ # file: statement.file,
28
+ # line: statement.line,
29
+ # source: statement.last.last.source.chomp
30
+ # }
31
+ # end
32
+ # end
@@ -0,0 +1,31 @@
1
+ # class LegacyRSpecDescribeHandler < YARD::Handlers::Ruby::Legacy::Base
2
+ # MATCH = /\Adescribe\s+(.+?)\s+(do|\{)/
3
+ # handles MATCH
4
+ #
5
+ # def process
6
+ # objname = statement.tokens.to_s[MATCH, 1].gsub(/["']/, '')
7
+ # obj = {:spec => owner ? (owner[:spec] || "") : ""}
8
+ # obj[:spec] += objname
9
+ # parse_block :owner => obj
10
+ # rescue YARD::Handlers::NamespaceMissingError
11
+ # end
12
+ # end
13
+
14
+ # class LegacyRSpecItHandler < YARD::Handlers::Ruby::Legacy::Base
15
+ # MATCH = /\Ait\s+['"](.+?)['"]\s+(do|\{)/
16
+ # handles MATCH
17
+ #
18
+ # def process
19
+ # return if owner.nil?
20
+ # obj = P(owner[:spec])
21
+ # return if obj.is_a?(Proxy)
22
+ #
23
+ # (obj[:specifications] ||= []) << {
24
+ # :name => statement.tokens.to_s[MATCH, 1],
25
+ # :file => parser.file,
26
+ # :line => statement.line,
27
+ # :source => statement.block.to_s
28
+ # }
29
+ # end
30
+ # end
31
+
@@ -0,0 +1 @@
1
+ --color
@@ -0,0 +1,9 @@
1
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+ require 'yard-slipstream'
4
+ require 'spec'
5
+ require 'spec/autorun'
6
+
7
+ Spec::Runner.configure do |config|
8
+
9
+ end
@@ -0,0 +1,7 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "YardSlipstream" do
4
+ it "fails" do
5
+ fail "hey buddy, you should probably rename this file and start specing for real"
6
+ end
7
+ end
@@ -0,0 +1,83 @@
1
+ #search_results h1 { margin-bottom: 0; }
2
+ #search_results p { margin-top: 0; margin-bottom: 25px; }
3
+ #search_results ul { list-style-position: inside; padding-left: 0; list-style: none; }
4
+ #search_results ul li { padding: 7px 15px; font-size: 1.1em; }
5
+
6
+ #search_frame { z-index: 9999; }
7
+
8
+ #header { position: relative; }
9
+
10
+
11
+ form.search {
12
+ /* position: relative;*/
13
+ visibility: hidden;
14
+ display: none;
15
+ color: #000;
16
+ margin-top: 3px; padding: 7px; border: 1px solid #99f; width: 315px; background: #05a;
17
+ -moz-border-radius: 4px; -webkit-border-radius: 4px;
18
+ margin-bottom: 10px;
19
+ }
20
+ form.search input { margin-left: 5px; width: 250px; border: 1px solid #99f; -moz-border-radius: 3px; font-family: monospace; }
21
+
22
+ form.search2 {
23
+ /* position: relative;*/
24
+ color: #000;
25
+ margin-top: 3px; padding: 7px; border: 1px solid #99f; width: 315px; background: #05a;
26
+ -moz-border-radius: 4px; -webkit-border-radius: 4px;
27
+ margin-bottom: 10px;
28
+ }
29
+ form.search2 input { margin-left: 5px; width: 250px; border: 1px solid #99f; -moz-border-radius: 3px; font-family: monospace; }
30
+
31
+ #menu { padding-top: 5px; }
32
+ #content h1 { margin-top: 0; border-top: 0; }
33
+
34
+ #content.error { font-size: 1.2em; }
35
+ #content.error p tt { font-size: 1.2em; }
36
+ #content.error .note { padding: 12px; }
37
+
38
+ .signature .permalink { float: right; font-size: 0.9em; }
39
+
40
+ /* autocomplete */
41
+ .ac_results {
42
+ padding: 0px;
43
+ border: 1px solid black;
44
+ width: 500px;
45
+ overflow: hidden;
46
+ z-index: 99999;
47
+ }
48
+
49
+ .ac_results ul {
50
+ width: 100%;
51
+ list-style-position: outside;
52
+ list-style: none;
53
+ padding: 0;
54
+ margin: 0;
55
+ }
56
+
57
+ .ac_results li {
58
+ cursor: pointer;
59
+ margin: 0px;
60
+ padding: 3px;
61
+ display: block;
62
+ font-family: sans-serif;
63
+ font-size: 12px;
64
+ line-height: 16px;
65
+ overflow: hidden;
66
+
67
+ }
68
+
69
+ .ac_loading {
70
+ background: white url('/images/loading.gif') right center no-repeat;
71
+ }
72
+
73
+ .ac_even {
74
+ background: #fafafa; border: 1px dotted #fafafa; border-left-width: 0; border-right-width: 0;
75
+ }
76
+
77
+ .ac_odd {
78
+ background: #f0f0f0; border: 1px dotted #f0f0f0; border-left-width: 0; border-right-width: 0;
79
+ }
80
+
81
+ .ac_over {
82
+ background: #ddd; cursor: pointer; border: 1px dotted #fff; border-left-width: 0; border-right-width: 0;
83
+ }
@@ -0,0 +1,302 @@
1
+ body {
2
+ padding: 0 20px;
3
+ font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
4
+ font-size: 13px;
5
+ }
6
+ body.frames { padding: 0 5px; }
7
+ h1 { font-size: 25px; margin: 1em 0 0.5em; padding-top: 4px; border-top: 1px dotted #d5d5d5; }
8
+ h1.noborder { border-top: 0px; margin-top: 0; padding-top: 4px; }
9
+ h1.title { margin-bottom: 10px; }
10
+ h1.alphaindex { margin-top: 0; font-size: 22px; }
11
+ h2 {
12
+ padding: 0;
13
+ padding-bottom: 3px;
14
+ border-bottom: 1px #aaa solid;
15
+ font-size: 1.4em;
16
+ margin: 1.8em 0 0.5em;
17
+ }
18
+ .clear { clear: both; }
19
+ .docstring h1, .docstring h2, .docstring h3, .docstring h4 { padding: 0; border: 0; border-bottom: 1px dotted #bbb; }
20
+ .docstring h1 { font-size: 1.2em; }
21
+ .docstring h2 { font-size: 1.1em; }
22
+ .docstring h3, .docstring h4 { font-size: 1em; border-bottom: 0; padding-top: 10px; }
23
+
24
+ .note {
25
+ color: #222;
26
+ -moz-border-radius: 3px; -webkit-border-radius: 3px;
27
+ background: #e3e4e3; border: 1px solid #d5d5d5; padding: 7px 10px;
28
+ }
29
+ .note.todo { background: #ffffc5; border-color: #ececaa; }
30
+ .note.returns_void { background: #efefef; }
31
+ .note.deprecated { background: #ffe5e5; border-color: #e9dada; }
32
+ .note.title { text-transform: lowercase; padding: 1px 5px; margin-left: 5px; font-size: 0.9em; font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; }
33
+ h1 .note.title { font-size: 0.5em; font-weight: normal; padding: 3px 5px; position: relative; top: -3px; text-transform: capitalize; }
34
+ .note.title.constructor { color: #fff; background: #6a98d6; border-color: #6689d6; }
35
+ .note.title.writeonly { color: #fff; background: #45a638; border-color: #2da31d; }
36
+ .note.title.readonly { color: #fff; background: #6a98d6; border-color: #6689d6; }
37
+ .note.title.private { background: #d5d5d5; border-color: #c5c5c5; }
38
+
39
+ h3.inherited {
40
+ font-style: italic;
41
+ font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
42
+ font-weight: normal;
43
+ padding: 0;
44
+ margin: 0;
45
+ margin-top: 12px;
46
+ margin-bottom: 3px;
47
+ font-size: 13px;
48
+ }
49
+ p.inherited {
50
+ padding: 0;
51
+ margin: 0;
52
+ margin-left: 25px;
53
+ }
54
+
55
+
56
+ /*.method_details { border-top: 1px dotted #aaa; margin-top: 15px; padding-top: 0; }*/
57
+ /*.method_details.first { position: relative; top: -15px; margin-bottom: -15px; border-top: transparent solid; }*/
58
+
59
+
60
+ #info_box { position: relative; float: left; top: -20px; }
61
+ #info_box { margin-top: 15px; margin-bottom: -30px; }
62
+
63
+ /*#info_box a:link, #info_box a:visited {
64
+ display: block; float: left; margin-right: 4px;
65
+ padding: 8px 10px; text-decoration: none; color: #05a; background: #eaeaff;
66
+ border: 1px solid #d8d8e5;
67
+ -moz-border-radius-bottomleft: 3px; -moz-border-radius-bottomright: 3px;
68
+ -webkit-border-bottom-left-radius: 3px; -webkit-border-bottom-right-radius: 3px;
69
+ }
70
+ *//*#info_box a:hover { background: #eef; color: #06b; }
71
+ *//*#info_box a.active {
72
+ background: #568; padding-bottom: 20px; color: #fff; border: 1px solid #457;
73
+ -moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px;
74
+ -webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px;
75
+ }
76
+ *//*#info_box a.inactive { color: #999; }*/
77
+ /*.frames #info_box { display: none; }*/
78
+
79
+
80
+ dl.box {
81
+ width: 520px;
82
+ font-size: 1em;
83
+ }
84
+ dl.box dt {
85
+ float: left;
86
+ display: block;
87
+ width: 100px;
88
+ margin: 0;
89
+ text-align: right;
90
+ font-weight: bold;
91
+ border: 1px solid #aaa;
92
+ border-width: 1px 0px 0px 1px;
93
+ padding: 6px 0;
94
+ padding-right: 10px;
95
+ }
96
+ dl.box dd {
97
+ float: left;
98
+ display: block;
99
+ width: 380px;
100
+ margin: 0;
101
+ padding: 6px 0;
102
+ padding-right: 20px;
103
+ border: 1px solid #aaa;
104
+ border-width: 1px 1px 0 0;
105
+ }
106
+ dl.box .last {
107
+ border-bottom: 1px solid #aaa;
108
+ }
109
+ dl.box .r1 { background: #eee; }
110
+
111
+
112
+
113
+
114
+ ul.toplevel { list-style: none; padding-left: 0; font-size: 1.1em; }
115
+
116
+ #files_ribbon { padding-left: 15px; font-size: 1.1em; padding: 0; }
117
+ #files_ribbon li { list-style: none; display: inline; padding: 7px 12px; line-height: 35px; }
118
+
119
+ #methods_ribbon { padding-left: 15px; font-size: 1.1em; }
120
+ #methods_ribbon li { list-style: none; display: inline; padding: 7px 12px; line-height: 35px; }
121
+
122
+ #classes_ribbon { padding-left: 15px; font-size: 1.1em; }
123
+ #classes_ribbon li { list-style: none; display: inline; padding: 7px 12px; line-height: 35px; }
124
+
125
+ #modules_ribbon { padding-left: 15px; font-size: 1.1em; }
126
+ #modules_ribbon li { list-style: none; display: inline; padding: 7px 12px; line-height: 35px; }
127
+
128
+ dl.constants { margin-left: 40px; }
129
+ dl.constants dt { font-weight: bold; font-size: 1.1em; margin-bottom: 5px; }
130
+ dl.constants dd { width: 75%; white-space: pre; font-family: monospace; margin-bottom: 18px; }
131
+
132
+ .summary_desc { margin-left: 32px; display: block; font-family: sans-serif; }
133
+ .summary_desc tt { font-size: 0.9em; }
134
+ dl.constants .summary_desc { font-size: 0.9em; font-weight: normal; }
135
+
136
+ .method_details { border-top: 1px dotted #aaa; margin-top: 15px; padding-top: 0; }
137
+ .method_details.first { position: relative; top: -15px; margin-bottom: -15px; border-top: transparent solid; }
138
+
139
+ p.signature {
140
+ font-size: 1.1em; font-weight: normal; font-family: Monaco, Consolas, Courier, monospace;
141
+ padding: 6px 10px; margin-top: 18px;
142
+ background: #e5e8ff; border: 1px solid #d8d8e5; -moz-border-radius: 3px; -webkit-border-radius: 3px;
143
+ }
144
+ p.signature tt { font-family: Monaco, Consolas, Courier, monospace; }
145
+ p.signature .overload { display: block; }
146
+ p.signature .extras { font-weight: normal; font-family: sans-serif; color: #444; font-size: 1em; }
147
+ p.signature .aliases { display: block; font-weight: normal; font-size: 0.9em; font-family: sans-serif; margin-top: 0px; color: #555; }
148
+ p.signature .aliases .names { font-family: Monaco, Consolas, Courier, monospace; font-weight: bold; color: #000; font-size: 1.2em; }
149
+
150
+ .tags h3 { font-size: 1em; margin-bottom: 0; }
151
+ .tags ul { margin-top: 5px; padding-left: 30px; list-style: square; }
152
+ .tags ul li { margin-bottom: 3px; }
153
+ .tags ul .name { font-family: monospace; font-weight: bold; }
154
+ .tags ul p.note { padding: 3px 6px; }
155
+ .tags { margin-bottom: 12px; }
156
+
157
+ .tags .examples h3 { margin-bottom: 10px; }
158
+ .tags .examples h4 { padding: 0; margin: 0; margin-left: 15px; font-weight: bold; font-size: 0.9em; }
159
+
160
+ .tags .overload .overload_item { list-style: none; margin-bottom: 25px; }
161
+ .tags .overload .overload_item .signature {
162
+ padding: 2px 8px;
163
+ background: #e5e8ff; border: 1px solid #d8d8e5; -moz-border-radius: 3px; -webkit-border-radius: 3px;
164
+ }
165
+ .tags .overload .signature { margin-left: -15px; font-family: monospace; display: block; font-size: 1.1em; }
166
+ .tags .overload .docstring { margin-top: 15px; }
167
+
168
+ .defines { display: none; }
169
+
170
+ #method_missing_details .notice.this { position: relative; top: -8px; color: #888; padding: 0; margin: 0; }
171
+
172
+ .showSource { font-size: 0.9em; }
173
+ .showSource a:link, .showSource a:visited { text-decoration: none; color: #666; }
174
+
175
+ #content { position: relative; }
176
+ #content a:link, #content a:visited { text-decoration: none; color: #05a; }
177
+ #content a:hover { background: #ffffa5; }
178
+ .docstring { margin-right: 6em; }
179
+
180
+ ul.summary {
181
+ list-style: none;
182
+ font-family: monospace;
183
+ font-size: 1em;
184
+ line-height: 1.5em;
185
+ }
186
+ ul.summary a:link, ul.summary a:visited {
187
+ text-decoration: none; font-size: 1.1em;
188
+ }
189
+ ul.summary li { margin-bottom: 5px; }
190
+ .summary .summary_signature {
191
+ padding: 1px 10px;
192
+ background: #eaeaff; border: 1px solid #dfdfe5;
193
+ -moz-border-radius: 3px; -webkit-border-radius: 3px;
194
+ }
195
+ .summary_signature:hover { background: #eeeeff; cursor: pointer; }
196
+ #content .summary_signature:hover a:link,
197
+ #content .summary_signature:hover a:visited {
198
+ background: transparent;
199
+ color: #48f;
200
+ }
201
+
202
+ p.inherited a { font-family: monospace; font-size: 0.9em; }
203
+ p.inherited { word-spacing: 5px; font-size: 1.2em; }
204
+
205
+ p.children { font-size: 1.2em; }
206
+ p.children a { font-size: 0.9em; }
207
+ p.children strong { font-size: 0.8em; }
208
+ p.children strong.modules { padding-left: 5px; }
209
+
210
+ ul.fullTree { display: none; padding-left: 0; list-style: none; margin-left: 0; margin-bottom: 10px; }
211
+ ul.fullTree ul { margin-left: 0; padding-left: 0; list-style: none; }
212
+ ul.fullTree li { text-align: center; }
213
+ ul.fullTree li.next:before { font-size: 1.2em; content: '\2B06'; color: #bbb; display: block; margin-top: 3px; }
214
+
215
+ #header { position: relative; }
216
+ #search { position: absolute; right: 14px; top: 0px; }
217
+ #search { float: right; }
218
+
219
+ #search a:hover { background: #eef; color: #06b; }
220
+ #search a.active {
221
+ background: #568; padding-bottom: 20px; color: #fff; border: 1px solid #457;
222
+ -moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px;
223
+ -webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px;
224
+ }
225
+ #search a.inactive { color: #999; }
226
+ .frames #search { display: none; }
227
+ .inheritanceTree, .toggleDefines { float: right; }
228
+
229
+ #menu { font-size: 1.3em; color: #bbb; top: -5px; position: relative; }
230
+ #menu .title, #menu a { font-size: 0.7em; }
231
+ #menu .title { color: #555; }
232
+ #menu a:link, #menu a:visited { color: #333; text-decoration: none; border-bottom: 1px dotted #bbd; }
233
+ #menu a:hover { color: #05a; }
234
+ #menu .noframes { display: none; }
235
+ .frames #menu .noframes { display: inline; float: right; }
236
+
237
+ #footer { margin-top: 15px; border-top: 1px solid #ccc; text-align: center; padding: 7px 0; color: #999; }
238
+ #footer a:link, #footer a:visited { color: #444; text-decoration: none; border-bottom: 1px dotted #bbd; }
239
+ #footer a:hover { color: #05a; }
240
+
241
+ #listing ul.alpha { font-size: 1.1em; }
242
+ #listing ul.alpha { margin: 0; padding: 0; padding-bottom: 10px; list-style: none; }
243
+ #listing ul.alpha li.letter { font-size: 1.4em; padding-bottom: 10px; }
244
+ #listing ul.alpha ul { margin: 0; padding-left: 15px; }
245
+ #listing ul small { color: #666; font-size: 0.7em; }
246
+
247
+ li.r1 { background: #f0f0f0; }
248
+ li.r2 { background: #fafafa; }
249
+
250
+ #search_frame {
251
+ background: #fff;
252
+ display: none;
253
+ position: absolute;
254
+ top: 36px;
255
+ right: 18px;
256
+ width: 500px;
257
+ height: 80%;
258
+ overflow-y: scroll;
259
+ border: 1px solid #999;
260
+ border-collapse: collapse;
261
+ -webkit-box-shadow: -2px 5px 25px #aaa;
262
+ -moz-box-shadow: -2px 5px 25px #aaa;
263
+ -moz-border-radius: 2px;
264
+ -webkit-border-radius: 2px;
265
+ }
266
+
267
+ #content ul.summary li.deprecated a:link,
268
+ #content ul.summary li.deprecated a:visited { text-decoration: line-through; font-style: italic; }
269
+
270
+ /* syntax highlighting */
271
+ .source_code { display: none; padding: 3px 8px; border-left: 8px solid #ddd; margin-top: 5px; }
272
+ #filecontents pre.code, .docstring pre.code, .source_code pre { font-family: monospace; }
273
+ #filecontents pre.code, .docstring pre.code { display: block; }
274
+ .source_code .lines { padding-right: 12px; color: #555; text-align: right; }
275
+ #filecontents pre.code, .docstring pre.code,
276
+ .tags .example { padding: 5px 12px; margin-top: 4px; border: 1px solid #eef; background: #f5f5ff; }
277
+ pre.code { color: #000; }
278
+ pre.code .info.file { color: #555; }
279
+ pre.code .val { color: #036A07; }
280
+ pre.code .tstring_content,
281
+ pre.code .heredoc_beg, pre.code .heredoc_end,
282
+ pre.code .qwords_beg, pre.code .qwords_end,
283
+ pre.code .tstring, pre.code .dstring { color: #036A07; }
284
+ pre.code .fid, pre.code .id.new, pre.code .id.to_s,
285
+ pre.code .id.to_sym, pre.code .id.to_f,
286
+ pre.code .dot + pre.code .id,
287
+ pre.code .id.to_i pre.code .id.each { color: #0085FF; }
288
+ pre.code .comment { color: #0066FF; }
289
+ pre.code .const, pre.code .constant { color: #585CF6; }
290
+ pre.code .symbol { color: #C5060B; }
291
+ pre.code .kw,
292
+ pre.code .label,
293
+ pre.code .id.require,
294
+ pre.code .id.extend,
295
+ pre.code .id.include { color: #0000FF; }
296
+ pre.code .ivar { color: #318495; }
297
+ pre.code .gvar,
298
+ pre.code .id.backref,
299
+ pre.code .id.nth_ref { color: #6D79DE; }
300
+ pre.code .regexp, .dregexp { color: #036A07; }
301
+ pre.code a { border-bottom: 1px dotted #bbf; }
302
+